constraints.md (z): New constraint.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/constraints.md (z): New constraint.
4         * config/i386/i386.c (c): New mode attribute.
5         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7         constraint for operand 0.
8         (*call_vzeroupper): Ditto.
9         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
10         (*call_rex64_ms_sysv_vzeroupper): Ditto.
11         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12         Use "lzm" constraint for operand 0.
13         (*call_pop_vzeroupper): Ditto.
14         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16         constraint for operand 0.
17         (*sibcall_vzeroupper): Ditto.
18         (*sibcall_rex64_ms_sysv): Ditto.
19         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
20         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
21         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
22         (*sibcall_pop_vzeroupper): Ditto.
23         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
24         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
25         mode iterator.  Use "<c>zm" constraint for operand 1.
26         (*call_value_vzeroupper): Ditto.
27         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
28         for operand 0.
29         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
30         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
31         *call_value_pop_1.  Use "lzm" constraint for operand 1.
32         (*call_value_pop_vzeroupper): Ditto.
33         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
34         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
35         mode iterator.  Use "Uz" constraint for operand 1.
36         (*sibcall_value_vzeroupper): Ditto.
37         (*sibcall_value_rex64_ms_sysv): Ditto.
38         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
39         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
40         constraint for operand 1.
41         (*sibcall_value_pop_vzeroupper): Ditto.
42         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
43         and "z" constraint for operand 2.
44         (*tls_global_dynamic_32_gnu): Ditto.
45         (*tls_local_dynamic_base_32_gnu): Ditto.
46         (*tls_local_dynamic_base_64): Ditto.
47         (*tls_local_dynamic_32_once): Ditto.
48         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
49         Update all callers.
50         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
51
52 2011-05-16  Richard Guenther  <rguenther@suse.de>
53
54         * gimple.c (gimple_types_compatible_p_1): Use names of the
55         type itself, not its main variant.
56         (iterative_hash_gimple_type): Likewise.
57
58 2011-05-16  Richard Guenther  <rguenther@suse.de>
59
60         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
61         always visit pointer target and function result and argument types.
62
63 2011-05-16  Jason Merrill  <jason@redhat.com>
64
65         PR c++/48999
66         * tree-inline.c (copy_statement_list): Put back recursion.
67
68 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
69
70         PR target/27663
71         PR target/41076
72         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
73         * config/avr/avr.md ("*ior<mode>qi.byte0",
74         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
75
76 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
77
78         PR target/45099
79         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
80         register is needed for a function argument.
81
82 2011-05-16  Richard Guenther  <rguenther@suse.de>
83
84         * gimple.c (struct type_hash_pair): New type.
85         (type_hash_pair_compare): New function.
86         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
87
88 2011-05-16  Revital Eres  <revital.eres@linaro.org>
89
90         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
91
92 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
93
94         * config/i386/i386.md (floating point move splitters): Fix
95         usage of standard_80387_constant_p.
96         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
97
98 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
99
100         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
101
102 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
103
104         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
105         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
106         (tree_ssa_lim_finalize): Likewise.
107
108 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
109
110         * config/i386/constraint.md (Yd, Yx): New register constraints.
111         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
112         Yd conditional register constraint.
113         (*movtf_internal): Use standard_sse_constant_opcode.
114         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
115         Yx conditional register constraint.
116         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
117         Yd conditional register constraint.  Use standard_sse_constant_p to
118         check for valid SSE constants and call standard_sse_constant_opcode to
119         output SSE insn.
120         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
121         constants and call standard_sse_constant_opcode to output SSE insn.
122         * config/i386/i386.c (ix86_option_ovverride_internal): Set
123         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
124         optimize_size is set.
125         (standard_sse_constant_opcode): Output conditional AVX insn templates.
126
127 2011-05-14  Tobias Burnus  <burnus@net-b.de>
128
129         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
130
131 2011-05-13  Martin Jambor  <mjambor@suse.cz>
132
133         * ipa-prop.c (ipa_cst_from_jfunc): New function.
134         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
135         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
136         (evaluate_conditions_for_ipcp_clone): Removed.
137         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
138         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
139         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
140
141 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
142
143         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
144         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
145         lieu of MAY_HAVE_DEBUG_STMTS.
146         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
147         debug statements if !MAY_HAVE_DEBUG_STMTS.
148
149 2011-05-13  Martin Thuresson  <martint@google.com>
150
151         PR gcov-profile/47793
152         * libgcov.c (gcov_exit): Support relative profile paths.
153         * doc/invoke.texi (-fprofile-dir): Update for above change.
154
155 2011-05-13  Richard Guenther  <rguenther@suse.de>
156
157         * gimple.c (gimple_canonical_types_compatible_p): Do not use
158         type-pair caching, do not compare hashes.
159
160 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
161
162         PR middle-end/48965
163         * tree-cfg.c (edge_to_cases_cleanup): Return true.
164         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
165
166 2011-05-13  Kai Tietz  <ktietz@redhat.com>
167
168         * gimplify.c (gimplify_expr): Make sure operand is boolified.
169         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
170         compatible type for TRUTH_NOT_EXPR.
171
172 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
173
174         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
175         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
176         can_create_pseudo_p ().
177
178 2011-05-13  Richard Guenther  <rguenther@suse.de>
179
180         PR lto/48978
181         * gimple.c (iterative_hash_gimple_type): Revert change in
182         pointer target and function result and argument hashing.
183
184 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
185
186         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
187         (*movxf_internal_nointeger): Ditto.
188         (*movdf_internal_rex64): Ditto.
189         (*movdf_internal): Ditto.
190         (*movdf_internal_nointeger): Ditto.
191         (*movsf_internal): Ditto.
192         (sincos splitters): Use can_create_pseudo ().
193
194 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
195
196         * config/i386/i386-opts.h: New.
197         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
198         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
199         ix86_section_threshold): Remove.
200         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
201         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
202         OPT_mbranch_cost_.
203         (ix86_option_override_internal): Don't decode strings for options
204         other than -march=, -mtune= and -mfpmath=.  Don't allow for
205         __attribute__ uses in remaining diagnostics for options with
206         string arguments.  Don't check for integer arguments being negative.
207         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
208         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
209         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
210         ix86_branch_cost, ix86_section_threshold): Remove.
211         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
212         HeaderInclude.
213         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
214         but not Var.
215         (masm=): Use Enum and Init.
216         (asm_dialect): New Enum and EnumValue entries.
217         (mbranch-cost=): Use UInteger.
218         (mlarge-data-threshold=): Use UInteger and Init.
219         (mcmodel=): Use Enum and Init.
220         (cmodel): New Enum and EnumValue entries.
221         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
222         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
223         mregparm=): Use UInteger.
224         (mstringop-strategy=): Use Enum and Init.
225         (stringop_alg): New Enum and EnumValue entries.
226         (mtls-dialect=): Use Enum and Init.
227         (tls_dialect): New Enum and EnumValue entries.
228         (mabi=): Use Enum and Init.
229         (calling_abi): New Enum and EnumValue entries.
230         (mveclibabi=): Use Enum and Init.
231         (ix86_veclibabi): New Enum and EnumValue entries.
232
233 2011-05-13  Nick Clifton  <nickc@redhat.com>
234
235         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
236         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
237
238 2011-05-13  Kai Tietz  <ktietz@redhat.com>
239
240         PR middle-end/48984
241         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
242         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
243         (gimple_boolify): Check for cast for boolean_type_node instead for
244         BOOLEAN_TYPE.
245
246 2011-05-13  Richard Guenther  <rguenther@suse.de>
247
248         PR tree-optimization/48172
249         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
250         multiplying by number of iterations for equal step.
251         (vect_create_cond_for_alias_checks): Likewise.
252
253 2011-05-13  Andreas Schwab  <schwab@redhat.com>
254
255         * configure.ac: Use AS_HELP_STRING throughout.
256         * configure: Regenerate.
257
258 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
259
260         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
261         (ix86_emit_restore_regs_using_mov): Likewise.
262         (ix86_emit_restore_sse_regs_using_mov): Likewise.
263
264 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
265
266         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
267         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
268         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
269         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
270         RTX_OK_FOR_OLO10_P): ...here.
271         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
272         SYMBOLIC_CONST.
273
274 2011-05-12  Kai Tietz  <ktietz@redhat.com>
275
276         * gimplify.c (gimple_boolify): Re-boolify expression
277         arguments even if expression type is of kind BOOLEAN_TYPE.
278         (gimplify_boolean_expr): Removed.
279         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
280         and XOR. Additional take care that we keep expression's type.
281         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
282         of TRUTH_AND|OR|XOR_EXPR.
283
284 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
285
286         PR tree-optimization/48975
287         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
288         on all bbs here and free and clear ifc_bbs at the end.
289
290 2011-05-12  Richard Guenther  <rguenther@suse.de>
291
292         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
293         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
294         until after simple checks.
295         (gimple_types_compatible_p): Likewise.
296         (iterative_hash_gimple_type): Always hash pointer targets
297         and function return and argument types.
298         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
299         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
300         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
301         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
302         completely in the simple compare section.
303         (gimple_register_canonical_type): Query the cache again after
304         registering.
305
306 2011-05-12  Richard Guenther  <rguenther@suse.de>
307
308         PR tree-optimization/48172
309         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
310         the number of iterations from the segment size calculation.
311         (vect_create_cond_for_alias_checks): Adjust.
312
313 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
314
315         PR debug/48967
316         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
317         if validate_subreg fails.
318
319 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
320
321         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
322         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
323         early.
324
325 2011-05-12  DJ Delorie  <dj@redhat.com>
326
327         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
328         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
329         created builtin into rx_builtins array.
330         (rx_builtin_decl): New function.
331         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
332
333 2011-05-12  DJ Delorie  <dj@redhat.com>
334             Nick Clifton  <nickc@redhat.com>
335
336         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
337         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
338         (rx_is_legitimate_address): Add pre-decrement and post-increment
339         addressing in HImode and QImode.  Fix test for out of range
340         REG+INT addressing.
341         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
342         (rx_align_for_label): Test label before extracting its usage count.
343         (rx_adjust_insn_lengths): Fix selection of insn codes.
344         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
345
346 2011-05-11  Jason Merrill  <jason@redhat.com>
347
348         * tree.c (type_hash_canon): Use struct tree_type_non_common.
349
350 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
351
352         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
353         reindent the subsequent block.
354
355 2011-05-11  Satoru Takabayashi  <satorux@google.com>
356             Paul Pluzhnikov  <ppluzhnikov@google.com>
357
358         * doc/install.texi (Configuration): Document --with-linker-hash-style.
359         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
360         * config.in: Add LINKER_HASH_STYLE.
361         * configure.ac: Add --with-linker-hash-style.
362         * configure: Regenerate.
363
364 2011-05-11  Richard Guenther  <rguenther@suse.de>
365
366         PR middle-end/48964
367         * gimple.c (iterative_hash_canonical_type): Fix typo.
368
369 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
370
371         * config/i386/i386.c (legitimize_tls_address)
372         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
373         expanders directly for TARGET_GNU2_TLS.  Determine pic and
374         __tls_get_addr symbol reference here.  Update call to
375         gen_tls_global_dynamic_{32,64} for added arguments.
376         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
377         expanders directly for TARGET_GNU2_TLS.  Determine
378         __tls_get_addr symbol reference here.  Update call to
379         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
380         unique UNSPEC REG_EQUIV to libcall block.
381         (ix86_tls_get_addr): Declare static.
382         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
383         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
384         Do not determine pic and __tls_get_addr symbol reference here. Do not
385         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
386         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
387         (tls_global_dynamic_64): Add operand 2.  Do not determine
388         __tls_get_addr symbol reference here.  Do not call
389         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
390         (tls_local_dynamic_base64): Ditto for operand 1.
391
392 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
393
394         * function.c (expand_function_start): Initialize stack_check_probe_note
395         only if the generic stack checking mechanism is used.
396
397 2011-05-11  Richard Guenther  <rguenther@suse.de>
398
399         PR tree-optimization/15256
400         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
401         (A & B) | C, combine (A op CST1) op CST2.
402         (tree_ssa_forward_propagate_single_use_vars): Only bother to
403         visit assigns that have uses.
404
405 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
406
407         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
408         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
409         (unpack_ts_type_common_value_fields): ...this.  Update comment.
410         (unpack_value_fields): Adjust for renaming.
411         (lto_input_ts_type_tree_pointers): Split into...
412         (lto_input_ts_type_common_tree_pointer): ...this and...
413         (lto_input_ts_type_non_common_tree_pointers): ...this.
414         (lto_input_tree_pointers): Adjust for above split.
415         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
416         (pack_ts_type_common_value_fields): ...this.  Update comment.
417         (lto_output_ts_type_tree_pointers): Split into...
418         (lto_output_ts_type_common_tree_pointers): ...this and...
419         (lto_output_ts_type_non_common_tree_pointers): ...this.
420         (lto_output_tree_pointers): Adjust for above split.
421         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
422         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
423         * stor-layout.c (vector_type_mode): Adjust location of mode field.
424         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
425         Define.
426         (struct tree_type): Split into...
427         (struct tree_type_common: ...this and...
428         (struct tree_type_with_lang_specific): ...this and...
429         (struct tree_type_non_common): ...this.  Adjust accessor macros
430         accordingly.
431         (TYPE_VALUES_RAW): Define.
432         (union tree_node): Update for above changes.
433         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
434         TS_TYPE_NON_COMMON.
435         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
436         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
437         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
438         * treestructu.def (TS_TYPE): Remove.
439         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
440         Define.
441
442 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
443
444         PR debug/48159
445         * tree-ssa.c (reset_debug_uses): New function.
446         * tree-flow.h (reset_debug_uses): New prototype.
447         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
448         * tree-loop-distribution.c (generate_loops_for_partition): Call
449         reset_debug_uses on the stmts that will be removed.  Keep around
450         all debug stmts, don't count them as bits in partition bitmap.
451         (generate_builtin): Don't count debug stmts or labels as bits in
452         partition bitmap.
453
454 2011-05-11  Richard Guenther  <rguenther@suse.de>
455
456         * gimple.c (gimple_type_hash_1): Merge with ...
457         (gimple_type_hash): ... this.
458         (gtc_visit): Remove mode parameter and simplify accordingly.
459         (gimple_types_compatible_p_1): Likewise.
460         (gimple_types_compatible_p): Likewise.
461         (iterative_hash_gimple_type): Likewise.
462         (visit): Likewise.
463         (gimple_type_eq): Adjust.
464
465 2011-05-11  Revital Eres  <revital.eres@linaro.org>
466
467         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
468         enters the branch create an anti edge in the opposite direction
469         to prevent the creation of reg-moves.
470         * modulo-sched.c: Adjust comment to reflect the fact we are
471         scheduling closing branch.
472         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
473         (stage_count): New field in struct partial_schedule.
474         (calculate_stage_count): New function.
475         (normalize_sched_times): Rename to reset_sched_times and handle
476         incrementing the sched time of the nodes by a constant value
477         passed as parameter.
478         (duplicate_insns_of_cycles): Skip closing branch.
479         (sms_schedule_by_order): Schedule closing branch.
480         (ps_insn_find_column): Handle closing branch.
481         (sms_schedule): Call reset_sched_times and adjust the code to
482         support scheduling of the closing branch.
483         (ps_insert_empty_row): Update calls to normalize_sched_times
484         and rotate_partial_schedule functions.
485
486 2011-05-11  Richard Guenther  <rguenther@suse.de>
487
488         PR middle-end/48953
489         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
490
491 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
492
493         * opts.c (finish_options): Move warning settings from process_options.
494         * toplev.c (process_options): Move warning settings to finish_options.
495
496 2011-05-11  Richard Guenther  <rguenther@suse.de>
497
498         PR tree-optimization/18041
499         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
500         (simplify_bitwise_binary): ... this.  Handle operand conversions
501         by applying them to the result instead.
502         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
503
504 2011-05-11  Richard Guenther  <rguenther@suse.de>
505
506         * gimple.c (gimple_canonical_types_compatible_p): Split out
507         from gimple_types_compatible_p and friends.  Do not recurse
508         to pointed-to types.
509         (gimple_canonical_type_eq): Use it.
510         (iterative_hash_canonical_type): Split out from
511         iterative_hash_gimple_type and friends.  Do not recurse
512         to pointed-to types.
513         (gimple_canonical_type_hash): Use it, allocate the hash here.
514
515 2011-05-11  Revital Eres  <revital.eres@linaro.org>
516
517         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
518         recognizing doloop.
519
520 2011-05-11  Revital Eres  <revital.eres@linaro.org>
521
522         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
523         instead of PREV_INSN.
524
525 2011-05-11  Revital Eres  <revital.eres@linaro.org>
526
527         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
528         * loop-doloop.c (doloop_condition_get): Likewise.
529         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
530         (doloop_end): New.
531         * config/arm/arm.md (*addsi3_compare0): Remove "*".
532
533 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
534
535         * tree.def (CASE_LABEL_EXPR): Add an operand.
536         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
537
538 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
539
540         * c-decl.c (c_override_global_bindings_to_false): Remove.
541         (global_bindings_p): Don't check
542         c_override_global_bindings_to_false.
543         * c-tree.h (c_override_global_bindings_to_false): Remove.
544         * c-typeck.c (composite_type): Don't set
545         c_override_global_bindings_to_false.
546
547 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
548
549         PR target/48857, 48495
550         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
551         (VSX_MODE): Ditto.
552         (VSX_MOVE_MODE): Ditto.
553         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
554         VSX vector types.  Add V2DImode.
555         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
556         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
557         (MODES_TIEABLE_P): Ditto.
558
559         * config/rs6000/rs6000.c (rs6000_emit_move): Use
560         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
561         VSX_VECTOR_MODE.
562         (init_cumulative_args): Ditto.
563         (rs6000_function_arg_boundary): Ditto.
564         (rs6000_function_arg_advance_1): Ditto.
565         (rs6000_function_arg): Ditto.
566         (rs6000_function_ok_for_sibcall): Ditto.
567         (emit_frame_save): Ditto.
568         (rs6000_function_value): Ditto.
569         (rs6000_libcall_value): Ditto.
570
571 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
572
573         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
574         i386/darwin-lib.h to $libgcc_tm_file.
575         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
576
577 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
578
579         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
580
581 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
582
583         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
584         * config/rs6000/rs6000-tables.opt: New file (generated).
585         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
586         rs6000/rs6000-tables.opt to extra_options.
587         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
588         * config/rs6000/rs6000.c (rs6000_select): Remove.
589         (processor_target_table): Move contents to rs6000-cpus.def.
590         (darwin_rs6000_override_options): Check
591         global_options_set.x_rs6000_cpu_index instead of
592         rs6000_select[1].string.
593         (rs6000_option_override_internal): Likewise.
594         (rs6000_handle_option): Don't assert that global structures are in
595         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
596         (rs6000_default_cpu): New variable.
597         (rs6000_file_start): Set it instead of local default_cpu.  Check
598         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
599         global_options_set.x_rs6000_tune_index instead of rs6000_select.
600         (rs6000_darwin_file_start): Check rs6000_default_cpu and
601         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
602         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
603         rs6000_select): Remove.
604         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
605         Remove.
606         (mcpu=, mtune=): Use Var, Init, Enum and Save.
607         * config/rs6000/t-rs6000
608         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
609         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
610         global_options_set.x_rs6000_cpu_index instead of
611         rs6000_select[1].string.
612         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
613         global_options_set.x_rs6000_cpu_index instead of
614         rs6000_select[1].string.
615
616 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
617
618         * config.gcc (libgcc_tm_file): Define instead of including files
619         from ../../libgcc/config/ in tm_file.
620         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
621         * configure: Regenerate.
622         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
623         libgcc_tm.h, cs-libgcc_tm.h): New.
624         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
625         (clean): Remove libgcc_tm.h.
626         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
627         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
628         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
629
630 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
631
632         PR target/48896
633         * config/avr/avr.c (avr_ret_register): Return unsigned int
634         instead of int.
635         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
636         it to avr_libcall_value.
637         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
638         expand_expr.
639         (avr_expand_binop_builtin): Ditto.
640         (avr_expand_unop_builtin): Ditto.
641
642 2011-05-10  DJ Delorie  <dj@redhat.com>
643
644         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
645         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
646         * config/rx/rx.c (rx_align_for_label): Add label and
647         uses_threshold parameters.  Do not align when the label is not
648         used enough.
649         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
650
651 2011-05-10  Richard Guenther  <rguenther@suse.de>
652
653         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
654         a series of conversions and apply foldings similar to what
655         fold-const does.
656         (tree_ssa_forward_propagate_single_use_vars): Call it.
657
658 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
659
660         PR tree-optimization/48611
661         PR tree-optimization/48794
662         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
663         referenced from RESX or EH_DISPATCH arguments.
664
665         PR debug/48928
666         * dfp.c (decimal_to_decnumber): Handle conversion from
667         dconst{1,2,m1,half}.
668
669 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
670
671         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
672         for !flag_prefer_avx128.
673         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
674
675 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
676
677         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
678         (fold_ternary_loc): Use expr_location_or.
679
680 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
681
682         PR debug/48853
683         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
684         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
685         Pmode and mem_mode is not VOIDmode.
686
687 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
688
689         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
690         TYPE_QUAL_RESTRICT): Convert to enum.
691
692 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
693
694         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
695         (const_pow2_1_to_8_operand): Ditto.
696         (const_pow2_1_to_128_operand): Ditto.
697         (const_pow2_1_to_32768_operand): Ditto.
698         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
699         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
700         in insn constraint to check integer value of operand 3.
701         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
702
703         (PINSR_MODE): New mode iterator.
704         (sse2p4_1): New mode attribute.
705         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
706         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
707         iterator.  Use const_int_operand instead of
708         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
709         exact_log2 in insn constraint to check integer value of operand 3.
710
711 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
712
713         * config/i386/sse.md (blendbits): Remove mode attribute.
714         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
715         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
716         Check integer value of operand 3 in insn constraint.
717
718 2011-05-09  Richard Guenther  <rguenther@suse.de>
719
720         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
721         for diagnostics.
722         (lto_symtab_merge): Likewise.  Do not register types here.
723         (lto_symtab_merge_decls_2): Likewise.
724         (lto_symtab_merge_decls_1): Likewise.
725         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
726         * gimple.c (enum gtc_mode): Declare.
727         (gimple_types_compatible_p): Make static.
728
729 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
730
731         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
732         temporary register to match Pmode.
733
734 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
735
736         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
737         and *vec_concatv4si_1_avx.
738
739 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
740
741         PR rtl-optimization/48927
742         * ira-conflicts.c (commutative_constraint_p): Use
743         recog_data.alternative_enabled_p to disable alternatives where
744         "enabled" attribute is false.
745         (get_dup_num): Ditto.
746         * ira-lives.c (single_reg_class): Ditto.
747         (ira_implicitly_set_insn_hard_regs): Ditto.
748
749 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
750
751         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
752         (dataflow_set_preserve_mem_locs): Likewise.
753
754 2011-05-09  Philipp Thomas  <pth@suse.de>
755
756         * config/mep/mep.c (mep_validate_vliw): Syntax description
757         should not be translated.
758
759 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
760
761         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
762         * config/mips/mips-tables.opt: New file (generated).
763         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
764         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
765         MIPS_ARCH_OPTION_NATIVE): Define.
766         * config/mips/mips.c (mips_cpu_info_table): Move contents to
767         mips-cpus.def.
768         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
769         mips_parse_cpu): Remove.
770         (mips_cpu_info_from_opt, mips_default_arch): New.
771         (mips_handle_option): Don't assert that global structures are in
772         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
773         (mips_option_override): Use new variables and functions to set
774         state of these options.  Use strcmp to check for individual CPU names.
775         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
776         definition.
777         * config/mips/mips.opt (march=): Use ToLower and Enum.
778         (mips): Use ToLower, Enum and Var.
779         (mtune=): Use ToLower and Enum.
780         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
781
782 2011-05-08  Jan Hubicka  <jh@suse.cz>
783
784         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
785         Arrange type pairs to be UID ordered.
786         (gimple_lookup_type_leader): Make inline.
787
788 2011-05-09  Nick Clifton  <nickc@redhat.com>
789
790         PR target/48899
791         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
792         PROCESSOR_DEFAULT.
793
794         PR target/48897
795         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
796         variable 's'.
797
798 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
799
800         * combine.c (simplify_comparison): Abstract out parts into...
801         (simplify_compare_const): ... new function.
802         (try_combine): Generalize parallel arithmetic/compare combining
803         to call simplify_compare_const() and CANONICALIZE_COMPARE().
804
805 2011-05-08  Jan Hubicka  <jh@suse.cz>
806
807         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
808         (cgraph_create_virtual_clone): Call hooks once virtual clone
809         is finished.
810         * cgraph.h (cgraph_clone_node): Update prototype.
811         * ipa-cp.c (ipcp_estimate_growth): Use
812         estimate_ipcp_clone_size_and_time.
813         * ipa-inline-transform.c (clone_inlined_nodes): Update.
814         * lto-cgraph.c (input_node): Update.
815         * ipa-inline.c (recursive_inlining): Update.
816         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
817         (evaluate_conditions_for_known_args): Break out from ...
818         (evaluate_conditions_for_edge): ... here.
819         (evaluate_conditions_for_ipcp_clone): New function.
820         (inline_node_duplication_hook): Update clone summary based
821         on parameter map.
822         (estimate_callee_size_and_time): Rename to ...
823         (estimate_node_size_and_time): take NODE instead of EDGE;
824         take POSSIBLE_TRUTHS as argument.
825         (estimate_callee_size_and_time): Update.
826         (estimate_ipcp_clone_size_and_time): New function.
827         (do_estimate_edge_time): Update.
828
829 2011-05-08  Richard Guenther  <rguenther@suse.de>
830
831         PR middle-end/48908
832         PR middle-end/48905
833         * expmed.c (expand_shift_1): Compute adjusted constant shift
834         amount manually.
835
836 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
837
838         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
839
840 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
841
842         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
843
844 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
845
846         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
847
848 2011-05-07  Jan Hubicka  <jh@suse.cz>
849
850         * ipa-inline-transform.c (inline_call): Account when program size
851         decreases.
852         * ipa-inline.c (relative_time_benefit): New function.
853         (edge_badness): Reorganize to be power 2 based; fix thinko when
854         computing badness for negative growth; update comments to match
855         reality; better dumps.
856
857 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
858
859         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
860         type to bool and adjust comment.
861         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
862         (fold_mathfn_compare): Remove calls to global_bindings_p.
863         (fold_inf_compare): Likewise.
864         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
865         * c-tree.h (global_bindings_p): Adjust prototype.
866         * c-decl.c (global_bindings_p): Return bool and simplify.
867
868 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
869
870         PR tree-optimization/48837
871         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
872         when accumulator transformation is performed.
873
874 2011-05-06  Jan Hubicka  <jh@suse.cz>
875
876         * i386.h (ix86_tune_indices): Add
877         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
878         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
879         * i386.c (initial_ix86_tune_features): Add
880         X86_SOFTARE_PREFETCHING_BENEFICIAL.
881         (software_prefetching_beneficial_p): Remove predicate.
882         (ix86_option_override_internal): Use new macro.
883
884 2011-05-06  Jan Hubicka  <jh@suse.cz>
885
886         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
887
888 2011-05-06  Jan Hubicka  <jh@suse.cz>
889
890         * cgraph.c (cgraph_add_thunk): Create real function node instead
891         of alias node; finalize it and mark needed/reachale; arrange visibility
892         to be right and add it into the corresponding same comdat group list.
893         (dump_cgraph_node): Dump thunks.
894         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
895         cgraph_function_with_gimple_body_p,
896         cgraph_first_function_with_gimple_body,
897         cgraph_next_function_with_gimple_body): New functions.
898         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
899         New macros.
900         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
901         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
902         * cgraphunit.c (cgraph_finalize_function): Only look into possible
903         devirtualization when optimizing.
904         (verify_cgraph_node): Verify thunks.
905         (cgraph_analyze_function): Analyze thunks.
906         (cgraph_mark_functions_to_output): Output thunks only in combination
907         with function they are assigned to.
908         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
909         alias into normal node.
910         (assemble_thunks): New functoin.
911         (cgraph_expand_function): Use it.
912         * lto-cgraph.c (lto_output_node): Stream thunks.
913         (input_overwrite_node): Stream in thunks.
914         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
915         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
916         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
917         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
918         (inline_analyze_function): Do not care about thunk jump functions.
919         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
920         * ipa-prop.c (ipa_prop_write_jump_functions): Use
921         cgraph_function_with_gimple_body_p.
922         * passes.c (do_per_function_toporder): Use
923         cgraph_function_with_gimple_body_p.
924         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
925         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
926         (function_called_by_processed_nodes_p): Likewise.
927
928 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
929
930         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
931         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
932         entries.
933         (mabi=): Replace with separate entries for mabi=altivec,
934         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
935         mabi=ieeelongdouble and mabi=ibmlongdouble.
936         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
937         check for -mabi=spe without SPE ABI support here.
938         (rs6000_handle_option): Replace OPT_mabi_ handling with
939         OPT_mabi_altivec and OPT_mabi_spe handling.
940
941 2011-05-06  Cary Coutant  <ccoutant@google.com>
942
943         * dwarf2out.c (contains_subprogram_definition): New function.
944         (should_move_die_to_comdat): Call it.
945
946 2011-05-06  Jeff Law  <law@redhat.com>
947
948         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
949         remove_ctrl_stmt_and_useless_edges.
950         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
951         (fixup_template_block, thread_single_edge): Likewise.
952         (mark_threaded_blocks): Use THREAD_TARGET.
953
954 2011-05-06  Alan Modra  <amodra@gmail.com>
955
956         PR target/48900
957         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
958         const0_rtx as the arg to the dummy __tls_get_addr libcall.
959
960 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
961
962         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
963         constraint modifier to "r".
964
965 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
966
967         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
968         fall through for OPT_mcmodel_.
969
970 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
971
972         * config/s390/s390.c (s390_asm_trampoline_template): Comment
973         instruction sizes.
974         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
975
976 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
977
978         PR target/47930
979         * config/arm/arm.opt (marm): Document it.
980         (mthumb): Reject negative variant.
981
982 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
983
984         PR target/48898
985         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
986         Fix typo in "ccvt" variable name.
987
988 2011-05-06  Tristan Gingold  <gingold@adacore.com>
989
990         PR target/48895
991         * config/vms/vms-ar.c (main): Remove cwd variable.
992
993 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
994
995         PR debug/48902
996         * var-tracking.c (prepare_call_arguments): Move else before #endif.
997
998 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
999
1000         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1001         * gimplify.c (gimplify_switch_expr): Likewise.
1002         * omp-low.c (expand_omp_sections): Likewise.
1003         * tree-eh.c (lower_try_finally_switch): Likewise.
1004         (lower_eh_dispatch): Likewise.
1005         * tree.h (build_case_label): Declare.
1006         * tree.c (build_case_label): Define.
1007
1008 2011-05-05  Jason Merrill  <jason@redhat.com>
1009
1010         PR c++/40975
1011         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1012         (copy_statement_list): Don't recurse.
1013         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1014         STATEMENT_LIST.
1015
1016 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1017
1018         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1019         through from -mfpu= handling.
1020         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1021
1022 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1023
1024         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1025         POST_MODIFY.
1026
1027 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1028
1029         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1030         for 11.31.
1031         (hppa[12]*-*-hpux11*): Ditto.
1032         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1033         * config/ia64/hpux-unix2003.h: New.
1034         * config/pa/pa-hpux1131.opt: New.
1035         * config/pa/pa-hpux1131.h: New.
1036         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1037         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1038         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1039
1040 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1041
1042         PR debug/48853
1043         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1044         instead of mode as 3rd argument to recursive call.
1045         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1046         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1047         VOIDmode.
1048         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1049         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1050         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1051         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1052
1053 2011-05-05  Julian Brown  <julian@codesourcery.com>
1054
1055         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1056         parenthesis in D-register case.
1057
1058 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1059
1060         * opt-functions.awk (var_type_struct): Handle Enum options.
1061         * optc-gen.awk: Don't check range of variables of character type.
1062         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1063         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1064         rs6000_sdata_name, rs6000_explicit_options): Remove.
1065         (rs6000_option_override_internal): Check for -malign-power here.
1066         Use global_options_set instead of rs6000_explicit_options.
1067         (rs6000_parse_fpu_option): Remove.
1068         (rs6000_handle_option): Access variables via opts and opts_set
1069         pointers.  Use error_at and warning_at.  Add fall-through
1070         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1071         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1072         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1073         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1074         here.  Don't use rs6000_parse_fpu_option.
1075         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1076         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1077         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1078         (mrecip=): Use Var.
1079         (mspe): Use Var and Save.
1080         (mtraceback=): Use Enum and Var.
1081         (rs6000_traceback_type): New Enum and EnumValue entries.
1082         (mfloat-gprs=): Use Enum, Var and Save.
1083         (rs6000_float_gprs): New Enum and EnumValue entries.
1084         (mlong-double-): use Var and Save.
1085         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1086         (malign-): Use Enum and Var.
1087         (rs6000_alignment_flags): New Enum and EnumValue entries.
1088         (mfpu=): Use Enum.
1089         (fpu_type_t): New Enum and EnumValue entries.
1090         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1091         global_options_set instead of rs6000_explicit_options.
1092         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1093         global_options_set instead of rs6000_explicit_options.
1094         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1095         global_options_set instead of rs6000_explicit_options.
1096         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1097         global_options_set instead of rs6000_explicit_options.
1098         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1099         global_options_set instead of rs6000_explicit_options.
1100         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1101         global_options_set instead of rs6000_explicit_options.
1102         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1103         definition.
1104         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1105         global_options_set instead of rs6000_explicit_options.
1106         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1107         (rs6000_cmodel): New Enum and EnumValue entries.
1108         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1109         global_options_set instead of rs6000_explicit_options.
1110         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1111         (mtls-size=): Use Enum and Var.
1112         (rs6000_tls_size): New Enum and EnumValue entries.
1113
1114 2011-05-05  Michael Matz  <matz@suse.de>
1115
1116         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1117         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1118         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1119         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1120         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1121         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1122         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1123         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1124         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1125         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1126         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1127         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1128         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1129         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1130         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1131         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1132
1133 2011-05-05  Richard Guenther  <rguenther@suse.de>
1134
1135         * expmed.c (expand_variable_shift): Rename to ...
1136         (expand_shift_1): ... this.  Take an expanded shift amount.
1137         For rotates recurse directly not building trees for the shift amount.
1138         (expand_variable_shift): Wrap around expand_shift_1.
1139         (expand_shift): Adjust.
1140
1141 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1142
1143         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1144
1145 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1146
1147         * tree.h (get_pending_sizes): Remove prototype.
1148         (put_pending_size): Likewise.
1149         (put_pending_sizes): Likewise.
1150         * stor-layout.c (pending_sizes): Delete.
1151         (get_pending_sizes): Likewise.
1152         (put_pending_size): Likewise.
1153         (put_pending_sizes): Likewise.
1154         (variable_size): Do not call put_pending_size and tidy up.
1155         * function.h (struct function): Remove dont_save_pending_sizes_p.
1156         * lto-streamer-in.c (input_function): Do not stream it.
1157         * lto-streamer-out.c (output_function): Likewise.
1158         * tree-inline.c (initialize_cfun): Do not copy it.
1159         * c-decl.c (store_parm_decls): Do not set it.
1160         * omp-low.c (create_task_copyfn): Likewise.
1161         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1162
1163 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1164
1165         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1166         conditions.
1167         (*movdf_internal): Ditto.
1168         (*movdf_internal_nointeger): Ditto.
1169         (*movsf_internal): Ditto.
1170
1171 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1172
1173         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1174         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1175         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1176         (c_variable_size): Remove.
1177         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1178         call put_pending_sizes.
1179         (get_parm_info): Add parameter expr.  Use it to set
1180         arg_info->pending_sizes.
1181         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1182         get_pending_sizes.
1183         * c-parser.c (c_parser_parms_declarator): Update call to
1184         c_parser_parms_list_declarator.
1185         (c_parser_parms_list_declarator): Take parameter expr.  Update
1186         call to push_parm_decl.  Update recursive call.  Don't call
1187         get_pending_sizes.  Update calls to get_parm_info.
1188         (c_parser_objc_method_definition): Update calls to
1189         c_parser_objc_method_decl and objc_start_method_definition.
1190         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1191         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1192         grokparm.
1193         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1194         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1195         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1196
1197 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1198
1199         PR pch/45979
1200         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1201         __ARM_EABI__ hosts.
1202
1203 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1204
1205         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1206         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1207         (spu_output_mi_thunk): New function.
1208
1209 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1210
1211         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1212         targetm.asm_out.print_operand.
1213         * config/sol2.c: Include target.h.
1214
1215 2011-05-04  Jan Hubicka  <jh@suse.cz>
1216
1217         * ipa-inline.c (reset_edge_caches): New function.
1218         (update_caller_keys): Add check_inlinablity_for; do not
1219         reset edge caches; remove now unnecesary loop.
1220         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1221         (update_all_callee_keys): Likewise.
1222         (inline_small_functions): Sanity check cache; update code
1223         recomputing it.
1224
1225 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1226
1227         PR rtl-optimization/47612
1228         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1229         as the last insn of the sequence to be moved.
1230
1231 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1232
1233         PR fortran/48864
1234         * doc/invoke.texi (Ofast): Document that it
1235         enables Fortran's -fno-protect-parens.
1236
1237 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1238
1239         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1240
1241 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1242
1243         * stor-layout.c (variable_size): Do not issue errors.
1244
1245 2011-05-04  Richard Guenther  <rguenther@suse.de>
1246
1247         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1248         for array-ref indices.
1249         (tree_coverage_counter_addr): Likewise.
1250         (build_fn_info_type): Use size_int for index types.
1251         (build_gcov_info): Likewise.
1252
1253 2011-05-04  Richard Guenther  <rguenther@suse.de>
1254
1255         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1256         to build_int_cst.
1257         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1258         for constructor indices.
1259         (push_init_level): Likewise.
1260
1261 2011-05-04  Richard Guenther  <rguenther@suse.de>
1262
1263         * explow.c (promote_mode): Move variable declarations before code.
1264
1265 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1266
1267         * tree.h (build_function_type_array): Declare.
1268         (build_varargs_function_type_array): Declare.
1269         (build_function_type_vec, build_varargs_function_type_vec): Define.
1270         * tree.c (build_function_type_array_1): New function.
1271         (build_function_type_array): New function.
1272         (build_varargs_function_type_array): New function.
1273
1274 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1275
1276         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1277         before setting STMT_VINFO_TYPE.
1278
1279 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1280
1281         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1282         instead of spu_pass_by_reference.
1283
1284 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1285
1286         * calls.c (emit_library_call_value_1): Invoke
1287         promote_function_mode hook on libcall arguments.
1288         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1289         argument being NULL.
1290         * targhooks.c (default_promote_function_mode): Lisewise.
1291         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1292         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1293
1294         * doc/tm.texi: Document that TYPE argument might be NULL.
1295
1296 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1297
1298         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1299
1300 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1301
1302         From Bernd Schmidt
1303         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1304
1305 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1306
1307         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1308         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1309         Move ...
1310         * mips-tfile.c: ... here.
1311         Don't include coretypes.h, tm.h, filenames.h.
1312         (saber_stop): Remove definition and all calls.
1313         [__SABER__]: Remove.
1314         (__LINE__): Remove default.
1315         (Size_t, Ptrdiff_t): Remove definitions.
1316         Replace by size_t, ptrdiff_t.
1317         [!MIPS_DEBUGGING_INFO]: Remove.
1318         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1319         (progname): Add const.
1320         (STATIC): Remove.
1321         Replace all uses by static.
1322         (ALIGN_SYMTABLE_OFFSET): Remove default.
1323         * mips-tdump.c: Don't include coretypes.h, tm.h.
1324         Remove !MIPS_IS_STAB guard.
1325         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1326         $(TM_H), filenames.h dependencies.
1327         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1328
1329 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1330
1331         From Jie Zhang
1332         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1333         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1334
1335 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1336
1337         From Bernd Schmidt
1338         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1339         account and save/restore RETS.
1340         (PROFILE_BEFORE_PROLOGUE): Define.
1341         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1342         the push insn to use predecrement.
1343
1344 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1345
1346         From Jie Zhang
1347         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1348
1349 2011-05-04  Nick Clifton  <nickc@redhat.com>
1350
1351         * config/mn10300/mn10300.c: Include cfgloop.h.
1352         (DUMP): New macro.
1353         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1354         Lcc or a FLcc insn into the instruction stream.
1355         (mn10300_block_contains_call): New function.  Returns true if the
1356         given basic block contains a CALL insn.
1357         (mn10300_loop_contains_call_insn): New function.  Returns true if
1358         the given loop contains a CALL insn.
1359         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1360         to use the SETLB and Lcc or FLcc insns.
1361         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1362         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1363         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1364         disable the SETLB optimization.
1365         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1366         __SETLB__ or __NO_SETLB__.
1367         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1368         (movsf_internal): Handle MDR register.
1369         (cmpsi): Make visible.
1370         (setlb): New pattern.
1371         (Lcc): New pattern.
1372         (FLcc): New pattern.
1373
1374 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1375
1376         PR target/48860
1377         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1378         for reg<->xmm moves.
1379         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1380         (vec_concatv2di_rex64_sse): Ditto.
1381         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1382         (*vec_extractv2di_1_rex64): Ditto.
1383
1384         Revert:
1385         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1386
1387         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1388         reg<->xmm moves.
1389         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1390
1391 2011-05-04  Richard Guenther  <rguenther@suse.de>
1392
1393         * tree.h (int_const_binop): Remove notrunc argument.
1394         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1395         create integer constants that are properly truncated.
1396         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1397         (const_binop): Remove zero notrunc argument to int_const_binop.
1398         (size_binop_loc): Likewise.
1399         (fold_div_compare): Likewise.
1400         (maybe_canonicalize_comparison_1): Likewise.
1401         (fold_comparison): Likewise.
1402         (fold_binary_loc): Likewise.
1403         (multiple_of_p): Likewise.
1404         * expr.c (store_constructor): Likewise.
1405         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1406         (maybe_fold_stmt_addition): Likewise.
1407         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1408         * stor-layout.c (layout_type): Likewise.
1409         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1410         * tree-sra.c (build_ref_for_offset): Likewise.
1411         (build_user_friendly_ref_for_offset): Likewise.
1412         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1413         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1414         * tree-ssa-loop-niter.c (inverse): Likewise.
1415         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1416         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1417         * tree-switch-conversion.c (check_range): Likewise.
1418         (build_constructors): Likewise.
1419         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1420         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1421         (extract_range_from_assert): Likewise.
1422         (vrp_int_const_binop): Likewise.
1423         (extract_range_from_binary_expr): Likewise.
1424         (extract_range_from_unary_expr): Likewise.
1425         (check_array_ref): Likewise.
1426         (find_case_label_range): Likewise.
1427         (simplify_div_or_mod_using_ranges): Likewise.
1428         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1429         comparing case labels for merging.
1430
1431 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1432
1433         * dwarf2out.c (debug_str_hash_forced): Removed.
1434         (gen_label_for_indirect_string): Removed.
1435         (get_debug_string_label): Removed.
1436         (AT_string_form): Generate label directly.
1437         (output_indirect_string): Test indirect_string_node for
1438         DW_FORM_strp instead of checking label and refcount.
1439         (prune_indirect_string): Removed.
1440         (prune_unused_types): Don't check debug_str_hash_forced or
1441         call prune_indirect_string.
1442
1443 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1444
1445         PR other/48093
1446         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1447
1448 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1449
1450         PR debug/47994
1451         PR debug/47919
1452         * combine.c (try_combine): Skip debug insns at m_split tests.
1453
1454 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1455
1456         PR42288
1457         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1458         when info_section_emitted.
1459
1460 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1461
1462         * config/mips/mips-opts.h: New.
1463         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1464         to mips-opts.h.
1465         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1466         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1467         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1468         via opts pointer.
1469         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1470         mips-opts.h.
1471         (mips_abi, mips_code_readable): Don't declare.
1472         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1473         (mabi=): Use Enum and Var.
1474         (mips_abi): New Enum and EnumValue entries.
1475         (mcode-readable=): Use Enum and Var.
1476         (mips_code_readable_setting): New Enum and EnumValue entries.
1477         (mr10k-cache-barrier=): Use Enum and Var.
1478         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1479
1480 2011-05-03  Jan Hubicka  <jh@suse.cz>
1481
1482         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1483         replace hash by pointer map.
1484         (cgraph_node_set_element_def, cgraph_node_set_element,
1485         const_cgraph_node_set_element, varpool_node_set_element_def,
1486         varpool_node_set_element, const_varpool_node_set_element): Remove.
1487         (free_cgraph_node_set, free_varpool_node_set): New function.
1488         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1489         * tree-emutls.c: Free varpool node set.
1490         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1491         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1492         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1493         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1494         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1495         Move here from ipa.c; implement using pointer_map
1496         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1497         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1498         debug_cgraph_node_set, varpool_node_set_new,
1499         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1500         dump_varpool_node_set, debug_varpool_node_set):
1501         Move to ipa-uitls.c.
1502         * passes.c (ipa_write_summaries): Update.
1503
1504 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1505
1506         From Mike Frysinger:
1507         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1508         bf542/bf544/bf547/bf548/bf549.
1509
1510 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1511
1512         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1513
1514 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1515
1516         From Bernd Schmidt:
1517         * config/bfin/bfin.md (MOVCC): New mode_macro.
1518         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1519         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1520         comments from generated assembly.
1521
1522 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1523
1524         From Bernd Schmidt
1525         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1526         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1527         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1528         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1529         * config/bfin/lib1funcs.asm (___muldi3): New function.
1530
1531 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1532
1533         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1534         build_function_type_list instead of build_function_type.
1535         Rearrange initialization of `args' to do so.
1536
1537 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1538
1539         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1540         instead of build_function_type.
1541
1542 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1543
1544         * config/rs6000/rs6000.c (spe_init_builtins): Call
1545         build_function_type_list instead of build_function_type.
1546         (paired_init_builtins, altivec_init_builtins): Likewise.
1547         (builtin_function_type): Likewise.
1548
1549 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1550
1551         * config/sh/sh.c (sh_media_init_builtins): Call
1552         build_function_type_list instead of build_function_type.
1553
1554 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1555
1556         * config/sparc/sparc.c (sparc_file_end): Call
1557         build_function_type_list instead of build_function_type.
1558
1559 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1560
1561         * config/alpha/alpha.c (alpha_init_builtins): Call
1562         build_function_type_list instead of build_function_type.
1563
1564 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1565
1566         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1567         build_function_type_list instead of build_function_type.
1568
1569 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1570
1571         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1572         build_function_type_list instead of build_function_type.
1573         Delete `endlink' variable.
1574
1575 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1576
1577         * config/avr/avr.c (avr_init_builtins): Call
1578         build_function_type_list instead of build_function_type.
1579
1580 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1581
1582         * config/picochip/picochip.c (picochip_init_builtins): Call
1583         build_function_type_list instead of build_function_type.
1584         Delete `endlink' variable.
1585
1586 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1587
1588         * config/bfin/bfin.c (bfin_init_builtins): Call
1589         build_function_type_list instead of build_function_type.
1590
1591 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1592
1593         From Bernd Schmidt
1594         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1595         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1596
1597 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1598
1599         From Jie Zhang:
1600         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1601         libbffastfp overrides libgcc when -mfast-fp.
1602
1603 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1604
1605         Originally from Bernd Schmidt
1606         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1607         * config/bfin/bfin.c (override_options): Test it and error if
1608         TARGET_FDPIC.
1609
1610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1611
1612         Originally From Bernd Schmidt
1613         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1614         FD-PIC.
1615
1616 2011-05-03  Jeff Law  <law@redhat.com>
1617
1618         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1619         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1620         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1621         than accessing AUX field directly.  Free the AUX field before
1622         clearing it.
1623         (thread_block, thread_through_loop_header): Likewise.
1624         (thread_single_edge, mark_threaded_blocks): Likewise.
1625         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1626         (register_jump_thread): Do not attempt to thread to a NULL edge.
1627
1628 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1629
1630         * function.c (init_function_start): Call decide_function_section.
1631         * varasm.c (decide_function_section): New function.
1632         (assemble_start_function): When not using
1633         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1634         or first_function_block_is_cold.
1635         * rtl.h (decide_function_section): Declare.
1636
1637 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1638             Jakub Jelinek  <jakub@redhat.com>
1639
1640         PR target/48774
1641         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1642         only succeed if req_mode is the same as set_mode.
1643
1644 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1645
1646         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1647         * genemit.c (gen_exp): Handle RETURN.
1648         * emit-rtl.c (verify_rtx_sharing): Likewise.
1649         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1650         * rtl.c (copy_rtx): RETURN is shared.
1651         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1652         (ret_rtx): New.
1653         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1654         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1655         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1656         * config/cris/cris.c (cris_expand_return): Likewise.
1657         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1658         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1659         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1660         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1661         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1662         Likewise.
1663         * config/v850/v850.c (expand_epilogue): Likewise.
1664         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1665         * config/arm/arm.md (epilogue): Likewise.
1666         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1667         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1668         variable to ret_reg.
1669
1670 2011-05-03  Richard Guenther  <rguenther@suse.de>
1671
1672         PR lto/48846
1673         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1674         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1675         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1676
1677 2011-05-03  Richard Guenther  <rguenther@suse.de>
1678
1679         * c-decl.c (grokdeclarator): Instead of looking at
1680         TREE_OVERFLOW check if the constant fits in the index type.
1681
1682 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1683
1684         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1685         (vec_store_lanes<mode><mode>): Likewise.
1686
1687 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1688
1689         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1690         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1691         convert_optab_index values.
1692         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1693         * genopinit.c (optabs): Initialize the new optabs.
1694         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1695         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1696         (expand_STORE_LANES): New functions.
1697         * tree.h (build_array_type_nelts): Declare.
1698         * tree.c (build_array_type_nelts): New function.
1699         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1700         (vect_model_load_cost): Likewise.
1701         (vect_store_lanes_supported, vect_load_lanes_supported)
1702         (vect_record_strided_load_vectors): Declare.
1703         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1704         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1705         (vect_transform_strided_load): Split out statement recording into...
1706         (vect_record_strided_load_vectors): ...this new function.
1707         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1708         (write_vector_array, create_array_ref): New functions.
1709         (vect_model_store_cost): Add store_lanes_p argument.
1710         (vect_model_load_cost): Add load_lanes_p argument.
1711         (vectorizable_store): Try to use store-lanes functions for
1712         interleaved stores.
1713         (vectorizable_load): Likewise load-lanes and loads.
1714         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1715         to vect_model_store_cost.
1716         (vect_build_slp_tree): Likewise vect_model_load_cost.
1717
1718 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1719
1720         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1721         * hooks.c (hook_bool_mode_uhwi_false): New function.
1722         * target.def (array_mode_supported_p): New hook.
1723         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1724         * doc/tm.texi: Regenerate.
1725         * stor-layout.c (mode_for_array): New function.
1726         (layout_type): Use it.
1727         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1728         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1729
1730 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1731
1732         PR target/48723
1733         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1734         for -fstack-check if the size to allocate is negative.
1735
1736 2011-05-02  Lawrence Crowl  <crowl@google.com>
1737
1738         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1739         (timevar_cond_start): New for starting a timer only when it is not
1740         already running.
1741         (timevar_cond_stop): New for stopping a timer when it was not already
1742         running.
1743
1744         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1745         (timevar_cond_start): New as above.
1746         (timevar_cond_stop): New as above.
1747
1748         * timevar.def: Add start/stop timers for compiler phases,
1749         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1750         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1751         and TV_PHASE_FINALIZE.
1752         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1753         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1754         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1755         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1756         Make unused TV_OVERLOAD into a start/stop timer.
1757
1758         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1759         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1760         to indicate that they are start/stop timers.
1761
1762         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1763         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1764         Move initialization to do_compile.
1765         (do_compile): Add initialization from above.
1766         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1767
1768         * c-decl.c (c_write_global_declarations): Add start/stop of
1769         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1770
1771         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1772         or TV_PARSE_INLINE, as appropriate.
1773         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1774         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1775
1776 2011-05-02  Jason Merrill  <jason@redhat.com>
1777
1778         PR c++/40975
1779         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1780
1781 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1782
1783         PR c/35445
1784         * c-decl.c (finish_decl): Only create a composite if the types are
1785         compatible.
1786
1787 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1788
1789         * config/fr30/fr30-protos.h (Mmode): Don't define.
1790         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1791         definition where used.
1792         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1793         define.  Expand definitions where used.
1794         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1795         Expand definitions where used.
1796         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1797         rx_function_arg, rx_function_arg_advance,
1798         rx_function_arg_boundary): Expand definitions of those macros.
1799         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1800         definition where used.
1801
1802 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1803
1804         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1805         reg<->xmm moves.
1806         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1807         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1808         with *movv2sf_internal_rex64_avx.
1809         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1810         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1811         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1812         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1813         "vex" in "prefix" attribute calculation.
1814         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1815
1816 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1817
1818         PR target/47951
1819         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1820         inputs match the output.
1821
1822 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1823
1824         PR target/47955
1825         * config/m68k/m68k.c (m68k_expand_prologue): Set
1826         current_function_static_stack_size.
1827
1828 2011-05-02   Jan Hubicka  <jh@suse.cz>
1829
1830         * lto-streamer.c (lto_streamer_cache_insert_1,
1831         lto_streamer_cache_lookup, lto_streamer_cache_create,
1832         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1833         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1834
1835 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1836
1837         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1838         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1839         config/m68k/t-opts: New files.
1840         * config/m68k/m68k-tables.opt: New file (generated).
1841         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1842         extra_options and m68k/t-opts to tmake_file.
1843         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1844         (all_isas): Initialize using m68k-isas.def.
1845         (all_microarchs): Initialize using m68k-microarchs.def.
1846         (m68k_find_selection): Remove.
1847         (m68k_handle_option): Don't assert that global structures are in
1848         use.  Use error_at.  Access variables via opts pointer.  Don't
1849         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1850         directly for -m68020-40 and -m68020-60.
1851         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1852         m68k_tune_entry here.
1853         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1854         to m68k-opts.h.
1855         (m68k_library_id_string): Remove declaration.
1856         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1857         (m68k_library_id_string): New Variable.
1858         (march=, mcpu=, mtune=): Use Enum and Var.
1859
1860 2011-05-02  Richard Guenther  <rguenther@suse.de>
1861
1862         * varasm.c (output_constructor_regular_field): Compute zero-based
1863         index with double-ints.  Make sure to ICE instead of producing
1864         wrong code.
1865         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1866         in asserts.  Properly use a signed type.
1867
1868 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1869
1870         * config/i386/sse.md (V): New mode iterator.
1871         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1872         TARGET_SSE2.
1873         (V_256): Rename from AVX256MODE.
1874         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1875         condition to all users.
1876         (VF1): Ditto.
1877         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1878         condition to all users.
1879         (VF_128): Make V4SF mode unconditional.
1880         (VF_256): Rename from AVX256MODEF2P.
1881         (VI4F_128): Rename from SSEMODE4S.
1882         (VI8F_128): Rename from SSEMODE2D.
1883         (VI4F_256): Rename from AVX256MODE8P.
1884         (VI8F_256): Rename from AVX256MODE4P.
1885         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1886         (ssescalarmodesuffix): Remove SF and DF modes.
1887         (SSEMODE124): Remove.
1888         (SSEMODE1248): Ditto.
1889         (SSEMODEF2P): Ditto.
1890         (AVXMODEF2P): Ditto.
1891         (AVXMODEFDP): Ditto.
1892         (AVXMODEFSP): Ditto.
1893         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1894         unconditional.
1895         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1896         unconditional.
1897         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1898         xop_pcmov_<mode>256.  Use V mode iterator.
1899
1900         Adjust RTX patterns globally for renamed mode attributes.
1901
1902 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1903
1904         * haifa-sched.c (sched_emit_insn): Emit insn before first
1905         non-scheduled insn.  Inform back-end about new insn.  Add
1906         new insn to scheduled_insns list.
1907
1908 2011-05-02  Richard Guenther  <rguenther@suse.de>
1909
1910         PR tree-optimization/48822
1911         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1912         (process_scc): Indicate which iteration we start.
1913
1914 2011-05-02  Jan Hubicka  <jh@suse.cz>
1915
1916         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1917         (lto_section_overrun): New.
1918         * lto-section-out.c (append_block): Rename to ...
1919         (lto_append_block): ... this one; export.
1920         (lto_output_1_stream): Move lto lto-streamer.h
1921         (lto_output_data_stream): Update.
1922         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1923         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1924         functions.
1925
1926 2011-05-02  Richard Guenther  <rguenther@suse.de>
1927
1928         * tree.c (tree_code_counts): New global array.
1929         (record_node_allocation_statistics): Count individual tree codes.
1930         (dump_tree_statistics): Dump individual code stats.
1931
1932 2011-05-01  Jan Hubicka  <jh@suse.cz>
1933
1934         * ipa-inline.c (caller_growth_limits): Fix thinko when
1935         looking for largest stack frame.
1936         * ipa-inline.h (dump_inline_summary): Declare.
1937         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1938         on stack usage.
1939         (dump_inline_summary): Export.
1940         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1941
1942 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1943
1944         * reginfo.c (memory_move_cost): Change rclass argument type form
1945         'enum reg_class' to reg_class_t.
1946         * reload.h (memory_move_cost): Update prototype.
1947         * postreload.c reload_cse_simplify_set): Change type dclass var to
1948         reg_class_t.
1949         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1950         Update prototype.
1951         (ira_allocate_and_set_costs): Change aclass argument type form
1952         'enum reg_class' to reg_class_t.
1953         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1954         Change aclass argument type to reg_class_t.
1955         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1956         to reg_class_t.
1957         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1958         memory_move_cost call.
1959
1960         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1961         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1962         Change type tmp var to reg_class_t.
1963
1964 2011-04-30  Jan Hubicka  <jh@suse.cz>
1965
1966         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1967         inlining into function with flatten attribute.
1968         (want_inline_small_function_p): Be more realistic about inlining
1969         cold calls where callee size grows.
1970
1971 2011-04-30  Jan Hubicka  <jh@suse.cz>
1972
1973         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1974         flags.
1975
1976 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1977
1978         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1979         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1980         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1981         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1982         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1983         (print_operand): Rename to...
1984         (sparc_print_operand): ...this. Make static. Adjust
1985         sparc_print_operand function call.
1986         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1987         functions.
1988
1989 2011-04-30  Jan Hubicka  <jh@suse.cz>
1990
1991         PR middle-end/48752
1992         * ipa-inline.c (early_inliner): Disable when doing late
1993         addition of function.
1994
1995 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1996
1997         * dwarf2out.c (get_address_mode): New inline.
1998         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1999         if not dwarf_strict emit
2000         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2001         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2002         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2003         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2004         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2005         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2006         mem_loc_descriptor callers.
2007         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2008         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2009         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2010         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2011         (base_types): New variable.
2012         (get_base_type_offset, calc_base_type_die_sizes,
2013         base_type_for_mode, mark_base_types, base_type_cmp,
2014         move_marked_base_types): New functions.
2015         (calc_die_sizes): Assert that die_offset is 0 or equal to
2016         next_die_offset.
2017         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2018         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2019         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2020         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2021         (gen_subprogram_die): Don't give up on call site parameters
2022         with non-integral or large integral modes.  Adjust
2023         mem_loc_descriptor callers.
2024         (prune_unused_types): Call prune_unused_types_mark on base_types
2025         vector entries.
2026         (resolve_addr): Call mark_base_types.
2027         (dwarf2out_finish): Call move_marked_base_types.
2028
2029         PR tree-optimization/48809
2030         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2031         type.
2032         (gen_inbound_check): Don't compute index_expr - range_min in utype
2033         again, instead reuse SSA_NAME initialized in build_arrays.
2034         Remove two useless gsi_for_stmt calls.
2035
2036 2011-04-29  Jeff Law  <law@redhat.com>
2037
2038         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2039
2040 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2041
2042         * cgraph.h (cgraph_postorder): Remove declaration.
2043         * ipa-utils.h (ipa_free_postorder_info): Declare.
2044         (ipa_reverse_postorder): Likewise.
2045         * cgraphunit.c: Include ipa-utils.h.
2046         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2047         * ipa-inline.c: Include ipa-utils.h.
2048         (ipa_inline): Update call to ipa_reverse_postorder.
2049         * ipa-pure-const.c (propagate_pure_const): Update call to
2050         ipa_reduced_postorder and ipa_print_order.  Call
2051         ipa_free_postorder_info to clean up.
2052         (propagate_nothrow): Likewise.
2053         * ipa-reference.c (propagate): Removed a useless call to
2054         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2055         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2056         * ipa.c: Include ipa-utils.h.
2057         (ipa_profile): Update call to ipa_reverse_postorder.
2058         (cgraph_postorder): Moved to...
2059         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2060         (ipa_utils_print_order): Renamed to ipa_print_order.
2061         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2062         comments.
2063         (ipa_free_postorder_info): New function.
2064         * passes.c: Include ipa-utils.h.
2065         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2066         (ipa_write_summaries): Likewise.
2067         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2068         (cgraphunit.o): Likewise.
2069         (ipa.o): Likewise.
2070         (ipa-inline.o): Likewise.
2071
2072 2011-04-29  Jan Hubicka  <jh@suse.cz>
2073
2074         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2075         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2076         * ipa-inline.h (clause_t): Turn into unsigned int.
2077         * ipa-inline-analysis.c (add_clause): Do more simplification.
2078         (and_predicates): Shortcut more cases.
2079         (predicates_equal_p): Move forward; check that clauses are properly
2080         ordered.
2081         (or_predicates): Shortcut more cases.
2082         (edge_execution_predicate): Rewrite as...
2083         (set_cond_stmt_execution_predicate): ... this function; handle
2084         __builtin_constant_p.
2085         (set_switch_stmt_execution_predicate): New .
2086         (compute_bb_predicates): New.
2087         (will_be_nonconstant_predicate): Update TODO.
2088         (estimate_function_body_sizes): Use compute_bb_predicates
2089         and free them later, always try to estimate if stmt is constant.
2090         (estimate_time_after_inlining, estimate_size_after_inlining):
2091         Gracefully handle optimized out edges.
2092         (read_predicate): Fix off by one error.
2093
2094 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2095
2096         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2097
2098 2011-04-27  Xinliang David Li  <davidxl@google.com>
2099
2100         * tree-profile.c (init_ic_make_global_vars): Set
2101         tls attribute on ic vars.
2102         * coverage.c (coverage_end_function): Initialize
2103         function_list with zero.
2104
2105 2011-04-29  Richard Guenther  <rguenther@suse.de>
2106
2107         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2108         for the type of the result.
2109         (fold_builtin_isascii): Likewise.
2110         (fold_builtin_toascii): Use integer_type_node where appropriate.
2111         (fold_builtin_logb): Likewise.
2112         (fold_builtin_frexp): Likewise.
2113         (fold_builtin_strstr): Likewise.
2114         (fold_builtin_strpbrk): Likewise.
2115         (fold_builtin_fputs): Likewise.
2116         (fold_builtin_sprintf): Likewise.
2117         (fold_builtin_snprintf): Likewise.
2118         (fold_builtin_printf): Likewise.
2119         (do_mpfr_remquo): Use a proper type for the assigned constant.
2120         (do_mpfr_lgamma_r): Likewise.
2121         * dwarf2out.c (resolve_one_addr): Use size_int.
2122         * except.c (init_eh): Likewise.
2123         (assign_filter_values): Use integer_type_node for filter values.
2124         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2125         indices.
2126         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2127         for EH region numbers.
2128         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2129         for the shift amount.
2130
2131 2011-04-29  Richard Guenther  <rguenther@suse.de>
2132
2133         * expr.h (expand_shift): Rename to ...
2134         (expand_variable_shift): ... this.
2135         (expand_shift): Take a constant shift amount.
2136         * expmed.c (expand_shift): Rename to ...
2137         (expand_variable_shift): ... this.
2138         (expand_shift): New wrapper around expand_variable_shift.
2139         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2140         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2141         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2142         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2143         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2144         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2145         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2146         emit_store_flag_1, emit_store_flag): Likewise.
2147         * builtins.c (expand_builtin_signbit): Likewise.
2148         * calls.c (load_register_parameters): Likewise.
2149         * function.c (assign_parm_setup_block): Likewise.
2150         * lower-subreg.c (resolve_shift_zext): Likewise.
2151         * optabs.c (widen_bswap, expand_abs_nojump,
2152         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2153         * spu/spu.c (spu_expand_extv): Likewise.
2154         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2155
2156 2011-04-29  Richard Guenther  <rguenther@suse.de>
2157
2158         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2159         for the remapped region number.
2160         * predict.c (build_predict_expr): Use integer_type_node for the
2161         predict kind.
2162         * fold-const.c (fold_binary_loc): Use integer_type_node for
2163         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2164
2165 2011-04-29  Michael Matz  <matz@suse.de>
2166
2167         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2168         other trees that just builtins.
2169         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2170
2171 2011-04-29  Richard Guenther  <rguenther@suse.de>
2172
2173         * tree-nested.c (get_trampoline_type): Use size_int.
2174         (get_nl_goto_field): Likewise.
2175         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2176         for all indexes.
2177         (lower_eh_constructs_2): Likewise.
2178         (lower_resx): Likewise.
2179         (lower_eh_dispatch): Likewise.
2180         * tree-mudflap.c (mf_build_string): Use size_int.
2181         (mudflap_register_call): Use integer_type_node for the flag.
2182         (mudflap_enqueue_constant): Use size_int.
2183         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2184         instead of rebuilding it.
2185
2186 2011-04-29  Richard Guenther  <rguenther@suse.de>
2187
2188         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2189         Handle OBJ_TYPE_REF.
2190         (find_func_aliases_for_call): Use it more consistently.
2191
2192 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2193
2194         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2195         (rank_for_schedule): Use it.
2196         (schedule_block): Set it.
2197
2198 2011-04-28  David Li  <davidxl@google.com>
2199
2200         * tree.c (crc32_string): Use crc32_byte.
2201         (crc32_byte): New function.
2202         * tree.h (crc32_byte): New function.
2203         * gcov.c (read_graph_file): Handle new cfg_cksum.
2204         (read_count_file): Ditto.
2205         * profile.c (instrument_values): Ditto.
2206         (get_exec_counts): Ditto.
2207         (read_profile_edge_counts): Ditto.
2208         (compute_branch_probabilities): Ditto.
2209         (compute_value_histograms): Ditto.
2210         (branch_prob): Ditto.
2211         (end_branch_prob): Ditto.
2212         * coverage.c (read_counts_file): Ditto.
2213         (get_coverage_counts): Ditto.
2214         (tree_coverage_counter_addr): Ditto.
2215         (coverage_checksum_string): Ditto.
2216         (coverage_begin_output): Ditto.
2217         (coverage_end_function): Ditto.
2218         (build_fn_info_type): Ditto.
2219         (build_fn_info_value): Ditto.
2220         * libgcov.c (gcov_exit): Ditto.
2221         * gcov-dump.c (tag_function): Ditto.
2222         (compute_checksum): Remove.
2223
2224 2011-04-29  Alan Modra  <amodra@gmail.com>
2225
2226         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2227         unspec plus offset.  Tidy macho code.
2228
2229 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2230
2231         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2232         node instead of a decl.  Update all callers.
2233         * cgraph.h: Update declaration.
2234
2235 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2236
2237         PR tree-optimization/48765
2238         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2239         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2240         to indicate if loop aware SLP is being used.  Scan the statements
2241         and update the vectorization factor according to the type of
2242         vectorization before statement analysis.
2243         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2244         pass it to vect_analyze_loop_operations.
2245         (vectorizable_reduction): Set number of copies to 1 in case of pure
2246         SLP statement.
2247         * tree-vect-stmts.c (vectorizable_conversion,
2248         vectorizable_assignment, vectorizable_shift,
2249         vectorizable_operation, vectorizable_type_demotion,
2250         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2251         Likewise.
2252         (vectorizable_condition): Move the check that it is not SLP
2253         vectorization before the number of copies check.
2254         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2255         to vectorize the loop using SLP.
2256
2257 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2258
2259         PR middle-end/48597
2260         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2261         inline asm.
2262
2263 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2264
2265         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2266         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2267         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2268         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2269         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2270         linux*.h headers.
2271         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2272         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2273         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2274         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2275         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2276         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2277         REG_NAME.
2278         * config/i386/linux.h (REG_NAME): Don't define.
2279         * config/i386/linux64.h (REG_NAME): Don't define.
2280         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2281         Undefine before defining.
2282
2283 2011-04-28  Jan Hubicka  <jh@suse.cz>
2284
2285         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2286         nonconstant_names array.
2287         (estimate_function_body_sizes): Build nonconstant_names array; handle
2288         BUILT_IN_CONSTANT_P.
2289
2290 2011-04-28  Richard Guenther  <rguenther@suse.de>
2291
2292         PR bootstrap/48804
2293         Revert
2294         2011-04-28  Richard Guenther  <rguenther@suse.de>
2295
2296         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2297         as late as possible.
2298
2299 2011-04-28  Richard Guenther  <rguenther@suse.de>
2300
2301         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2302         (debug_constraint): Do it here.
2303         (dump_constraints): And here.
2304         (rewrite_constraints): And here.
2305         (dump_constraint_edge): Remove.
2306         (dump_constraint_graph): Rewrite to produce DOT output.
2307         (solve_constraints): Build succ graph as late as possible.
2308         Dump constraint graphs before and after solving.
2309
2310 2011-04-28  Richard Guenther  <rguenther@suse.de>
2311
2312         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2313         New function split out from ...
2314         (find_func_aliases): ... here.  Call it.
2315         (find_func_aliases_for_call): Likewise.
2316
2317 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2318
2319         * internal-fn.h (internal_fn_name_array): Declare.
2320         (internal_fn_flags_array): Likewise.
2321
2322 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2323
2324         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2325         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2326         Move from sse.md.
2327         (ssemodefsuffix): Remove.
2328         (ssevecmodesuffix): New mode attribute.
2329         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2330         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2331         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2332         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2333         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2334         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2335         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2336         ssemodesuffix mode attribute.
2337         (float splitters): Use ssevecmodesuffix mode attribute.
2338         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2339         (sseinsmode): Rename from avxvecmode.
2340         (avxsizesuffix): Rename from avxmodesuffix.
2341         (sseintvecmode): Rename from avxpermvecmode.
2342         (ssedoublevecmode): Rename from ssedoublesizemode.
2343         (ssehalfvecmode): Rename from avxhalfvecmode.
2344         (ssescalarmode): Rename from avxscalarmode.
2345         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2346         templates for ssemodesuffix mode attribute.
2347         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2348         mode attribute.
2349
2350         Adjust RTX patterns globally for renamed mode attributes.
2351
2352 2011-04-27  Jan Hubcika  <jh@suse.cz>
2353
2354         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2355         * ipa-inline-analysis.c: Include alloc-pool.h.
2356         (edge_predicate_pool): New.
2357         (trye_predicate_p): New function
2358         (false_predicate_p): New function.
2359         (add_clause): Sanity check that false clauses are "optimized";
2360         never add clauses to predicate that is already known to be false.
2361         (and_predicate): Use flase_predicate_p.
2362         (evaulate_predicate): Rename to ...
2363         (evaluate_predicate): ... this one; update all callers; assert
2364         that false is not listed among possible truths.
2365         (dump_predicate): Use true_predicate_p.
2366         (account_size_time): Use false_predicate_p.
2367         (evaulate_conditions_for_edge): Rename to ...
2368         (evaluate_conditions_for_edge) ... this one.
2369         (edge_set_predicate): New function.
2370         (inline_edge_duplication_hook): Duplicate edge predicates.
2371         (inline_edge_removal_hook): Free edge predicates.
2372         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2373         (dump_inline_summary): Update.
2374         (estimate_function_body_sizes): Set edge predicates.
2375         (estimate_calls_size_and_time): Handle predicates.
2376         (estimate_callee_size_and_time): Update.
2377         (remap_predicate): Add toplev_predicate; update comment.
2378         (remap_edge_predicates): New function.
2379         (inline_merge_summary): Compute toplev predicate; update.
2380         (read_predicate): New function.
2381         (read_inline_edge_summary): Use it.
2382         (inline_read_section): Likewise.
2383         (write_predicate): New function.
2384         (write_inline_edge_summary): Use it.
2385         (inline_write_summary): Likewise.
2386         (inline_free_summary): Free alloc pool and edge summary vec.
2387
2388 2011-04-27  Richard Guenther  <rguenther@suse.de>
2389
2390         * tree-ssa-structalias.c (changed_count): Remove.
2391         (changed): Use a bitmap.
2392         (unify_nodes): Adjust.
2393         (do_sd_constraint): Likewise.
2394         (do_ds_constraint): Likewise.
2395         (do_complex_constraint): Likewise.
2396         (solve_graph): Likewise.
2397
2398 2011-04-27  Jan Hubicka  <jh@suse.cz>
2399
2400         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2401
2402 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2403
2404         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2405         (avx_vperm2f128_*_operand): Ditto.
2406         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2407         Use avx_vpermilp_parallel in insn condition.
2408         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2409         Use avx_vperm2f128_parallel in insn condition.
2410
2411 2011-04-27  Richard Guenther  <rguenther@suse.de>
2412
2413         * Makefile.in (tree-ssa-structalias.o): Remove
2414         gt-tree-ssa-structalias.h dependency.
2415         (GTFILES): Remove tree-ssa-structalias.c.
2416         * tree.c (allocate_decl_uid): New function.
2417         (make_node_stat): Use it.
2418         (copy_node_stat): Likewise.
2419         * tree.h (allocate_decl_uid): Declare.
2420         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2421         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2422         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2423         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2424         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2425         (struct heapvar_map): Likewise.
2426         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2427         heapvar_insert): Likewise.
2428         (make_heapvar_for): Rename to ...
2429         (make_heapvar): ... this.  Simplify.
2430         (fake_var_decl_obstack): New global var.
2431         (build_fake_var_decl): New function.
2432         (make_constraint_from_heapvar): Adjust.
2433         (handle_lhs_call): Likewise.
2434         (create_function_info_for): Likewise.
2435         (intra_create_variable_infos): Likewise.
2436         (init_alias_vars): Allocate fake_var_decl_obstack.
2437         (init_alias_heapvars, delete_alias_heapvars): Remove.
2438         (compute_points_to_sets): Do not call init_alias_heapvars.
2439         (ipa_pta_execute): Likewise.
2440         (delete_points_to_sets): Free fake_var_decl_obstack.
2441
2442 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2443
2444         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2445         (si_from_UTItype, si_to_UTItype): New functions.
2446         (__udivmodti4): Use them to implement type-punning.
2447         * config/spu/multi3.c (union qword_TItype): New data type.
2448         (si_from_TItype, si_to_TItype): New functions.
2449         (__multi3): Use them to implement type-punning.
2450
2451 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2452
2453         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2454
2455 2011-04-27  Jan Hubicka  <jh@suse.cz>
2456
2457         * ipa-prop.c (function_insertion_hook_holder): New holder.
2458         (ipa_add_new_function): New function.
2459         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2460         Register/deregister holder.
2461
2462 2011-04-27  Richard Guenther  <rguenther@suse.de>
2463
2464         PR tree-optimization/48772
2465         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2466
2467 2011-04-27  Richard Guenther  <rguenther@suse.de>
2468
2469         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2470         TARGET_MEM_REF handling.
2471
2472 2011-04-27  Nick Clifton  <nickc@redhat.com>
2473
2474         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2475         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2476         (REG_CLASS_NAMES): Likewise.
2477         (REG_CLASS_CONTENTS): Likewise.
2478         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2479         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2480         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2481         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2482         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2483         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2484         duplicate register classes.
2485         (frv_class_likely_spilled_p): Likewise.
2486         (frv_register_move_cost): Likewise.
2487
2488         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2489         end of the regno_reg_class array.
2490
2491 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2492
2493         PR c/48742
2494         * c-typeck.c (build_binary_op): Don't wrap arguments if
2495         int_operands is true.
2496
2497 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2498
2499         PR target/48767
2500         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2501         targetm.calls.must_pass_in_stack for void type.
2502
2503 2011-04-26  Jan Hubicka  <jh@suse.cz>
2504
2505         * cgraphbuild.c (build_cgraph_edges): Update call
2506         of cgraph_create_edge and cgraph_create_indirect_edge.
2507         * cgraph.c (cgraph_create_edge_including_clones,
2508         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2509         cgraph_update_edges_for_call_stmt_node): Do not take nest
2510         argument; do not initialize call_stmt_size/time.
2511         (dump_cgraph_node): Do not dump nest.
2512         (cgraph_clone_edge): Do not take loop_nest argument;
2513         do not propagate it; do not clone call_stmt_size/time.
2514         (cgraph_clone_node): Likewise.
2515         (cgraph_create_virtual_clone): Update.
2516         * cgraph.h (struct cgraph_edge): Remove
2517         call_stmt_size/call_stmt_time/loop_nest.
2518         (cgraph_create_edge, cgraph_create_indirect_edge,
2519         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2520         prototype.
2521         * tree-emutls.c (gen_emutls_addr): Update.
2522         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2523         loop_nest; handle indirect calls, too.
2524         (clone_inlined_nodes): Do not care about updating inline summaries.
2525         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2526         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2527         stream call_stmt_size/call_stmt_time/loop_nest.
2528         * ipa-inline.c (edge_badness): Update.
2529         (ipa_inline): dump summaries after inlining.
2530         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2531         New.
2532         (inline_edge_summary): New function.
2533         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2534         (inline_edge_removal_hook): Handle edge summaries.
2535         (inline_edge_duplication_hook): New hook.
2536         (inline_summary_alloc): Alloc hooks.
2537         (initialize_growth_caches): Do not register removal hooks.
2538         (free_growth_caches); Do not free removal hook.
2539         (dump_inline_edge_summary): New function.
2540         (dump_inline_summary): Use it.
2541         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2542         (inline_update_callee_summaries): New function.
2543         (inline_merge_summary): Use it.
2544         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2545         (read_inline_edge_summary): New function.
2546         (inline_read_section): Use it.
2547         (write_inline_edge_summary): New function.
2548         (inline_write_summary): Use it.
2549         (inline_free_summary): Free edge new holders.
2550         * tree-inline.c (copy_bb): Update.
2551
2552 2011-04-26  Jason Merrill  <jason@redhat.com>
2553
2554         * tree-eh.c (lower_try_finally_switch): Create the label along with
2555         the CASE_LABEL_EXPR.
2556
2557 2011-04-26  David S. Miller  <davem@davemloft.net>
2558             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2559
2560         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2561         * configure: Regenerate.
2562
2563 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2564
2565         PR target/48258
2566         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2567         reduction.
2568         (VEC_reduc): New code iterator and splitters for vector reduction.
2569         (VEC_reduc_name): Ditto.
2570         (VEC_reduc_rtx): Ditto.
2571         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2572         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2573
2574         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2575         support for extracting SF on VSX.
2576
2577         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2578         generating xscvspdp.
2579         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2580         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2581         double add, minimum, maximum vector reduction.
2582         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2583         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2584         optimize double vector reduction.
2585         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2586
2587 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2588
2589         * config/fr30/fr30.h (inhibit_libc): Don't define.
2590         * config/m32r/m32r-protos.h: Correct comment.
2591         * config/v850/v850.h (GHS_default_section_names,
2592         GHS_current_section_names): Use tree, not union tree_node *.
2593
2594 2011-04-26  Xinliang David Li  <davidxl@google.com>
2595
2596         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2597         * c-family/c-opts.c (c_common_handle_option): Set
2598         warn_maybe_uninitialized.
2599         * opts.c (common_handle_option): Ditto.
2600         * common.opt:  New option.
2601         * tree-ssa.c (warn_uninit): Add one more parameter.
2602         (warn_uninitialized_var): Pass warning code.
2603         * tree-flow.h: Interface change.
2604
2605
2606 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2607
2608         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2609         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2610         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2611
2612 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2613
2614         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2615         * config/mips/mips.opt (mmips-tfile): Remove.
2616
2617         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2618         mips-tdump reference to ...
2619         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2620         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2621         reference by Tru64 UNIX.
2622
2623 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2624
2625         PR debug/48768
2626         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2627         is error_mark_node, set value to NULL.
2628
2629         PR tree-optimization/48734
2630         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2631         if return value from maybe_fold_*_comparsions isn't something
2632         the code is prepared to handle.
2633
2634 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2635
2636         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2637         mode check.
2638         (ext_QIreg_nomode_operands): Remove.
2639         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2640         (*andsi_1): Ditto.
2641         (*andhi_1): Ditto.
2642
2643 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2644
2645         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2646
2647 2011-04-26  Richard Guenther  <rguenther@suse.de>
2648
2649         * c-typeck.c (build_unary_op): Do not expand array-refs via
2650         pointer arithmetic.  Only adjust qualifiers for function types.
2651
2652 2011-04-26  Richard Guenther  <rguenther@suse.de>
2653
2654         PR middle-end/48694
2655         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2656         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2657         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2658         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2659
2660 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2661
2662         * doc/extend.texi: Document __underlying_type.
2663
2664 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2665
2666         * config/rs6000/titan.md (automata_option "progress"): Remove.
2667
2668 2011-04-25  Jeff Law  <law@redhat.com>
2669
2670         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2671
2672 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2673
2674         * system.h (ENUM_BITFIELD): Remove.
2675
2676 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2677             Eric Botcazou  <ebotcazou@adacore.com>
2678
2679         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2680         for STORE_FLAG_VALUE==-1 case.
2681
2682 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2683
2684         PR target/43804
2685         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2686         LEGITIMATE_PIC_OPERAND_P.
2687
2688 2011-04-24  Jan Hubicka  <jh@suse.cz>
2689
2690         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2691         WPA hack.
2692         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2693         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2694         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2695         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2696         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2697         Sanity check predicate length.
2698         (remap_predicate): Likewise; sanity check jump functions.
2699         (inline_read_section, inline_write_summary): Sanity check
2700         predicate length.
2701
2702 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2703
2704         PR other/48748
2705         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2706         __is_literal_type, and __is_trivial; update throughout about
2707         possibly cv-qualified void types.
2708
2709 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2710
2711         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2712         testsuite and make it version agnostic.
2713
2714 2011-04-22  Jan Hubicka  <jh@suse.cz>
2715
2716         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2717
2718 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2719
2720         PR c/48685
2721         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2722         to VOID_TYPE even around MODIFY_EXPR.
2723
2724 2011-04-22  Mike Stump  <mikestump@comcast.net>
2725
2726         * gensupport.c (read_md_rtx): Fix typo in comment.
2727         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2728         comment.
2729
2730 2011-04-22  Jan Hubicka  <jh@suse.cz>
2731
2732         * gengtype.c (open_base_files): Add ipa-inline.h include.
2733         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2734         ipa-prop.c; update all uses.
2735         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2736         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2737         merge summary of inlined function into former caller.
2738         * ipa-inline.c (max_benefit): Remove.
2739         (edge_badness): Compensate for removal of benefits.
2740         (update_caller_keys): Use
2741         reset_node_growth_cache/reset_edge_growth_cache.
2742         (update_callee_keys): Likewise.
2743         (update_all_callee_keys): Likewise.
2744         (inline_small_functions): Do not collect max_benefit; do not reset
2745         estimated_growth; call free_growth_caches and initialize_growth_caches.
2746         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2747         struct size_time_entry): New structures.
2748         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2749         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2750         and estimated_growth.
2751         (edge_growth_cache_entry): New structure.
2752         (node_growth_cache, edge_growth_cache): New global vars.
2753         (estimate_growth): Turn into inline.
2754         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2755         initialize_growth_caches, free_growth_caches): Declare.
2756         (estimate_edge_growth): Rewrite.
2757         (estimate_edge_time): Implement as inline cache lookup.
2758         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2759         functions.
2760         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2761         (NUM_CONDITIONS): New constant.
2762         (predicate_conditions): New enum.
2763         (IS_NOT_CONSTANT): New constant.
2764         (edge_removal_hook_holder): New var.
2765         (node_growth_cache, edge_growth_cache): New global vars.
2766         (true_predicate, single_cond_predicate, false_predicate,
2767         not_inlined_predicate, add_condition, add_clause, and_predicates,
2768         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2769         dump_clause, dump_predicate, account_size_time,
2770         evaulate_conditions_for_edge): New functions.
2771         (inline_summary_alloc): Move to heap.
2772         (inline_node_removal_hook): Clear condition and entry vectors.
2773         (inline_edge_removal_hook): New function.
2774         (initialize_growth_caches, free_growth_caches): New function.
2775         (dump_inline_summary): Update.
2776         (edge_execution_predicate): New function.
2777         (will_be_nonconstant_predicate): New function.
2778         (estimate_function_body_sizes): Compute BB and constantness predicates.
2779         (compute_inline_parameters): Do not clear estimated_growth.
2780         (estimate_edge_size_and_time): New function.
2781         (estimate_calls_size_and_time): New function.
2782         (estimate_callee_size_and_time): New function.
2783         (remap_predicate): New function.
2784         (inline_merge_summary): New function.
2785         (do_estimate_edge_time): New function based on...
2786         (estimate_edge_time): ... this one.
2787         (do_estimate_edge_growth): New function.
2788         (do_estimate_growth): New function based on....
2789         (estimate_growth): ... this one.
2790         (inline_analyze_function): Analyze after deciding on jump functions.
2791         (inline_read_section): New function.
2792         (inline_read_summary): Use it.
2793         (inline_write_summary): Write all the new data.
2794         * ipa-prop.c (ipa_get_param_decl_index): Export.
2795         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2796         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2797         Declare.
2798         (ipa_get_lattice): Move here from ipa-cp.c
2799         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2800         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2801         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2802         cgraph_edge_inlinable_p): Remove.
2803         * cgraphunit.c: Include ipainline.h
2804         (cgraph_process_new_functions): Update call of
2805         compute_inline_parameters.
2806
2807 2011-04-22  Richard Guenther  <rguenther@suse.de>
2808
2809         * tree.c (build_int_cst): Properly create canonicalized integer
2810         constants.
2811         (build_int_cst_type): Remove scary comments.
2812
2813 2011-04-22  Xinliang David Li  <davidxl@google.com>
2814
2815         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2816         by default when -Wno-error is not specified.
2817         * opts-global.c (decode_options): Remove call to
2818         control_warning_options.
2819
2820 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR tree-optimization/48717
2823         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2824         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2825
2826 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2827
2828         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2829         definition where used.
2830
2831 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR c/48716
2834         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2835         TREE_STATIC variables declared inside of some OpenMP construct.
2836
2837 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2838
2839         PR middle-end/48585
2840         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2841
2842 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2843
2844         PR c/36750
2845         * c-typeck.c (pop_init_level): Do not warn about initializing
2846         with ` = {0}'.
2847
2848 2011-04-22  Alan Modra  <amodra@gmail.com>
2849
2850         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2851         when returning call_cookie.
2852         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2853         pointers, to functions with no more vector args than the current
2854         function, and some non-local calls for ABI_V4.
2855         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2856         sibcall_nonlocal_aix64): Combine to ..
2857         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2858         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2859         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2860         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2861         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2862         operand.
2863         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2864         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2865         sibcall_value_symbolic_64): Delete.
2866
2867 2011-04-21  Xinliang David Li  <davidxl@google.com>
2868
2869         * cgraph.h: Remove pid.
2870         * cgraph.c: Remove pid.
2871         * value-prof.c (init_node_map): New function.
2872         (del_node_map): New function.
2873         (find_func_by_funcdef_no): New function.
2874         (gimple_ic_transform): Call new function.
2875         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2876         * function.c (get_last_funcdef_no): New function.
2877         * function.h (get_last_funcdef_no): New function.
2878         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2879         to libgcov function.
2880         (tree-profiling): Call node map init and delete function.
2881
2882 2011-04-21  Ian Lance Taylor  <iant@google.com>
2883
2884         * godump.c (go_format_type): Use exported Go name for anonymous
2885         field name.
2886
2887 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2888
2889         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2890         Call builtin_function_type_list instead of builtin_function_type.
2891         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2892
2893 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2894
2895         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2896         build_function_type_list instead of build_function_type.
2897         Delete variable `endlink'.
2898
2899 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2900
2901         * config/s390/s390.c (s390_init_builtins): Call
2902         build_function_type_list instead of build_function_type.
2903
2904 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2905
2906         * config/ia64/ia64.c (ia64_init_builtins): Call
2907         build_function_type_list instead of builtin_function_type.
2908
2909 2011-04-21  Easwaran Raman  <eraman@google.com>
2910
2911         * cfgexpand.c (stack_var): Remove OFFSET...
2912         (add_stack_var): ...and its reference here...
2913         (expand_stack_vars): ...and here.
2914         (stack_var_cmp): Sort by descending order of size.
2915         (partition_stack_vars): Change heuristic.
2916         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2917         (dump_stack_var_partition): Add newline after each partition.
2918
2919 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2920             Jeff Law  <law@redhat.com>
2921
2922         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2923         * gengtype.c (matching_file_name_substitute): Likewise.
2924
2925 2011-04-21  Richard Guenther  <rguenther@suse.de>
2926
2927         PR lto/48703
2928         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2929
2930 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2931
2932         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2933
2934 2011-04-21  Richard Guenther  <rguenther@suse.de>
2935
2936         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2937         file name.
2938
2939 2011-04-21  Richard Guenther  <rguenther@suse.de>
2940
2941         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2942         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2943         Use DECL_P, not SSA_VAR_P.
2944         (ptr_derefs_may_alias_p): Likewise.
2945         (ptr_deref_may_alias_ref_p_1): Likewise.
2946         (decl_refs_may_alias_p): Likewise.
2947         (refs_may_alias_p_1): Likewise.
2948         (ref_maybe_used_by_call_p_1): Likewise.
2949         (call_may_clobber_ref_p_1): Likewise.
2950         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2951         are either MEM_REF or TARGET_MEM_REF.
2952         (indirect_refs_may_alias_p): Likewise.
2953         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2954         for MEM_EXPR of indirect calls.
2955
2956 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2957
2958         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2959         (dst_file_info_struct): Remove flen field.
2960         (lookup_filename): Remove code that set flen field.
2961
2962 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2963
2964         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2965
2966 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2967
2968         PR target/48708
2969         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2970         vec_extract and vec_concat for non-SSE4_1 targets.
2971
2972 2011-04-21  Richard Guenther  <rguenther@suse.de>
2973
2974         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2975         return statements.
2976
2977 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2978
2979         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2980         undefine.
2981         (FILE): Don't undefine.
2982
2983 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2984
2985         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2986         struct rtx_def *.
2987         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2988         struct rtx_def *.
2989         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2990         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2991         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2992         rtx_def *.
2993         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2994         definitions where used.
2995         * config/microblaze/microblaze.h (struct microblaze_args): Use
2996         rtx, not struct rtx_def *.
2997         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2998         rtx_def *.
2999         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3000         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3001         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3002         not struct rtx_def *.
3003         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3004         struct rtx_def *.
3005         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3006         rtx_def *.
3007         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3008
3009 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3010
3011         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3012         operand_equal_p to compare DR_BASE_ADDRESSes.
3013         (vect_check_interleaving): Likewise.
3014
3015 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3016
3017         PR target/46329
3018         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3019         for all Neon struct constants.
3020
3021 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3022
3023         * target.def (legitimate_constant_p): New hook.
3024         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3025         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3026         * doc/tm.texi: Regenerate.
3027         * hooks.h (hook_bool_mode_rtx_true): Declare.
3028         * hooks.c (hook_bool_mode_rtx_true): Define.
3029         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3030         * calls.c (precompute_register_parameters): Replace uses of
3031         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3032         (emit_library_call_value_1): Likewise.
3033         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3034         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3035         * ira-costs.c (scan_one_insn): Likewise.
3036         * recog.c (general_operand, immediate_operand): Likewise.
3037         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3038         * reload1.c (init_eliminable_invariants): Likewise.
3039
3040         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3041         mode argument.
3042         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3043         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3044         argument.
3045         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3046         * config/alpha/predicates.md (input_operand): Update call to
3047         alpha_legitimate_constant_p.
3048
3049         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3050         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3051         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3052         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3053         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3054         (arm_legitimate_constant_p): New functions.
3055         (arm_cannot_force_const_mem): Make static.
3056
3057         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3058
3059         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3060         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3061         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3062         instead of bfin_legitimate_constant_p.
3063         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3064         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3065
3066         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3067
3068         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3069
3070         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3071         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3072         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3073         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3074
3075         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3076         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3077         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3078
3079         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3080         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3081         * config/i386/i386.c (legitimate_constant_p): Rename to...
3082         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3083         argument.
3084         (ix86_cannot_force_const_mem): Update accordingly.
3085         (ix86_legitimate_address_p): Likewise.
3086         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3087         * config/i386/i386.md: Update commentary.
3088
3089         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3090         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3091         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3092         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3093
3094         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3095
3096         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3097         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3098         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3099         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3100
3101         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3102         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3103         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3104
3105         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3106         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3107         (m32r_legitimate_constant_p): New function.
3108
3109         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3110         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3111         LEGITIMATE_CONSTANT_P.
3112         (LEGITIMATE_CONSTANT_P): Delete.
3113         * config/m68k/m68k.c (m68k_expand_prologue): Call
3114         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3115         (m68k_legitimate_constant_p): New function.
3116         * config/m68k/m68k.md: Update comments.
3117
3118         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3119         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3120         (mcore_legitimate_constant_p): New function.
3121
3122         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3123         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3124         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3125         Add a mode argument.
3126         (mep_legitimate_address): Update accordingly.
3127         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3128
3129         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3130         Delete.
3131         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3132         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3133         static.  Check OP's mode for VOIDmode.
3134         (microblaze_legitimate_constant_p): New function.
3135         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3136
3137         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3138         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3139         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3140         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3141         * config/mips/predicates.md: Update comments.
3142
3143         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3144         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3145         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3146         (mmix_legitimate_constant_p): Make static, return a bool, and take
3147         a mode argument.
3148         (mmix_print_operand_address): Update accordingly.
3149
3150         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3151         Delete.
3152         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3153         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3154         static.  Add a mode argument.
3155         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3156
3157         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3158
3159         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3160         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3161         (pa_legitimate_constant_p): New function.
3162
3163         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3164
3165         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3166         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3167         (pdp11_legitimate_constant_p): New function.
3168
3169         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3170         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3171         (rs6000_legitimate_constant_p): New function.
3172
3173         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3174         (rx_legitimate_constant_p): ...this.
3175         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3176         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3177         (rx_legitimate_constant_p): ...this.
3178         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3179         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3180
3181         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3182         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3183         * config/s390/s390.c (legitimate_constant_p): Rename to...
3184         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3185         and add a mode argument.
3186         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3187
3188         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3189
3190         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3191         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3192         (sh_legitimate_constant_p): New function.
3193
3194         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3195         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3196         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3197         (legitimate_constant_p): Rename to...
3198         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3199         argument.
3200         (constant_address_p): Update accordingly.
3201
3202         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3203         argument and return a bool.
3204         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3205         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3206         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3207         (spu_rtx_costs): Update accordingly.
3208         * config/spu/predicates.md (vec_imm_operand): Likewise.
3209
3210         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3211
3212         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3213         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3214         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3215
3216         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3217         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3218         * config/vax/vax.c (legitimate_constant_p): Likewise.
3219
3220         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3221         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3222         (xtensa_legitimate_constant_p): New function.
3223
3224 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3225
3226         * target.def (cannot_force_const_mem): Add a mode argument.
3227         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3228         * doc/tm.texi: Regenerate.
3229         * hooks.h (hook_bool_mode_rtx_false): Declare.
3230         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3231         (hook_bool_mode_const_rtx_true): Likewise.
3232         (hook_bool_mode_rtx_false): New function.
3233         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3234         to be non-VOID.  Update call to cannot_force_const_mem.
3235         (find_reloads): Update accordingly.
3236         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3237         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3238         argument.
3239         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3240         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3241         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3242         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3243         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3244         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3245         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3246         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3247         (m68k_cannot_force_const_mem): ...this new function.
3248         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3249         argument.
3250         (mips_const_insns, mips_legitimize_const_move): Update calls.
3251         (mips_secondary_reload_class): Likewise.
3252         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3253         (pa_cannot_force_const_mem): ...this new function.
3254         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3255         (rs6000_cannot_force_const_mem): ...this new function.
3256         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3257         argument.
3258         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3259         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3260         to...
3261         (xtensa_cannot_force_const_mem): ...this new function.
3262
3263 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3264
3265         * config/mips/mips.c (mips16_build_function_stub): Call
3266         build_function_type_list instead of build_function_type.
3267         (mips16_build_call_stub): Likewise.
3268
3269 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3270
3271         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3272         instead of build_function_type.
3273
3274 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3275
3276         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3277         instead of build_function_type.
3278
3279 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3280
3281         PR target/48678
3282         * config/i386/i386.md (insv): Change operand 0 constraint to
3283         "register_operand".  Change operand 1 and 2 constraint to
3284         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3285         * config/i386/sse.md (sse4_1_pinsrb): Export.
3286         (sse2_pinsrw): Ditto.
3287         (sse4_1_pinsrd): Ditto.
3288         (sse4_1_pinsrq): Ditto.
3289         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3290         * config/i386/i386.c (ix86_expand_pinsr): New.
3291
3292 2011-04-20  Easwaran Raman  <eraman@google.com>
3293
3294         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3295         containing union type only with -fstrict-aliasing.
3296
3297 2011-04-20  Jim Meyering  <meyering@redhat.com>
3298
3299         Remove useless if-before-free tests.
3300         * calls.c (expand_call, save_area): Likewise.
3301         * cfgcleanup.c (try_forward_edges): Likewise.
3302         * collect2.c (collect_execute): Likewise.
3303         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3304         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3305         * coverage.c (coverage_checksum_string): Likewise.
3306         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3307         * cselib.c (cselib_init): Likewise.
3308         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3309         (df_set_clean_cfg): Likewise.
3310         * function.c (free_after_compilation): Likewise.
3311         * gcc.c (do_spec_1, main): Likewise.
3312         * gcov.c (create_file_names): Likewise.
3313         * gensupport.c (identify_predicable_attribute): Likewise.
3314         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3315         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3316         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3317         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3318         * ipa-pure-const.c (local_pure_const): Likewise.
3319         * ipa-reference.c (propagate): Likewise.
3320         * ira-costs.c (free_ira_costs): Likewise.
3321         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3322         * matrix-reorg.c (mat_free): Likewise.
3323         * prefix.c (get_key_value): Likewise.
3324         * profile.c (compute_value_histograms): Likewise.
3325         * reload1.c (free_reg_equiv): Likewise.
3326         * sched-deps.c (free_deps): Likewise.
3327         * sel-sched-ir.c (fence_clear): Likewise.
3328         * sese.c (set_rename, if_region_set_false_region): Likewise.
3329         * tree-data-ref.c (free_rdg): Likewise.
3330         * tree-eh.c (lower_try_finally): Likewise.
3331         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3332         * tree-ssa-live.c (delete_var_map): Likewise.
3333         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3334         * tree-ssa-pre.c (phi_trans_add): Likewise.
3335
3336 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3337
3338         PR tree-optimization/48611
3339         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3340         beyond ERT_MUST_NOT_THROW region.
3341
3342 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3343
3344         * config/mips/mips.opt (mfix-24k): New.
3345         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3346         * config/mips/mips.md (length): Increase by 4 for stores if
3347         fixing 24K errata.
3348         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3349         all noreorder if fixing 24K errata.
3350         * doc/invoke.texi: Document mfix-24k.
3351
3352 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3353
3354         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3355         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3356
3357 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3358
3359         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3360         (const_ok_for_op): ... to here.
3361
3362 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3363
3364         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3365         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3366
3367 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3368
3369         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3370
3371 2011-04-20  Richard Guenther  <rguenther@suse.de>
3372
3373         PR tree-optimization/47892
3374         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3375         are if-convertible.
3376
3377 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3378
3379         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3380
3381 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3382
3383         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3384
3385 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3386
3387         PR target/18145
3388
3389         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3390         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3391         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3392         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3393         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3394
3395         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3396         New prototype.
3397
3398         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3399         (avr_asm_named_section, avr_asm_output_aligned_common,
3400         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3401         New functions to update...
3402         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3403         (avr_asm_init_sections): Overwrite section callbacks for
3404         data_section, bss_section.
3405         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3406         from here to...
3407         (avr_file_end): ...here.
3408
3409 2011-04-20  Richard Guenther  <rguenther@suse.de>
3410
3411         PR middle-end/48695
3412         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3413         objects and types here.  Adjust for their offset before comparing.
3414
3415 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3416
3417         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3418         statement per copy.
3419
3420 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3421
3422         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3423         (GIMPLE_H): Include $(INTERNAL_FN_H).
3424         (OBJS-common): Add internal-fn.o.
3425         (internal-fn.o): New rule.
3426         * internal-fn.def: New file.
3427         * internal-fn.h: Likewise.
3428         * internal-fn.c: Likewise.
3429         * gimple.h: Include internal-fn.h.
3430         (GF_CALL_INTERNAL): New gf_mask.
3431         (gimple_statement_call): Put fntype into a union with a new
3432         internal_fn field.
3433         (gimple_build_call_internal): Declare.
3434         (gimple_build_call_internal_vec): Likewise.
3435         (gimple_call_same_target_p): Likewise.
3436         (gimple_call_internal_p): New function.
3437         (gimple_call_internal_fn): Likewise.
3438         (gimple_call_fntype): Return null for internal calls.
3439         (gimple_call_set_fntype): Assert that the function is not internal.
3440         (gimple_call_set_fn): Likewise.
3441         (gimple_call_set_fndecl): Likewise.
3442         (gimple_call_set_internal_fn): New function.
3443         (gimple_call_addr_fndecl): Handle null functions.
3444         (gimple_call_return_type): Likewise null types.
3445         * gimple.c (gimple_build_call_internal_1): New function.
3446         (gimple_build_call_internal): Likewise.
3447         (gimple_build_call_internal_vec): Likewise.
3448         (gimple_call_same_target_p): Likewise.
3449         (gimple_call_flags): Handle calls to internal functions.
3450         (gimple_call_fnspec): New function.
3451         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3452         (gimple_has_side_effects): Handle null functions.
3453         (gimple_rhs_has_side_effects): Likewise.
3454         (gimple_call_copy_skip_args): Handle calls to internal functions.
3455         * cfgexpand.c (expand_call_stmt): Likewise.
3456         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3457         * gimple-fold.c (gimple_fold_call): Handle null functions.
3458         (gimple_fold_stmt_to_constant_1): Don't fold
3459         calls to internal functions.
3460         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3461         functions.
3462         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3463         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3464         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3465         (do_warn_unused_result): Likewise.
3466         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3467         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3468         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3469         the target of a call.
3470         (initialize_hash_element): Update accordingly.
3471         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3472         (iterative_hash_hashable_expr): Handle calls to internal functions.
3473         (print_expr_hash_elt): Likewise.
3474         * tree-ssa-pre.c (can_value_number_call): Likewise.
3475         (eliminate): Handle null functions.
3476         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3477         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3478         (find_func_aliases): Likewise.
3479         * value-prof.c (gimple_ic_transform): Likewise.
3480         (gimple_indirect_call_to_profile): Likewise.
3481         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3482         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3483
3484 2011-04-19  Jan Hubicka  <jh@suse.cz>
3485
3486         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3487         * ipa-inline.c (inline_small_functions): Compute summaries first,
3488         populate heap later.
3489
3490 2011-04-19  Jan Hubicka  <jh@suse.cz>
3491
3492         * cgraph.h (save_inline_function_body): Remove.
3493         * ipa-inline-transform.c: New file, broke out of...
3494         * ipa-inline.c: ... this one; Update toplevel comment.
3495         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3496         make global.
3497         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3498         (cgraph_mark_inline_edge): Rename to inline_call; move to
3499         ipa-inline-transform.c.
3500         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3501         move to ipa-inline-transform.c
3502         (recursive_inlining, inline_small_functions, flatten_function,
3503         ipa_inline, inline_always_inline_functions,
3504         early_inline_small_functions): Update.
3505         (inline_transform): Move to ipa-inline-transform.c.
3506         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3507         Declare.
3508         * Makefile.in (ipa-inline-transform.o): New file.
3509         * cgraphunit.c (save_inline_function_body): Move to
3510         ipa-inline-transform.c
3511
3512 2011-04-19  DJ Delorie  <dj@redhat.com>
3513
3514         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3515         registers if we already know there aren't any.
3516         (m32c_emit_epilogue): Don't emit a barrier here.
3517         (m32c_emit_eh_epilogue): Likewise.
3518         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3519         operands at expand time.
3520         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3521         int" wchar type.
3522         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3523         duplicates.  Provide aliases instead.
3524         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3525         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3526         the compiler.
3527
3528 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3529
3530         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3531         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3532         (general_or_i64_p, sparc_register_move_cost): New function.
3533
3534 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3535
3536         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3537         Add lynx, mipssde.  Sort table.
3538
3539 2011-04-19  Xinliang David Li  <davidxl@google.com>
3540
3541         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3542         not negative.
3543
3544 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3545
3546         PR target/48678
3547         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3548         is a SUBREG with non-MODE_INT mode inside of it.
3549
3550 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3551
3552         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3553         also according to actual contants.
3554         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3555         (gimple_fold_call): Use it.
3556         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3557
3558 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3559
3560         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3561         non-pointer assignments.
3562
3563 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3564
3565         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3566         account anc_offset and otr_type from the indirect edge info.
3567         * ipa-prop.c (get_ancestor_addr_info): New function.
3568         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3569         get_ancestor_addr_info, call it.
3570         (ipa_note_param_call): Do not initialize information about polymorphic
3571         calls, return the indirect call graph edge.  Remove the last
3572         parameter, adjust all callers.
3573         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3574         parameters.  Initialize polymorphic information in the indirect edge.
3575
3576 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3577
3578         PR lto/48148
3579         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3580         the types if they have different enumeration identifiers.
3581
3582 2011-04-19  Jan Hubicka  <jh@suse.cz>
3583
3584         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3585         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3586         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3587         (optimize_function_for_size_p) ... here.
3588
3589 2011-04-19  Richard Guenther  <rguenther@suse.de>
3590
3591         PR lto/48207
3592         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3593         langhook.
3594
3595 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3596
3597         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3598         if DECL_NO_INLINE_WARNING_P is set on the function.
3599
3600 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3601
3602         PR fortran/47976
3603         * reload1.c (inc_for_reload): Return void. All callers changed.
3604         (emit_input_reload_insns): Don't try to delete previous output
3605         reloads to a register, or record spill_reg_store for autoincs.
3606
3607 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3608
3609         * gengtype.h: Updated copyright year.
3610         (struct input_file_st): Add inpisplugin field.
3611         (type_fileloc): New function.
3612         * gengtype.c
3613         (write_typed_struct_alloc_def): Add gcc_assert.
3614         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3615         (write_typed_alloc_defns): Don't output for plugin files.
3616         (input_file_by_name): Clear inpisplugin field.
3617         (main): Set inpisplugin field for plugin files.
3618
3619 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3620
3621         * gengtype-state.c (string_eq): New.
3622         (read_state): Use string_eq instead of strcmp when creating the
3623         state_ident_tab.
3624
3625 2011-04-19  Wei Guozhi  <carrot@google.com>
3626
3627         PR target/47855
3628         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3629         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3630         linkage.
3631         * config/arm/constraints.md (Uu): New constraint.
3632         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3633
3634 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3635
3636         * config.gcc (-*-*-*vms): Added.
3637         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3638         definitions moved.
3639         * config/vms/vms-ld.c: New file.
3640         * config/vms/vms-ar.c: New file.
3641         * config/vms/t-vmsnative: New file.
3642
3643 2011-04-18  Xinliang David Li  <davidxl@google.com>
3644
3645         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3646
3647 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3648
3649         PR middle-end/48661
3650         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3651         if TREE_TYPE (v) is non-NULL.
3652
3653         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3654         gimple_get_virt_mehtod_for_binfo.
3655         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3656         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3657         callers.
3658         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3659
3660 2011-04-18  Michael Matz  <matz@suse.de>
3661             Steve Ellcey  <sje@cup.hp.com>
3662
3663         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3664         use its mode as source mode if it isn't VOIDmode.
3665
3666 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3667
3668         * doc/passes.texi: Fill crossref nodes.
3669
3670 2011-04-18  Jim Meyering  <meyering@redhat.com>
3671
3672         Fix doubled-word typos in comments and strings
3673         * config/alpha/vms-unwind.h: s/for for/for/
3674         * config/arm/unwind-arm.h: Likewise.
3675         * config/microblaze/microblaze.c: Likewise.
3676         * config/sh/constraints.md: s/in in/in/
3677         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3678
3679 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3680
3681         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3682         (AVX_FLOAT_MODE_P): Ditto.
3683         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3684         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3685         (AVX_VEC_FLOAT_MODE_P): Ditto.
3686         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3687         (UNSPEC_MASKSTORE): Ditto.
3688         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3689         Merge from <sse>_movmsk<ssemodesuffix> and
3690         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3691         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3692         iterator.
3693         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3694         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3695         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3696
3697 2011-04-18  Jan Hubicka  <jh@suse.cz>
3698
3699         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3700
3701         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3702         (want_inline_function_called_once_p): Break out the logic from
3703         ipa_inline.
3704         (edge_badness): Ensure that profile is not misupdated.
3705         (lookup_recursive_calls): Prioritize by call frequencies.
3706         (inline_small_functions): Move program size estimates here;
3707         actually process whole queue even when unit growth has been
3708         met. (to properly compute inline_failed reasons and for the
3709         case unit size decrease.) Revisit comments on recursive inlining.
3710         (ipa_inline): Remove unit summary code; first inline hot calls
3711         of functions called once, cold calls next.
3712         (order, nnodes): Remove unused variables.
3713         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3714         (GTFILES): Remove ipa-inline.c
3715         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3716
3717 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3718
3719         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3720
3721 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3722             Richard Earnshaw  <rearnsha@arm.com>
3723
3724         * arm.c (neon_builtin_type_bits): Remove.
3725         (typedef enum neon_builtin_mode): New.
3726         (T_MAX): Don't define.
3727         (typedef enum neon_builtin_datum): Remove bits, codes[],
3728         num_vars and base_fcode.  Add mode, code and fcode.
3729         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3730         VAR10): Change accordingly.
3731         (neon_builtin_data[]): Change accordingly
3732         (arm_init_neon_builtins): Change accordingly.
3733         (neon_builtin_compare): Remove.
3734         (locate_neon_builtin_icode): Remove.
3735         (arm_expand_neon_builtin): Change accordingly.
3736
3737         * arm.h (enum arm_builtins): Move to ...
3738         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3739
3740         * arm.c (arm_builtin_decl): Declare.
3741         (TARGET_BUILTIN_DECL): Define.
3742         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3743         (arm_builtin_decls[]): New.
3744         (arm_init_neon_builtins): Store builtin declarations in
3745         arm_builtin_decls[].
3746         (arm_init_tls_builtins): Likewise.
3747         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3748         (arm_builtin_decl): New.
3749
3750 2011-04-18  Richard Guenther  <rguenther@suse.de>
3751
3752         * tree.c (upper_bound_in_type): Build properly canonicalized
3753         INTEGER_CSTs.
3754         (lower_bound_in_type): Likewise.
3755
3756 2011-04-18  Richard Guenther  <rguenther@suse.de>
3757
3758         * gimple.h (gimple_call_addr_fndecl): New function.
3759         (gimple_call_fndecl): Use it.
3760         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3761         for direct calls.
3762         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3763         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3764
3765 2011-04-18  Richard Guenther  <rguenther@suse.de>
3766
3767         PR middle-end/48650
3768         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3769
3770 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3771
3772         PR lto/48492
3773         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3774         DECL_IN_CONSTANT_POOL without RTL.
3775
3776 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3777             Ira Rosen  <ira.rosen@linaro.org>
3778
3779         PR target/48252
3780         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3781         to match neon_vzip/vuzp/vtrn_internal.
3782         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3783         outputs explicitly dependent on both inputs.
3784         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3785
3786 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3787
3788         PR tree-optimization/48616
3789         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3790         whether the shift is by scalar or vector based on whether all SLP
3791         scalar stmts have the same rhs.
3792
3793 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3794
3795         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3796         memory operands.
3797
3798 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3799
3800         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3801         registers.
3802
3803 2011-04-17  Jan Hubicka  <jh@suse.cz>
3804
3805         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3806         * cgrpahunit.c (cgraph_finalize_function): Do not set
3807         finalized_by_frontend.
3808         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3809         finalized_by_frontend.
3810
3811 2011-04-17  Jan Hubicka  <jh@suse.cz>
3812
3813         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3814         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3815         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3816         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3817         method.
3818         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3819         gimple-fold.c
3820         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3821
3822 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3823
3824         PR lto/48538
3825         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3826         is non-null before accessing it.
3827         (input_cgraph): Remove trailing spaces.
3828
3829 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3830
3831         * params.def (sms-min-sc): New param flag.
3832         * modulo-sched.c (sms_schedule): Use it.
3833         * doc/invoke.texi (sms-min-sc): Document it.
3834
3835 2011-04-17  Jan Hubicka  <jh@suse.cz>
3836
3837         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3838         present, also set gimple_call_set_cannot_inline.
3839         * ipa-inline.c: Update toplevel comment.
3840         (MAX_TIME): Remove.
3841         (cgraph_clone_inlined_nodes): Fix linebreaks.
3842         (cgraph_check_inline_limits): Restructure to ...
3843         (caller_growth_limits): ... this one; be more tolerant
3844         on growth in nested inline chains; add explanatory comment;
3845         fix stack accounting thinko introduced by previous patch.
3846         (cgraph_default_inline_p): Remove.
3847         (report_inline_failed_reason): New function.
3848         (can_inline_edge_p): New function.
3849         (can_early_inline_edge_p): New function.
3850         (leaf_node_p): Move upwards in file.
3851         (want_early_inline_function_p): New function.
3852         (want_inline_small_function_p): New function.
3853         (want_inline_self_recursive_call_p): New function.
3854         (cgraph_edge_badness): Rename to ...
3855         (edge_badness) ... this one; fix linebreaks.
3856         (update_edge_key): Update call of edge_baddness; add
3857         detailed dump about queue updates.
3858         (update_caller_keys): Use can_inline_edge_p and
3859         want_inline_small_function_p.
3860         (cgraph_decide_recursive_inlining): Rename to...
3861         (recursive_inlining): Use can_inline_edge_p and
3862         want_inline_self_recursive_call_p; simplify and remove no longer
3863         valid FIXME.
3864         (cgraph_set_inline_failed): Remove.
3865         (add_new_edges_to_heap): Use can_inline_edge_p and
3866         want_inline_small_function_p.
3867         (cgraph_decide_inlining_of_small_functions): Rename to ...
3868         (inline_small_functions): ... this one; cleanup; use
3869         can/want predicates; cleanup debug ouput; work edges till fibheap
3870         is exhausted and do not stop once unit growth is reached; remove
3871         later loop processing remaining edges.
3872         (cgraph_flatten): Rename to ...
3873         (flatten_function): ... this one; use can_inline_edge_p
3874         and can_early_inline_edge_p predicates.
3875         (cgraph_decide_inlining): Rename to ...
3876         (ipa_inline): ... this one; remove unreachable nodes before
3877         inlining functions called once; simplify the pass.
3878         (cgraph_perform_always_inlining): Rename to ...
3879         (inline_always_inline_functions): ... this one; use
3880         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3881         (cgraph_decide_inlining_incrementally): Rename to ...
3882         (early_inline_small_functions): ... this one; simplify
3883         using new predicates; cleanup; make dumps prettier.
3884         (cgraph_early_inlining): Rename to ...
3885         (early_inliner): newer inline regular functions into always-inlines;
3886         fix updating of call stmt summaries.
3887         (pass_early_inline): Update for new names.
3888         (inline_transform): Fix formating.
3889         (gate_cgraph_decide_inlining): Rename to ...
3890         (pass_ipa_inline): ... this one.
3891         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3892         * ipa-inline-analysis.c (dump_inline_summary): Update.
3893         (compute_inline_parameters): Do not compute disregard_inline_limits;
3894         look for mismatching arguments.
3895         (estimate_growth): Fix handlig of non-trivial self recursion.
3896         (inline_read_summary): Do not read info->disregard_inline_limits.
3897         (inline_write_summary): Do not write info->disregard_inline_limits.
3898         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3899         and move all checks into can_inline_edge_p predicate; re-enable code
3900         comparing optimization levels.
3901         (expand_call_inline): Do not test inline_forbidden_into_p.
3902         * Makefile.in (ipa-inline.o): Update arguments.
3903
3904 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3905
3906         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3907
3908 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3909
3910         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3911
3912 2011-04-17  Michael Matz  <matz@suse.de>
3913
3914         PR tree-optimization/48622
3915         PR lto/48645
3916         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3917         in same order as they're written.
3918
3919 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3920
3921         * config/pa/predicates.md: Reorganize and simplify predicates.
3922         Eliminate duplicate code checks.
3923         (arith_operand): Rename to arith14_operand
3924         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3925         * config/pa/pa.md: Use renamed operands.
3926         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3927         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3928         arith11_operand, adddi3_operand, indexed_memory_operand,
3929         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3930         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3931         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3932         move_dest_operand, move_src_operand, prefetch_cc_operand,
3933         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3934         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3935         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3936         div_operand, int5_operand, movb_comparison_operator,
3937         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3938         arith_double_operand, ireg_operand, lhs_lshift_operand,
3939         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3940         integer_store_memory_operand): Likewise.
3941         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3942         (integer_store_memory_operand, read_only_operand,
3943         function_label_operand, borx_reg_operand,
3944         non_hard_reg_operand): Likewise.
3945         (eq_neq_comparison_operator): Delete unused operator.
3946         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3947         function_label_operand.
3948         (emit_move_sequence): Likewise.
3949
3950 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3951
3952         * config/i386/sse.md (sseunpackmode): New mode attribute.
3953         (ssepackmode): Ditto.
3954         (vec_pack_trunc_<mode>): Macroize expander from
3955         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3956         (vec_unpacks_lo_<mode>): Macroize expander from
3957         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3958         (vec_unpacks_hi_<mode>): Macroize expander from
3959         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3960         (vec_unpacku_lo_<mode>): Macroize expander from
3961         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3962         (vec_unpacku_hi_<mode>): Macroize expander from
3963         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3964         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3965         ix86_expand_sse4_unpack.
3966         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3967
3968 2011-04-16  Jan Hubicka  <jh@suse.cz>
3969
3970         * cgraphbuild.c: Include ipa-inline.h.
3971         (reset_inline_failed): Use initialize_inline_failed.
3972         * cgraph.c: Include ipa-inline.h.
3973         (cgraph_create_node_1): Do not initialize estimated_growth.
3974         (initialize_inline_failed): More to ipa-inline-analysis.c
3975         (dump_cgraph_node): Do not dump inline flags.
3976         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3977         and disregard_inline_limits flags.
3978         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3979         time, size, estimated_growth.
3980         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3981         Update.
3982         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3983         DECL_DISREGARD_INLINE_LIMITS.
3984         (cgraph_analyze_function): Do not initialize
3985         node->local.disregard_inline_limits.
3986         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3987         inlinable, versionable and disregard_inline_limits.
3988         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3989         cgraph_check_inline_limits, cgraph_default_inline_p,
3990         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3991         add_new_edges_to_heap): Update.
3992         (cgraph_decide_inlining_of_small_function): Update; set
3993         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3994         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3995         cgraph_decide_inlining_incrementally): Update.
3996         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3997         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3998         time, size and estimated_growth parameters.
3999         (estimate_edge_growth): Update.
4000         (initialize_inline_failed): Declare.
4001         * ipa-split.c: Include ipa-inline.h
4002         (execute_split_functions): Update.
4003         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4004         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4005         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4006         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4007         estimated_growth to INT_MIN.
4008         (inline_node_duplication_hook): Likewise.
4009         (dump_inline_summary): Dump new fields.
4010         (compute_inline_parameters): Update.
4011         (estimate_edge_time, estimate_time_after_inlining,
4012         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4013         inline_write_summary):
4014         (initialize_inline_failed): Move here from cgraph.c.
4015         * tree-sra.c: Include ipa-inline.h.
4016         (ipa_sra_preliminary_function_checks): Update.
4017         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4018         ipa-inline.h.
4019
4020 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4021
4022         * config/i386/sse.md (V16): New mode iterator.
4023         (VI1, VI8): Ditto.
4024         (AVXMODEQI, AVXMODEDI): Remove.
4025         (sse2, sse3): New mode attribute.
4026         (mov<mode>): Use V16 mode iterator.
4027         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4028         (push<mode>1): Use V16 mode iterator.
4029         (movmisalign<mode>): Ditto.
4030         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4031         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4032         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4033         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4034         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4035         avx_movdqu<avxmodesuffix>.
4036         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4037         *avx_movdqu<avxmodesuffix>.
4038         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4039         avx_lddqu<avxmodesuffix>.
4040         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4041         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4042         avx_movnt<AVXMODEDI:mode>.
4043         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4044         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4045
4046 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4047
4048         PR target/48629
4049         * haifa-sched.c (prune_ready_list, schedule_block): Use
4050         sched_pressure_p rather than flag_sched_pressure.
4051
4052 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4053
4054         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4055         cgraph_get_node instead of cgraph_get_create_node.
4056
4057 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4058
4059         * cfgexpand.c (expand_debug_expr): Use
4060         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4061
4062 2011-04-15  Michael Matz  <matz@suse.de>
4063
4064         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4065         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4066         * function.c (gimplify_parameters): Ditto.
4067         * gimplify.c (gimplify_vla_decl): Ditto.
4068
4069         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4070         (gimple_call_set_alloca_for_var): New inline function.
4071         (gimple_call_alloca_for_var_p): Ditto.
4072         * gimple.c (gimple_build_call_from_tree): Remember
4073         CALL_ALLOCA_FOR_VAR_P state.
4074         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4075
4076         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4077         calls if they were for VLA objects.
4078
4079 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4080
4081         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4082         of ADR_EXPRs.
4083
4084 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4085
4086         PR middle-end/48601
4087         * tree-emutls.c (lower_emutls_function_body): Call
4088         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4089         result is non-NULL.
4090
4091 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4092
4093         * c-decl.c (detect_field_duplicates): Call
4094         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4095
4096 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4097
4098         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4099         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4100         * ipa-pure-const.c (check_stmt): Call it.
4101         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4102
4103 2011-04-15  Richard Guenther  <rguenther@suse.de>
4104
4105         PR tree-optimization/48290
4106         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4107         Properly decide inhibiting propagation based on the valueized
4108         operand.  Do loop-closed SSA form preserving here ...
4109         (init_copy_prop): ... not here.
4110
4111 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4112
4113         PR target/48612
4114         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4115         (*ieee_smax<mode>3): Likewise.
4116
4117 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4118
4119         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4120         Replace match_operand with match_dup for the third operand in
4121         these expanders.
4122
4123 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4124
4125         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4126         to track processing of conditionals.  Update all callers.
4127         (try_combine, simplify_if_then_else): Update.
4128
4129 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4130
4131         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4132         -fsched-pressure.
4133
4134 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4135
4136         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4137         instead of match_operand for operand 3.
4138
4139 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4140
4141         * recog.h (insn_operand_data): Add an "allows_mem" field.
4142         * genoutput.c (output_operand_data): Initialize it.
4143         * optabs.c (maybe_legitimize_operand_same_code): New function.
4144         (maybe_legitimize_operand): Use it when matching the original
4145         op->value.
4146
4147 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4148
4149         * gimplify.c: Fix issues in comments throughout.
4150         (voidify_wrapper_expr): Fix long line.
4151         (build_stack_save_restore): Likewise.
4152         (gimplify_loop_expr): Likewise.
4153         (gimplify_compound_lval): Likewise.
4154         (gimplify_init_ctor_eval): Likewise.
4155         (gimplify_modify_expr_rhs): Likewise.
4156         (omp_notice_threadprivate_variable): Likewise.
4157
4158 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4159
4160         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4161         original one if this is not a builtin function.
4162
4163 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4164
4165         PR target/48605
4166         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4167         offset it as needed based on top 2 bits in operands[3], change
4168         MEM mode to SFmode and mask those 2 bits away from operands[3].
4169
4170 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4171
4172         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4173         change from objc_declare_protocols() to objc_declare_protocol().
4174
4175 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4176
4177         * config/i386/sse.md (sse4_1): New mode attribute.
4178         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4179         avx_blend<ssemodesuffix><avxmodesuffix> and
4180         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4181         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4182         avx_blendv<ssemodesuffix><avxmodesuffix> and
4183         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4184         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4185         avx_dp<ssemodesuffix><avxmodesuffix> and
4186         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4187         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4188         (sse4_1_packusdw): Merge with *avx_packusdw.
4189         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4190         (sse4_1_pblendw): Merge with *avx_pblendw.
4191         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4192         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4193         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4194         VF mode iterator.
4195         (sse4_1_round<ssescalarmodesuffix>): Merge with
4196         *avx_round<ssescalarmodesuffix>.
4197         (aesenc): Merge with *avx_aesenc.
4198         (aesenclast): Merge with *avx_aesenclast.
4199         (aesdec): Merge with *avx_aesdec.
4200         (aesdeclast): Merge with *avx_aesdeclast.
4201         (pclmulqdq): Merge with *pclmulqdq.
4202         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4203         New predicate.
4204         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4205
4206 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4207
4208         PR middle-end/48608
4209         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4210         (align_local_variable): This.  Update DECL_ALIGN.
4211         (add_stack_var): Updated.
4212         (expand_one_stack_var): Likewise.
4213
4214 2011-04-14  Richard Guenther  <rguenther@suse.de>
4215
4216         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4217         Remove.
4218         (dse_initialize_block_local_data, dse_leave_block,
4219         record_voperand_set, get_stmt_uid): Likewise.
4220         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4221         (dse_optimize_stmt): Remove voperand set handling code.
4222         Simplify and improve to handle any kind of killing stmt.
4223         (dse_record_phi): Remove.
4224         (dse_enter_block): Simplify.
4225         (tree_ssa_dse): Likewise.
4226         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4227
4228 2011-04-14  Jan Hubicka  <jh@suse.cz>
4229
4230         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4231         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4232         (cgraph_local_info): Remove inline_summary.
4233         * ipa-cp.c: Include ipa-inline.h.
4234         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4235         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4236         accesor.
4237         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4238         (input_overwrite_node): Do not set inline summary.
4239         (input_node): Do not stream inline summary.
4240         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4241         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4242         growth; we do not have inline parameters computed for that anyway.
4243         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4244         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4245         (inline_summary_t): New type and VECtor.
4246         (debug_inline_summary, dump_inline_summaries): Declare.
4247         (inline_summary): Use VOCtor.
4248         (estimate_edge_growth): Kill hack computing call stmt size directly.
4249         * lto-section-in.c (lto_section_name): Add inline section.
4250         * ipa-inline-analysis.c: Include lto-streamer.h
4251         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4252         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4253         (inline_summary_vec): Define.
4254         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4255         dump_inline_summaries): New functions.
4256         (estimate_function_body_sizes): Properly compute size/time of outgoing
4257         calls.
4258         (compute_inline_parameters): Alloc inline_summary; do not compute
4259         size/time of incomming calls.
4260         (estimate_edge_time): Avoid missing time summary hack.
4261         (inline_read_summary): Read inline summary info.
4262         (inline_write_summary): Write inline summary info.
4263         (inline_free_summary): Free all hooks and inline summary vector.
4264         * lto-streamer.h: Add LTO_section_inline_summary section.
4265         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4266         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4267
4268 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4269
4270         * tree-vectorizer.h (vect_strided_store_supported): Add a
4271         HOST_WIDE_INT argument.
4272         (vect_strided_load_supported): Likewise.
4273         (vect_permute_store_chain): Return void.
4274         (vect_transform_strided_load): Likewise.
4275         (vect_permute_load_chain): Delete.
4276         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4277         count argument.  Check that the count is a power of two.
4278         (vect_strided_load_supported): Likewise.
4279         (vect_permute_store_chain): Return void.  Update after above changes.
4280         Assert that the access is supported.
4281         (vect_permute_load_chain): Likewise.
4282         (vect_transform_strided_load): Return void.
4283         * tree-vect-stmts.c (vectorizable_store): Update calls after
4284         above interface changes.
4285         (vectorizable_load): Likewise.
4286         (vect_analyze_stmt): Don't check for strided powers of two here.
4287
4288 2011-04-14  Richard Guenther  <rguenther@suse.de>
4289
4290         PR tree-optimization/48590
4291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4292         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4293         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4294         BUILT_IN_STACK_SAVE.
4295         * tree-ssa-dce.c (propagate_necessity): Handle
4296         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4297
4298 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4299
4300         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4301         objc_declare_class.
4302
4303 2011-04-14  Richard Guenther  <rguenther@suse.de>
4304
4305         * tree.h (get_object_alignment_1): Declare.
4306         * builtins.c (get_object_alignment_1): Split out worker from ...
4307         (get_object_alignment): ... here.
4308         * fold-const.c (get_pointer_modulus_and_residue): Use
4309         get_object_alignment_1.
4310
4311 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4312
4313         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4314         type parameter.
4315         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4316         parameter.  Generalise code to handle arrays as well as vectors.
4317         (vect_setup_realignment): Update accordingly.
4318         * tree-vect-stmts.c (vectorizable_store): Likewise.
4319         (vectorizable_load): Likewise.
4320
4321 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4322
4323         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4324         within the per-copy loop.
4325
4326 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4327
4328         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4329         in the dump file.
4330
4331 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4332
4333         * doc/options.texi (Negative): Explicitly mention that the
4334         Negative chain must be circular.
4335
4336 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4337
4338         * function.h (block_chainon): Declare.
4339         * function.c (block_chainon): Define.
4340
4341 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4342             Eric Weddington  <eric.weddington@atmel.com>
4343             Georg-Johann Lay  <avr@gjlay.de>
4344
4345         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4346         New Includes
4347         (avr_init_builtins, avr_expand_builtin,
4348         avr_expand_delay_cycles, avr_expand_unop_builtin,
4349         avr_expand_binop_builtin ): New functions.
4350         (avr_builtin_id): New enum
4351         (struct avr_builtin_description): New struct
4352         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4353         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4354
4355         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4356         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4357         UNSPECV_DELAY_CYCLES): new enumeration values
4358         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4359         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4360         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4361         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4362         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4363         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4364         "fmulsu"): New insns
4365
4366         * config/avr/avr-c.c: fix line endings
4367         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4368         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4369         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4370         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4371         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4372
4373         * doc/extend.texi (AVR Built-in Functions): New node
4374         (Target Builtins): Add documentation of AVR
4375         built-in functions.
4376
4377 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4378
4379         PR target/44643
4380         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4381         alone. Error if non-const data has attribute progmem.
4382
4383 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4384
4385         * tree.h (struct tree_constructor): Include tree_typed instead of
4386         tree_common.
4387         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4388         TS_TYPED instead of TS_COMMON.
4389
4390 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4391
4392         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4393         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4394         (sse2_psadbw): Merge with *avx_psadbw.
4395         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4396         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4397         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4398         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4399         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4400         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4401         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4402         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4403         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4404         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4405         (ssse3_palignrti): Merge with *avx_palignrti.
4406
4407 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4408
4409         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4410         * tree-ssanames.c (fini_ssanames): VEC_free it.
4411         (make_ssa_name_fn): Update for VECness of free_ssanames.
4412         (release_ssa_name, release_dead_ssa_names): Likewise.
4413         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4414         tree_common.
4415         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4416         TS_TYPED instead of TS_COMMON.
4417
4418 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4419
4420         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4421         statistics_counter_event.
4422         * tree-ssa-copyrename.c (stats): Define.
4423         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4424         statistics_counter_event.
4425         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4426         (bswap_stats, widen_mul_stats): Define.
4427         (insert_reciprocals): Increment rdivs_inserted.
4428         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4429         rfuncs_inserted.  Add calls to statistics_counter_event.
4430         (execute_cse_sincos_1): Increment inserted.
4431         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4432         statistics_counter_event.
4433         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4434         of bswap_stats.  Add calls to statistics_counter_event.
4435         (convert_mult_to_widen): Increment widen_mults_inserted.
4436         (convert_plusminus_to_widen): Increment maccs_inserted.
4437         (convert_mult_to_fma): Increment fmas_inserted.
4438         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4439         calls to statistics_counter_event.
4440
4441 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4442
4443         PR rtl-optimization/48455
4444         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4445         `temp_costs->mem_cost'.
4446
4447 2011-04-13  Jan Hubicka  <jh@suse.cz>
4448
4449         * ipa-inline.h: New file.
4450         * ipa-inline-analysis.c: New file. Broken out of ...
4451         * ipa-inline.c: ... this file; update toplevel comment;
4452         include ipa-inline.h
4453         (inline_summary): Move to ipa-inline.h
4454         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4455         ipa-inline-analysis.c.
4456         (cgraph_estimate_time_after_inlining): Rename to
4457         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4458         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4459         to estimate_edge_growth.
4460         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4461         rename to estimate_size_after_inlining.
4462         (cgraph_mark_inline_edge): Update for new naming convention.
4463         (cgraph_check_inline_limits): Likewise.
4464         (cgraph_edge_badness): Likewise.
4465         (cgraph_decide_recursive_inlining): Likewise.
4466         (cgraph_decide_inlining_of_small_functions): Likewise.
4467         (cgraph_decide_inlining_incrementally): Likewise.
4468         (cgraph_estimate_growth): Rename to estimate_growth; move to
4469         ipa-inline-analysis.c.
4470         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4471         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4472         (compute_inline_parameters): Likewise.
4473         (compute_inline_parameters_for_current): Likewise.
4474         (pass_inline_parameters): Likewise.
4475         (inline_indirect_intraprocedural_analysis): Likewise.
4476         (analyze_function): Rename to inline_analyze_function; likewise.
4477         (add_new_function): Move to ipa-inline-analysis.c.
4478         (inline_generate_summary): Likewise.
4479         (inline_read_summary): Likewise.
4480         (inline_write_summary): Likewise.
4481         * Makefile.in (ipa-inline-analysis.c): New file.
4482
4483 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4484
4485         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4486         * configure: Regenerate.
4487
4488 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4489
4490         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4491         instead of tree_common.
4492         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4493         Likewise.
4494         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4495         TS_TYPED rather than TS_COMMON.
4496         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4497
4498 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4499
4500         PR target/45263
4501         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4502         r20 around calls of __tablejump_elpm__
4503
4504 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4505
4506         PR middle-end/48591
4507         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4508         NULL.
4509         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4510
4511 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4512
4513         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4514         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4515         (cfi_vec): New typedef.
4516         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4517         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4518         (cie_cfi_vec): New static variable.
4519         (cie_cfi_head): Delete.
4520         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4521         declaration changed. Use vector rather than list operations.
4522         (new_cfi): Don't initialize the dw_cfi_next field.
4523         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4524         rather than list operations.
4525         (lookup_cfa): Use vector rather than list operations.
4526         (output_cfis): New argument upto. Accept a cfi_vec rather than
4527         a dw_cfi_ref list head as argument. All callers changed.
4528         Iterate over the vector using upto as a maximum index.
4529         (output_all_cfis): New static function.
4530         (output_fde): Use vector rather than list operations. Use the
4531         new upto argument for output_cfis rather than manipulating a
4532         list.
4533         (dwarf2out_begin_prologue): Change initializations to match
4534         new struct members.
4535         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4536         from the vector length rather than searching for the end of a list.
4537         Use output_all_cfis.
4538         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4539
4540 2011-04-13  Nick Clifton  <nickc@redhat.com>
4541
4542         * config/rx/rx.md (movmemsi): Do not use this pattern when
4543         volatile pointers are involved.
4544
4545 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4546
4547         * config/i386/sse.md (pinsrbits): Remove.
4548         (sse2_packsswb): Merge with *avx_packsswb.
4549         (sse2_packssdw): Merge with *avx_packssdw.
4550         (sse2_packuswb): Merge with *avx_packuswb.
4551         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4552         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4553         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4554         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4555         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4556         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4557         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4558         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4559         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4560         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4561         (sse2_loadld): Merge with *avx_loadld.
4562         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4563         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4564         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4565         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4566         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4567
4568 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4569
4570         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4571         calling TREE_CHAIN.
4572         * print-tree.c (print_node): Likewise.
4573         * tree-inline.c (copy_tree_r): Likewise.
4574         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4575         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4576         instead of TS_COMMON.
4577         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4578         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4579         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4580         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4581         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4582         ...and these...
4583         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4584         * tree.h: ...here.
4585         (TREE_CHAIN): Check for a TS_COMMON structure.
4586         (TREE_TYPE): Check for a TS_TYPED structure.
4587
4588 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4589
4590         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4591         cgraph_get_create_node instead of cgraph_node.
4592
4593 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4594
4595         * c-parser.c (c_parser_initelt): Updated call to
4596         objc_build_message_expr.
4597         (c_parser_postfix_expression): Likewise.
4598
4599 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4600
4601         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4602         MASK_MS_BITFIELD_LAYOUT bit.
4603
4604 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4605
4606         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4607         assert it is always true.
4608         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4609         moves.
4610
4611 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4612
4613         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4614         compiling Objective-C to be more efficient.
4615
4616 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4617
4618         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4619         argv_copied.
4620
4621 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4622
4623         * recog.h, genoutput.c, optabs.c: Revert last patch.
4624
4625 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4626
4627         PR target/48090
4628         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4629
4630 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4631
4632         * recog.h (insn_operand_data): Add an "allows_mem" field.
4633         * genoutput.c (output_operand_data): Initialize it.
4634         * optabs.c (maybe_legitimize_operand_same_code): New function.
4635         (maybe_legitimize_operand): Use it when matching the original
4636         op->value.
4637
4638 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4639
4640         * genpreds.c (process_define_predicate): Move most processing
4641         to gensupport.c.  Continue to validate the expression.
4642         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4643         (process_define_predicate): Move processing to gensupport.c.
4644         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4645         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4646         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4647         argument.
4648         (valid_predicate_name_p): New function, split out from old
4649         genpreds.c:process_define_predicate.
4650         (process_define_predicate): New function, combining code from
4651         old genpreds.c and genrecog.c functions.
4652         (process_rtx): Call it for DEFINE_PREDICATE and
4653         DEFINE_SPECIAL_PREDICATE.
4654
4655 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4656
4657         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4658         size of a '%A' memory reference.
4659         (T_DREG, T_QREG): New neon_builtin_type_bits.
4660         (arm_init_neon_builtins): Assert that the load and store operands
4661         are neon_struct_operands.
4662         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4663         (NEON_ARG_MEMORY): New builtin_arg.
4664         (neon_dereference_pointer): New function.
4665         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4666         Handle NEON_ARG_MEMORY.
4667         (arm_expand_neon_builtin): Update after above interface changes.
4668         Use NEON_ARG_MEMORY for loads and stores.
4669         * config/arm/predicates.md (neon_struct_operand): New predicate.
4670         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4671         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4672         (V_four_elem): Tweak formatting.
4673         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4674         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4675         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4676         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4677         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4678         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4679         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4680         Use %A in the output template.
4681         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4682         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4683         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4684         the width of the memory access.  Remove post-increment.
4685         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4686
4687 2011-04-12  Nick Clifton  <nickc@redhat.com>
4688
4689         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4690         instruction for interrupt handlers if the target is the basic V850
4691         architecture.
4692         (expand_epilogue): Likewise.
4693
4694 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4695
4696         PR rtl-optimization/48549
4697         * combine.c (propagate_for_debug): Also stop after BB_END of
4698         this_basic_block.  Process LAST and just stop processing after it.
4699         (combine_instructions): If last_combined_insn has been deleted,
4700         set last_combined_insn to its PREV_INSN.
4701
4702 2011-04-12  Richard Guenther  <rguenther@suse.de>
4703
4704         PR tree-optimization/46076
4705         * gimple.h (struct gimple_statement_call): Add fntype field.
4706         (gimple_call_fntype): Adjust.
4707         (gimple_call_set_fntype): New function.
4708         * gimple.c (gimple_build_call_1): Set the call function type.
4709         * gimplify.c (gimplify_call_expr): Preserve the function
4710         type the frontend used for the call.
4711         (gimplify_modify_expr): Likewise.
4712         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4713         function type.
4714         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4715         function type.
4716         * tree-ssa.c (useless_type_conversion_p): Function pointer
4717         conversions are useless.
4718
4719 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4720
4721         * cgraph.h (cgraph_node): Remove function declaration.
4722         (cgraph_create_node): Declare.
4723         (cgraph_get_create_node): Likewise.
4724         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4725         Updated all callers.
4726         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4727         the decl does not already exist.  Call cgraph_get_create_node instead
4728         of cgraph_node.
4729         (cgraph_get_create_node): New function.
4730         (cgraph_same_body_alias): Update comment.
4731         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4732         assert it does not return NULL.
4733         (cgraph_update_edges_for_call_stmt): Likewise.
4734         (cgraph_clone_edge): Likewise.
4735         (cgraph_create_virtual_clone): Likewise.
4736         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4737         instead of cgraph_node.
4738         (cgraph_add_new_function): Call cgraph_create_node or
4739         cgraph_get_create_node instead of cgraph_node.
4740         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4741         instead of cgraph_node.
4742         (record_eh_tables): Likewise.
4743         (mark_address): Likewise.
4744         (mark_load): Likewise.
4745         (build_cgraph_edges): Call cgraph_get_create_node instead
4746         of cgraph_node.
4747         (rebuild_cgraph_edges): Likewise.
4748         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4749         instead of cgraph_node.
4750         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4751         cgraph_node.
4752         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4753         cgraph_create_node instead of cgraph_node.
4754         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4755         of cgraph_node.
4756         * lto-cgraph.c (input_node): Likewise.
4757         * lto-streamer-in.c (input_function): Likewise.
4758         * varasm.c (mark_decl_referenced): Likewise.
4759         (assemble_alias): Likewise.
4760
4761 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4762
4763         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4764         instead of cgraph_node and assert it does not return NULL.
4765         * lto-streamer-in.c (lto_read_body): Likewise.
4766         * omp-low.c (new_omp_context): Likewise.
4767         (create_task_copyfn): Likewise.
4768         * tree-emutls.c (lower_emutls_function_body): Likewise.
4769         * matrix-reorg.c (transform_allocation_sites): Likewise.
4770
4771 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4772
4773         PR c/48552
4774         * c-typeck.c (build_asm_expr): Error out on attempts to use
4775         void type outputs or inputs for constraints that allow reg or
4776         don't allow memory.
4777
4778 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4779             Richard Earnshaw  <rearnsha@arm.com>
4780
4781         PR target/48250
4782         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4783         to use sign-magnitude offsets. Reject unsupported unaligned
4784         cases. Add detailed description in comments.
4785         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4786         condition from TARGET_32BIT to TARGET_ARM.
4787
4788 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4789
4790         * tree.h (struct typed_tree): New.
4791         (struct tree_common): Include it instead of tree_base.
4792         (TREE_TYPE): Update for new location of type field.
4793         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4794         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4795         (union tree_node): Add typed field.
4796         * treestruct.def (TS_TYPED): New.
4797         * lto-streamer.c (check_handled_ts_structures): Handle it.
4798         * tree.c (MARK_TS_TYPED): New macro.
4799         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4800
4801 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4802
4803         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4804         (force_nonfallthru): Do not alter the loop nest if no basic block
4805         was created.
4806
4807 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4808
4809         * config/i386/sse.md (VI): New mode iterator.
4810         (SSEMODEI): Remove.
4811         (AVX256MODEI): Ditto.
4812         (AVXMODEF4P): Ditto.
4813         (avxvecpsmode): Ditto.
4814         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4815         (sse2_andnot<mode>3): New expander.
4816         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4817         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4818         (<any_logic:code><mode>3): Use VI mode iterator.
4819         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4820         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4821         (*andnottf3): Handle AVX three-operand constraints.
4822         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4823
4824 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4825             Robert Millan  <rmh@gnu.org>
4826
4827         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4828         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4829         GNU_USER_DYNAMIC_LINKER64): Define.
4830         (REG_NAME): Don't undefine.
4831         (MD_UNWIND_SUPPORT): Undefine.
4832         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4833         (REG_NAME): Don't undefine.
4834         (MD_UNWIND_SUPPORT): Undefine.
4835         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4836
4837 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4838
4839         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4840         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4841
4842 2011-04-11  Xinliang David Li  <davidxl@google.com>
4843
4844         * value-profile.c (check_ic_target): New function.
4845         (gimple_ic_transform): Sanity check indirect call target.
4846         * gimple-low.c (gimple_check_call_args): Interface change.
4847         (gimple_check_call_matching_types): New function.
4848         * tree-inline.c (tree_can_inline_p): Call new function.
4849
4850 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4851
4852         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4853         tree-pretty-print.h & realmpfr.h.
4854
4855 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4856
4857         PR middle-end/48464
4858         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4859         (setup_allocno_and_important_classes): Ditto.
4860
4861 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4862
4863         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4864         GNU_USER_DYNAMIC_LINKER.
4865         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4866         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4867         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4868         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4869         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4870         GNU_USER_TARGET_OS_CPP_BUILTINS.
4871         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4872         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4873         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4874         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4875         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4876         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4877         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4878         GNU_USER_TARGET_OS_CPP_BUILTINS.
4879         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4880         GNU_USER_DYNAMIC_LINKER.
4881         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4882         GNU_USER_TARGET_OS_CPP_BUILTINS.
4883         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4884         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4885         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4886         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4887         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4888         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4889         GNU_USER_DYNAMIC_LINKER64): Remove.
4890         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4891         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4892         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4893         GNU_USER_DYNAMIC_LINKER.
4894         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4895         GNU_USER_TARGET_OS_CPP_BUILTINS.
4896         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4897         GNU_USER_TARGET_OS_CPP_BUILTINS.
4898         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4899         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4900         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4901         GNU_USER_TARGET_OS_CPP_BUILTINS.
4902         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4903         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4904         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4905         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4906         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4907         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4908         GNU_USER_DYNAMIC_LINKER.
4909         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4910         GNU_USER_TARGET_OS_CPP_BUILTINS.
4911         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4912         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4913         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4914         GNU_USER_DYNAMIC_LINKER.
4915         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4916         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4917         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4918         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4919         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4920         GNU_USER_DYNAMIC_LINKER.
4921         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4922         GNU_USER_DYNAMIC_LINKERN32.
4923         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4924         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4925         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4926         GNU_USER_DYNAMIC_LINKER32.
4927         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4928         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4929         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4930         GNU_USER_DYNAMIC_LINKER.
4931         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4932         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4933         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4934         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4935         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4936         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4937         GNU_USER_DYNAMIC_LINKER32.
4938         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4939         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4940         GNU_USER_DYNAMIC_LINKER.
4941         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4942         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4943         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4944         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4945         GNU_USER_DYNAMIC_LINKER64.
4946         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4947         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4948         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4949         GNU_USER_DYNAMIC_LINKER.
4950         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4951         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4952         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4953         GNU_USER_DYNAMIC_LINKER.
4954         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4956         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4957         GNU_USER_DYNAMIC_LINKER32.
4958         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4959         GNU_USER_DYNAMIC_LINKER64.
4960         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4961         GNU_USER_DYNAMIC_LINKER64.
4962         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4963         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4964         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4965         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4966         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4967
4968 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4971         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4972         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4973         GNU_USER_DYNAMIC_LINKER.
4974         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4975         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4976         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4977         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4978         GNU_USER_DYNAMIC_LINKER64.
4979         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4980         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4981         GNU_USER_LINK_EMULATION.
4982         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4983         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4984         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4985         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4986         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4987         CPP_SPEC, CC1_SPEC): Remove.
4988         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4989         (GNU_USER_DYNAMIC_LINKER): Define.
4990         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4991         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4992         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4993         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4994         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4995         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4996         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4997         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4998         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4999         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5000         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5001         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5002         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5003         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5004         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5005         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5006         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5007         GNU_USER_DYNAMIC_LINKER.
5008         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5009         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5010         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5011         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5012         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5013         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5014         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5015         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5016         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5017         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5018
5019 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5020
5021         PR target/9601
5022         PR target/11772
5023         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5024         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5025         comment.
5026         (ix86_is_msabi_thiscall): Removed.
5027         (ix86_is_type_thiscall): Likewise.
5028         (ix86_get_callcvt): New function.
5029         (ix86_comp_type_attributes): Simplify check.
5030         (ix86_function_regparm): Use ix86_get_callcvt for calling
5031         convention attribute checks.
5032         (ix86_return_pops_args): Likewise.
5033         (ix86_static_chain): Likewise.
5034         (x86_this_parameter): Likewise.
5035         (x86_output_mi_thunk): Likewise.
5036         (ix86_function_type_abi): Optimize check for types without attributes.
5037         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5038         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5039         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5040         by flag-values.
5041         (IX86_BASE_CALLCVT): Helper macro.
5042         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5043         Use ix86_get_callcvt for calling convention attribute checks and avoid
5044         symbol-decoration for stdcall in TARGET_RTD case.
5045         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5046         Likewise.
5047         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5048         for declaration.
5049
5050 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5051
5052         * config/i386/sse.md (VI_128): New mode iterator.
5053         (VI12_128): Rename from SSEMODE12.
5054         (VI14_128): Rename from SSEMODE14.
5055         (VI124_128): New mode iterator.
5056         (VI24_128): Rename from SSEMODE248.
5057         (VI248_128): Rename from SSEMODE248.
5058         (SSEMODE124C8): Remove.
5059         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5060         (*sse2_<plusminus_insn><mode>3): Merge with
5061         *avx_<plusminus_insn><mode>3.
5062         (*mulv8hi3): Merge with *avx_mulv8hi3.
5063         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5064         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5065         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5066         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5067         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5068         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5069         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5070         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5071         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5072         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5073         (*<smaxmin:code>v8hi3): Ditto.
5074         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5075         (*<smaxmin:code>v16qi3): Ditto.
5076         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5077         (*sse2_eq<mode>3): Ditto.
5078         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5079         (*sse2_gt<mode>3): Ditto.
5080         (vcondv2di): Split out of vcond<mode>.
5081         (vconduv2di): Split out of vcondu<mode>.
5082
5083 2011-04-11  Richard Guenther  <rguenther@suse.de>
5084
5085         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5086         before calling tree_low_cst.
5087
5088 2011-04-11  Richard Guenther  <rguenther@suse.de>
5089
5090         * stor-layout.c (layout_type): Compute all array index size operations
5091         in the original type.
5092         (initialize_sizetypes): Add comment.
5093         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5094
5095 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5096
5097         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5098
5099 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5100
5101         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5102         of cgraph_node, handle NULL return value.
5103         (cgraph_global_info): Likewise.
5104         (cgraph_rtl_info): Likewise.
5105         * tree-inline.c (estimate_num_insns): Likewise.
5106         * gimplify.c (unshare_body): Likewise.
5107         (unvisit_body): Likewise.
5108         (gimplify_body): Likewise.
5109         * predict.c (optimize_function_for_size_p): Likewise.
5110         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5111         (call_may_clobber_ref_p_1): Likewise.
5112         * varasm.c (function_section_1): Likewise.
5113         (assemble_start_function): Likewise.
5114
5115 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5116
5117         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5118         of cgraph_node.
5119         * final.c (rest_of_clean_state): Likewise.
5120         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5121         * passes.c (pass_init_dump_file): Likewise.
5122         (execute_all_ipa_transforms): Likewise.
5123         (function_called_by_processed_nodes_p): Likewise.
5124         * predict.c (maybe_hot_frequency_p): Likewise.
5125         (probably_never_executed_bb_p): Likewise.
5126         (compute_function_frequency): Likewise.
5127         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5128         (unnest_nesting_tree_1): Likewise.
5129         (lower_nested_functions): Likewise.
5130         * tree-optimize.c (execute_fixup_cfg): Likewise.
5131         (tree_rest_of_compilation): Likewise.
5132         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5133         * tree-sra.c (ipa_early_sra): Likewise.
5134         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5135         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5136         * ipa.c (record_cdtor_fn): Likewise.
5137         * ipa-inline.c (cgraph_early_inlining): Likewise.
5138         (compute_inline_parameters_for_current): Likewise.
5139         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5140         * ipa-pure-const.c (local_pure_const): Likewise.
5141         * ipa-split.c (split_function): Likewise.
5142         (execute_split_functions): Likewise.
5143         * cgraphbuild.c (build_cgraph_edges): Likewise.
5144         (rebuild_cgraph_edges): Likewise.
5145         (cgraph_rebuild_references): Likewise.
5146         (remove_cgraph_callee_edges): Likewise.
5147         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5148         (verify_cgraph_node): Likewise.
5149         (cgraph_analyze_functions): Likewise.
5150         (cgraph_preserve_function_body_p): Likewise.
5151         (save_inline_function_body): Likewise.
5152         (save_inline_function_body): Likewise.
5153         * tree-inline.c (copy_bb): Likewise.
5154         (optimize_inline_calls): Likewise.
5155
5156 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5157
5158         PR tree-optimization/48195
5159         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5160         ipa_check_create_edge_args.
5161         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5162         ipa_check_create_edge_args.
5163         * ipa-inline.c (inline_generate_summary): Do not call
5164         ipa_check_create_node_params and ipa_check_create_edge_args.
5165         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5166         ipa_check_create_edge_args.
5167
5168 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5169
5170         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5171         instead of loop.
5172         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5173         * function.c (record_hard_reg_sets): Likewise.
5174         * ira.c (compute_regs_asm_clobbered): Likewise.
5175         * sched-deps.c (sched_analyze_1): Likewise.
5176         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5177
5178 2011-04-09  Xinliang David Li  <davidxl@google.com>
5179
5180         PR tree-optimization/PR48484
5181         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5182         has_valid_pred lazily
5183
5184 2011-04-09  Duncan Sands  <baldrick@free.fr>
5185
5186         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5187
5188 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5189
5190         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5191         cost of I0 to zero at the end, if any.
5192
5193 2011-04-08  Xinliang David Li  <davidxl@google.com>
5194
5195         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5196         to insane profile data.
5197
5198 2011-04-08  Xinliang David Li  <davidxl@google.com>
5199
5200         * ipa-cp.c (ipcp_update_profiling): Correct
5201          negative scale factor due to insane profile data.
5202
5203 2011-04-08  Xinliang David Li  <davidxl@google.com>
5204
5205         * final.c (dump_basic_block_info): New function.
5206         (final): Dump basic block.
5207         (final_scan_insn): Remove old dump.
5208
5209 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5210
5211         PR target/47829
5212         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5213         crtbegin/crtend.
5214
5215 2011-04-08  Michael Matz  <matz@suse.de>
5216
5217         PR middle-end/48389
5218         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5219         functions.
5220         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5221         * rtl.h (rebuild_jump_labels_chain): Declare.
5222         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5223         insns inserted on edges.
5224
5225 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5226
5227         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5228         * config/arm/arm-arches.def: New.
5229         * config/arm/arm-opts.h: New.
5230         * config/arm/genopt.sh: New.
5231         * config/arm/arm-tables.opt: New (generated).
5232         * config/arm/arm.c (arm_handle_option, arm_target_help,
5233         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5234         (all_architectures): Get most table contents from arm-arches.def.
5235         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5236         arm_selected_tune here.
5237         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5238         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5239         (march=, mcpu=, mtune=): Use Enum and Var.
5240         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5241         (arm.o): Update dependencies.
5242
5243 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5244
5245         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5246         of header_file.
5247         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5248         (write_typed_alloc_defns): Likewise.
5249         (main): Calls write_typed_alloc_defns with output_header.
5250
5251 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5252
5253         PR inline-asm/48435
5254         * ira-color.c (setup_profitable_hard_regs): Add comments.
5255         Don't take prohibited hard regs into account.
5256         (setup_conflict_profitable_regs): Rename to
5257         get_conflict_profitable_regs.
5258         (check_hard_reg_p): Check prohibited hard regs.
5259
5260 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5261
5262         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5263         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5264         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5265
5266 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5267
5268         PR target/48366
5269         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5270         move from floating point to shift amount register.
5271         (emit_move_sequence): Remove secondary reload support for floating
5272         point to shift amount amount register copies.
5273         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5274         amount register copies.
5275         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5276         register, return false if mode isn't a scalar integer mode.
5277         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5278
5279 2011-04-08  Richard Guenther  <rguenther@suse.de>
5280
5281         * gimple.c (gimple_call_flags): Remove kludge.
5282
5283 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5284
5285         * sel-sched.c (sel_region_init): Move call to
5286         sel_setup_region_sched_flags after setup_current_loop_nest.
5287
5288 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5289
5290         PR rtl-optimization/48272
5291         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5292         init_insn_reg_pressure_info.  Adjust a caller.
5293         * sched-int.h (init_insn_reg_pressure_info): Declare.
5294         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5295         when sched-pressure is enabled.
5296
5297 2011-04-08  Richard Guenther  <rguenther@suse.de>
5298
5299         * gimple.c (gimple_set_modified): Do not queue calls to
5300         MODIFIED_NORETURN_CALLS here ...
5301         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5302
5303 2011-04-08  Richard Guenther  <rguenther@suse.de>
5304
5305         PR lto/48467
5306         * toplev.c (lang_dependent_init): Do not open asm_out_file
5307         in WPA mode, nor perform debug machinery initialization.
5308         (finalize): Do not unlink asm_out_file in WPA mode.
5309
5310 2011-04-08  Richard Guenther  <rguenther@suse.de>
5311
5312         * gimple.h (gimple_call_fntype): New function.
5313         (gimple_call_return_type): Use it.
5314         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5315         * gimple-low.c (gimple_check_call_args): Likewise.
5316         * gimple.c (gimple_call_flags): Likewise.
5317         (gimple_call_arg_flags): Likewise.
5318         (gimple_call_return_flags): Likewise.
5319         * tree-cfg.c (verify_gimple_call): Likewise.
5320         (do_warn_unused_result): Likewise.
5321         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5322         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5323
5324 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5325
5326         PR rtl-optimization/48235
5327         * sel-sched.c (code_motion_process_successors): Recompute the last
5328         insn in basic block if control flow changed.
5329         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5330         Update condition for ilist_remove.
5331
5332 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5333
5334         PR rtl-optimization/48302
5335         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5336         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5337         it to record added preheader blocks.
5338         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5339         on to sel_add_loop_preheaders.
5340         (sel_region_init): Move call to setup_current_loop_nest after
5341         sel_init_bbs.
5342
5343 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5344
5345         PR target/48273
5346         * cfgloop.h (loop_has_exit_edges): New helper.
5347         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5348         non-clonable.
5349         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5350         that have no exit edges.
5351
5352 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5353
5354         PR rtl-optimization/48442
5355         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5356         all callers.  Adjust assert.
5357
5358 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5359
5360         PR tree-optimization/48377
5361         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5362         is_packed to true even for types with smaller TYPE_ALIGN than
5363         TYPE_SIZE.
5364
5365 2011-04-08  Richard Guenther  <rguenther@suse.de>
5366
5367         PR bootstrap/48513
5368         * doc/tm.texi: Re-generate.
5369
5370 2011-04-08  Wei Guozhi  <carrot@google.com>
5371
5372         PR target/47855
5373         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5374         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5375         * config/arm/arm.md (*push_multi): Change the length computation to
5376         call a C function.
5377
5378 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5379
5380         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5381         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5382         * doc/tm.texi: Regenerate.
5383         * system.h (ASM_OUTPUT_BSS): Poison.
5384         * varasm.c (asm_output_bss): Remove function.
5385         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5386
5387         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5388         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5389         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5390         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5391         Likewise.
5392         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5393         Likewise.
5394         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5395         Likewise.
5396         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5397
5398 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5399
5400         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5401         EnumValue lines.
5402
5403 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5404
5405         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5406         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5407         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5408         OPT_mcpu32.
5409         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5410         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5411         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5412         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5413         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5414         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5415         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5416         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5417         options.  Don't map other m68k options manually.  Don't handle
5418         old-style options as canonical.
5419         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5420         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5421
5422 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5423
5424         * basic-block.h (force_nonfallthru): Move to...
5425         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5426         (force_nonfallthru): ...here.
5427         * cfghooks.c (force_nonfallthru): New function.
5428         * cfgrtl.c (force_nonfallthru): Rename into...
5429         (rtl_force_nonfallthru): ...this.
5430         (commit_one_edge_insertion): Do not set AUX field.
5431         (commit_edge_insertions): Do not discover new basic blocks.
5432         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5433         (cfg_layout_rtl_cfg_hooks): Likewise.
5434         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5435         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5436         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5437
5438 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5439
5440         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5441         Remove macros.
5442
5443 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5444
5445         * config/i386/sse.md: Update copyright year.
5446         (avxcvtvecmode): Remove.
5447         (sse_movhlps): Merge with *avx_movhlps.
5448         (sse_movlhps): Merge with *avx_movlhps.
5449         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5450         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5451         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5452         (sse_loadhps): Merge with *avx_loadhps.
5453         (sse_storelps): Merge with *avx_storelps.
5454         (sse_loadlps): Merge with *avx_loadlps.
5455         (sse_movss): Merge with *avx_movss.
5456         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5457         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5458         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5459         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5460         (vec_set<mode>_0): Ditto.
5461         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5462         (sse4_1_insertps): Merge with *avx_insertps.
5463         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5464         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5465         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5466         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5467         (sse2_storehpd): Merge with *avx_storehpd.
5468         (sse2_loadhpd): Merge with *avx_loadhpd.
5469         (sse2_loadlpd): Merge with *avx_loadlpd.
5470         (sse2_movsd): Merge with *avx_movsd.
5471         (*vec_concatv2df): Merge with *vec_concatv2df.
5472
5473 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5474
5475         PR debug/48343
5476         * combine.c (combine_instructions): Add last_combined_insn,
5477         update it if insn is after it, pass it to all try_combine calls.
5478         (try_combine): Add last_combined_insn parameter, pass it instead of
5479         i3 to propagate_for_debug.
5480
5481 2011-04-07  Nick Clifton  <nickc@redhat.com>
5482
5483         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5484         to handle MDR <-> data register transfers.
5485         (movhi_internal): Likewise.
5486
5487 2011-04-07  Alan Modra  <amodra@gmail.com>
5488
5489         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5490         previous stack info.
5491
5492 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5493
5494         PR target/43920
5495         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5496         flow_find_cross_jump.  Swap variables to implement backward replacement.
5497         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5498
5499 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5500
5501         PR target/43920
5502         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5503         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5504         and bb2.
5505         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5506         src1 or src2.  Redirect edges to the last basic block.  Update
5507         frequency and count on multiple basic blocks in case of fallthru.
5508
5509 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5510
5511         PR target/43920
5512         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5513         function.
5514         (old_insns_match_p): Change return type.  Replace return false/true
5515         with return dir_none/dir_both.  Use can_replace_by.
5516         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5517         direction from dir_p.  Register replacement direction in dir, last_dir
5518         and afterlast_dir.  Handle new return type of old_insns_match_p using
5519         merge_dir.  Return replacement direction in dir_p.
5520         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5521         return type of old_insns_match_p.
5522         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5523         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5524         flow_find_cross_jump.
5525         * basic-block.h (enum replace_direction): New type.
5526         (flow_find_cross_jump): Add parameter to declaration.
5527
5528 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5529
5530         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5531         (AVXMODEDCVTPS2DQ): Ditto.
5532         (VEC_FLOAT_MODE): Ditto.
5533         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5534         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5535         (<any_logic:code><mode>3): Use VF mode iterator.
5536         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5537         Use VF mode iterator.
5538         (copysign<mode>3): Use VF mode iterator.
5539         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5540         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5541         (*<any_logic:code><MODEF:mode>3): Merge with
5542         *avx_<any_logic:code><MODEF:mode>3.
5543         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5544         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5545         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5546         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5547         (sse2_cvtdq2ps): Use %v modifier.
5548         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5549         (avx_cvtps2dq<avxmodesuffix>): Remove.
5550         (sse2_cvtps2dq): Use %v modifier.
5551         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5552         (avx_cvttps2dq<avxmodesuffix>): Remove.
5553         (sse2_cvttps2dq): Use %v modifier.
5554         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5555         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5556         (sse2_cvtsd2siq): Fix insn template.
5557         (sse2_cvtsd2siq_2): Ditto.
5558         (sse2_cvttsd2siq): Ditto.
5559         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5560         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5561
5562 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * gcov-io.c: Use GCC Runtime Library Exception.
5565
5566 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5567
5568         PR debug/48466
5569         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5570         as base_reg whatever register reg has been eliminated to, instead
5571         of hardcoding STACK_POINTER_REGNUM.
5572
5573 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5574
5575         * doc/tm.texi.in: Document C target hooks as separate from general
5576         target hooks.
5577         * doc/tm.texi: Regenerate.
5578         * genhooks.c (struct hook_desc): Add docname field.
5579         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5580         docname field.
5581         (hook_array): Include c-target.def.
5582         (emit_documentation): Use docname field in output.
5583         (emit_init_macros): Take docname argument.  Only emit definitions
5584         for hooks matching docname.
5585         (main): Expect additional arguments in all cases.  Pass argument
5586         to emit_init_macros.
5587         * target.def: Move initial macro definitions and comments to
5588         target-hooks-macros.h.
5589         (gcc_targetcm): Move to c-family/c-target.def.
5590         * target.h (targetcm): Move declaration to c-family/c-target.h.
5591         * targhooks.c (default_handle_c_option): Move to
5592         c-family/c-opts.c.
5593         * targhooks.h (default_handle_c_option): Move declaration to
5594         c-family/c-common.h.
5595         * target-hooks-macros.h: New file.
5596         * config.gcc (target_has_targetcm): Define and use to add to
5597         c_target_objs and cxx_target_objs.
5598         * config/default-c.c: New file.
5599         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5600         of target.h and target-def.h.
5601         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5602         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5603         darwin_check_cfstring_format_arg): Make static.
5604         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5605         TARGET_STRING_OBJECT_REF_TYPE_P,
5606         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5607         * config/darwin-protos.h (darwin_objc_construct_string,
5608         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5609         declare.
5610         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5611         TARGET_STRING_OBJECT_REF_TYPE_P,
5612         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5613         * config/t-darwin (darwin-c.o): Update dependencies.
5614         * system.h (TARGET_HAS_TARGETCM): Poison.
5615         * Makefile.in (TARGET_H): Update.
5616         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5617         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5618         (default-c.o): New target.
5619         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5620         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5621         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5622         c-target.def.
5623         (build/genhooks.o): Update dependencies.
5624
5625 2011-04-06  Richard Guenther  <rguenther@suse.de>
5626
5627         * ipa-inline.c (enum inlining_mode): Remove.
5628         (cgraph_flatten): Use some other token.
5629         (cgraph_edge_early_inlinable_p): New function, split out from ...
5630         (cgraph_perform_always_inlining): New function, split out from ...
5631         (cgraph_decide_inlining_incrementally): ... here.
5632         (cgraph_mark_inline_edge): Adjust.
5633         (cgraph_early_inlining): Re-structure.
5634         (pass_early_inline): Require SSA form.
5635
5636 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5637             Julian Brown  <julian@codesourcery.com>
5638             Mark Shinwell  <shinwell@codesourcery.com>
5639
5640         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5641         LO_REGS only for Thumb-1.
5642         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5643         be used in short instructions when optimising for size on Thumb-2.
5644
5645 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5646
5647         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5648         associated with user returns to be preserved.
5649
5650 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5651
5652         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5653         symbol_queue_size, DBXOUT_DECR_NESTING,
5654         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5655         if XCOFF_DEBUGGING_INFO.
5656
5657 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5658
5659         * config/i386/i386.md (attribute isa): New.
5660         (attribute enabled): New.
5661         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5662         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5663         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5664         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5665         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5666         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5667         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5668         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5669
5670         * config/i386/sse.md (VF): New mode iterator.
5671         (VF1): Ditto.
5672         (VF2): Ditto.
5673         (VF_128): Ditto.
5674         (SSEMODEF4): Remove.
5675         (attribute sse): Handle V8SF and V4DF modes.
5676         (<absneg:code><mode>2): Use VF mode iterator.
5677         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5678         mode iterator.
5679         (<plusminus_insn><mode>3): Use VF mode iterator.
5680         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5681         Use VF mode iterator.
5682         (<sse>_vm<plusminus_insn><mode>3): Merge with
5683         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5684         (mul<mode>3): Use VF mode iterator.
5685         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5686         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5687         mode iterator.
5688         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5689         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5690         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5691         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5692         mode iterator.
5693         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5694         Use VF1 mode iterator.
5695         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5696         (sqrt<VF2:mode>2): New expander.
5697         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5698         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5699         and sqrtv2df2.  Use VF mode iterator.
5700         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5701         mode iterator.
5702         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5703         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5704         Use VF1 mode iterator.
5705         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5706         (<smaxmin:code><mode>3): Use VF mode iterator.
5707         (*<smaxmin:code><mode>3_finite): Merge with
5708         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5709         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5710         (<sse>_vm<smaxmin:code><mode>2): Merge with
5711         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5712         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5713         mode iterator.
5714         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5715         mode iterator.
5716         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5717         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5718         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5719         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5720         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5721         VF mode iterator.
5722         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5723         Use VF_128 mode iterator.
5724         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5725         mode iterator.
5726         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5727         VF_128 mode iterator.
5728         (vcond<mode>): Use VF mode iterator.
5729         * config/i386/predicates.md (sse_comparison_operator): Merge with
5730         avx_comparison_float_operator.  Do not declare as special_predicate.
5731         * config/i386/i386.c (struct builtin_description): Update for renamed
5732         compare patterns.
5733         (ix86_expand_args_builtin): Ditto.
5734         (ix86_expand_sse_compare_mask): Ditto.
5735
5736 2011-04-06  Richard Guenther  <rguenther@suse.de>
5737
5738         * tree-inline.c (estimate_num_insns): For calls simply account
5739         for all passed arguments and a used return value.
5740
5741 2011-04-06  Richard Guenther  <rguenther@suse.de>
5742
5743         PR tree-optimization/47663
5744         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5745         call_stmt_time fields.
5746         (cgraph_edge_inlinable_p): Declare.
5747         (cgraph_edge_recursive_p): New inline function.
5748         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5749         (cgraph_clone_edge): Copy it.
5750         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5751         Account for call stmt time.
5752         (cgraph_estimate_time_after_inlining): Take edge argument.
5753         (cgraph_estimate_edge_growth): Account call stmt size.
5754         (cgraph_estimate_size_after_inlining): Take edge argument.
5755         (cgraph_mark_inline_edge): Adjust.
5756         (cgraph_check_inline_limits): Likewise.
5757         (cgraph_recursive_inlining_p): Remove.
5758         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5759         (cgraph_decide_recursive_inlining): Take edge argument and
5760         adjust.
5761         (cgraph_decide_inlining_of_small_functions): Do not avoid
5762         diags for recursive inlining here.
5763         (cgraph_flatten): Adjust.
5764         (cgraph_decide_inlining_incrementally): Likewise.
5765         (estimate_function_body_sizes): Remove call cost handling.
5766         (compute_inline_parameters): Initialize caller edge call costs.
5767         (cgraph_estimate_edge_growth): New function.
5768         (cgraph_estimate_growth): Use it.
5769         (cgraph_edge_badness): Likewise.
5770         (cgraph_check_inline_limits): Take an edge argument.
5771         (cgraph_decide_inlining_of_small_functions): Adjust.
5772         (cgraph_decide_inlining): Likewise.
5773         * tree-inline.c (estimate_num_insns): Only account for call
5774         return value if it is used.
5775         (expand_call_inline): Avoid diagnostics on recursive inline
5776         functions here.
5777         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5778         (input_edge): Input edge call costs.
5779
5780 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5781
5782         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5783
5784 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5785
5786         * doc/invoke.texi (Spec Files): Fix typo.
5787
5788 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5789
5790         * profile.c (branch_prob): Move declaration of local variable.  Remove
5791         obsolete ??? comment.  Expand the location explicitly instead of using
5792         the LOCATION_FILE and LOCATION_LINE macros.
5793
5794 2011-04-06  Wei Guozhi  <carrot@google.com>
5795
5796         PR target/47855
5797         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5798         (arm_cond_branch): Likewise.
5799         (arm_cond_branch_reversed): Likewise.
5800         (arm_jump): Likewise.
5801         (push_multi): Likewise.
5802         * config/arm/constraints.md (Py): New constraint.
5803
5804 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5805
5806         PR bootstrap/48471
5807         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5808         Move these...
5809         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5810         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5811         #ifdef DBX_DEBUGGING_INFO.
5812
5813 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5814
5815         PR bootstrap/48403
5816         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5817         if old and new states differ.
5818
5819 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5820
5821         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5822         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5823         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5824         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5825         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5826         mcfv4e): Use Alias.
5827         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5828         ColdFire options to -mcpu= options.
5829
5830 2011-04-05  Jeff Law  <law@redhat.com>
5831
5832         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5833         check if BB is a successor of LOOP->header and return
5834         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5835
5836 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5837
5838         * cprop.c (struct reg_use): Remove.
5839         (reg_use_table): Make an array of RTX.
5840         (find_used_regs, constprop_register, local_cprop_pass,
5841         bypass_block): Simplify users of reg_use_table.
5842         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5843         on one of the uses found by find_used_regs.
5844
5845 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5846
5847         PR bootstrap/48469
5848         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5849         declaration.
5850
5851 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5852
5853         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5854         as an rtx.
5855         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5856
5857 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5858
5859         PR middle-end/48441
5860         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5861
5862 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5863
5864         * combine.c: Include obstack.h.
5865         (struct insn_link): Define.
5866         (uid_log_links): Adjust type.
5867         (FOR_EACH_LOG_LINK): New macro.
5868         (insn_link_obstack): Declare.
5869         (alloc_insn_link): Define.
5870         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5871         type of link variables.
5872         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5873         (try_combine, record_promoted_values, distribute_notes): Likewise.
5874         (distribute_links): Likewise.  Tweak prototype.
5875         (clear_log_links): Delete.
5876         (adjust_for_new_dest): Call alloc_insn_link.
5877         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5878
5879 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5880
5881         * gcse.c (modify_mem_list): Convert to an array of VECs.
5882         (canon_modify_mem_list, compute_transp): Tweak formatting.
5883         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5884         (load_killed_in_block_p): Likewise.
5885         (record_last_mem_set_info): Likewise.
5886         (clear_modify_mem_tables): Likewise.
5887
5888 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5889
5890         PR middle-end/48461
5891         * function.c (emit_use_return_register_into_block): Only define if
5892         HAVE_return.
5893
5894 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5895
5896         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5897
5898 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5899
5900         * config/rx/rx-opts.h: New.
5901         * config/rx/rx.c (rx_cpu_type): Remove.
5902         (rx_handle_option): Don't assert that global structures are in
5903         use.  Access variables via opts pointer.  Defer most handling of
5904         OPT_mint_register_.  Use error_at.
5905         (rx_option_override): Handle deferred OPT_mint_register_ here.
5906         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5907         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5908         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5909         (rx_cpu_types): New Enum and EnumValue entries.
5910         (mint-register=): Use Defer and use Var accordingly.
5911
5912 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5913
5914         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5915         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5916         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5917         Move these...
5918         (debug_free_queue, debug_nesting, symbol_queue_index):
5919         ...and these...
5920         * dbxout.c: ...to here.  Make static.
5921
5922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5923
5924         * gcse.c (modify_pair): Define.  Define a VEC of it.
5925         (canon_modify_mem_list): Convert to an array of VECs.
5926         (free_insn_expr_list_list): Delete.
5927         (clear_modify_mem_tables): Call VEC_free instead.
5928         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5929         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5930         (canon_list_insert, compute_transp): Likewise.
5931
5932 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5933
5934         PR target/43920
5935         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5936         for size.
5937
5938 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5939
5940         PR target/43920
5941         * function.c (emit_use_return_register_into_block): New function.
5942         (thread_prologue_and_epilogue_insns): Use
5943         emit_use_return_register_into_block.
5944
5945 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5946
5947         PR target/43920
5948         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5949         insn.
5950
5951 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5952
5953         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5954
5955 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5956
5957         * config/arm/arm.md (define_constants for unspec): Replace with
5958         define_c_enum.
5959         (define_constants for unspecv): Replace with define_c_enum.
5960         * config/arm/neon.md (define_constants for unspec): Replace with
5961         define_c_enum.
5962
5963 2011-04-04  Richard Henderson  <rth@redhat.com>
5964
5965         PR bootstrap/48400
5966         * dwarf2out.c (output_line_info): Always emit line info from
5967         at least one section.
5968         (dwarf2out_init): Create text_section_line_info here ...
5969         (set_cur_line_info_table): ... not here.
5970
5971 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5972
5973         PR target/48380
5974         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5975         not called.
5976
5977         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5978
5979 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5980
5981         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5982         (expr_equiv_p): Remove.
5983         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5984         (hash_scan_set): Update call to insert_set_in_table.
5985         (dump_hash_table): Dump <dest, src> pair.
5986         (lookup_set): Simplify.  Lookup <dest, src> pair.
5987         (compute_transp): Remove, fold heavily simplified code into...
5988         (compute_local_properties): ...here.  Expect COMP and TRANSP
5989         unconditionally.
5990         (find_avail_set): Take set directly from struct expr.
5991         (find_bypass-set): Likewise.
5992         (bypass_block): Likewise.
5993         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5994
5995         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5996         checks on form of COND from find_implicit_sets to here.
5997         (find_implicit_sets): Cleanup control flow. Split critical edges
5998         if it exposes implicit sets.  Allocate/resize implicit_sets as
5999         necessary.
6000         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6001         changed something.  Run df_analyze after find_implicit_sets if any
6002         edges were split.  Do not allocate implicit_sets here.
6003
6004         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6005         (gcse_obstack): Renamed to cprop_obstack.
6006         (GNEW, GNEWVEC, GNEWVAR): Remove.
6007         (gmalloc): Remove.
6008         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6009         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6010         (gcse_alloc): Likewise, and rename to cprop_alloc.
6011         (alloc_gcse_men, free_gcse_mem): Remove.
6012         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6013         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6014         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6015
6016         * cprop.c (oprs_not_set_p): Remove.
6017         (mark_set, mark_clobber): Remove.
6018         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6019         (reg_not_set_p): New function.
6020         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6021         (cprop_insn): Likewise.
6022         (cprop_jump): Use FOR_EACH_EDGE.
6023
6024 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6025
6026         PR bootstrap/48403
6027         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6028         (rank_for_schedule): Use scheduled_insns vector instead of
6029         last_scheduled_insn.
6030         (ok_for_early_queue_removal): Likewise.
6031         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6032         we have a dbg_cnt.
6033         (choose_ready): Likewise.
6034         (commit_schedule): Use VEC_iterate.
6035         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6036         a dbg_cnt, use it and ensure the first insn is in the ready list.
6037         (haifa_sched_init): Allocate scheduled_insns.
6038         (sched_extend_ready_list): Don't allocate it; reserve space.
6039         (haifa_sched_finish): Free it.
6040
6041 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6042
6043         * optc-gen.awk: Always remove type from Variable entry before
6044         recording in var_seen.
6045
6046 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6047
6048         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6049         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6050         call to tidy_fallthru_edges.
6051
6052 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6053
6054         * doc/options.texi (ToLower): Document.
6055         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6056         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6057         * opts.h (cl_option): Add cl_tolower field.
6058         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6059         arguments with lowercase strings.
6060         * config/rx/rx.opt (mcpu=): Add ToLower.
6061         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6062         argument.
6063
6064 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6065
6066         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6067
6068 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6069
6070         * config/vax/vax.c: Include reload.h.
6071
6072 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6073
6074         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6075         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6076         (sparc_preferred_reload_class): New function.
6077
6078 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6079
6080         PR debug/48401
6081         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6082         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6083
6084 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6085
6086         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6087         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6088
6089 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6090
6091         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6092         (ASM_OUTPUT_ALIGNED_BSS): Define.
6093
6094 2011-04-03  Michael Matz  <matz@suse.de>
6095
6096         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6097         and next_slot members.
6098         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6099         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6100         (lto_streamer_cache_append): Declare.
6101         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6102         unsigned index, remove offset parameter, ensure that we append
6103         or update existing entries.
6104         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6105         parameter, update next_slot for append.
6106         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6107         parameter.
6108         (lto_streamer_cache_insert_at): Likewise.
6109         (lto_streamer_cache_append): New function.
6110         (lto_streamer_cache_lookup): Use unsigned index.
6111         (lto_streamer_cache_get): Likewise.
6112         (lto_record_common_node): Don't test tree_node_can_be_shared.
6113         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6114         (lto_streamer_cache_delete): Don't free offsets member.
6115         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6116         (lto_output_string_with_length): Use lto_output_data_stream.
6117         (lto_output_tree_header): Remove ix parameter, don't write it.
6118         (lto_output_builtin_tree): Likewise.
6119         (lto_write_tree): Adjust callers to above, don't track and write
6120         offset, write unsigned index.
6121         (output_unreferenced_globals): Don't emit all global vars.
6122         (write_global_references): Use unsigned indices.
6123         (lto_output_decl_state_refs): Likewise.
6124         (write_symbol): Likewise.
6125         * lto-streamer-in.c (lto_input_chain): Move earlier.
6126         (input_function): Use unsigned index.
6127         (input_alias_pairs): Don't read and then ignore all global vars.
6128         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6129         don't pass it back, use lto_streamer_cache_append.
6130         (lto_register_var_decl_in_symtab): Use unsigned index.
6131         (lto_register_function_decl_in_symtab): Likewise.
6132         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6133         index.
6134         (lto_get_builtin_tree): Don't read index, use
6135         lto_streamer_cache_append.
6136         (lto_read_tree): Adjust call to lto_materialize_tree.
6137
6138         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6139         don't use function calls in arguments to MIN.
6140
6141         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6142         twice.
6143
6144         * gimple.c (gimple_type_leader_entry): Mark deletable.
6145
6146 2011-04-03  Alan Modra  <amodra@gmail.com>
6147
6148         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6149
6150 2011-04-03  Michael Matz  <matz@suse.de>
6151
6152         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6153         an integer.
6154         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6155
6156 2011-04-03  Michael Matz  <matz@suse.de>
6157
6158         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6159         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6160         without function context.
6161         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6162         current_function_decl and cfun.
6163
6164 2011-04-03  Michael Matz  <matz@suse.de>
6165
6166         * tree.c (decl_init_priority_insert): Don't create entry for
6167         default priority.
6168         (decl_fini_priority_insert): Ditto.
6169         (fields_compatible_p, find_compatible_field): Remove.
6170         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6171         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6172
6173 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6174
6175         * combine.c (try_combine): Remove useless local variable.
6176
6177 2011-04-03  Richard Guenther  <rguenther@suse.de>
6178             Ira Rosen  <ira.rosen@linaro.org>
6179
6180         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6181         non-variable offsets and compare the remaining bases of the two
6182         accesses instead of looking for exact same data-ref.
6183
6184 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6185
6186         PR target/48416
6187         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6188
6189         * i386.c (ix86_is_msabi_thiscall): New helper function.
6190         (ix86_is_type_thiscall): New helper function.
6191         (ix86_comp_type_attributes): Handle thiscall for method-functions
6192         special.
6193         (init_cumulative_args): Likewise.
6194         (find_drap_reg): Likewise.
6195         (ix86_static_chain): Likewise.
6196         (x86_this_parameter): Likewise.
6197         (x86_output_mi_thunk): Likewise.
6198
6199 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6200             Nicolas Setton  <setton@adacore.com>
6201             Eric Botcazou  <ebotcazou@adacore.com>
6202
6203         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6204         (add_gnat_descriptive_type_attribute): New function.
6205         (gen_array_type_die): Call it.
6206         (gen_enumeration_type_die): Likewise.
6207         (gen_struct_or_union_type_die): Likewise.
6208         (modified_type_die): Likewise.
6209         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6210         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6211         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6212
6213 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6214
6215         PR bootstrap/48148
6216         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6217         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6218
6219         Revert:
6220         2011-03-17  Richard Guenther  <rguenther@suse.de>
6221
6222         PR bootstrap/48148
6223         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6224         origin for decls in other ltrans units.
6225         (input_varpool_node): Likewise.
6226
6227 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6228
6229         PR middle-end/48335
6230         * expr.c (expand_assignment): Handle all possibilities
6231         if TO_RTX is CONCAT.
6232         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6233         (store_split_bit_field): If SUBREG_REG (op0) or
6234         op0 itself has smaller mode than word, return it
6235         for offset 0 and const0_rtx for out-of-bounds stores.
6236         If word is const0_rtx, skip it.
6237
6238 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6239
6240         * config/h8300/h8300.c (print_operand_address): Rename to...
6241         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6242         Call h8300_print_operand and h8300_print_operand_address instead of
6243         print_operand and print_operand_address. Declare.
6244         (print_operand): Renake to...
6245         (h8300_print_operand): ...this. Make static. Adjust comments.
6246         Call h8300_print_operand instead of print_operand. Declare.
6247         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6248         (h8300_register_move_cost): Likewise.
6249         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6250         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6251         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6252         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6253         * config/h8300/h8300-protos.h (print_operand): Delete.
6254         (print_operand_address): Delete.
6255
6256 2011-04-01  Richard Henderson  <rth@redhat.com>
6257
6258         PR 48400
6259         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6260         in strict mode before dwarf4.  Re-order tests to early out
6261         before switching sections.
6262
6263 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6264
6265         * config/h8300/constraints.md: New file.
6266         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6267         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6268         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6269         * config/h8300/predicates.md (bit_operand): Likewise.
6270         (incdec_operand): Use satisfies_constraint_M and
6271         satisfies_constraint_O.  Don't use C code block.
6272         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6273         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6274         (compute_mov_length): Use satisfies_constraint_G.
6275         (fix_bit_operand): Use satisfies_constraint_U.
6276         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6277         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6278         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6279         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6280         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6281         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6282         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6283         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6284         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6285         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6286         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6287         (EXTRA_MEMORY_CONSTRAINT): Delete.
6288
6289 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6290             Michael Meissner  <meissner@linux.vnet.ibm.com>
6291
6292         PR target/48262
6293         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6294         operands, as per the specifications.
6295
6296         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6297         (vec_extract_evenv4sf): Ditto.
6298         (vec_extract_evenv8hi): Ditto.
6299         (vec_extract_evenv16qi): Ditto.
6300         (vec_extract_oddv4si): Ditto.
6301
6302 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6303
6304         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6305         high_pc attribute if the CU has no associated code. Only output
6306         DW_AT_entry_pc for CU if not generating strict dwarf and
6307         dwarf_version < 4.
6308
6309 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6310
6311         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6312         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6313         out of ...
6314         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6315         * final.c (final_start_function): Call the new function rather
6316         than using a NULL argument for dwarf2out_frame_debug.
6317
6318         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6319         that contains the prologue.
6320
6321         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6322         changed.  Print it in debugging output.
6323
6324         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6325
6326         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6327         Split most of the code into...
6328         (begin_move_insn): ... here.  New function.
6329         (ebb_sched_info): Add a pointer to it.
6330         * haifa-sched.c (scheduled_insns): New static variable.
6331         (sched_extend_ready_list): Allocate it.
6332         (schedule_block): Use it to record the order of scheduled insns.
6333         Perform RTL changes to move insns only after all scheduling
6334         decisions have been made.
6335         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6336         begin_move_insn field.
6337         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6338         * sched-int.h (struct haifa_sched_info): Remove second argument
6339         from begin_schedule_ready hook.  Add new member begin_move_insn.
6340         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6341         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6342
6343         * haifa-sched.c (prune_ready_list): New function, broken out of
6344         schedule_block.
6345         (schedule_block): Use it.
6346
6347 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6348
6349         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6350
6351 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6352
6353         * config.gcc (*-*-mingw*): Allow as option the
6354         posix threading model.
6355         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6356         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6357         definition.
6358         (CPP_SPEC): Add pthread/no-pthread handling.
6359         (LIB_SPEC): Likewise.
6360         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6361         (LIB_SPEC): Likewise.
6362         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6363         flag to pass -pthread option for shared libgcc build.
6364         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6365         for shared libgcc build.
6366         * config/i386/t-mingw-pthread: New file.
6367         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6368         New define to enable use of library pthread by default.
6369         * config/i386/mingw.opt (pthread): New driver option.
6370         (no-pthread): New driver option.
6371         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6372         * config/i386/mingw-w64.opt: Likewise.
6373
6374 2011-04-01  Gary Funck  <gary@intrepid.com>
6375
6376         * c-decl.c (grokdeclarator): Fix formatting.
6377
6378 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6379
6380         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6381         instead of n_operands.
6382         (set_storage_via_setmem): Likewise.
6383         * optabs.c (maybe_gen_insn): Likewise.
6384         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6385         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6386         (mips_expand_builtin_direct): Likewise.
6387         * config/spu/spu.c (expand_builtin_args): Likewise.
6388
6389 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6390
6391         * recog.h (insn_data_d): Add n_generator_args.
6392         * genoutput.c (data): Likewise.
6393         (output_insn_data): Print it.
6394         (max_opno, num_dups): Delete.
6395         (scan_operands): Just fill in "d->operand[...]".
6396         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6397
6398 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6399
6400         * gensupport.h (pattern_stats): New structure.
6401         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6402         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6403         (max_operand_1, max_operand_vec): Delete.
6404         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6405
6406 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6407
6408         * emit-rtl.c (emit_pattern_after_setloc): New function.
6409         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6410         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6411         (emit_pattern_after): New function.
6412         (emit_insn_after, emit_jump_insn_after): Call it.
6413         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6414         (emit_pattern_before_setloc): New function.
6415         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6416         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6417         Likewise.
6418         (emit_pattern_before): New function.
6419         (emit_insn_before, emit_jump_insn_before): Call it.
6420         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6421
6422 2011-03-31  Richard Henderson  <rth@redhat.com>
6423
6424         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6425         (dw_separate_line_info_entry): Remove.
6426         (enum dw_line_info_opcode): New.
6427         (dw_line_info_entry): Use it.
6428         (dw_line_info_table, dw_line_info_table_p): New.
6429         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6430         (line_info_table, line_info_label_num): Remove.
6431         (line_info_table_in_use): Remove.
6432         (separate_line_info_table): Remove.
6433         (separate_line_info_table_allocated): Remove.
6434         (separate_line_info_table_in_use): Remove.
6435         (LINE_INFO_TABLE_INCREMENT): Remove.
6436         (line_info_label_num): New.
6437         (cur_line_info_table): New.
6438         (text_section_line_info, cold_text_section_line_info): New.
6439         (separate_line_info): New.
6440         (SEPARATE_LINE_CODE_LABEL): Remove.
6441         (print_dwarf_line_table): Remove.
6442         (debug_dwarf): Don't dump it.
6443         (output_one_line_info_table): New.
6444         (output_line_info): Use it.
6445         (new_line_info_table): New.
6446         (set_cur_line_info_table): New.
6447         (dwarf2out_switch_text_section): Use it.
6448         (dwarf2out_begin_function): Likewise.
6449         (push_dw_line_info_entry): New.
6450         (dwarf2out_source_line): Rewrite for new line info tables.
6451         (dwarf2out_init): Remove dead initailizations.
6452
6453 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6454
6455         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6456         various flags.
6457         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6458         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6459         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6460         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6461         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6462         * opt-functions.awk (flag_init, switch_bit_fields): New.
6463         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6464         generate CL_MISSING_OK or CL_SAVE.
6465         * optc-gen.awk: Update to generate bit-field output as well as
6466         flags field.
6467         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6468         bit-field instead of CL_REJECT_DRIVER flag.
6469         * opts-common.c (generate_canonical_option,
6470         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6471         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6472         instead of CL_REJECT_NEGATIVE flag.
6473         * toplev.c (print_switch_values): Use cl_report bit-field instead
6474         of CL_REPORT flag.
6475
6476 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6477
6478         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6479         a zero minimum index only if it is redundant.
6480
6481 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6482
6483         PR rtl-optimization/48381
6484         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6485         instead of ira_class_hard_reg_index for calculating conflicting
6486         hard registers.
6487
6488 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6489
6490         * cprop.c: Clean up hash table building.
6491         (reg_avail_info): Remove.
6492         (oprs_available_p): Remove.
6493         (record_last_reg_set_info): Remove.
6494         (record_last_set_info): Remove.
6495         (reg_available_p): New function.
6496         (gcse_constant_p): Do not treat unfolded conditions as constants.
6497         (make_set_regs_unavailable): New function.
6498         (hash_scan_set): Simplify with new reg_available_p.
6499         (compute_hash_table_work): Traverse insns stream only once.
6500         Do not compute reg_avail_info. Traverse insns in reverse order.
6501         Record implicit sets after recording explicit sets from the block.
6502
6503 2011-03-31  Michael Matz  <matz@suse.de>
6504
6505         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6506
6507 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6508
6509         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6510         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6511         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6512         (h8300_mode_dependent_address_p): New function.
6513         (h8300_get_index): Make static.
6514
6515 2011-03-31  Jeff Law  <law@redhat.com>
6516
6517         * reload1.c (elimination_effects): Fix typo in recent change.
6518
6519         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6520         typo potentially leading to null pointer dereference.
6521
6522         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6523         (setup_save_areas): Corresponding changes to avoid useless
6524         assignments.
6525
6526         * jump.c (reversed_comparison_code_parts): Avoid successive return
6527         statements when REVERSE_CONDITION is defined.
6528
6529         * expr.c (expand_assignment): Avoid useless assignments.
6530         (expand_expr_real_1): Likewise.
6531         (expand_expr_real_2): Avoid useless statements.
6532
6533         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6534
6535         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6536
6537         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6538         statements.
6539
6540         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6541
6542 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6543
6544         PR target/47109
6545         * doc/tm.texi.in (TARGET_VERSION): Remove.
6546         * doc/tm.texi: Regenerate.
6547         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6548         * collect2.c (main): Don't use TARGET_VERSION.
6549         * mips-tdump.c (main): Don't use TARGET_VERSION.
6550         * mips-tfile.c (main): Don't use TARGET_VERSION.
6551         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6552         * config/rs6000/vxworksae.h: Remove.
6553         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6554         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6555         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6556         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6557         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6558         * config/arm/arm.h (TARGET_VERSION): Remove.
6559         * config/arm/coff.h (TARGET_VERSION): Remove.
6560         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6561         * config/arm/elf.h (TARGET_VERSION): Remove.
6562         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6563         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6564         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6565         * config/arm/pe.h (TARGET_VERSION): Remove.
6566         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6567         * config/arm/semi.h (TARGET_VERSION): Remove.
6568         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6569         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6570         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6571         * config/avr/avr.h (TARGET_VERSION): Remove.
6572         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6573         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6574         * config/frv/frv.h (TARGET_VERSION): Remove.
6575         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6576         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6577         * config/i386/darwin.h (TARGET_VERSION): Remove.
6578         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6579         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6580         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6581         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6582         * config/i386/gnu.h (TARGET_VERSION): Remove.
6583         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6584         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6585         * config/i386/linux.h (TARGET_VERSION): Remove.
6586         * config/i386/linux64.h (TARGET_VERSION): Remove.
6587         * config/i386/lynx.h (TARGET_VERSION): Remove.
6588         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6589         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6590         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6591         * config/i386/netware.h (TARGET_VERSION): Remove.
6592         * config/i386/nto.h (TARGET_VERSION): Remove.
6593         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6594         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6595         * config/ia64/elf.h (TARGET_VERSION): Remove.
6596         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6597         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6598         * config/ia64/linux.h (TARGET_VERSION): Remove.
6599         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6600         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6601         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6602         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6603         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6604         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6605         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6606         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6607         * config/m68k/linux.h (TARGET_VERSION): Remove.
6608         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6609         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6610         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6611         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6612         * config/mep/mep.h (TARGET_VERSION): Remove.
6613         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6614         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6615         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6616         * config/mips/linux.h (TARGET_VERSION): Remove.
6617         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6618         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6619         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6620         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6621         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6622         * config/pa/pa.h (TARGET_VERSION): Remove.
6623         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6624         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6625         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6626         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6627         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6628         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6629         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6630         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6631         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6632         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6633         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6634         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6635         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6636         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6637         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6638         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6639         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6640         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6641         * config/s390/linux.h (TARGET_VERSION): Remove.
6642         * config/s390/s390.h (TARGET_VERSION): Remove.
6643         * config/s390/tpf.h (TARGET_VERSION): Remove.
6644         * config/score/score.h (TARGET_VERSION): Remove.
6645         * config/sh/linux.h (TARGET_VERSION): Remove.
6646         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6647         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6648         * config/sh/sh.h (TARGET_VERSION): Remove.
6649         * config/sh/sh64.h (TARGET_VERSION): Remove.
6650         * config/sh/superh.h (TARGET_VERSION): Remove.
6651         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6652         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6653         * config/sparc/linux.h (TARGET_VERSION): Remove.
6654         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6655         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6656         TARGET_NAME32, TARGET_NAME): Remove.
6657         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6658         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6659         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6660         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6661         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6662         * config/spu/spu.h (TARGET_VERSION): Remove.
6663         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6664         * config/v850/v850.h (TARGET_VERSION): Remove.
6665         * config/vax/linux.h (TARGET_VERSION): Remove.
6666         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6667         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6668         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6669
6670 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6671
6672         PR target/48142
6673         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6674         frame-related from frame-unrelated adjustments to the stack pointer.
6675
6676 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6677
6678         * common.opt (fdebug-types-section): Move earlier.
6679         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6680
6681 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6682
6683         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6684         var.
6685
6686 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6687
6688         * tree.h (CASE_CHAIN): Define.
6689         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6690         (gimple_redirect_edge_and_branch): Likewise.
6691
6692 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6693
6694         PR middle-end/48367
6695         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6696         calculation.
6697
6698 2011-03-30  Jeff Law  <law@redhat.com>
6699
6700         * PR bootstrap/48371
6701         * reload1.c (reload): Fix botch in last change.
6702
6703         * reload.h (struct reload): Fix typo introduced in last change.
6704
6705 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6706
6707         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6708         Undocumented.  Remove help text.
6709         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6710         -mhard-float.
6711
6712 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6713
6714         * doc/options.texi (NegativeAlias): Document.
6715         (Alias): Mention NegativeAlias.
6716         * opt-functions.awk: Handle NegativeAlias.
6717         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6718         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6719         * opts.h (CL_NEGATIVE_ALIAS): Define.
6720         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6721         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6722         OPT_mspe_.
6723         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6724         Alias entries.
6725         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6726         mno-spe and mno-isel instead of mspe=no and -misel=no.
6727
6728 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6729
6730         * common.opt (fdebug-types-section): New flag.
6731         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6732         * dwarf2out.c (use_debug_types): New define.
6733         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6734         (print_die): Guard output of type unit signatures using
6735         use_debug_types.
6736         (build_abbrev_table): Replace assert of dwarf_version >= 4
6737         with assert on use_debug_types.
6738         (size_of_die): Likewise.
6739         (unmark_dies): Likewise.
6740         (value_format): Decide AT_ref_external form on use_debug_types.
6741         (output_die): Replace dwarf_version version check guard with
6742         use_debug_types where appropriate.
6743         (modified_type_die): Likewise.
6744         (gen_reference_type_die): Likewise.
6745         (dwarf2out_start_source_file): Likewise.
6746         (dwarf2out_end_source_file): Likewise.
6747         (prune_unused_types_walk_attribs): Likewise.
6748         (dwarf2out_finish): Likewise.
6749
6750 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6751
6752         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6753
6754 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6755
6756         PR rtl-optimization/48332
6757         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6758         mode of input operand N and modeN to its actual mode.
6759
6760 2011-03-30  Jeff Law  <law@redhat.com>
6761
6762         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6763         define accessor macro.
6764         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6765         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6766         (reg_equiv_init): Likewise.
6767         (reg_equivs_size): New variable.
6768         (reg_equiv_init_size): Remove.
6769         (allocate_initial_values): Move prototype to here from....
6770         * integrate.h (allocate_initial_values): Remove prototype.
6771         * integrate.c: Include reload.h.
6772         (allocate_initial_values): Corresponding changes.
6773         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6774         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6775         (update_equiv_regs): Corresponding changes.
6776         (ira): Corresponding changes.
6777         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6778         (push_secondary_reload): Corresponding changes.
6779         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6780         (make_memloc, find_reloads_address): Corresponding changes.
6781         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6782         (find_reloads_address_1): Corresponding changes.
6783         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6784         (refers_to_regno_for_reload_p): Corresponding changes.
6785         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6786         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6787         * reload1.c: Include ggc.h.
6788         (grow_reg_equivs): New function.
6789         (replace_pseudos_in, reload): Corresponding changes.
6790         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6791         (eliminate_regs_1, elimination_effects): Corresponding changes.
6792         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6793         (delete_output_reload): Likewise.
6794         * caller-save.c (mark_referenced_regs): Corresponding changes.
6795         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6796         * frv/predicates.md (frv_load_operand): Corresponding changes.
6797         * microblaze/microblaze.c (double_memory_operand): Corresponding
6798         changes.
6799         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6800         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6801         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6802         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6803         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6804         changes.
6805         * pa/pa.c (emit_move_sequence): Corresponding changes.
6806         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6807
6808 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6809
6810         PR target/47551
6811         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6812         structure modes.  Don't check neon_vector_mem_operand for
6813         vector or structure modes.
6814
6815 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6816             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6817
6818         PR target/43590
6819         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6820         operand 1 and reshuffle the operands to match.
6821         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6822
6823 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6824
6825         PR driver/48208
6826         * config/c.opt (F): Added 'Driver' to -F option.
6827
6828         PR driver/48260
6829         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6830           handler function.
6831         * config/darwin.opt: Added '-arch' option.
6832
6833 2011-03-30  Nick Clifton  <nickc@redhat.com>
6834
6835         * config/rx/rx.md: Add peepholes and patterns to combine
6836         extending loads and simple arithmetic instructions.
6837         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6838         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6839         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6840         modes to use pre-decrement and post-increment addressing.
6841         (rx_is_restricted_memory_address): Add range checking of REG+INT
6842         addresses.
6843         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6844         (rx_memory_move_cost): Adjust cost of stores.
6845         (rx_adjust_insn_length): New function.
6846
6847 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6848
6849         PR c/48305
6850         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6851         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6852         matching arg00/arg01 types.
6853
6854 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6855
6856         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6857         last_location to UNKNOWN_LOCATION.
6858
6859 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6860
6861         PR target/48349
6862         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6863         FLOAT_SSE_REGS.
6864
6865 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6866             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6867
6868         PR bootstrap/48337
6869         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6870         Init(PROCESSOR_V7).
6871         (sparc_cpu): Likewise.
6872         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6873         PROCESSOR_V7.
6874
6875 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6876
6877         PR target/48336
6878         PR middle-end/48342
6879         PR rtl-optimization/48345
6880         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6881         hard regs for given mode from profitable regs when doing secondary
6882         allocation.
6883
6884 2011-03-29  Jeff Law  <law@redhat.com>
6885
6886         PR bootstrap/48327
6887         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6888         do_not_duplicate field.
6889         (lookup_redirection_data): Corresponding changes.
6890         (create_duplicates): Always create a template block.
6891         (redirect_edges): Remove code which reused the original block
6892         when it was going to become unreachable code.
6893         (thread_block): Don't set do_not_duplicate field.
6894
6895 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6896
6897         * lto-opts.c (register_user_option_p, lto_register_user_option):
6898         Make type argument unsigned.
6899         * lto-streamer.h (lto_register_user_option): Make type argument
6900         unsigned.
6901         * opth-gen.awk: Make CL_* macros unsigned.
6902         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6903         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6904         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6905         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6906         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6907         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6908         (find_opt): Make lang_mask argument unsigned.
6909
6910 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6911
6912         PR rtl-optimization/48331
6913         PR rtl-optimization/48334
6914         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6915         for any used algorithm.
6916
6917 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6918
6919         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6920         to parent_max.
6921
6922 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6923
6924         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6925         (alpha_option_override): Don't set alpha_sr_alias_set.
6926         (emit_frame_store_1): Use gen_frame_mem rather than calling
6927         set_mem_alias_set.
6928         (alpha_expand_epilogue): Ditto.
6929
6930 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6931
6932         PR tree-optimization/48290
6933         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6934         vectorization, check that relevant phis in the basic block after
6935         the inner loop are really inner loop's exit phis.
6936
6937 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6938
6939         PR debug/48190
6940         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6941         (cached_dw_loc_list_def): New structure.
6942         (cached_dw_loc_list): New typedef.
6943         (cached_dw_loc_list_table): New variable.
6944         (cached_dw_loc_list_table_hash): New function.
6945         (cached_dw_loc_list_table_eq): Likewise.
6946         (add_location_or_const_value_attribute): Take a bool cache_p.
6947         Cache the list when the parameter is true.
6948         (gen_formal_parameter_die): Update caller.
6949         (gen_variable_die): Likewise.
6950         (dwarf2out_finish): Likewise.
6951         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6952         while generating debug info for the decl.
6953         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6954         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6955         (resolve_addr): Cache the result of resolving a chain of
6956         location lists.
6957
6958 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6959
6960         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6961         conflict object hard regset nodes have intersecting hard reg sets.
6962
6963         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6964         after regstat_init_n_sets_and_refs.
6965
6966         * ira.c: Add more comments at the top.
6967         (setup_stack_reg_pressure_class, setup_pressure_classes):
6968         Add comments how we compute the register pressure classes.
6969         (setup_allocno_and_important_classes): Add more comments.
6970         (setup_class_translate_array, reorder_important_classes)
6971         (setup_reg_class_relations): Add comments.
6972
6973         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6974         start of the file.
6975
6976         * ira-color.c: Add 2011 to the Copyright line.
6977         (assign_hard_reg):  Add more comments.
6978         (improve_allocation): Ditto.
6979
6980         * ira-costs.c: Add 2011 to the Copyright line.
6981         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6982         comments.
6983         (setup_regno_cost_classes_by_mode): Ditto.
6984
6985         Initial patches from ira-improv branch:
6986
6987         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6988
6989         * ira-build.c (ira_create_object): Remove initialization of
6990         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6991         (ira_create_allocno): Remove initialization of
6992         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6993         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6994         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6995         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6996         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6997         Initialize ALLOCNO_ADD_DATA.
6998         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6999         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7000         ALLOCNO_REG.
7001         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7002         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7003
7004         * ira.c (ira_reallocate): Remove.
7005         (setup_pressure_classes): Call
7006         ira_init_register_move_cost_if_necessary.  Use
7007         ira_register_move_cost instead of ira_get_register_move_cost.
7008         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7009         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7010
7011         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7012         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7013         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7014         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7015         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7016         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7017         Fix formatting.
7018         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7019         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7020         (struct allocno_color_data): New.
7021         (allocno_color_data_t): New typedef.
7022         (allocno_color_data): New definition.
7023         (ALLOCNO_COLOR_DATA): New macro.
7024         (struct object_color_data): New.
7025         (object_color_data_t): New typedef.
7026         (object_color_data): New definition.
7027         (OBJECT_COLOR_DATA): New macro.
7028         (update_copy_costs, calculate_allocno_spill_cost): Call
7029         ira_init_register_move_cost_if_necessary.  Use
7030         ira_register_move_cost instead of ira_get_register_move_cost.
7031         (move_spill_restore, update_curr_costs): Ditto.
7032         (allocno_spill_priority): Make it inline.
7033         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7034         (struct coalesce_data, coalesce_data_t): New.
7035         (allocno_coalesce_data): New definition.
7036         (ALLOCNO_COALESCE_DATA): New macro.
7037         (merge_allocnos, coalesced_allocno_conflict_p): Use
7038         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7039         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7040         (coalesce_allocnos): Ditto.
7041         (setup_coalesced_allocno_costs_and_nums): Ditto.
7042         (collect_spilled_coalesced_allocnos): Ditto.
7043         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7044         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7045         (coalesce_spill_slots): Ditto.
7046         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7047         free allocno_coalesce_data.
7048
7049         * ira-conflicts.c: Fix formatting.
7050         (process_regs_for_copy): Call
7051         ira_init_register_move_cost_if_necessary.  Use
7052         ira_register_move_cost instead of ira_get_register_move_cost.
7053         (build_object_conflicts): Optimize.
7054
7055         * ira-costs.c (record_reg_classes): Optimize.  Call
7056         ira_init_register_move_cost_if_necessary.  Use
7057         ira_register_move_cost, ira_may_move_in_cost, and
7058         ira_may_move_out_cost instead of ira_get_register_move_cost and
7059         ira_get_may_move_cost.
7060         (record_address_regs): Ditto.
7061         (scan_one_insn): Optimize.
7062         (find_costs_and_classes): Optimize.
7063         (process_bb_node_for_hard_reg_moves): Call
7064         ira_init_register_move_cost_if_necessary.  Use
7065         ira_register_move_cost instead of ira_get_register_move_cost.
7066
7067         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7068         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7069         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7070         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7071         definitions.
7072         (ira_initiate_emit_data, ira_finish_emit_data)
7073         (create_new_allocno): New functions.
7074         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7075         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7076         Use ira_register_move_cost instead of ira_get_register_move_cost.
7077
7078         * ira-int.h: Fix some comments.
7079         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7080         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7081         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7082         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7083         add_data.
7084         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7085         bitfield after mode.  Make hard_regno a short int.  Make
7086         hard_regno short.  Remove first_coalesced_allocno and
7087         next_coalesced_allocno.  Move mem_optimized_dest_p,
7088         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7089         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7090         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7091         temp, colorable_p.  Add new member add_data.
7092         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7093         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7094         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7095         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7096         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7097         (ALLOCNO_ADD_DATA): New macro.
7098         (ira_emit_data_t): New typedef.
7099         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7100         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7101         from struct ira_allocno.
7102         (ALLOCNO_EMIT_DATA): New macro.
7103         (ira_allocno_emit_data, allocno_emit_reg): New.
7104         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7105         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7106         (OBJECT_ADD_DATA): New macro.
7107         (ira_reallocate): Remove.
7108         (ira_initiate_emit_data, ira_finish_emit_data): New.
7109         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7110         (ira_init_register_move_cost_if_necessary): New.
7111         (ira_object_conflict_iter_next): Merge into
7112         ira_object_conflict_iter_cond.
7113         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7114
7115         * ira-live.c (process_single_reg_class_operands): Call
7116         ira_init_register_move_cost_if_necessary.  Use
7117         ira_register_move_cost instead of ira_get_register_move_cost.
7118
7119         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7120
7121         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7122
7123         * ira-costs.c: Fix formatting.
7124         (cost_classes, cost_classes_num): Remove.
7125         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7126         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7127         (cost_classes_del, cost_classes_htab): New.
7128         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7129         (initiate_regno_cost_classes, setup_cost_classes): New.
7130         (setup_regno_cost_classes_by_aclass): New.
7131         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7132         (record_reg_classes): Use regno_cost_classes instead of
7133         cost_classes.  Move checking opposite operand up.
7134         (record_address_regs): Use regno_cost_classes
7135         instead of cost_classes.
7136         (scan_one_insn): Ditto.  Use always general register.
7137         (print_allocno_costs): Use regno_cost_classes instead of
7138         cost_classes.
7139         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7140         (find_costs_and_classes): Set up cost classes for each registers.
7141         Use also their mode for this.  Use regno_cost_classes instead of
7142         cost_classes.
7143         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7144         cost_classes.
7145         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7146         (ira_costs, ira_set_pseudo_classes): Call
7147         initiate_regno_cost_classes and finish_regno_cost_classes.
7148
7149         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7150
7151         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7152
7153         * target.def (ira_cover_classes): Remove.
7154
7155         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7156
7157         * doc/tm.texi.in: Ditto.
7158
7159         * ira-conflicts.c: Remove mentioning cover classes from the file.
7160         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7161         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7162
7163         * targhooks.c (default_ira_cover_classes): Remove.
7164
7165         * targhooks.h (default_ira_cover_classes): Ditto.
7166
7167         * haifa-sched.c: Remove mentioning cover classes from the file.
7168         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7169         ira_pressure_classes and ira_pressure_classes_num instead of
7170         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7171         sched_regno_pressure_class instead of sched_regno_cover_class.
7172         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7173         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7174
7175         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7176         classes from the file.
7177         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7178         (struct object_hard_regs, struct object_hard_regs_node): New.
7179         (struct ira_object): New members profitable_hard_regs,
7180         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7181         (struct ira_allocno): Rename cover_class to aclass.  Rename
7182         cover_class_cost and updated_cover_class_cost to class_cost and
7183         updated_class_cost.  Remove splay_removed_p and
7184         left_conflict_size.  Add new members colorable_p.
7185         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7186         (ALLOCNO_COLORABLE_P): New macro.
7187         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7188         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7189         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7190         (OBJECT_...): Rename parameter C to O.
7191         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7192         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7193         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7194         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7195         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7196         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7197         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7198         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7199         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7200         x_ira_reg_class_subunion.
7201         (ira_max_memory_move_cost, ira_max_register_move_cost)
7202         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7203         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7204         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7205         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7206         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7207         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7208         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7209         (ira_tune_allocno_costs_and_cover_classes): Rename to
7210         ira_tune_allocno_costs.
7211         (ira_debug_hard_regs_forest): New.
7212         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7213         (ira_object_conflict_iter_next): Fix comments.
7214         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7215         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7216         cover_class to aclass.
7217         (ira_allocate_and_accumulate_costs): Ditto.
7218         (ira_allocate_and_set_or_copy_costs): Ditto.
7219
7220         * opts.c (decode_options): Remove ira_cover_class check.
7221
7222         * ira-color.c: Remove mentioning cover classes from the file.  Use
7223         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7224         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7225         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7226         (splay-tree.h): Remove include.
7227         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7228         before copy_freq_compare_func.
7229         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7230         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7231         New definitions.
7232         (hard_regs_roots, hard_regs_node_vec): Ditto.
7233         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7234         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7235         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7236         (create_new_object_hard_regs_node): Ditto.
7237         (add_new_object_hard_regs_node_to_forest): Ditto.
7238         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7239         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7240         Ditto.
7241         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7242         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7243         (remove_unused_object_hard_regs_nodes): Ditto.
7244         (enumerate_object_hard_regs_nodes): Ditto.
7245         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7246         (object_hard_regs_subnode_t): Ditto.
7247         (struct object_hard_regs_subnode): Ditto.
7248         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7249         (setup_object_hard_regs_subnode_index): Ditto.
7250         (get_object_hard_regs_subnodes_num): Ditto.
7251         (form_object_hard_regs_nodes_forest): Ditto.
7252         (finish_object_hard_regs_nodes_tree): Ditto.
7253         (finish_object_hard_regs_nodes_forest): Ditto.
7254         (allocnos_have_intersected_live_ranges_p): Rename to
7255         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7256         (pseudos_have_intersected_live_ranges_p): Rename to
7257         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7258         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7259         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7260         (update_copy_costs): Remove assert.  Skip cost update if the hard
7261         reg does not belong the class.
7262         (assign_hard_reg): Process only profitable hard regs.
7263         (uncolorable_allocnos_num): Make it scalar.
7264         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7265         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7266         and ira_reg_class_max_nregs.
7267         (bucket_allocno_compare_func): Check frequency first.
7268         (sort_bucket): Add compare function as a parameter.
7269         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7270         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7271         (push_allocno_to_stack): Rewrite for checking new allocno
7272         colorability.
7273         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7274         (push_only_colorable): Pass new parameter to sort_bucket.
7275         (push_allocno_to_spill): Remove.
7276         (allocno_spill_priority_compare): Make it inline and rewrite.
7277         (splay_tree_allocate, splay_tree_free): Remove.
7278         (allocno_spill_sort_compare): New function.
7279         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7280         build and use splay tree.  Choose first allocno in uncolorable
7281         allocno bucket to spill.  Remove setting spill cost.
7282         (all_conflicting_hard_regs): Remove.
7283         (setup_allocno_available_regs_num): Check only profitable hard
7284         regs.  Print info about hard regs nodes.
7285         (setup_allocno_left_conflicts_size): Remove.
7286         (put_allocno_into_bucket): Don't call
7287         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7288         (improve_allocation): New.
7289         (color_allocnos): Call setup_profitable_hard_regs,
7290         form_object_hard_regs_nodes_forest, improve_allocation,
7291         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7292         (print_loop_title): Use pressure classes.
7293         (color_allocnso): Ditto.
7294         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7295         and allocnos_for_spilling.
7296         (ira_sort_regnos_for_alter_reg): Don't setup members
7297         {first,next}_coalesced_allocno.
7298         (color): Remove allocating and freeing removed_splay_allocno_vec.
7299         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7300         prohibited_class_mode_regs.
7301
7302         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7303         formatting.
7304         (update_allocno_pressure_excess_length): Use pressure classes.
7305         (inc_register_pressure, dec_register_pressure): Check for pressure
7306         class.
7307         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7308         pressure class.  Use ira_reg_class_nregs instead of
7309         ira_reg_class_max_nregs.
7310         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7311         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7312         (single_reg_class): Use ira_reg_class_nregs instead of
7313         ira_reg_class_max_nregs.
7314         (process_bb_node_lives): Use pressure classes.
7315
7316         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7317         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7318         (change_loop): Use pressure classes.
7319         (modify_move_list): Call ira_set_allocno_class instead of
7320         ira_set_allocno_cover_class.
7321
7322         * ira-build.c: Remove mentioning cover classes from the file.  Use
7323         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7324         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7325         ALLOCNO_UPDATED_CLASS_COST instead of
7326         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7327         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7328         (ira_create_allocno): Remove initialization of
7329         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7330         ALLOCNO_COLORABLE_P.
7331         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7332         Update conflict regs for the objects.
7333         (create_cap_allocno): Remove assert.  Don't propagate
7334         ALLOCNO_AVAILABLE_REGS_NUM.
7335         (ira_free_allocno_costs): New function.
7336         (finish_allocno): Change a part of code into call of
7337         ira_free_allocno_costs.
7338         (low_pressure_loop_node_p): Use pressure classes.
7339         (object_range_compare_func): Don't compare classes.
7340         (setup_min_max_conflict_allocno_ids): Ditto.
7341
7342         * loop-invariant.c: Remove mentioning cover classes from the file.
7343         Use ira_pressure_classes and ira_pressure_classes_num instead of
7344         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7345         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7346         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7347         Use reg_allocno_class instead of reg_cover_class.
7348         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7349         STACK_REG_COVER_CLASS.
7350         (get_regno_cover_class): Rename to get_regno_pressure_class.
7351         (move_loop_invariants): Initialize and finalize regstat.
7352
7353         * ira.c: Remove mentioning cover classes from the file.  Add
7354         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7355         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7356         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7357         setup_class_subset_and_memory_move_costs.
7358         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7359         (setup_cover_and_important_classes): Rename to
7360         setup_allocno_and_important_classes.
7361         (setup_class_translate_array): New.
7362         (setup_class_translate): Call it for allocno and pressure classes.
7363         (cover_class_order): Rename to allocno_class_order.
7364         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7365         of ira_class_translate.
7366         (reorder_important_classes): Set up ira_important_class_nums.
7367         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7368         (print_class_cover): Rename to print_classes.  Add parameter.
7369         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7370         Print pressure classes too.
7371         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7372         setup_reg_subclasses.
7373         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7374         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7375         (setup_prohibited_class_mode_regs): Use
7376         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7377         (clarify_prohibited_class_mode_regs): New function.
7378         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7379         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7380         (ira_init_once): Initialize them.
7381         (free_register_move_costs): Process them.
7382         (ira_init): Move calls of find_reg_classes and
7383         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7384         Call clarify_prohibited_class_mode_regs.
7385         (ira_no_alloc_reg): Remove.
7386         (too_high_register_pressure_p): Use pressure classes.
7387
7388         * sched-deps.c: Remove mentioning cover classes from the file.
7389         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7390         ira_pressure_classes and ira_pressure_classes_num instead of
7391         ira_reg_class_cover_size and ira_reg_class_cover.
7392         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7393         sched_regno_pressure_class instead of sched_regno_cover_class.
7394         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7395         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7396
7397         * ira.h: Add 2010 to Copyright.
7398         (ira_no_alloc_reg): Remove external.
7399         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7400         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7401         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7402         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7403         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7404         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7405         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7406         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7407         x_ira_no_alloc_regs.
7408         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7409         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7410         ira_allocno_classes_num and ira_allocno_classes.
7411         (ira_class_translate): Rename to ira_allocno_class_translate.
7412         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7413         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7414         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7415         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7416         (ira_no_alloc_regs): New.
7417
7418         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7419         classes from the file.  Use ALLOCNO_CLASS instead of
7420         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7421         ALLOCNO_COVER_CLASS_COST.
7422         (regno_cover_class): Rename to regno_aclass.
7423         (record_reg_classes): Use ira_reg_class_subunion instead of
7424         ira_reg_class_union.
7425         (record_address_regs): Check overflow.
7426         (scan_one_insn): Ditto.
7427         (print_allocno_costs): Print total mem cost fore regional allocation.
7428         (print_pseudo_costs): Use REG_N_REFS.
7429         (find_costs_and_classes): Use classes intersected with them on the
7430         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7431         ira_reg_class_union.  Use ira_allocno_class_translate and
7432         regno_aclass instead of ira_class_translate and regno_cover_class.
7433         Modify code for finding regno_aclass.  Setup preferred classes for
7434         the next pass.
7435         (setup_allocno_cover_class_and_costs): Rename to
7436         setup_allocno_class_and_costs.  Use regno_aclass instead of
7437         regno_cover_class.  Use ira_set_allocno_class instead of
7438         ira_set_allocno_cover_class.
7439         (init_costs, finish_costs): Use regno_aclass instead of
7440         regno_cover_class.
7441         (ira_costs): Use setup_allocno_class_and_costs instead of
7442         setup_allocno_cover_class_and_costs.
7443         (ira_tune_allocno_costs_and_cover_classes): Rename to
7444         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7445         by processing objects.  Use ira_reg_class_max_nregs instead of
7446         ira_reg_class_nregs.
7447
7448         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7449
7450         * sched-int.h: Remove mentioning cover classes from the file.
7451         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7452
7453         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7454         classes from the file.
7455         (struct reg_pref): Rename coverclass into allocnoclass.
7456         (reg_cover_class): Rename to reg_allocno_class.
7457
7458         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7459
7460         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7461
7462         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7463
7464         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7465
7466         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7467
7468         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7469
7470         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7471
7472         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7473
7474         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7475
7476         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7477
7478         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7479         (i386_ira_cover_classes): Ditto.
7480
7481         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7482
7483         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7484
7485         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7486
7487         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7488
7489         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7490
7491         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7492
7493         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7494         (mips_ira_cover_classes): Ditto.
7495
7496         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7497
7498         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7499
7500         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7501
7502         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7503
7504         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7505
7506         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7507         (IRA_COVER_CLASSES_VSX): Ditto.
7508
7509         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7510         (rs6000_ira_cover_classes): Ditto.
7511
7512         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7513
7514         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7515
7516         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7517
7518         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7519
7520         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7521
7522         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7523
7524         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7525
7526         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7527
7528         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7529
7530         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7531
7532 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7533
7534         PR debug/48253
7535         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7536         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7537         dw_fde_unlikely_section_end_label, cold_in_std_section,
7538         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7539         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7540         fields.
7541         (output_fde): Use dw_fde_second_{begin,end} if second is
7542         true, otherwise dw_fde_{begin,end}.
7543         (output_call_frame_info): Test dw_fde_second_begin != NULL
7544         instead of dw_fde_switched_sections.
7545         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7546         fields, initialize new fields.  Initialize in_std_section
7547         unconditionally from the first partition.
7548         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7549         dw_fde_second_begin is non-NULL.
7550         (dwarf2out_switch_text_section): Stop initializing removed
7551         dw_fde_struct fields, initialize new fields, initialize
7552         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7553         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7554         (struct var_loc_list_def): Add last_before_switch field.
7555         (arange_table, arange_table_allocated, arange_table_in_use,
7556         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7557         (size_of_aranges): Count !in_std_section and !second_in_std_section
7558         hunks in fdes, instead of looking at arange_table_in_use.
7559         (output_aranges): Add aranges_length argument, don't call
7560         size_of_aranges here.  Instead of using aranges_table*
7561         emit ranges for fdes when !in_std_section resp.
7562         !second_in_std_section.
7563         (dw_loc_list): Break ranges crossing section switch.
7564         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7565         use dw_fde_second_end instead of dw_fde_end as end of last range.
7566         (gen_subprogram_die): Don't call add_arange.  Use
7567         dw_fde_{begin,end} for first partition and if switched
7568         section dw_fde_second_{begin,end} for the second.
7569         (var_location_switch_text_section_1,
7570         var_location_switch_text_section): New functions.
7571         (dwarf2out_begin_function): Initialize cold_text_section even
7572         when function_section () isn't text_section.
7573         (prune_unused_types): Don't walk arange_table.
7574         (dwarf2out_finish): Don't needlessly test
7575         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7576         If info_section_emitted, call size_of_aranges and if it indicates
7577         non-empty .debug_aranges, call output_aranges with the computed
7578         size.  Stop using removed dw_fde_struct fields, use
7579         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7580         for second.
7581
7582         PR debug/48203
7583         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7584         create ENTRY_VALUE if incoming or address of incoming's MEM
7585         is a hard REG.
7586         * dwarf2out.c (mem_loc_descriptor): Don't emit
7587         DW_OP_GNU_entry_value of DW_OP_fbreg.
7588         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7589         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7590         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7591         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7592         ENTRY_VALUE_EXPs.
7593         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7594         is a REG_P or MEM_P with REG_P address, compute hash directly
7595         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7596         (preserve_only_constants): Don't clear VALUES forwaring
7597         ENTRY_VALUE to some other VALUE.
7598
7599 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7600
7601         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7602         instead of GEN_INT.
7603
7604 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7605
7606         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7607         block before expanding the statement.
7608         (expand_gimple_stmt_1): Likewise.  Set them here...
7609         (expand_gimple_stmt): ...and not here.  Tidy.
7610         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7611         unknown.
7612
7613 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7614
7615         * Makefile.in: New rule for cprop.o.
7616         * gcse.c: Move constant/copy propagation to cprop.c.
7617         (compute_local_properties): Only handle expression tables.
7618         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7619         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7620         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7621         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7622         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7623         compute_cprop_data, find_used_regs, try_replace_reg,
7624         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7625         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7626         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7627         find_bypass_set, reg_killed_on_edge, bypass_block,
7628         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7629         execute_rtl_cprop, pass_rtl_cprop): Move to...
7630         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7631         moved from gcse.c to here with minor cleanups in duplicated code.
7632
7633 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7634
7635         * config/i386/i386.c (flag_opts): Fix a typo in
7636         -mavx256-split-unaligned-store.
7637
7638 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7639
7640         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7641         LIBCALL_VALUE): Remove macros.
7642         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7643         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7644         (h8300_function_value, h8300_libcall_value,
7645         h8300_function_value_regno_p): New functions.
7646
7647 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7648
7649         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7650
7651 2011-03-28  Jeff Law  <law@redhat.com>
7652
7653         * tree-ssa-threadupdate.c (redirect_edges): Call
7654         create_edge_and_update_destination_phis as needed.
7655         (create_edge_and_update_destination_phis): Accept new BB argument.
7656         All callers updated.
7657         (thread_block): Do not update the profile when threading around
7658         intermediate blocks.
7659         (thread_single_edge): Likewise.
7660         (determine_bb_domination_status): If BB is not a successor of the
7661         loop header, return NONDOMINATING.
7662         (register_jump_thread): Note when we register a jump thread around
7663         an intermediate block.
7664         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7665         (thread_across_edge): Use it.
7666
7667 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7668
7669         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7670         when for_return is 2.
7671
7672 2011-03-28  Jeff Law  <law@redhat.com>
7673
7674         * var-tracking.c (canonicalize_values_mark): Delete unused
7675         lhs assignment.
7676         (canonicalize_values_star, set_variable_part): Likewise.
7677         (clobber_variable_part, delete_variable_part): Likewise.
7678
7679 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7680
7681         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7682
7683 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7684
7685         * tree-inline.c (expand_call_inline): Do not check that destination
7686         node is analyzed.
7687         (optimize_inline_calls): Assert that destination node is analyzed.
7688         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7689         not call tree_lowering_passes.
7690         * cgraph.h (cgraph_analyze_function): Declare.
7691         * cgraphunit.c (cgraph_analyze_function): Make public.
7692
7693 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7694
7695         * config/sparc/sparc-opts.h: New.
7696         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7697         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7698         (sparc_option_override): Store processor_type enumeration rather
7699         than string in cpu_default.  Remove name and enumeration from
7700         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7701         without using sparc_select.  Use target_flags_explicit instead of
7702         fpu_option_set.
7703         * config/sparc/sparc.h (enum processor_type): Move to
7704         sparc-opts.h.
7705         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7706         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7707         HeaderInclude entry.
7708         (mcpu=, mtune=): Use Var and Enum.
7709         (sparc_processor_type): New Enum and EnumValue entries.
7710
7711 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7712             Iain Sandoe  <iains@gcc.gnu.org>
7713
7714         PR target/48245
7715         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7716
7717 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7718
7719         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7720         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7721         Insert new statements at it in lieu of STMT.
7722         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7723         * tree-vect-stmts.c (vectorizable_store): Likewise.
7724         (vectorizable_load): Likewise.
7725
7726 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7727
7728         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7729         (divtf3): Ditto.
7730         (multf3): Ditto.
7731         (subtf3): Ditto.
7732
7733 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7734
7735         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7736         unaligned 256bit load/store.
7737         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7738         (*avx_movdqu<avxmodesuffix>): Likewise.
7739
7740 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7741
7742         PR target/48288
7743         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7744         * config/pa/pa.md (iordi3): Use new predicate in expander.
7745         (iorsi3): Likewise.
7746
7747 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7748
7749         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7750         FUNCTION_VALUE_REGNO_P): Remove macros.
7751         * config/mips/mips-protos.h (mips_function_value): Remove.
7752         * config/mips/mips.c (mips_function_value): Rename to...
7753         (mips_function_value_1): ... this. Make static.  Handle receiving
7754         the function type in 'fn_decl_or_type' argument.
7755         (mips_function_value, mips_libcall_value,
7756         mips_function_value_regno_p): New function.
7757         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7758         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7759
7760 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7761
7762         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7763         and -mavx256-split-unaligned-store.
7764         (ix86_option_override_internal): Split 32-byte AVX unaligned
7765         load/store by default.
7766         (ix86_avx256_split_vector_move_misalign): New.
7767         (ix86_expand_vector_move_misalign): Use it.
7768
7769         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7770         -mavx256-split-unaligned-store.
7771
7772         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7773         256bit load/store.  Generate unaligned store on misaligned memory
7774         operand.
7775         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7776         256bit load/store.
7777         (*avx_movdqu<avxmodesuffix>): Likewise.
7778
7779         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7780         -mavx256-split-unaligned-store.
7781
7782 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7783
7784         PR target/38598
7785         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7786         Update commentary.
7787
7788 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7789
7790         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7791         opno arguments with an expand_operand.  Use create_input_operand.
7792         (mips_prepare_builtin_target): Delete.
7793         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7794         functions.
7795         (mips_expand_builtin_direct): Use create_output_operand and
7796         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7797         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7798         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7799
7800 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7801
7802         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7803         function.
7804         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7805
7806 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7807
7808         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7809         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7810         basic blocks and call commit_edge_insertions directly.
7811         (fixup_abnormal_edges): Move from here to...
7812         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7813         on the edges and return whether some have actually been inserted.
7814         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7815         compensation code.
7816
7817 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7818
7819         PR rtl-optimization/48144
7820         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7821         (merge_expr_data): ... here.
7822         (av_set_intersect): Rename to av_set_code_motion_filter.
7823         Update all callers.  Call merge_history_vect when an expression
7824         is found in both sets.
7825         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7826
7827 2011-03-26  Alan Modra  <amodra@gmail.com>
7828
7829         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7830         cmodel medium addresses.
7831         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7832         64-bit gpr loads and stores.
7833         (rs6000_secondary_reload_ppc64): New function.
7834         * config/rs6000/rs6000-protos.h: Declare it.
7835         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7836
7837 2011-03-26  Alan Modra  <amodra@gmail.com>
7838
7839         PR target/47487
7840         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7841         GNU Go in traceback table.
7842
7843 2011-03-25  Richard Henderson  <rth@redhat.com>
7844
7845         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7846         if there are exactly 6 operands.
7847         (set_storage_via_setmem): Similarly.
7848
7849 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7850
7851         * collect2.c (write_c_file_stat): Handle backslash
7852         as right-hand directory separator.
7853         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7854         checking just for slash.
7855         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7856         instead of checking for trailing slash.
7857         * gcc.c (record_temp_file): Use filename_cmp instead
7858         of strcmp.
7859         (do_spec_1): Likewise.
7860         (replace_outfile_spec_function): Likewise.
7861         (is_directory): Use filename_ncmp instead of strncmp.
7862         (print_multilib_info): Likewise.
7863         * gcov.c (find_source): Use filename_cmp instead
7864         instead of strcmp.
7865         (make_gcov_file_name): Fix order of slash/backslash
7866         checks.
7867         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7868         (add_standard_paths): Likewise.
7869         * mips-tfile.c (saber_stop): Handle backslash.
7870         * prefix.c (update_path): Use filename_ncmp instead of
7871         strncmp.
7872         * profile.c (output_location): Use filename_cmp instead
7873         of strcmp.
7874         * read-md.c (handle_toplevel_file): Handle backslash.
7875         * tlink.c (frob_extension):  Likewise.
7876         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7877         strcmp.
7878         * tree-dump.c (dequeue_and_dump): Handle backslash.
7879         * tree.c (get_file_function_name): Likewise.
7880         * gengtype.c (read_input_list): Likewise.
7881         (get_file_realbasename): Likewise.
7882         (get_output_file_with_visibility): Use filename_cmp
7883         instead of strcmp.
7884
7885 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7886
7887         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7888         case to VFPv1.
7889
7890 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7891
7892         * fold-const.c (expr_location_or): New function.
7893         (fold_truth_not_expr): Call it.
7894
7895 2011-03-25  Jeff Law  <law@redhat.com>
7896
7897         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7898         va_end.
7899         * c-family/c-common.c (def_fn_type): Likewise.
7900         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7901         * emit-rtl.c (gen_rtvec): Likewise.
7902         * lto/lto-lang.c (def_fn_type): Likewise.
7903
7904 2011-03-25  Richard Guenther  <rguenther@suse.de>
7905
7906         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7907         also generate copies.
7908         (fini_copy_prop): Handle constant values properly.
7909
7910 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7911
7912         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7913         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7914         (hash_loc_operands, compare_loc_operands): Handle
7915         DW_OP_GNU_entry_value.
7916
7917 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7918
7919         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7920         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7921         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7922         comment and use macro TARGET_64BIT_MS_ABI instead.
7923         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7924         and change default behavior for 32-bit MS_ABI.
7925         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7926         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7927         32-bit, too.
7928         (ix86_cfun_abi): Likewise.
7929         (ix86_maybe_switch_abi): Adjust comment.
7930         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7931         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7932         instead of checking for SYSV_ABI.
7933         (ix86_nsaved_sseregs): Likewise.
7934         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7935         to 16 bytes.
7936         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7937         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7938         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7939         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7940         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7941
7942 2011-03-25  Richard Guenther  <rguenther@suse.de>
7943
7944         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7945         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7946         (verify_gimple): Remove.
7947         * tree-cfg.c (verify_gimple_call): Merge verification
7948         from verify_stmts.
7949         (verify_gimple_phi): Merge verification from verify_stmts.
7950         (verify_gimple_label): New function.
7951         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7952         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7953         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7954         (verify_stmts): Rename to verify_gimple_in_cfg.
7955         (verify_gimple_in_cfg): New function.
7956         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7957         * tree-ssa.c (verify_ssa): Likewise.
7958         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7959
7960 2011-03-25  Richard Guenther  <rguenther@suse.de>
7961
7962         * passes.c (init_optimization_passes): Add FRE pass after
7963         early SRA.
7964
7965 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7966             Andrew Stubbs  <ams@codesourcery.com>
7967
7968         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7969         for Cortex-A8.
7970         (arm_movdi_vfp_cortexa8): New pattern.
7971         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7972         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7973         instructions when tuning for Cortex-A8.  Set attribute "arch".
7974         * config/arm/arm.md: Move include arm-tune.md up a bit.
7975         (define_attr "arch"): Add "onlya8" and "nota8" values.
7976         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7977
7978 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7979
7980         PR bootstrap/48282
7981         Revert:
7982         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7983
7984         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7985         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7986         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7987         * passes.c (init_optimization_passes): Move
7988         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7989
7990 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7991
7992         * c-typeck.c (comptypes_internal): Replace target
7993         hook call of comp_type_attributes by version in tree.c file.
7994         * gimple.c (gimple_types_compatible_p_1): Likewise.
7995         * tree-ssa.c (useless_type_conversion_p): Likewise.
7996         * tree.c (build_type_attribute_qual_variant): Likewise.
7997         (attribute_value_equal): New static helper function.
7998         (comp_type_attributes): New function.
7999         (merge_attributes): Use attribute_value_equal for comparison.
8000         (attribute_list_contained): Likewise.
8001         * tree.h (comp_type_attributes): New prototype.
8002
8003 2011-03-25  Richard Guenther  <rguenther@suse.de>
8004
8005         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8006         of complex types at -O0.
8007         (verify_gimple_assign_binary): Likewise.
8008         (verify_gimple_assign_ternary): Likewise.
8009
8010 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8011
8012         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8013         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8014
8015 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8016
8017         PR debug/48041
8018         * dwarf2out.c (output_abbrev_section): Only write table when
8019         abbrev_die_table_in_use > 1.
8020
8021 2011-02-24  Richard Henderson  <rth@redhat.com>
8022
8023         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8024         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8025         (alpha_expand_unaligned_load_words): Use extql.
8026         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8027         (emit_insxl): Handle all modes for consistency.
8028
8029 2011-02-24  Richard Henderson  <rth@redhat.com>
8030
8031         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8032         (alpha_expand_unaligned_load): Likewise.
8033         (alpha_expand_unaligned_store): Likewise.
8034         (alpha_expand_unaligned_load_words): Likewise.
8035         (alpha_expand_unaligned_store_words): Likewise.
8036         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8037         (alpha_split_lock_test_and_set_12): Likewise.
8038         (print_operand, alpha_fold_builtin_extxx): Likewise.
8039         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8040         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8041         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8042         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8043         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8044         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8045         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8046         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8047         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8048         (extwl, extll, extql): Similarly.
8049         (inswh, inslh, insqh): Similarly.
8050         (mskbl, mskwl, mskll, mskql): Similarly.
8051         (mskwh, msklh, mskqh): Similarly.
8052
8053 2011-02-24  Richard Henderson  <rth@redhat.com>
8054
8055         * config/alpha/alpha.md (attribute isa): Add er, ner.
8056         (attribute enabled): Handle them.
8057         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8058
8059 2011-02-24  Richard Henderson  <rth@redhat.com>
8060
8061         * config/alpha/alpha.md (attribute isa): Add vms.
8062         (attribute enabled): Handle it.
8063         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8064         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8065         (*movtf): Rename from *movtf_internal for consistency.
8066         (*movsi): Merge with *movsi_nt_vms.
8067         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8068         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8069         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8070         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8071
8072 2011-02-24  Richard Henderson  <rth@redhat.com>
8073
8074         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8075         (extendqisi2, extendhisi2): Likewise.
8076         (extendqidi2): Simplify BWX/non-BWX expansions.
8077         (extendhidi2): Similarly.
8078
8079 2011-02-24  Richard Henderson  <rth@redhat.com>
8080
8081         * config/alpha/alpha.md (attribute isa): New.
8082         (attribute enabled): New.
8083         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8084         (zero_extendqisi2, zero_extendqidi2): Similarly.
8085         (zero_extendhisi2, zero_extendhidi2): Similarly.
8086         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8087
8088 2011-02-24  Richard Henderson  <rth@redhat.com>
8089
8090         * config/alpha/predicates.md (input_operand): Revert last change;
8091         update comment to mention 32-bit VMS rather than Windows.
8092
8093 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8094
8095         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8096         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8097         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8098         * passes.c (init_optimization_passes): Move
8099         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8100
8101 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8102
8103         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8104
8105 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8106
8107         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8108         correctly.
8109
8110 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8111
8112         PR debug/48204
8113         * simplify-rtx.c (simplify_const_unary_operation): Call
8114         real_convert when changing mode class with FLOAT_EXTEND.
8115
8116 2011-03-24  Nick Clifton  <nickc@redhat.com>
8117
8118         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8119         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8120         * config/rx/rx.c (rx_option_override): Set align_jumps,
8121         align_loops and align_labels if not set by the user.
8122         (rx_align_for_label): New function.
8123         (rx_max_skip_for_label): New function.
8124         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8125         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8126         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8127         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8128         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8129
8130 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8131
8132         PR rtl-optimization/48263
8133         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8134         and original commutative_p handling.  Use maybe_gen_insn.
8135
8136 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8137
8138         * reload.c (find_reloads_subreg_address): Add address_reloaded
8139         parameter and return true there if the full address has been
8140         reloaded.
8141         (find_reloads_toplev): Pass address_reloaded flag.
8142         (find_reloads_address_1): Don't use address_reloaded parameter.
8143
8144 2011-03-24  Jeff Law  <law@redhat.com>
8145
8146         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8147         unused variable "ann".
8148         (remove_unused_locals): Likewise.
8149
8150         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8151         statement.
8152
8153         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8154         after it is freed.
8155
8156 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8157
8158         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8159         for invalid symbolic addresses.
8160         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8161         larl operands.
8162
8163 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8164
8165         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8166         the argument in calls to fold_truth_not_expr.
8167
8168 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8169
8170         * tree.c (record_node_allocation_statistics): New function.
8171         (make_node_stat, copy_node_stat, build_string): Call it.
8172         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8173         (build1_stat, build_omp_clause): Likewise.
8174
8175 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8176
8177         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8178         last commit.
8179
8180 2011-03-24  Richard Guenther  <rguenther@suse.de>
8181
8182         PR tree-optimization/48271
8183         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8184         blocks that still exist.
8185
8186 2011-03-24  Richard Guenther  <rguenther@suse.de>
8187
8188         PR tree-optimization/48270
8189         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8190         not free datarefs before ddrs.
8191
8192 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8193
8194         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8195         from the address built for a reference with variable offset.
8196
8197 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8198
8199         PR target/48237
8200         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8201         alternatives that can be handled with movq or movabsq insn.
8202         (*movdf_internal): Disable for !TARGET_64BIT.
8203         (*movdf_internal_nointeger): Ditto.
8204         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8205
8206 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8207
8208         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8209         (FUNCTION_ARG_ADVANCE): Likewise.
8210         * tm.texi.in: Change references to them to hook references.
8211         * tm.texi: Regenerate.
8212         * targhooks.c (default_function_arg): Eliminate check for target macro.
8213         (default_function_incoming_arg): Likewise.
8214         (default_function_arg_advance): Likewise.
8215         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8216         (function_arg_advance): Likewise.
8217         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8218
8219 2011-03-24  Richard Guenther  <rguenther@suse.de>
8220
8221         PR middle-end/48269
8222         * tree-object-size.c (addr_object_size): Do not double-account
8223         for MEM_REF offsets.
8224
8225 2011-03-24  Diego Novillo  <dnovillo@google.com>
8226
8227         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8228         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8229         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8230         Update all users.
8231         (lto_input_string): Rename from input_string.  Make extern.
8232         Update all users.
8233         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8234         output_string_with_length.
8235         Output 0 to indicate a non-NULL string.  Update all callers to
8236         not emit 0.
8237         (lto_output_string): Rename from output_string.  Make extern.
8238         Update all users.
8239         (lto_output_decl_state_streams): Make extern.
8240         (lto_output_decl_state_refs): Make extern.
8241         * lto-streamer.h (lto_input_string): Declare.
8242         (lto_input_data_block): Declare.
8243         (lto_output_string): Declare.
8244         (lto_output_string_with_length): Declare.
8245         (lto_output_decl_state_streams): Declare.
8246         (lto_output_decl_state_refs): Declare.
8247
8248 2011-03-24  Richard Guenther  <rguenther@suse.de>
8249
8250         PR tree-optimization/46562
8251         * tree.c (build_invariant_address): New function.
8252         * tree.h (build_invariant_address): Declare.
8253         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8254         a renamed function moved ...
8255         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8256         Take valueization callback parameter.
8257         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8258         * gimple-fold.h: New file.
8259         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8260         (ccp_fold, fold_const_aggregate_ref,
8261         fold_ctor_reference, fold_nonarray_ctor_reference,
8262         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8263         get_base_constructor): Move ...
8264         * gimple-fold.c: ... here.
8265         (gimple_fold_stmt_to_constant_1): New function
8266         split out from ccp_fold.  Take a valueization callback parameter.
8267         Valueize all operands.
8268         (gimple_fold_stmt_to_constant): New wrapper function.
8269         (fold_const_aggregate_ref_1): New function split out from
8270         fold_const_aggregate_ref.  Take a valueization callback parameter.
8271         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8272         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8273         invariant POINTER_PLUS_EXPRs to invariant form.
8274         (vn_valueize): New function.
8275         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8276         * tree-vrp.c (vrp_valueize): New function.
8277         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8278         to fold statements to constants.
8279         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8280         function declarations.
8281         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8282         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8283
8284 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8285
8286         * config/h8300/predicates.md (jump_address_operand): Fix register
8287         mode check.
8288
8289 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8290
8291         * doc/invoke.texi (max-stores-to-sink): Document.
8292         * params.h (MAX_STORES_TO_SINK): Define.
8293         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8294         if either vectorization or if-conversion is disabled.
8295         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8296         tree-vect-data-refs.c vect_equal_offsets.
8297         (dr_equal_offsets_p): New function.
8298         (find_data_references_in_bb): Remove static.
8299         * tree-data-ref.h (find_data_references_in_bb): Declare.
8300         (dr_equal_offsets_p): Likewise.
8301         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8302         (vect_drs_dependent_in_basic_block): Update calls to
8303         vect_equal_offsets.
8304         (vect_check_interleaving): Likewise.
8305         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8306         (cond_if_else_store_replacement): Rename to...
8307         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8308         documentation.
8309         (cond_if_else_store_replacement): New function.
8310         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8311         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8312
8313 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8314
8315         PR target/46934
8316         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8317         to subtract lower bound instead of GEN_INT().
8318
8319 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8320
8321         PR other/48179
8322         PR other/48221
8323         PR other/48234
8324         * doc/extend.texi (Alignment): Move section to match order in TOC.
8325         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8326         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8327
8328 2011-03-23  Jeff Law  <law@redhat.com>
8329
8330         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8331         before removing the edge.
8332
8333         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8334         it may have been freed by redirect_branch_edge or
8335         redirect_edge_succ_nodup.
8336
8337 2011-03-23  Richard Guenther  <rguenther@suse.de>
8338
8339         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8340         (check_va_list_escapes): Likewise.
8341         (check_all_va_list_escapes): Likewise.
8342
8343 2011-03-23  Richard Guenther  <rguenther@suse.de>
8344
8345         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8346         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8347         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8348         (alias.o): Likewise.
8349         (ipa-type-escape.o): Remove.
8350         (ipa-struct-reorg.o): Likewise.
8351         (GTFILES): Remove ipa-struct-reorg.c.
8352         * alias.c: Do not include ipa-type-escape.h.
8353         * tree-ssa-alias.c: Likewise.
8354         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8355         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8356         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8357         and ipa-type-escape passes.
8358         * tree-pass.h (pass_ipa_type_escape): Remove.
8359         (pass_ipa_struct_reorg): Likewise.
8360         * ipa-struct-reorg.h: Remove.
8361         * ipa-struct-reorg.c: Likewise.
8362         * ipa-type-escape.h: Likewise.
8363         * ipa-type-escape.c: Likewise.
8364         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8365         (--param struct-reorg-cold-struct-ratio): Likewise.
8366         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8367         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8368         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8369
8370 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8371
8372         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8373         cpu attribute value.
8374         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8375         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8376         * config/s390/s390.c (processor_flags_table): New constant array.
8377         (s390_handle_arch_option): Remove.
8378         (s390_handle_option): Remove s390_handle_arch_option invocations
8379         and OPT_mwarn_framesize_ handling.
8380         (s390_option_override): Remove s390_handle_arch_option invocation.
8381         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8382         warnings.
8383         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8384         * config/s390/s390.opt (s390_tune, s390_arch)
8385         (march=): Replace s390_arch_option enum and values with
8386         processor_type.  Set variable name to s390_arch.  Set
8387         initialization value.
8388         (mtune=): Replace s390_arch_option with processor_type.  Set
8389         variable name to s390_tune.  Set initialization value.
8390
8391 2011-03-23  Julian Brown  <julian@codesourcery.com>
8392
8393         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8394         accesses which are not naturally aligned.
8395
8396 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8397
8398         PR target/47553
8399         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8400
8401 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8402
8403         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8404         parameter from "int" to "enum insn_code".
8405         (expand_operand_type): New enum.
8406         (expand_operand): New structure.
8407         (create_expand_operand): New function.
8408         (create_fixed_operand, create_output_operand): Likewise
8409         (create_input_operand, create_convert_operand_to): Likewise.
8410         (create_convert_operand_from, create_address_operand): Likewise.
8411         (create_integer_operand): Likewise.
8412         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8413         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8414         (expand_insn, expand_jump_insn): Likewise.
8415         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8416         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8417         (expand_movstr, expand_builtin___clear_cache): Likewise.
8418         (expand_builtin_lock_release): Likewise.
8419         * explow.c (allocate_dynamic_stack_space): Likewise.
8420         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8421         and use the default handling in that case.
8422         * expmed.c (check_predicate_volatile_ok): Delete.
8423         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8424         (emit_cstore): Likewise.
8425         * expr.c (emit_block_move_via_movmem): Likewise.
8426         (set_storage_via_setmem, expand_assignment): Likewise.
8427         (emit_storent_insn, try_casesi): Likewise.
8428         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8429         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8430         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8431         (expand_twoval_unop, expand_twoval_binop): Likewise.
8432         (expand_unop_direct, emit_indirect_jump): Likewise.
8433         (emit_conditional_move, vector_compare_rtx): Likewise.
8434         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8435         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8436         (expand_sync_lock_test_and_set): Likewise.
8437         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8438         (emit_unop_insn): Likewise.
8439         (expand_copysign_absneg): Change icode to an insn_code.
8440         (create_convert_operand_from_type): New function.
8441         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8442         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8443         (expand_insn, expand_jump_insn): Likewise.
8444         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8445         than const_int_operand for operand 2.
8446
8447 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8448
8449         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8450         if possible.
8451
8452 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8453
8454         * emit-rtl.c (emit_pattern_before_noloc): New function.
8455         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8456         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8457         (emit_pattern_after_noloc): New function.
8458         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8459         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8460
8461 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8462
8463         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8464         (__ffsDI2): Likewise.
8465
8466 2011-03-22  Richard Henderson  <rth@redhat.com>
8467
8468         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8469         of !TARGET_ABI_OPEN_VMS.
8470         (alpha_trampoline_init, alpha_start_function): Likewise.
8471         (alpha_expand_epilogue, alpha_file_start): Likewise.
8472         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8473         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8474         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8475         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8476         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8477
8478 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8479
8480         * config/s390/s390-opts.h: New.
8481         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8482         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8483         s390_stack_guard): Remove.
8484         (s390_handle_arch_option): Return void.  Take enum
8485         s390_arch_option value instead of string and searching array.
8486         (s390_handle_option): Don't assert that global structures are in
8487         use.  Access variables via opts pointer.  Use error_at.  Don't use
8488         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8489         s390_handle_arch_option.
8490         (s390_option_override): Update call to s390_handle_arch_option.
8491         (s390_emit_prologue): Use %d format for s390_stack_size in
8492         diagnostic.  Use %wd for HOST_WIDE_INT.
8493         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8494         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8495         * config/s390/s390.opt (config/s390/s390-opts.h): New
8496         HeaderInclude entry.
8497         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8498         s390_arch_flags, s390_warn_framesize): New Variable entries.
8499         (s390_arch_option): New Enum and EnumValue entries.
8500         (march=): Use Enum instead of Var.
8501         (mstack-guard=, mstack-size=): Use UInteger and Var.
8502         (mtune=): Use Enum.
8503
8504 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8505
8506         * config/score/score.c (score_handle_option): Don't assert that
8507         global structures are in use.  Access target_flags via opts
8508         pointer.  Use value of -march= option to determine target_flags
8509         settings.
8510         * config/score/score.opt (march=): Use Enum.
8511         (score_arch): New Enum and EnumValue entries.
8512
8513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8514
8515         * config/mep/mep.c (option_mtiny_specified): Remove.
8516         (mep_option_override): Move register handling for -mivc2 from
8517         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8518         instead of option_mtiny_specified.
8519         (mep_handle_option): Access target_flags via opts pointer.  Don't
8520         assert that global structures are in use.  Defer part of -mivc2
8521         handling and move it to mep_option_override.
8522         * config/mep/mep.opt (IVC2): New Mask entry.
8523         (mivc2): Use Var and Defer instead of Mask.
8524
8525 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8526
8527         * config/v850/v850-opts.h: New.
8528         * config/v850/v850.c (small_memory): Replace with
8529         small_memory_physical_max array.  Make that array static const.
8530         (v850_handle_memory_option): Take integer value of argument.  Take
8531         gcc_options pointer, option text and location.  Return void.
8532         Update for changes to small memory structures.
8533         (v850_handle_option): Access target_flags via opts pointer.  Don't
8534         assert that global structures are in use.  Update calls to
8535         v850_handle_memory_option.
8536         (v850_encode_data_area): Update references to small memory settings.
8537         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8538         (enum small_memory_type): Move to v850-opts.h.
8539         * config/v850/v850.opt (config/v850/v850-opts.h): New
8540         HeaderInclude entry.
8541         (small_memory_max): New Variable entry.
8542         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8543         (mtda, mzda): Likewise.
8544
8545 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8546
8547         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8548         pointer.  Don't assert that global structures are in use.
8549
8550 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8551
8552         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8553         via opts pointer.  Don't assert that global structures are in use.
8554
8555 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8556
8557         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8558         (munix=93): Use Var.
8559         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8560         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8561         * config/pa/pa-opts.h: New.
8562         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8563         (pa_handle_option): Don't assert that global structures are in
8564         use.  Access target_flags via opts pointer.  Don't handle
8565         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8566         OPT_munix_98 here.
8567         (pa_option_override): Handle deferred OPT_mfixed_range_.
8568
8569 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * config/mn10300/mn10300-opts.h: New.
8572         * config/mn10300/mn10300.c (mn10300_processor,
8573         mn10300_tune_string): Remove.
8574         (mn10300_handle_option): Don't assert that global structures are
8575         in use.  Access mn10300_processor via opts pointer.  Don't handle
8576         OPT_mtune_ here.
8577         * config/mn10300/mn10300.h (enum processor_type): Move to
8578         mn10300-opts.h.
8579         (mn10300_processor): Remove.
8580         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8581         HeaderInclude entry.
8582         (mn10300_processor): New Variable entry.
8583         (mtune=): Use Var.
8584
8585 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8586
8587         * config/microblaze/microblaze.c: Don't include opts.h.
8588         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8589         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8590         (mno-clearbss): Use Var and Warn.
8591
8592 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8593
8594         * config/m32r/m32r-opts.h: New.
8595         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8596         (m32r_handle_option): Don't assert that global structures are in
8597         use.  Access target_flags and m32r_cache_flush_func via opts
8598         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8599         OPT_mno_flush_trap here.
8600         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8601         include of m32r-opts.h.
8602         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8603         HeaderInclude entry.
8604         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8605         (mmodel=): Use Enum and Var.
8606         (m32r_model): New Enum and EnumValue entries.
8607         (mno-flush-trap): Use Var.
8608         (msdata=): Use Enum and Var.
8609         (m32r_sdata): New Enum and EnumValue entries.
8610
8611 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8612
8613         * config/m32c/m32c.c: Don't include opts.h.
8614         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8615         m32c_handle_option): Remove.
8616         (m32c_option_override): Check global_options_set.x_target_memregs
8617         instead of target_memregs_set.
8618         * config/m32c/m32c.h (target_memregs): Remove.
8619         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8620         variable.
8621
8622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8623
8624         * config/iq2000/iq2000-opts.h: New.
8625         * config/iq2000/iq2000.c: Don't include opts.h.
8626         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8627         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8628         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8629         HeaderInclude entry.
8630         (iq2000_tune): New Variable entry.
8631         (march=): Add comment.  Use Enum.
8632         (iq2000_arch): New Enum and EnumValue entries.
8633         (mcpu=): Use Enum and Var.
8634         (iq2000_tune): New Enum and EnumValue entries.
8635
8636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8637
8638         * config/ia64/ia64-opts.h: New.
8639         * config/ia64/ia64.c (ia64_tune): Remove.
8640         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8641         here.  Use error_at.
8642         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8643         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8644         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8645         HeaderInclude entry.
8646         (ia64_tune): New Variable entry.
8647         (mfixed-range=): Use Defer and Var.
8648         (mtune=): Use Enum and Var.
8649         (ia64_tune): New Enum and EnumValue entries.
8650
8651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * config/frv/frv-opts.h: New.
8654         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8655         frv-opts.h.
8656         (frv_cpu_type): Remove.
8657         * config/frv/frv.c: Don't include opts.h.
8658         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8659         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8660         (frv_cpu_type): New Variable entry.
8661         (frv_cpu): New Enum and EnumValue entries.
8662
8663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8664
8665         * config/cris/cris.c (cris_handle_option): Access target_flags via
8666         opts pointer.  Don't assert that global structures are in use.
8667         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8668         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8669
8670 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8671
8672         * config/bfin/bfin-opts.h: New.
8673         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8674         bfin_si_revision, bfin_workarounds): Remove.
8675         (bfin_cpus): Make static const.
8676         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8677         not bfin_lib_id_given.
8678         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8679         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8680         pointer. Use error_at.  Don't assert that global structures are in use.
8681         * config/bfin/bfin.h: Include bfin-opts.h.
8682         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8683         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8684         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8685         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8686         entries.
8687
8688 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8689
8690         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8691         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8692         or -msoft-float here.
8693         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8694         -msoft-float and -mhard-float.
8695         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8696         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8697         msoft-float.
8698         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8699         -msoft-float.
8700         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8701         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8702         not mhard-float.
8703         (LIBGCC_SPEC): Don't handle -msoft-float.
8704         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8705         -mhard-float.
8706         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8707         msoft-float.
8708         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8709         -mfloat-abi=*, not -msoft-float and -mhard-float.
8710         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8711         -msoft-float.
8712         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8713         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8714         mhard-float and msoft-float.
8715         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8716         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8717         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8718         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8719         mhard-float.
8720         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8721         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8722         msoft-float.
8723         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8724         not mhard-float.
8725         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8726         not msoft-float.
8727
8728 2011-03-22  Richard Henderson  <rth@redhat.com>
8729
8730         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8731         TARGET_ABI_WINDOWS_NT.
8732         (alpha_output_function_end_prologue): Likewise.
8733         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8734         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8735         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8736         (trap, *movsi_nt_vms): Likewise.
8737         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8738         (*tablejump_osf_nt_internal): Remove.
8739         * config/alpha/predicates.md (input_operand): Only test Pmode.
8740
8741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8742
8743         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8744         via opts pointer.  Use error_at.  Don't assert that global
8745         structures are in use.
8746
8747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8750         (ix86_handle_option): Access ix86_isa_flags and
8751         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8752         global structures are in use.
8753         (ix86_function_specific_save, ix86_function_specific_restore):
8754         Update ix86_isa_flags_explicit field name.
8755         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8756         (ix86_isa_flags_explicit): Rename TargetSave entry to
8757         x_ix86_isa_flags_explicit.
8758
8759 2011-03-22  Richard Henderson  <rth@redhat.com>
8760
8761         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8762         (alpha_option_override, direct_return): Likewise.
8763         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8764         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8765         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8766         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8767         (alpha_expand_epilogue, alpha_end_function): Likewise.
8768         (alpha_init_libfuncs): Likewise.
8769         (struct machine_function): Remove unicosmk members.
8770         (print_operand) ['t']: Remove.
8771         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8772         unicosmk_output_module_name, unicosmk_output_common,
8773         current_section_align, unicosmk_output_text_section_asm_op,
8774         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8775         unicosmk_section_type_flags, unicosmk_unique_section,
8776         unicosmk_asm_named_section, unicosmk_insert_attributes,
8777         unicosmk_output_align, unicosmk_defer_case_vector,
8778         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8779         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8780         unicosmk_output_ssib, unicosmk_add_call_info_word,
8781         unicosmk_extern_head, unicosmk_output_default_externs,
8782         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8783         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8784         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8785         * config/alpha/alpha-protos.h: Update.
8786         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8787         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8788         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8789         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8790         (*mulsi_se, mulvsi3): Likewise.
8791         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8792         (*divmodsi_internal, call, call_value, realign): Likewise.
8793         (moddi3, umoddi3): Likewise; remove duplicate expander.
8794         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8795         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8796         (*movdi_nofix): Remove r/U alternative.
8797         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8798         * config/alpha/constraints.md ("U"): Remove.
8799         * config/alpha/predicates.md (call_operand"): Don't test
8800         TARGET_ABI_UNICOSMK.
8801
8802 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8803
8804         * target.def (handle_option): Take gcc_options and
8805         cl_decoded_option pointers and location_t.
8806         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8807         * doc/tm.texi: Regenerate.
8808         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8809         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8810         * lto-opts.c (lto_reissue_options): Generate option structure for
8811         targetm.handle_option call.
8812         * opts.c (target_handle_option): Update call to
8813         targetm.handle_option.  Remove assertions about values now passed
8814         down to hook.
8815         * targhooks.c (default_target_handle_option): New.
8816         * targhooks.h (default_target_handle_option): Declare.
8817         * config/alpha/alpha.c: Include opts.h.
8818         (alpha_handle_option): Update to new hook interface.
8819         * config/arm/arm.c: Include opts.h.
8820         (arm_handle_option): Update to new hook interface.
8821         * config/arm/t-arm (arm.o): Update dependencies.
8822         * config/bfin/bfin.c: Include opts.h.
8823         (bfin_handle_option): Update to new hook interface.
8824         * config/cris/cris.c: Include opts.h.
8825         (cris_handle_option): Update to new hook interface.
8826         * config/frv/frv.c: Include opts.h.
8827         (frv_handle_option): Update to new hook interface.
8828         * config/i386/i386.c: Include opts.h.
8829         (ix86_handle_option): Update to new hook interface.
8830         (ix86_valid_target_attribute_inner_p): Generate option structure
8831         for call to ix86_handle_option.
8832         * config/i386/t-i386 (i386.o): Update dependencies.
8833         * config/ia64/ia64.c: Include opts.h.
8834         (ia64_handle_option): Update to new hook interface.
8835         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8836         * config/iq2000/iq2000.c: Include opts.h.
8837         (iq2000_handle_option): Update to new hook interface.
8838         * config/m32c/m32c.c: Include opts.h.
8839         (m32c_handle_option): Update to new hook interface.
8840         * config/m32r/m32r.c: Include opts.h.
8841         (m32r_handle_option): Update to new hook interface.
8842         * config/m68k/m68k.c: Include opts.h.
8843         (m68k_handle_option): Update to new hook interface.
8844         * config/mep/mep.c: Include opts.h.
8845         (mep_handle_option): Update to new hook interface.
8846         * config/microblaze/microblaze.c: Include opts.h.
8847         (microblaze_handle_option): Update to new hook interface.
8848         * config/mips/mips.c: Include opts.h.
8849         (mips_handle_option): Update to new hook interface.
8850         * config/mn10300/mn10300.c: Include opts.h.
8851         (mn10300_handle_option): Update to new hook interface.
8852         * config/pa/pa.c: Include opts.h.
8853         (pa_handle_option): Update to new hook interface.
8854         * config/pdp11/pdp11.c: Include opts.h.
8855         (pdp11_handle_option): Update to new hook interface.
8856         * config/rs6000/rs6000.c: Include opts.h.
8857         (rs6000_handle_option): Update to new hook interface.
8858         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8859         * config/rx/rx.c: Include opts.h.
8860         (rx_handle_option): Update to new hook interface.
8861         * config/s390/s390.c: Include opts.h.
8862         (s390_handle_option): Update to new hook interface.
8863         * config/score/score.c: Include opts.h.
8864         (score_handle_option): Update to new hook interface.
8865         * config/sh/sh.c: Include opts.h.
8866         (sh_handle_option): Update to new hook interface.
8867         * config/sparc/sparc.c: Include opts.h.
8868         (sparc_handle_option): Update to new hook interface.
8869         * config/v850/v850.c: Include opts.h.
8870         (v850_handle_option): Update to new hook interface.
8871
8872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8873
8874         * gcc.c (driver_unknown_option_callback): Only permit and save
8875         unknown -Wno- options.
8876         (driver_wrong_lang_callback): Save options directly instead of via
8877         driver_unknown_option_callback.
8878
8879 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8880
8881         * combine.c (simplify_set): Try harder to find the best CC mode when
8882         simplifying a nested COMPARE on the RHS.
8883
8884 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8885
8886         * config/alpha/gnu.h: Remove.
8887         * config/arc: Remove directory.
8888         * config/arm/netbsd.h: Remove.
8889         * config/arm/t-pe: Remove.
8890         * config/crx: Remove directory.
8891         * config/i386/netbsd.h: Remove.
8892         * config/m68hc11: Remove directory.
8893         * config/m68k/uclinux-oldabi.h: Remove.
8894         * config/mcore/mcore-pe.h: Remove.
8895         * config/mcore/t-mcore-pe: Remove.
8896         * config/netbsd-aout.h: Remove.
8897         * config/rs6000/gnu.h: Remove.
8898         * config/sh/sh-symbian.h: Remove.
8899         * config/sh/symbian-base.c: Remove.
8900         * config/sh/symbian-c.c: Remove.
8901         * config/sh/symbian-cxx.c: Remove.
8902         * config/sh/symbian-post.h: Remove.
8903         * config/sh/symbian-pre.h: Remove.
8904         * config/sh/t-symbian: Remove.
8905         * config/svr3.h: Remove.
8906         * config/vax/netbsd.h: Remove.
8907         * config.build: Don't handle i[34567]86-*-pe.
8908         * config.gcc: Remove handling of deprecations for most deprecated
8909         targets.
8910         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8911         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8912         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8913         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8914         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8915         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8916         Remove cases.
8917         * config.host: Don't handle i[34567]86-*-pe.
8918         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8919         (ASM_SPEC32): Don't handle -mcall-gnu.
8920         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8921         -mcall-gnu.
8922         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8923         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8924         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8925         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8926         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8927         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8928         conditional on SYMBIAN.
8929         * configure.ac: Don't handle powerpc*-*-gnu*.
8930         * configure: Regenerate.
8931         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8932         * doc/install-old.texi (m6811, m6812): Don't mention.
8933         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8934         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8935         (m68k-uclinuxoldabi): Don't mention.
8936         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8937         Remove.
8938         (-mcall-gnu): Remove.
8939         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8940         families): Remove constraint documentation.
8941
8942 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8943
8944         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8945         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8946         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8947
8948 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8949
8950         PR target/48226
8951         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8952         vector when peeking at the next token for vector, don't expand the
8953         keywords.
8954
8955 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8956
8957         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8958         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8959         * config/avr/avr.c (init_cumulative_args)
8960         (avr_function_arg_advance): Use it.
8961         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8962         sibcall epilogues.
8963         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8964         (avr_function_ok_for_sibcall): ...this new function.
8965         (avr_lookup_function_attribute1): New static Function.
8966         (avr_naked_function_p, interrupt_function_p)
8967         (signal_function_p, avr_OS_task_function_p)
8968         (avr_OS_main_function_p): Use it.
8969         * config/avr/avr.md ("sibcall", "sibcall_value")
8970         ("sibcall_epilogue"): New expander.
8971         ("*call_insn", "*call_value_insn"): New insn.
8972         ("call_insn", "call_value_insn"): Remove
8973         ("call", "call_value", "epilogue"): Change expander to handle
8974         sibling calls.
8975
8976 2011-03-21  Nick Clifton  <nickc@redhat.com>
8977
8978         * doc/invoke.texi (Overall Options): Move closing brace to end of
8979         options list.
8980         (Optimization Options): Add missing @gol.
8981         (Directory Options): Likewise.
8982         (i386 and x86-64 Options): Likewise.
8983         (RS6000 and PowerPC Options): Likewise.
8984         (i386 and x86-64 Windows Options): Likewise.
8985         (V850 Options): Add text missing from descriptions.
8986
8987 2011-03-22  Richard Henderson  <rth@redhat.com>
8988
8989         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8990         (avr_incoming_return_addr_rtx): New.
8991         (emit_push_byte): New.
8992         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8993         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8994         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8995         (emit_pop_byte): New.
8996         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8997         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8998         (INCOMING_RETURN_ADDR_RTX): New.
8999         (INCOMING_FRAME_SP_OFFSET): New.
9000         (ARG_POINTER_CFA_OFFSET): New.
9001         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9002         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9003         (pophi): Remove.
9004
9005         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9006
9007 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9008
9009         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9010         (FUNCTION_ARG_ADVANCE): Likewise.
9011         * tm.texi.in: Change references to them to hook references.
9012         * tm.texi: Regenerate.
9013         * targhooks.c (default_function_arg): Eliminate check for target
9014         macro.
9015         (default_function_incoming_arg): Likewise.
9016         (default_function_arg_advance): Likewise.
9017         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9018         (function_arg_advance): Likewise.
9019         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9020
9021 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9022
9023         * tree.c (build_call_1): New function.
9024         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9025
9026 2011-03-22  Richard Guenther  <rguenther@suse.de>
9027
9028         PR tree-optimization/48228
9029         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9030         for single-arg PHIs.
9031
9032 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9033
9034         PR rtl-optimization/48143
9035         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9036         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9037         sse2_cvtps2pd): Likewise.
9038
9039 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9040
9041         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9042
9043 2011-03-22  Richard Guenther  <rguenther@suse.de>
9044
9045         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9046         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9047         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9048         and REALIGN_LOAD_EXPR.
9049         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9050         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9051         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9052         DOT_PROD_EXPR case ...
9053         (expand_expr_real_2): ... here.
9054         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9055         and REALIGN_LOAD_EXPR.
9056         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9057         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9058         (vect_create_epilog_for_reduction): Likewise.
9059         (vectorizable_reduction): Likewise.
9060         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9061         * tree-vect-stmts.c (vectorizable_load): Likewise.
9062
9063 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9064
9065         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9066
9067 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9068
9069         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9070         handling for PLTOFF/GOTOFF.
9071
9072 2011-03-22  Nick Clifton  <nickc@redhat.com>
9073
9074         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9075         trailing backslash from the end of the macro definition.
9076
9077 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9078
9079         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9080         and PLT unspecs.
9081
9082 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9083
9084         * expr.h (prepare_operand): Move to...
9085         * optabs.h (prepare_operand): ...here and change the insn code
9086         parameter from "int" to "enum insn_code".
9087         (insn_operand_matches): Declare.
9088         * expr.c (init_expr_target): Use insn_operand_matches.
9089         (compress_float_constant): Likewise.
9090         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9091         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9092         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9093         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9094         Likewise.
9095         (gen_cond_trap): Likewise.
9096         (prepare_operand): Likewise.  Change icode to an insn_code.
9097         (insn_operand_matches): New function.
9098         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9099         * reload1.c (gen_reload): Likewise.
9100         * targhooks.c (default_secondary_reload): Likewise.
9101
9102 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9103
9104         * config/alpha/alpha.md (unspec): New define_c_enum.
9105         (unspecv): Ditto.
9106
9107 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9108
9109         PR debug/48214
9110         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9111         between a call and its CALL_ARG_LOCATION note.
9112
9113 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9114
9115         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9116
9117 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9118
9119         PR c/42544
9120         PR c/48197
9121         * c-common.c (shorten_compare): If primopN is first sign-extended
9122         to opN and then zero-extended to result type, set primopN to opN.
9123
9124 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9125
9126         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9127         for barrier handlers.
9128
9129 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9130
9131         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9132         UNSPEC constants to be in the unspec enumeration, and redefine
9133         all UNSPECV constants to be in the unspecv enumeration, so that
9134         dumps print which unspec/unspec_volatile this is.
9135         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9136         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9137         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9138         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9139         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9140
9141         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9142         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9143         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9144         * config/rs6000/sync.md (isync, lwsync): Ditto.
9145
9146 2011-03-21  Richard Guenther  <rguenther@suse.de>
9147
9148         * params.def (lto-min-partition): Fix typo.
9149
9150 2011-03-21  Richard Guenther  <rguenther@suse.de>
9151
9152         PR c/47939
9153         * c-decl.c (grokdeclarator): Drop to the main variant only
9154         for array types.  Drop flag_gen_aux_info check.
9155
9156 2011-03-21  Richard Guenther  <rguenther@suse.de>
9157
9158         PR translation/47911
9159         * params.def (lto-partitions): Fix typo.
9160         (lto-min-partition): Fix wording.
9161
9162 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9163
9164         * config/rs6000/t-freebsd: Remove duplication from file.
9165
9166 2011-03-21  Richard Guenther  <rguenther@suse.de>
9167
9168         PR middle-end/47661
9169         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9170
9171 2011-03-21  Richard Guenther  <rguenther@suse.de>
9172
9173         PR lto/48210
9174         * params.def (lto-partitions): Require at least 1 partition.
9175
9176 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9177
9178         * gthr-solaris.h: Remove.
9179         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9180         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9181         (LIB_SPEC): Likewise.
9182         * config/sol2.opt (threads): Remove.
9183         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9184         (sparc*-*-solaris2*): Likewise.
9185         * configure.ac (enable_threads): Enable solaris support.
9186         * configure: Regenerate.
9187         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9188         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9189         solaris.
9190
9191 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9192
9193         * config.gcc: Obsolete *-*-solaris2.8*.
9194         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9195
9196 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9197
9198         PR bootstrap/48135
9199         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9200         reference.  Solaris 8 perl works.
9201
9202 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9203
9204         PR bootstrap/48135
9205         * doc/install.texi (Prerequisites): Move jar etc. up.
9206         Explain support library version requirements.
9207
9208 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9209
9210         PR bootstrap/48135
9211         * doc/install.texi (Prerequisites): Move Perl to build
9212         requirements.  Always necessary on Solaris 2 with Sun ld.
9213
9214 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9215
9216         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9217         binutils 2.21.
9218         (Specific, i?86-*-solaris2.[89]): Likewise.
9219         (Specific, i?86-*-solaris2.10): Likewise.
9220         (Specific, mips-sgi-irix6): Likewise.
9221         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9222         Update for binutils 2.21.
9223
9224 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9225
9226         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9227         Allow -fuse-linker-plugin for non-default plugin linker.
9228         * configure: Regenerate.
9229
9230 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9231
9232         PR bootstrap/48167
9233         * gengtype.c (files_rules): Added rule for cp/parser.h.
9234
9235 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9236
9237         PR target/48213
9238         * config/s390/s390.c (s390_delegitimize_address): Don't call
9239         lowpart_subreg if orig_x has BLKmode.
9240
9241 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9242
9243         PR target/12171
9244         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9245         * tree.h (attribute_spec): Add new member affects_type_identity.
9246         * attribs.c (empty_attribute_table): Adjust attribute_spec
9247         initializers.
9248         * config/alpha/alpha.c: Likewise.
9249         * config/arc/arc.c: Likewise.
9250         * config/arm/arm.c: Likewise.
9251         * config/avr/avr.c: Likewise.
9252         * config/bfin/bfin.c: Likewise.
9253         * config/crx/crx.c: Likewise.
9254         * config/darwin.h: Likewise.
9255         * config/h8300/h8300.c: Likewise.
9256         * config/i386/cygming.h: Likewise.
9257         * config/i386/i386.c: Likewise.
9258         * config/ia64/ia64.c: Likewise.
9259         * config/m32c/m32c.c: Likewise.
9260         * config/m32r/m32r.c: Likewise.
9261         * config/m68hc11/m68hc11.c: Likewise.
9262         * config/m68k/m68k.c: Likewise.
9263         * config/mcore/mcore.c: Likewise.
9264         * config/mep/mep.c: Likewise.
9265         * config/microblaze/microblaze.c: Likewise.
9266         * config/mips/mips.c: Likewise.
9267         * config/rs6000/rs6000.c: Likewise.
9268         * config/rx/rx.c: Likewise.
9269         * config/sh/sh.c: Likewise.
9270         * config/sol2.h: Likewise.
9271         * config/sparc/sparc.c: Likewise.
9272         * config/spu/spu.c: Likewise.
9273         * config/stormy16/stormy16.c: Likewise.
9274         * config/v850/v850.c: Likewise.
9275
9276 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9277
9278         * simplify-rtx.c (simplify_binary_operation_1): Handle
9279         (xor (and A B) C) case when B and C are both constants.
9280
9281 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9282
9283         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9284
9285 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9286
9287         PR bootstrap/48168
9288         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9289
9290 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9291
9292         PR rtl-optimization/48156
9293         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9294         assume df and df_lr are not NULL.
9295
9296 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9297
9298         PR debug/48023
9299         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9300         between a call and its CALL_ARG_LOCATION note.
9301
9302 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9303
9304         PR debug/48178
9305         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9306         between a call and its corresponding CALL_ARG_LOCATION note.
9307
9308 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9309
9310         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9311         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9312         * haifa-sched.c (setup_ref_regs): Ditto.
9313         * caller-save.c (add_used_regs_1): Ditto.
9314         * dse.c (look_for_hardregs): Ditto.
9315         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9316         * sched-rgn.c (check_live_1): Ditto.
9317
9318 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9319
9320         * c-decl.c (diagnose_mismatched_decls): Give an error for
9321         redefining a typedef with variably modified type.
9322
9323 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9324
9325         * c-decl.c (grokfield): Don't allow typedefs for structures or
9326         unions with no tag by default.
9327         * doc/extend.texi (Unnamed Fields): Update.
9328
9329 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9330
9331         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9332         Rewrite using indirect functions.
9333         (lwp_slwpcb): Ditto.
9334         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9335         (avx_vinsertf128<mode>): Ditto.
9336
9337 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9338
9339         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9340         unspecs.
9341
9342 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9343
9344         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9345         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9346
9347 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9348
9349         PR rtl-optimization/48170
9350         * gcse.c (hoist_code): Remove bogus asserts.
9351
9352 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9353
9354         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9355         computation for prologue/epilogue.
9356
9357 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9358
9359         * Makefile.in (check-consistency): Remove.
9360
9361 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9362
9363         PR debug/48176
9364         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9365         arange_table_in_use is 0, but either text_section_used or
9366         cold_text_section_used is true.  Don't call it if
9367         !info_section_emitted.
9368
9369 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9370
9371         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9372         FUNCTION_VALUE_REGNO_P): Remove.
9373         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9374         Remove.
9375         * config/avr/avr.c (avr_ret_register): Make static inline.
9376         (avr_function_value_regno_p): New function.
9377         (avr_libcall_value): Make static. Add 'func' argument.
9378         (avr_function_value): Make static. Rename 'func' argument to
9379         'fn_decl_or_type', forward it to avr_libcall_value. Call
9380         avr_ret_register function instead of RET_REGISTER macro.
9381         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9382
9383 2011-03-18  Jason Merrill  <jason@redhat.com>
9384
9385         PR c++/23372
9386         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9387
9388 2011-03-18  Richard Guenther  <rguenther@suse.de>
9389
9390         * doc/install.texi (--enable-gold): Remove.
9391         (--with-plugin-ld): Document.
9392         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9393
9394 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9395
9396         PR middle-end/47790
9397         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9398         again after expansion changes.
9399
9400 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9401
9402         * combine.c (try_combine): Do simplification only call of
9403         subst() on i2 even when i1 is present. Update comments.
9404
9405 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9406
9407         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9408         and UNSPEC_PCREL_SYMOFF.
9409
9410 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9411
9412         * config/s390/s390.md: Use define_c_enum for the unspec constant
9413         definitions.
9414
9415 2011-03-18  Richard Henderson  <rth@redhat.com>
9416             Jakub Jelinek  <jakub@redhat.com>
9417
9418         PR bootstrap/48161
9419         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9420         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9421
9422 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9423
9424         PR middle-end/47725
9425         * combine.c (cant_combine_insn_p): Don't check zero/sign
9426         extended hard registers.
9427
9428 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9429
9430         PR middle-end/47725
9431         * combine.c (cant_combine_insn_p): Check zero/sign extended
9432         hard registers.
9433
9434 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9435
9436         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9437         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9438         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9439         Change return type to bool.
9440         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9441
9442 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9443
9444         PR debug/48163
9445         * var-tracking.c (prepare_call_arguments): If CALL target
9446         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9447         pc instead of looking it up using cselib_lookup and use
9448         Pmode for it if x has VOIDmode.
9449         * dwarf2out.c (gen_subprogram_die): If also both first and
9450         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9451
9452         PR debug/48163
9453         * function.c (assign_parms): For data.passed_pointer parms
9454         use MEM of data.entry_parm instead of data.entry_parm itself
9455         as DECL_INCOMING_RTL.
9456         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9457         also when passed and declared mode is the same, DECL_RTL
9458         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9459         a MEM too.
9460
9461 2011-03-16  Jeff Law  <law@redhat.com>
9462
9463         PR rtl-optimization/37273
9464         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9465         handle them like argument loads from stack slots.  Do not double
9466         count memory for memory constants and argument loads from stack slots.
9467
9468 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9469
9470         PR debug/48160
9471         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9472
9473 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         PR target/48171
9476         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9477
9478 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9479
9480         PR bootstrap/48153
9481         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9482         if dwarf_strict.
9483         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9484         Clear call_arg_locations and call_arg_loc_last always.
9485
9486         PR middle-end/48152
9487         * var-tracking.c (prepare_call_arguments): If argument needs to be
9488         passed by reference, adjust argtype and mode.
9489
9490 2011-03-17  Richard Guenther  <rguenther@suse.de>
9491
9492         PR middle-end/48134
9493         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9494         a value make sure to fold the statement.
9495
9496 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9497
9498         PR target/43872
9499         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9500         return condition with !cfun->calls_alloca.
9501
9502 2011-03-17  Richard Guenther  <rguenther@suse.de>
9503
9504         PR bootstrap/48148
9505         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9506         origin for decls in other ltrans units.
9507         (input_varpool_node): Likewise.
9508
9509 2011-03-17  Richard Guenther  <rguenther@suse.de>
9510
9511         PR middle-end/48165
9512         * tree-object-size.c (compute_object_offset): Properly return
9513         the offset operand of MEM_REFs as sizetype.
9514
9515 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9516
9517         PR rtl-optimization/48141
9518         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9519         * dse.c: Include params.h.
9520         (active_local_stores_len): New variable.
9521         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9522         to NULL.
9523         (record_store, check_mem_read_rtx): Decrease it when removing
9524         from the chain.
9525         (scan_insn): Likewise.  Increase it when adding to chain, if it
9526         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9527         set active_local_stores to NULL before the addition.
9528         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9529
9530         PR rtl-optimization/48141
9531         * dse.c (record_store): If no positions are needed in an insn
9532         that cannot be deleted, at least unchain it from active_local_stores.
9533
9534 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9535
9536         PR debug/47510
9537         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9538         (lookup_type_die_strip_naming_typedef): ... here.
9539         (get_context_die): Use it.
9540         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9541         the anonymous struct named by the naming typedef.
9542
9543 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9544
9545         PR target/48154
9546         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9547         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9548
9549 2011-03-16  Jeff Law  <law@redhat.com>
9550
9551         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9552         check for operands of conditional.  Allow type to be a pointer.
9553
9554 2011-03-16  Richard Guenther  <rguenther@suse.de>
9555
9556         PR tree-optimization/48149
9557         * fold-const.c (fold_binary_loc): Fold
9558         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9559
9560 2011-03-16  Richard Guenther  <rguenther@suse.de>
9561
9562         PR tree-optimization/26134
9563         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9564         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9565         (non_rewritable_mem_ref_base): Handle complex type component
9566         accesses, constrain offsets for vector and complex extracts
9567         more properly.
9568
9569 2011-03-16  Richard Guenther  <rguenther@suse.de>
9570
9571         PR tree-optimization/48146
9572         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9573         operands avoiding the need for renaming.
9574
9575 2011-03-16  Richard Guenther  <rguenther@suse.de>
9576
9577         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9578         constant folding.  Move MEM_REF canonicalization first.
9579         Rely on fold_const_aggregate_ref for initializer folding.
9580         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9581
9582 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9583
9584         PR middle-end/48136
9585         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9586         arg0/arg1 or their arguments are always fold converted to matching
9587         types.
9588
9589         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9590         to nargs.
9591
9592 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9593
9594         PR lto/46944
9595         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9596         Handle in-tree gold.
9597         (ld_vers): Extract binutils version for gold.
9598         (gcc_cv_ld_hidden): Handle gold here.
9599         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9600         * configure: Regenerate.
9601         * config.in: Regenerate.
9602         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9603         -fuse-linker-plugin otherwise.
9604         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9605         (LINK_COMMAND_SPEC): Use it.
9606         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9607
9608 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9609
9610         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9611         * calls.c: Remove debug.h include.
9612         (emit_call_1): Don't call virtual_call_token debug hook.
9613         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9614         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9615         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9616         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9617         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9618         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9619         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9620         dwarf2out_virtual_call): Remove.
9621         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9622         copy_call_info and virtual_call hooks.
9623         (dwarf2out_init): Don't initialize vcall_insn_table,
9624         debug_dcall_section and debug_vcall_section.
9625         (prune_unused_types): Don't mark nodes from dcall_table.
9626         (dwarf2out_finish): Don't output dcall or vcall tables.
9627         * final.c (final_scan_insn): Don't call direct_call or
9628         virtual_call debug hooks.
9629         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9630         virtual_call_token, copy_call_info and virtual_call hooks.
9631         (debug_nothing_uid): Remove prototype.
9632         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9633         copy_call_info and virtual_call hooks.
9634         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9635         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9636         * debug.c (do_nothing_debug_hooks): Likewise.
9637         (debug_nothing_uid): Remove.
9638         * doc/invoke.texi (-fenable-icf-debug): Remove.
9639         * common.opt (-fenable-icf-debug): Likewise.
9640
9641         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9642         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9643         call's MEM.  Handle functions returning aggregate through a hidden
9644         first pointer.  For virtual calls add clobbered pc to call arguments
9645         chain.
9646         * dwarf2out.c (gen_subprogram_die): Emit
9647         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9648         can't be emitted.
9649
9650         PR debug/45882
9651         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9652         * rtl.h (ENTRY_VALUE_EXP): Define.
9653         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9654         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9655         * print-rtl.c (print_rtx): Likewise.
9656         * gengtype.c (adjust_field_rtx_def): Likewise.
9657         * var-tracking.c (vt_add_function_parameter): Adjust
9658         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9659         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9660         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9661         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9662         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9663
9664         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9665         Call var_location debug hook even on CALL_INSNs.
9666         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9667         * rtl.def (ENTRY_VALUE): New.
9668         * dwarf2out.c: Include cfglayout.h.
9669         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9670         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9671         (struct call_arg_loc_node): New type.
9672         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9673         tail_call_site_count): New variables.
9674         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9675         DW_TAG_GNU_call_site_parameter.
9676         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9677         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9678         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9679         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9680         and DW_AT_GNU_all_source_call_sites.
9681         (mem_loc_descriptor): Handle ENTRY_VALUE.
9682         (add_src_coords_attributes): Don't add enything if
9683         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9684         (dwarf2out_abstract_function): Save and clear call_arg_location,
9685         call_site_count and tail_call_site_count around dwarf2out_decl call.
9686         (gen_call_site_die): New function.
9687         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9688         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9689         (dwarf2out_function_decl): Clear call_arg_locations,
9690         call_arg_loc_last, set call_site_count and tail_call_site_count
9691         to -1 and free block_map.
9692         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9693         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9694         followed by any real instructions.
9695         (dwarf2out_begin_function): Set call_site_count and
9696         tail_call_site_count to 0.
9697         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9698         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9699         attempt to force a DIE for it and worst case remove the attribute.
9700         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9701         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9702         the decl itself.
9703         * var-tracking.c: Include tm_p.h.
9704         (vt_stack_adjustments): For calls call note_register_arguments.
9705         (argument_reg_set): New variable.
9706         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9707         ensure the VALUE is resolved.
9708         (call_arguments): New variable.
9709         (prepare_call_arguments): New function.
9710         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9711         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9712         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9713         always use the best expression.
9714         (vt_expand_loc): Add ignore_cur_loc argument.
9715         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9716         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9717         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9718         note for all calls.
9719         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9720         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9721         argument.  Don't call cselib_preserve_only_values and
9722         cselib_reset_table.
9723         (note_register_arguments): New function.
9724         (vt_initialize): Compute argument_reg_set.  Call
9725         vt_add_function_parameters before processing basic blocks instead of
9726         afterwards.  For calls call prepare_call_arguments before calling
9727         cselib_process_insn.
9728         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9729         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9730         (var-tracking.o): Depend on $(TM_P_H).
9731         * cfglayout.h (insn_scope): New prototype.
9732         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9733         * cfglayout.c (insn_scope): No longer static.
9734         * insn-notes.def (CALL_ARG_LOCATION): New.
9735         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9736         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9737         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9738         nothing for DECL_EXTERNAL BLOCK_VARS.
9739
9740 2011-03-16  Alan Modra  <amodra@gmail.com>
9741
9742         PR target/45844
9743         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9744         create invalid offset address for vsx splat insn.
9745         * config/rs6000/predicates.md (splat_input_operand): New.
9746         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9747
9748 2011-03-15  Xinliang David Li  <davidxl@google.com>
9749
9750         PR c/47837
9751         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9752         (normalize_preds): New function.
9753         (is_use_properly_guarded): Normalize def predicates.
9754
9755 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9756
9757         PR target/46788
9758         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9759         in the output template.
9760
9761 2011-03-15  Richard Guenther  <rguenther@suse.de>
9762
9763         PR middle-end/47650
9764         * tree-pretty-print.c (dump_function_declaration): Properly
9765         dump unprototyped and varargs function types.
9766
9767 2011-03-15  Richard Guenther  <rguenther@suse.de>
9768
9769         PR tree-optimization/13954
9770         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9771         and friends.
9772
9773 2011-03-15  Richard Guenther  <rguenther@suse.de>
9774
9775         PR tree-optimization/48037
9776         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9777         selects into BIT_FIELD_REFs.
9778         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9779         vector select.
9780
9781 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9782
9783         PR tree-optimization/48129
9784         * builtins.c (fold_builtin_snprintf): Convert to type of
9785         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9786         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9787
9788 2011-03-15  Richard Guenther  <rguenther@suse.de>
9789
9790         PR tree-optimization/41490
9791         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9792         value but with VUSE.
9793         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9794         return statements.
9795         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9796         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9797         * tree-tailcall.c (find_tail_calls): Ignore returns.
9798
9799 2011-03-15  Richard Guenther  <rguenther@suse.de>
9800
9801         PR middle-end/48031
9802         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9803         or variable-indexed array accesses when in gimple form.
9804
9805 2011-03-15  Richard Guenther  <rguenther@suse.de>
9806
9807         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9808
9809 2011-03-15  Alan Modra  <amodra@gmail.com>
9810
9811         PR target/48032
9812         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9813         presume symbol_refs without a symbol_ref_decl are suitably
9814         aligned, nor other trees we may see here.  Handle anchor symbols.
9815         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9816         Check cmodel=medium addresses.  Adjust all calls.
9817         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9818         creating cmodel=medium optimized access to locals.
9819         * config/rs6000/constraints.md (R): Pass QImode to
9820         legitimate_constant_pool_address_p.
9821         * config/rs6000/predicates.md (input_operand): Pass mode to
9822         legitimate_constant_pool_address_p.
9823         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9824         Update prototype.
9825
9826 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9827
9828         PR target/48053
9829         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9830         64-bit constants being loaded into registers other than GPRs such
9831         as loading 0 into a VSX register.
9832
9833 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9834
9835         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9836
9837 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9838
9839         PR middle-end/47917
9840         * builtins.c (fold_builtin_snprintf): New function.
9841         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9842         (fold_builtin_4): Likewise.
9843
9844         PR middle-end/38878
9845         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9846         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9847         and C - X == X also strip nops from +/-/p+ operand.
9848         When optimizing -X == C, fold C to arg0's type.
9849
9850         PR debug/47946
9851         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9852         emit it as add_AT_int instead of add_AT_unsigned.
9853
9854 2011-03-14  Tom Tromey  <tromey@redhat.com>
9855
9856         * unwind-dw2.c: Include sys/sdt.h if it exists.
9857         (_Unwind_DebugHook): Use STAP_PROBE2.
9858         * config.in, configure: Rebuild.
9859         * configure.ac: Check for sys/sdt.h.
9860
9861 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9862
9863         * config/i386/i386.md (ROUND_FLOOR): New constant.
9864         (ROUND_CEIL): Ditto.
9865         (ROUND_TRUNC): Ditto.
9866         (ROUND_MXCSR): Ditto.
9867         (ROUND_NO_EXC): Ditto.
9868         (rint<mode>2): Use new defines instead of numerical constants.
9869         (floor<mode>2): Ditto.
9870         (ceil<mode>2): Ditto.
9871         (btrunc<mode>2): Ditto.
9872         * config/i386/i386-builtin-types.def: Define ROUND function type
9873         aliases.
9874         * config/i386/i386.c (enum ix86_builtins): Add
9875         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9876         (struct builtin_description): Add
9877         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9878         (ix86_expand_sse_round): New static function.
9879         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9880         function types.
9881         (ix86_builtin_vectorized_function): Handle
9882         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9883
9884 2011-03-14  Tom Tromey  <tromey@redhat.com>
9885
9886         * c-parser.c (c_parser_asm_string_literal): Clear
9887         warn_overlength_strings.
9888
9889 2011-03-14  Tom Tromey  <tromey@redhat.com>
9890
9891         * c-parser.c (disable_extension_diagnostics): Save
9892         warn_overlength_strings.
9893         (restore_extension_diagnostics): Restore warn_overlength_strings.
9894
9895 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9896
9897         * BASE-VER: Change to 4.7.0.
9898
9899 2011-03-14  Richard Guenther  <rguenther@suse.de>
9900
9901         PR middle-end/48098
9902         * tree.c (build_vector_from_val): Adjust assert to requirements
9903         and reality.
9904
9905 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9906
9907         PR bootstrap/48102
9908         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9909
9910 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9911
9912         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9913         terms of target_flags_explicit. Adjust copyright year.
9914
9915         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9916         * config/rs6000/t-freebsd: New file. Add override for
9917         LIB2FUNCS_EXTRA.
9918
9919 2011-03-13  Chris Demetriou  <cgd@google.com>
9920
9921         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9922         (-fno-diagnostics-show-option): this, to reflect current default.
9923         (-Werror=): Update text about -fno-diagnostics-show-option.
9924
9925 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9926
9927         PR target/48053
9928         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9929         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9930         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9931         mode is not V2DImode or V2DFmode.
9932         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9933         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9934         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9935         registers to 0.
9936         (movdi_internal64): Likewise.
9937
9938 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9939
9940         PR tree-optimization/47127
9941         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9942         parameter.
9943         (set_cloog_options): Same.
9944         (scop_to_clast): Same.
9945         (print_clast_stmt): Do not call cloog_state_malloc and
9946         cloog_state_free.
9947         (print_generated_program): Same.
9948         (gloog): Same.
9949         * graphite-clast-to-gimple.h (cloog_state): Declared.
9950         (scop_to_clast): Adjust declaration.
9951         * graphite.c (cloog_state): Defined here.
9952         (graphite_initialize): Call cloog_state_malloc.
9953         (graphite_finalize): Call cloog_state_free.
9954
9955 2011-03-11  Jason Merrill  <jason@redhat.com>
9956
9957         * attribs.c (lookup_attribute_spec): Take const_tree.
9958         * tree.h: Adjust.
9959
9960 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * config/sparc/sparc.c (sparc_option_override): Use
9963         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9964
9965 2011-03-11  Richard Guenther  <rguenther@suse.de>
9966
9967         PR tree-optimization/48067
9968         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9969         multiplication result will be only used once on the target
9970         stmt.
9971
9972 2011-03-11  Richard Guenther  <rguenther@suse.de>
9973
9974         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9975
9976 2011-03-11  Richard Guenther  <rguenther@suse.de>
9977
9978         PR lto/48073
9979         * tree.c (find_decls_types_r): Do not walk types only reachable
9980         from IDENTIFIER_NODEs.
9981
9982 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9983
9984         PR middle-end/48044
9985         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9986         all vnode->force_output nodes as needed.
9987
9988 2011-03-11  Jason Merrill  <jason@redhat.com>
9989
9990         PR c++/48069
9991         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9992         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9993
9994 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9995
9996         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9997         cgraph_node.
9998
9999 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10000
10001         PR tree-optimization/48063
10002         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10003         inline functions called once if !tree_can_inline_p (node->callers).
10004
10005 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10006
10007         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10008         extra_objs.
10009         * config/score/score3.c: Delete.
10010         * config/score/score3.h: Delete.
10011         * config/score/mul-div.S: Delete.
10012         * config/score/sfp-machine.h: Add new file.
10013         * config/score/constraints.md: Add new file.
10014         * config/score/t-score-softfp: Add new file.
10015         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10016         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10017         (score7_extra_constraint): Delete.
10018         (score7_option_override): Remove unused code.
10019         * config/score/score.c: Remove score3 and score5 define and code.
10020         * config/score/score.h: Remove score3 and score5 define and code.
10021         * config/score/score.md: Remove score3 template and unusual insn.
10022         * config/score/score.opt: Remove score3 and score5 options.
10023
10024 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10025
10026         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10027         when _HPUX_SOURCE is defined.
10028         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10029
10030 2011-03-10  Jason Merrill  <jason@redhat.com>
10031
10032         PR c++/48029
10033         * stor-layout.c (layout_type): Don't set structural equality
10034         on arrays of incomplete type.
10035         * tree.c (type_hash_eq): Handle comparing them properly.
10036
10037 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10038
10039         PR debug/48043
10040         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10041         result mode matches original rtl mode.
10042
10043 2011-03-10  Nick Clifton  <nickc@redhat.com>
10044
10045         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10046         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10047
10048 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10049
10050         PR rtl-optimization/47866
10051         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10052         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10053         if target wasn't scalar.
10054         * function.c (assign_stack_temp_for_type): Assert that neither
10055         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10056         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10057         macro.
10058         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10059
10060 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10061
10062         * config/s390/s390-protos.h (s390_label_align): New prototype.
10063         * config/s390/s390.c (s390_label_align): New function.
10064         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10065
10066 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10067
10068         PR target/47755
10069         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10070         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10071         (output_vec_const_move): Ditto.
10072
10073 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10074
10075         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10076         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10077         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10078         Change 'rclass' argument and result type to reg_class_t.
10079         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10080
10081 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10082
10083         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10084         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10085         (TARGET_MEMORY_MOVE_COST): Define.
10086         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10087
10088 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10089
10090         PR debug/47881
10091         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10092         removed anything.
10093
10094         PR tree-optimization/48022
10095         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10096         for EQ/NE_EXPR.
10097
10098 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10099
10100         PR debug/47991
10101         * var-tracking.c (find_use_val): Return NULL for
10102         cui->sets && cui->store_p BLKmode MEMs.
10103
10104 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10105
10106         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10107         Remove.
10108         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10109         xstormy16_print_operand_address): Remove.
10110         * config/stormy16/stormy16.c (xstormy16_print_operand,
10111         xstormy16_print_operand_address): Make static.
10112         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10113
10114 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10115
10116         PR target/47862
10117         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10118         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10119         before definition.
10120
10121 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10122
10123         PR bootstrap/48000
10124         * cfgloopmanip.c (fix_bb_placements): Return immediately
10125         if FROM is BASE_LOOP's header.
10126
10127 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10128
10129         * gimplify.c (gimplify_function_tree): Fix building calls
10130         to __builtin_return_address.
10131
10132 2011-03-07  Alan Modra  <amodra@gmail.com>
10133
10134         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10135         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10136         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10137         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10138         return_mode args.
10139         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10140         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10141         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10142         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10143         * config/rs6000/rs6000.c
10144         (rs6000_elf_end_indicate_exec_stack): Rename to..
10145         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10146         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10147         (rs6000_file_start): ..here.
10148         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10149         file scope variables.
10150         (call_ABI_of_interest): New function.
10151         (init_cumulative_args): Set above vars when function return value
10152         is a float, vector, or small struct.
10153         (rs6000_function_arg_advance_1): Likewise for function args.
10154         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10155         references float args.
10156
10157 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10158
10159         * doc/cfg.texi: Remove "See" before @ref.
10160         * doc/invoke.texi: Likewise.
10161
10162 2011-03-05  Jason Merrill  <jason@redhat.com>
10163
10164         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10165
10166 2011-03-05  Anthony Green  <green@moxielogic.com>
10167
10168         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10169
10170 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10171
10172         PR rtl-optimization/47899
10173         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10174         to flow_loop_nested_p when moving the loop upward.
10175
10176 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10177
10178         PR target/47719
10179         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10180
10181 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10182
10183         PR tree-optimization/47967
10184         * ipa-cp.c (build_const_val): Return NULL instead of creating
10185         VIEW_CONVERT_EXPR for mismatching sizes.
10186         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10187         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10188         give up on versioning.
10189
10190 2011-03-05  Alan Modra  <amodra@gmail.com>
10191
10192         PR target/47986
10193         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10194         full cmodel medium/large lo_sum + high addresses.
10195
10196 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10197
10198         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10199         pool references in UNSPEC_LTREL_OFFSET.
10200
10201 2011-03-04  Jan Hubicka  <jh@suse.cz>
10202
10203         PR lto/47497
10204         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10205         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10206         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10207         Add node pointers.
10208         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10209         cgraph_add_thunk): Add node pointers.
10210         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10211         associated to right node.
10212         (input_node): Update use of cgraph_same_body_alias
10213         and cgraph_add_thunk.
10214
10215 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10216
10217         * config/i386/i386.opt (mprefer-avx128): New flag.
10218         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10219         modes when the flag -mprefer-avx128 is on.
10220
10221 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10222
10223         * dwarf2out.c (compare_loc_operands): Fix address handling.
10224
10225 2011-03-04  Alan Modra  <amodra@gmail.com>
10226
10227         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10228
10229 2011-03-04  Richard Guenther  <rguenther@suse.de>
10230
10231         PR middle-end/47968
10232         * expmed.c (extract_bit_field_1): Prefer vector modes that
10233         vec_extract patterns can handle.
10234
10235 2011-03-04  Richard Guenther  <rguenther@suse.de>
10236
10237         PR middle-end/47975
10238         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10239
10240 2011-03-04  Richard Henderson  <rth@redhat.com>
10241
10242         * explow.c (emit_stack_save): Remove 'after' parameter.
10243         (emit_stack_restore): Likewise.
10244         * expr.h: Update to match.
10245         * builtins.c, calls.c, stmt.c: Likewise.
10246         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10247         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10248         * function.c (expand_function_end): Insert the emit_stack_save
10249         sequence before parm_birth_insn instead of after.
10250
10251 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10252
10253         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10254         (ssse3_pmaddubsw128): Ditto.
10255         (ssse3_pmaddubsw): Ditto.
10256
10257 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10258
10259         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10260
10261 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10262
10263         PR c/47963
10264         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10265         on TYPE_SIZE_UNIT if it is a DECL.
10266
10267         PR debug/47283
10268         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10269         first operand is not is_gimple_mem_ref_addr, try to fold it.
10270         If the operand still isn't is_gimple_mem_ref_addr, clear
10271         MEM_EXPR on op0.
10272
10273 2011-03-03  Richard Guenther  <rguenther@suse.de>
10274
10275         PR middle-end/47283
10276         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10277         match comment.
10278         (refs_may_alias_p_1): For release branches return true if
10279         we are confused by our input.
10280
10281 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10282
10283         * config/s390/s390.c (s390_function_value): Rename to ...
10284         (s390_function_and_libcall_value): ... this.
10285         (s390_function_value): New function.
10286         (s390_libcall_value): New function.
10287         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10288         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10289         target macro definitions.
10290         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10291
10292 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10293
10294         * config/i386/freebsd64.h (CC1_SPEC): Define.
10295         * config/i386/linux64.h (CC1_SPEC): Define.
10296         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10297
10298 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10299
10300         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10301         Remove.
10302         * config/stormy16/stormy16.c: Include reload.h.
10303         (xstormy16_memory_move_cost): New function.
10304         (TARGET_MEMORY_MOVE_COST): Define.
10305
10306 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10307
10308         PR rtl-optimization/47925
10309         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10310         with side effects.  Remove the more-specific check for volatile asms.
10311
10312 2011-03-02  Alan Modra  <amodra@gmail.com>
10313
10314         PR target/47935
10315         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10316         toc relative addresses for valid offsets.
10317
10318 2011-03-01  Richard Guenther  <rguenther@suse.de>
10319
10320         PR tree-optimization/47890
10321         * tree-vect-loop.c (get_initial_def_for_induction): Set
10322         related stmt properly.
10323
10324 2011-03-01  Richard Guenther  <rguenther@suse.de>
10325
10326         PR lto/47924
10327         * lto-streamer.c (lto_record_common_node): Also register
10328         the canonical type.
10329
10330 2011-03-01  Richard Guenther  <rguenther@suse.de>
10331
10332         PR lto/46911
10333         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10334         Do not stream DECL_ABSTRACT_ORIGIN.
10335         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10336         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10337         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10338         Do not stream DECL_ABSTRACT_ORIGIN.
10339         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10340         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10341
10342 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10343
10344         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10345         FUNCTION_VALUE_REGNO_P): Remove.
10346         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10347         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10348         Add 'outgoing' argument.
10349         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10350         function.
10351         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10352         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10353
10354 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10355
10356         PR debug/28047
10357         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10358         (lookup_filename): Likewise.
10359         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10360
10361 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10362             Jakub Jelinek  <jakub@redhat.com>
10363
10364         PR middle-end/47893
10365         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10366         (assign_stack_local_1): Change last argument type to int.
10367         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10368         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10369         don't record padding space into frame_space_list nor use those areas.
10370         (assign_stack_local): Adjust caller.
10371         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10372         of assign_stack_local, pass 0 as last argument.
10373         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10374         callers.
10375
10376 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10377
10378         PR debug/47283
10379         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10380         Use target address_mode and pointer_mode hooks instead of hardcoded
10381         Pmode and ptr_mode.  Handle some simple cases of extending if
10382         POINTERS_EXTEND_UNSIGNED < 0.
10383         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10384         Call convert_debug_memory_address.
10385         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10386         convert_debug_memory_address.
10387
10388         PR middle-end/46790
10389         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10390         * configure: Regenerated.
10391         * config.in: Regenerated.
10392         * varasm.c (default_function_section): Return NULL
10393         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10394
10395 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10396
10397         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10398         the description to match the printed values.
10399
10400 2011-02-28  Richard Guenther  <rguenther@suse.de>
10401
10402         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10403         of the copied scope tree.
10404
10405 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10406
10407         * doc/extend.texi (Function Attributes): Avoid deeply (and
10408         wrongly) nested tables.
10409
10410 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10411
10412         PR middle-end/47903
10413         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10414         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10415         r isn't op0 nor op1.
10416
10417 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10418
10419         * config/avr/avr.md: Remove magic comment for emacs.
10420
10421 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10422
10423         PR target/45261
10424         * config/avr/avr.c (avr_option_override): Use error on bad options.
10425         (avr_help): New function.
10426         (TARGET_HELP): Define.
10427
10428 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10429
10430         PR target/42240
10431         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10432         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10433
10434 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10435
10436         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10437         (ARM Options): Ditto.
10438         (i386 and x86-64 Options): Ditto.
10439         (RX Options): Ditto.
10440         (SPARC Options): Ditto.
10441
10442 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10443
10444         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10445         FreeBSD 6 and later.  Generally use cpu generic.
10446
10447 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10448
10449         * doc/cpp.texi: Update copyright years.
10450
10451 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10452
10453         PR target/46898
10454         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10455
10456 2011-02-25  Jon Beniston  <jon@beniston.com>
10457
10458         PR target/46898
10459         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10460         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10461         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10462         (lm32_block_move_inline): Add type cast to remove warning.
10463         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10464         (gen_int_relational): Move declarations to start of function.
10465
10466 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10467
10468         PR tree-optimization/45470
10469         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10470         can throw internally only.
10471         * tree-vect-stmts.c (vectorizable_call): Likewise.
10472
10473 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10474
10475         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10476         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10477         * config/stormy16/stormy16-protos.h
10478         (xstormy16_preferred_reload_class): Remove.
10479         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10480         static. Change 'rclass' argument and return type to reg_class_t.
10481         (TARGET_PREFERRED_RELOAD_CLASS,
10482         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10483
10484 2011-02-24  Richard Guenther  <rguenther@suse.de>
10485
10486         * lto-streamer-in.c (input_bb): Do not find referenced vars
10487         in debug statements.
10488
10489 2011-02-23  Jason Merrill  <jason@redhat.com>
10490
10491         * common.opt (fabi-version): Document v5 and v6.
10492
10493 2011-02-23  Richard Guenther  <rguenther@suse.de>
10494
10495         PR tree-optimization/47849
10496         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10497
10498 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10499
10500         * opts-common.c (decode_cmdline_option): Print empty string
10501         argument as "" in decoded->orig_option_with_args_text.
10502         * gcc.c (execute): Print empty string argument as ""
10503         in the verbose output.
10504         (do_spec_1): Keep empty string argument.
10505
10506 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10507
10508         * config.gcc: Declare score-* and crx-* obsolete.
10509
10510 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10511
10512         PR rtl-optimization/47763
10513         * web.c (web_main): Ignore naked clobber when replacing register.
10514
10515 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10516
10517         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10518         Remove.
10519
10520 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10521
10522         PR doc/47848
10523         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10524
10525 2011-02-22  Mike Stump  <mikestump@comcast.net>
10526
10527         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10528         assembler.
10529         * configure: Regenerate.
10530
10531 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10532
10533         PR rtl-optimization/46002
10534         * ira-color.c (update_copy_costs): Change class intersection
10535         test to reg_class_contents[] test of 'hard_regno'.
10536
10537 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10538
10539         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10540         than Driver option.
10541         * config/hpux11.opt (mt): Likewise.
10542         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10543         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10544         * config/vax/elf.opt (mno-asm-pic): Likewise.
10545         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10546
10547 2011-02-21  Mike Stump  <mikestump@comcast.net>
10548
10549         PR target/47822
10550         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10551         tree so we can get save the type.
10552         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10553         for CFString instead of trying to use past the end of the builtins.
10554         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10555         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10556         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10557         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10558         Rename to darwin_builtin_cfstring.
10559         (darwin_init_cfstring_builtins): Return the built type.
10560
10561 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10562
10563         PR target/47840
10564         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10565         (_mm256_insert_epi64): Use _mm_insert_epi64.
10566
10567 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10568
10569         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10570         * config/stormy16/stormy16-protos.h
10571         (xstormy16_mode_dependent_address_p): Remove.
10572         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10573         Make static. Change return type to bool. Change argument type to
10574         const_rtx. Remove dead code.
10575         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10576
10577 2011-02-21  Richard Guenther  <rguenther@suse.de>
10578
10579         PR lto/47820
10580         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10581         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10582         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10583         TUs context.
10584         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10585         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10586
10587 2011-02-20  Richard Guenther  <rguenther@suse.de>
10588
10589         PR lto/47822
10590         * tree.c (free_lang_data_in_decl): Clean builtins from
10591         the TU decl BLOCK_VARS.
10592
10593 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10594
10595         PR debug/47620
10596         PR debug/47630
10597         * haifa-sched.c (fix_tick_ready): Skip tick computation
10598         for debug insns.
10599
10600 2011-02-19  Richard Guenther  <rguenther@suse.de>
10601
10602         PR lto/47647
10603         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10604         Remove lazy BLOCK_VARS streaming.
10605         (lto_input_ts_block_tree_pointers): Likewise.
10606         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10607
10608 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10609
10610         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10611
10612 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10613
10614         * config/i386/biarch32.h, config/i386/mach.h,
10615         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10616
10617 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10618
10619         PR target/47800
10620         * config/i386/i386.md (peephole2 for shift and plus): Use
10621         operands[1] original mode in the first insn.
10622
10623 2011-02-18  Mike Stump  <mikestump@comcast.net>
10624
10625         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10626
10627 2011-02-18  Jan Hubicka  <jh@suse.cz>
10628
10629         PR middle-end/47788
10630         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10631         to zero when the function is not inlinable at all.
10632
10633 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10634
10635         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10636         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10637         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10638         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10639         * config/pa/t-pa64: Likewise.
10640         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10641
10642 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10643
10644         PR driver/47787
10645         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10646
10647 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10648
10649         PR target/47792
10650         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10651
10652 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10653
10654         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10655         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10656         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10657         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10658         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10659         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10660         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10661         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10662         m32r_legitimate_address_p): New functions.
10663         * config/m32r/constraints.md (constraint "S"): Don't use
10664         STORE_PREINC_PREDEC_P.
10665         (constraint "U"): Don't use LOAD_POSTINC_P.
10666
10667 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10668
10669         PR rtl-optimization/46178
10670         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10671         compute ira_hard_regno_cover_class[].
10672
10673 2011-02-18  Richard Guenther  <rguenther@suse.de>
10674
10675         PR lto/47798
10676         * lto-streamer.h (lto_global_var_decls): Declare.
10677         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10678         statics for global var processing.
10679
10680 2011-02-18  Richard Guenther  <rguenther@suse.de>
10681
10682         PR tree-optimization/47737
10683         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10684         edge dominance check.
10685
10686 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10687
10688         PR debug/47780
10689         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10690         avoid invalid rtx sharing.
10691
10692 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10693
10694         * doc/cpp.texi (Obsolete Features): Add background on the
10695         origin of assertions.
10696
10697 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10698
10699         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10700         objc_abi == 2.
10701         * config/darwin.c (output_objc_section_asm_op): Added support for
10702         ABI v1 and v2.
10703         (is_objc_metadata): New.
10704         (darwin_objc2_section): New.
10705         (darwin_objc1_section): New.
10706         (machopic_select_section): Added support for ABI v1 and v2.
10707         (darwin_emit_objc_zeroed): New.
10708         (darwin_output_aligned_bss): Detect objc metadata and treat it
10709         appropriately.
10710         (darwin_asm_output_aligned_decl_common): Same.
10711         (darwin_asm_output_aligned_decl_local): Same.
10712         * config/darwin-sections.def: Updated for ABI v1 and v2.
10713         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10714         compiling Objective-C code for the NeXT runtime, default to using
10715         ABI version 0 for 32-bit, and version 2 for 64-bit.
10716
10717 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10718
10719         * common.opt (optimize_fast): New Variable.
10720         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10721         instead of local variable ofast.
10722
10723 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10724
10725         * doc/invoke.texi (fobjc-abi-version): Documented.
10726         (fobjc-nilcheck): Documented.
10727         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10728         version.
10729
10730 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10731
10732         PR driver/47390
10733         * common.opt (export-dynamic): New Driver option.
10734         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10735
10736 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10737
10738         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10739
10740 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10741             Jan Hubicka  <jh@suse.cz>
10742
10743         PR debug/47106
10744         PR debug/47402
10745         * cfgexpand.c (account_used_vars_for_block): Remove.
10746         (estimated_stack_frame_size): Use referenced vars.
10747         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10748         that were referenced in the original function.  Test src_fn
10749         rather than cfun.  Drop redundant get_var_ann.
10750         (setup_one_parameter): Drop redundant get_var_ann.
10751         (declare_return_variable): Likewise.
10752         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10753         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10754         * ipa-inline.c (compute_inline_parameters): Do not compute
10755         disregard_inline_limits here.
10756         (compute_inlinable_for_current, pass_inlinable): New.
10757         (pass_inline_parameters): Require PROP_referenced_vars.
10758         * cgraphunit.c (cgraph_process_new_functions): Don't run
10759         compute_inline_parameters explicitly unless function is in SSA form.
10760         (cgraph_analyze_function): Set .disregard_inline_limits.
10761         * tree-sra.c (convert_callers): Compute inliner parameters
10762         only for functions already in SSA form.
10763
10764 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10765
10766         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10767         -mlittle-endian-data.
10768
10769 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10770
10771         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10772         -mno-fpu, not -fpu and -no-fpu.
10773         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10774         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10775
10776 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10777
10778         PR target/43653
10779         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10780         input reload with PLUS RTX.
10781
10782 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10783
10784         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10785         of InverseVar(MDMX).
10786
10787 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10788
10789         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10790         --m4-340.
10791
10792 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10793
10794         * config/mn10300/mn10300.opt (mno-crt0): New.
10795
10796 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * config/m68k/uclinux.opt (static-libc): New Driver option.
10799
10800 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10801
10802         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10803
10804 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10805
10806         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10807         %{muser-extend-enabled}.
10808
10809 2011-02-16  Richard Guenther  <rguenther@suse.de>
10810
10811         PR tree-optimization/47738
10812         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10813         the TODO from tree_predictive_commoning.
10814
10815 2011-02-15  Jeff Law  <law@redhat.com>
10816
10817         Revert
10818         2011-01-25  Jeff Law  <law@redhat.com>
10819
10820         PR rtl-optimization/37273
10821         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10822         handle them like argument loads from stack slots.  Do not double
10823         count memory for memory constants and argument loads from stack slots.
10824
10825 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10826
10827         PR middle-end/47725
10828         * combine.c (cant_combine_insn_p): Revert the last change.
10829
10830 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10831
10832         PR target/47755
10833         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10834         mode for vector constants.  Remove code that checks for TImode.
10835
10836 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10837
10838         PR debug/47106
10839         PR debug/47402
10840         * cgraph.h (compute_inline_parameters): Return void.
10841         * ipa-inline.c (compute_inline_parameters): Adjust.
10842
10843 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10844
10845         PR debug/47106
10846         PR debug/47402
10847         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10848         rather than decl.
10849         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10850         * ipa-inline.c (compute_inline_parameters): Adjust.
10851
10852 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10853
10854         PR debug/47106
10855         PR debug/47402
10856         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10857         Adjust all users.  Pass FN to...
10858         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10859         fn argument.
10860         * ipa-struct-reorg.c: Adjust.
10861         * tree-dfa.c: Adjust.
10862         * tree-into-ssa.c: Adjust.
10863         * tree-sra.c: Adjust.
10864         * tree-ssa-alias.c: Adjust.
10865         * tree-ssa-live.c: Adjust.
10866         * tree-ssa.c: Adjust.
10867         * tree-ssanames.c: Adjust.
10868         * tree-tailcall.c: Adjust.
10869
10870 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10871
10872         PR debug/47106
10873         PR debug/47402
10874         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10875         Adjust all callers.
10876         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10877         * tree-flow-inline.h: Adjust.
10878         * gimple-pretty-print.c: Adjust.
10879         * tree-into-ssa.c: Adjust.
10880         * tree-ssa.c: Adjust.
10881         * cfgexpand.c: Adjust.
10882
10883 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10884
10885         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10886         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10887         (EXTRA_CONSTRAINT): Delete.
10888         * config/iq2000/constraints.md: New file.
10889         * config/iq2000/iq2000.md: Include it.
10890         (define_insn ""): Delete.
10891         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10892         unsupported constraint letters from patterns.
10893         (call_value, call_value_internal1): Likewise.
10894         (call_value_multiple_internal1): Likewise.
10895
10896 2011-02-15  Nick Clifton  <nickc@redhat.com>
10897
10898         * config/mn10300/mn10300.c: Include tm-constrs.h.
10899         (struct liw_data): New data structure describing an LIW candidate
10900         instruction.
10901         (extract_bundle): Use struct liw_data.  Allow small integer
10902         operands for some instructions.
10903         (check_liw_constraints): Use struct liw_data.  Remove swapped
10904         parameter.  Add comments describing the checks.  Fix bug when
10905         assigning the source of liw1 to the source of liw2.
10906         (liw_candidate): Delete.  Code moved into extract_bundle.
10907         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10908         before swapping.
10909         * config/mn10300/predicates.md (liw_operand): New predicate.
10910         Allows registers and small integer constants.
10911         * config/mn10300/constraints.md (O): New constraint.  Accetps
10912         integers in the range -8 to +7 inclusive.
10913         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10914         for moving a small integer into a register.  Give this alternative
10915         LIW attributes.
10916         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10917         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10918         using the J,K,L and M constraints,
10919         (liw): Remove SI mode on second operands to allow for HI and QI
10920         mode values.
10921         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10922         instruction.
10923
10924 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10925
10926         PR middle-end/47725
10927         * combine.c (cant_combine_insn_p): Check zero/sign extended
10928         hard registers.
10929
10930 2011-02-15  Richard Guenther  <rguenther@suse.de>
10931
10932         PR tree-optimization/47743
10933         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10934         for a non-type-compatible VN lookup bail out.
10935
10936 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10937
10938         * config/fr30/constraints.md: New file.
10939         * config/fr30/fr30.md: Include it.
10940         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10941         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10942         (EXTRA_CONSTRAINT): Delete.
10943
10944 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10945
10946         * config/frv/constraints.md: New file.
10947         * config/frv/predicates.md: Include it.
10948         * config/frv/frv.c (reg_class_from_letter): Delete.
10949         (frv_option_override): Don't initialize it.
10950         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10951         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10952         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10953         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10954         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10955         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10956         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10957         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10958         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10959         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10960         (REG_CLASS_FROM_CONSTRAINT): Delete.
10961
10962 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10963
10964         PR middle-end/47581
10965         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10966         if frame size is 0 in a leaf function.
10967
10968 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10969
10970         PR pch/14940
10971         * config/alpha/host-osf.c: New file.
10972         * config/alpha/x-osf: New file.
10973         * config.host (alpha*-dec-osf*): Use it.
10974
10975 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10976
10977         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10978         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10979         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10980         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10981         type to const_rtx.
10982         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10983
10984 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10985
10986         * config/stormy16/constraints.md: New file.
10987         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10988         Use satisfies_constraint_Q and satisfies_constraint_R.
10989         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10990         Delete.
10991         (xstormy16_legitiamte_address_p): Declare.
10992         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10993         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10994         (EXTRA_CONSTRAINT): Delete.
10995         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10996         Un-staticize.
10997         (xstormy16_extra_constraint_p): Delete.
10998
10999 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11000
11001         PR tree-optimization/46494
11002         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11003         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11004         (pass_rtl_loop_done): Add TODO_verify_flow.
11005         * fwprop.c (pass_rtl_fwprop): Likewise.
11006         * modulo-sched.c (pass_sms): Likewise.
11007         * tree-ssa-dom.c (pass_dominator): Likewise.
11008         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11009         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11010         (pass_tree_loop_done): Likewise.
11011         * tree-ssa-pre.c (execute_pre): Likewise.
11012         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11013         * tree-ssa-sink.c (pass_sink_code): Likewise.
11014         * tree-vrp.c (pass_vrp): Likewise.
11015
11016 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11017
11018         * config/v850/constraints.md: New file.
11019         * config/v850/v850.md: Include it.
11020         * config/v850/predicates.md (reg_or_0_operand): Use
11021         satisfies_constraint_G.
11022         (special_symbolref_operand): Use satisfies_constraint_K.
11023         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11024         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11025         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11026         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11027         (EXTRA_CONSTRAINT): Delete.
11028         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11029         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11030         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11031
11032 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11033
11034         PR target/47696
11035         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11036         description.
11037
11038 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11039
11040         * config/mcore/constraints.md: New file.
11041         * config/mcore/mcore.md: Include it.
11042         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11043         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11044         (REG_CLASS_FROM_LETTER): Delete.
11045         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11046         insn_const_int_ok_for_constraint.
11047         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11048         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11049         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11050         (EXTRA_CONSTRAINT): Delete.
11051
11052 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11053
11054         PR ada/41929
11055         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11056         (IS_SIGHANDLER): Define.
11057         (sparc64_is_sighandler): New function, split off from
11058         sparc64_fallback_frame_state.
11059         (sparc_is_sighandler): New function, split off from
11060         sparc_fallback_frame_state.
11061         (sparc64_fallback_frame_state): Merge with ...
11062         (sparc_fallback_frame_state): ... this into ...
11063         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11064         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11065         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11066         stack instead of hardcoded offsets.
11067
11068 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11069
11070         PR target/45808
11071         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11072
11073 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11074
11075         * configure: Regenerate.
11076
11077 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11078
11079         PR driver/45731
11080         * gcc.c (asm_options): Correct spec matching --target-help.
11081
11082 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11083
11084         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11085         to gimple call error.
11086
11087 2011-02-12  Mike Stump  <mikestump@comcast.net>
11088
11089         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11090         comments in backslash regions.
11091
11092 2011-02-12  Mike Stump  <mikestump@comcast.net>
11093             Jakub Jelinek  <jakub@redhat.com>
11094             Iain Sandoe  <iains@gcc.gnu.org>
11095
11096         PR target/47324
11097         * dwarf2out.c (output_cfa_loc): When required, apply the
11098         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11099         (output_loc_sequence): Likewise.
11100         (output_loc_operands_raw): Likewise.
11101         (output_loc_sequence_raw): Likewise.
11102         (output_cfa_loc): Likewise.
11103         (output_loc_list): Suppress register number adjustment when
11104         calling output_loc_sequence()
11105         (output_die): Likewise.
11106
11107 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11108
11109         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11110         Remove macros.
11111         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11112         xtensa_memory_move_cost): New functions.
11113         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11114
11115 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11116
11117         PR lto/47225
11118         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11119         in the current directory.
11120         * configure: Rebuilt.
11121
11122 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11123
11124         * config/darwin.c (darwin_override_options): Add a hunk missed
11125         from the commit of r168571.  Trim comment line lengths and
11126         correct indents of the preceding block.
11127
11128 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11129
11130         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11131         the switch.
11132
11133 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * common.opt (nostartfiles): New Driver option.
11136
11137 2011-02-11  Xinliang David Li  <davidxl@google.com>
11138
11139         PR tree-optimization/47707
11140         * tree-chrec.c (convert_affine_scev): Keep type precision.
11141
11142 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11143
11144         PR tree-optimization/47420
11145         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11146
11147 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11148
11149         PR rtl-optimization/47614
11150         * rtl.h (check_for_inc_dec): Declare.
11151         * dse.c (check_for_inc_dec): Externalize...
11152         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11153         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11154
11155 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11156
11157         PR driver/47678
11158         * gcc.c (main): Do not compile inputs if there were errors in
11159         option handling.
11160         * opts-common.c (read_cmdline_option): Check for wrong language
11161         after other error checks.
11162
11163 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11164
11165         * cgraph.c: Fix comment typos.
11166         * cgraph.h: Likewise.
11167         * cgraphunit.c: Likewise.
11168         * ipa-cp.c: Likewise.
11169         * ipa-inline.c: Likewise.
11170         * ipa-prop.c: Likewise.
11171         * ipa-pure-const.c: Likewise.
11172         * ipa-ref.c: Likewise.
11173         * ipa-reference.c: Likewise.
11174
11175 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11176
11177         PR debug/47684
11178         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11179
11180 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11181
11182         PR testsuite/47400
11183         * doc/sourcebuild.texi (Require Support): Document
11184         dg-require-ascii-locale.
11185
11186 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11187
11188         * doc/lto.texi (Write summary): Fix missing parentheses.
11189
11190 2011-02-10  DJ Delorie  <dj@redhat.com>
11191
11192         * config/m32c/m32c.c (m32c_option_override): Disable
11193         -fcombine-stack-adjustments until flag value tracking and compare
11194         optimization can be rewritten.
11195
11196 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11197
11198         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11199         PROCESSOR_POWER7.
11200         (PROCESSOR_DEFAULT64): Likewise.
11201
11202 2011-02-10  Richard Henderson  <rth@redhat.com>
11203
11204         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11205         change from 2011-02-03.
11206         * config/rx/rx.c (flags_from_code): Likewise.
11207         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11208         is valid, n/pz otherwise.
11209         (rx_select_cc_mode): Return CCmode if Y is not zero.
11210
11211 2011-02-10  Richard Guenther  <rguenther@suse.de>
11212
11213         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11214
11215 2011-02-10  Richard Guenther  <rguenther@suse.de>
11216
11217         PR tree-optimization/47677
11218         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11219
11220 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11221
11222         PR target/47665
11223         * combine.c (make_compound_operation): Only change shifts into
11224         multiplication for SCALAR_INT_MODE_P.
11225
11226 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11227
11228         PR testsuite/47622
11229         Revert
11230         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11231         PR debug/42631
11232         * web.c (entry_register): Don't clobber the number of the
11233         first uninitialized reference in used[].
11234
11235 2011-02-09  Richard Guenther  <rguenther@suse.de>
11236
11237         PR tree-optimization/47664
11238         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11239         all edges again.
11240
11241 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11242
11243         PR target/46481
11244         PR target/47032
11245         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11246         PROCESSOR_POWER7.
11247         (PROCESSOR_DEFAULT64): Same.
11248         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11249
11250 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11251
11252         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11253
11254 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11255
11256         PR middle-end/45505
11257         * tree-sra.c (struct access): New flags grp_scalar_read and
11258         grp_scalar_write.  Changed description of assignment read and write
11259         flags.
11260         (dump_access): Dump new flags, reorder all of them.
11261         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11262         to detect multiple scalar reads.
11263         (analyze_access_subtree): Use the new scalar read write flags instead
11264         of the old flags.  Adjusted comments.
11265
11266 2011-02-08  DJ Delorie  <dj@redhat.com>
11267
11268         PR target/47548
11269         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11270         patterns.
11271
11272 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11273
11274         * config/m68k/uclinux.opt: New.
11275         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11276
11277 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11278
11279         * config/cris/elf.opt (sim): New Driver option.
11280
11281 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11282
11283         * config/xtensa/elf.opt: New.
11284         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11285
11286 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11287
11288         * config/vax/elf.opt: New.
11289         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11290
11291 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11292
11293         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11294
11295 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11296
11297         * config/gnu-user.opt: New.
11298         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11299         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11300         *-*-uclinux*): Use gnu-user.opt.
11301
11302 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11303
11304         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11305         * config/i386/gnu.h (CPP_SPEC): Likewise.
11306
11307 2011-02-08  Ian Lance Taylor  <iant@google.com>
11308
11309         * common.opt (fcx-limited-range): Add SetByCombined flag.
11310         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11311         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11312         (fassociative-math, freciprocal-math): Likewise.
11313         (funsafe-math-optimizations): Likewise.
11314         * opth-gen.awk: Handle SetByCombined.
11315         * optc-gen.awk: Likewise.
11316         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11317         (set_unsafe_math_optimizations_flags): Likewise.
11318         * doc/options.texi (Option properties): Document SetByCombined.
11319
11320 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11321
11322         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11323         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11324         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11325         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11326         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11327
11328 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11329
11330         PR tree-optimization/46834
11331         PR tree-optimization/46994
11332         PR tree-optimization/46995
11333         * graphite-sese-to-poly.c (used_outside_reduction): New.
11334         (detect_commutative_reduction): Call used_outside_reduction.
11335         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11336         translate_scalar_reduction_to_array only when at least one
11337         loop-phi/close-phi tuple has been detected.
11338
11339 2011-02-08  Richard Guenther  <rguenther@suse.de>
11340
11341         PR middle-end/47639
11342         * tree-vect-generic.c (expand_vector_operations_1): Update
11343         stmts here ...
11344         (expand_vector_operations): ... not here.  Cleanup EH info
11345         and the CFG if required.
11346
11347 2011-02-08  Richard Guenther  <rguenther@suse.de>
11348
11349         PR tree-optimization/47641
11350         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11351         require type compatibility.
11352
11353 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11354
11355         * gimple-low.c (lower_function_body): Don't remove the location of
11356         the return statement here.
11357         (lower_gimple_return): Do it here instead but only if the return
11358         statement is actually used twice.
11359
11360 2011-02-08  Richard Guenther  <rguenther@suse.de>
11361
11362         PR tree-optimization/47632
11363         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11364         unused up_to_stmt parameter, return whether cfg-cleanup is
11365         necessary, remove EH info properly.
11366         (forward_propagate_into_gimple_cond): Adjust caller.
11367         (forward_propagate_into_cond): Likewise.
11368         (forward_propagate_comparison): Likewise.
11369         (tree_ssa_forward_propagate_single_use_vars): Make
11370         forward_propagate_comparison case similar to the two others.
11371
11372 2011-02-08  Nick Clifton  <nickc@redhat.com>
11373
11374         * config/mn10300/mn10300.opt (mliw): New command line option.
11375         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11376         (liw_bundling): New automaton.
11377         (liw): New attribute.
11378         (liw_op): New attribute.
11379         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11380         (movsi_internal): Add LIW attributes.
11381         (andsi3): Likewise.
11382         (iorsi3): Likewise.
11383         (xorsi3): Likewise.
11384         (addsi3): Separate register and immediate alternatives.
11385         Add LIW attributes.
11386         (subsi3): Likewise.
11387         (cmpsi): Likewise.
11388         (aslsi3): Likewise.
11389         (lshrsi3): Likewise.
11390         (ashrsi3): Likewise.
11391         (liw): New pattern.
11392         * config/mn10300/mn10300.c (liw_op_names): New
11393         (mn10300_print_operand): Handle 'W' operand descriptor.
11394         (extract_bundle): New function.
11395         (check_liw_constraints): New function.
11396         (liw_candidate): New function.
11397         (mn10300_bundle_liw): New function.
11398         (mn10300_reorg): New function.
11399         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11400         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11401         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11402         __LIW__ or __NO_LIW__.
11403         * doc/invoke.texi: Describe the -mliw command line option.
11404
11405 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11406
11407         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11408         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11409         pthread_mutex_unlock): Remove.
11410         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11411         * config/pa/t-pa64: Likewise.
11412         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11413         shared libc if not linking against libpthread.
11414         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11415
11416 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11417
11418         PR target/47558
11419         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11420         on 10.6 and later to ensure that we always use the unwinder from
11421         the system.  Only add -no_compact_unwind when tarteting darwin
11422         10.6 or later.
11423
11424 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11425
11426         PR target/46997
11427         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11428         (vec_interleave_lowv2sf): Ditto.
11429         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11430         (vec_extract_oddv2sf): Ditto.
11431
11432 2011-02-07  Mike Stump  <mikestump@comcast.net>
11433
11434         PR target/42333
11435         Add __ieee_divdc3 entry point.
11436         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11437         entry point.
11438         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11439         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11440         * config/darwin.c (darwin_rename_builtins): Add.
11441         * config/darwin-protos.h (darwin_rename_builtins): Add.
11442
11443 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11444
11445         PR target/47636
11446         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11447         for the condition.
11448
11449 2011-02-07  Mike Stump  <mikestump@comcast.net>
11450
11451         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11452
11453 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11454
11455         PR target/47534
11456         * config/avr/libgcc.S (exit): Move .endfunc
11457
11458 2011-02-07  Richard Guenther  <rguenther@suse.de>
11459
11460         PR tree-optimization/47615
11461         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11462         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11463         (run_scc_vn): Initialize it.
11464         (visit_reference_op_load): Use it.
11465         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11466
11467 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11468
11469         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11470         DImode trapping arithmetic libfuncs.
11471
11472 2011-02-07  Richard Guenther  <rguenther@suse.de>
11473
11474         PR tree-optimization/47621
11475         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11476         two duplicates ...
11477         (execute_update_addresses_taken): ... here.  Make it more
11478         conservative in what we accept.
11479
11480 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11481
11482         * config/sparc/freebsd.h (ASM_SPEC): Define.
11483         * config/sparc/vxworks.h (ASM_SPEC): Define.
11484
11485 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11486
11487         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11488
11489 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11490
11491         * doc/invoke.texi: Remove reference to compiler internals from
11492         user documentation.
11493
11494         * reg-notes.def: Remove REG_VALUE_PROFILE.
11495         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11496
11497 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11498
11499         PR middle-end/47610
11500         * varasm.c (default_section_type_flags): If decl is NULL,
11501         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11502
11503 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11504
11505         PR debug/42631
11506         * web.c (entry_register): Don't clobber the number of the
11507         first uninitialized reference in used[].
11508
11509 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11510
11511         PR tree-optimization/46194
11512         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11513         (build_classic_dist_vector_1): Do not represent classic distance
11514         vectors when the access functions are variating in different loops.
11515
11516 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11517
11518         * config/mips/iris6.opt: New.
11519         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11520
11521 2011-02-04  Richard Henderson  <rth@redhat.com>
11522             Steve Ellcey  <sje@cup.hp.com>
11523
11524         PR target/46997
11525         * config/ia64/predicates.md (mux1_brcst_element): New.
11526         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11527         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11528         (ia64_unpack_sign): New.
11529         (ia64_expand_unpack): Rewrite using new routines.
11530         (ia64_expand_widen_sum): Ditto.
11531         (ia64_expand_dot_prod_v8qi): Ditto.
11532         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11533         routines, add endian check.
11534         (pmpy2_even): Rename from pmpy2_r, add endian check.
11535         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11536         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11537         (vec_widen_smult_hi_v4hi): Ditto.
11538         (vec_widen_umult_lo_v4hi): Ditto.
11539         (vec_widen_umult_hi_v4hi): Ditto.
11540         (mulv2si3): Change endian checks.
11541         (sdot_prodv4hi): Rewrite with new calls.
11542         (udot_prodv4hi): New.
11543         (vec_pack_ssat_v4hi): Add endian check.
11544         (vec_pack_usat_v4hi): Ditto.
11545         (vec_pack_ssat_v2si): Ditto.
11546         (max1_even): Rename from max1_r, add endian check.
11547         (max1_odd): Rename from max1_l, add endian check.
11548         (*mux1_rev): Format change.
11549         (*mux1_mix): Ditto.
11550         (*mux1_shuf): Ditto.
11551         (*mux1_alt): Ditto.
11552         (*mux1_brcst_v8qi): Use new predicate.
11553         (vec_extract_evenv8qi): Remove endian check.
11554         (vec_extract_oddv8qi): Ditto.
11555         (vec_interleave_lowv4hi): Format change.
11556         (vec_interleave_highv4hi): Ditto.
11557         (mix2_even): Rename from mix2_r, add endian check.
11558         (mix2_odd): Rename from mux2_l, add endian check.
11559         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11560         (vec_extract_evenodd_helper): Format change.
11561         (vec_extract_evenv4hi): Remove endian check.
11562         (vec_extract_oddv4hi): Remove endian check.
11563         (vec_interleave_lowv2si): Format change.
11564         (vec_interleave_highv2si): Format change.
11565         (vec_initv2si): Remove endian check.
11566         (vecinit_v2si): Add endian check.
11567         (reduc_splus_v2sf): Add endian check.
11568         (reduc_smax_v2sf): Ditto.
11569         (reduc_smin_v2sf): Ditto.
11570         (vec_initv2sf): Remove endian check.
11571         (fpack): Add endian check.
11572         (fswap): Add endian check.
11573         (vec_interleave_highv2sf): Add endian check.
11574         (vec_interleave_lowv2sf): Add endian check.
11575         (fmix_lr): Add endian check.
11576         (vec_setv2sf): Format change.
11577         (*vec_extractv2sf_0_be): Use shift to extract operand.
11578         (*vec_extractv2sf_1_be): New.
11579         (vec_pack_trunc_v4hi): Add endian check.
11580         (vec_pack_trunc_v2si): Format change.
11581
11582 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11583
11584         PR inline-asm/23200
11585         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11586         do bb, locus and block comparison and disallow loads if it is not set.
11587         (stmt_is_replaceable_p): New function.
11588         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11589         callers.
11590         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11591         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11592         SSA_NAME_DEF_STMT.
11593         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11594
11595 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11596
11597         * config/rs6000/xilinx.opt: New.
11598         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11599
11600 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11603
11604 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11605
11606         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11607         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11608         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11609         secondary_reload_info, xtensa_secondary_reload): Remove.
11610         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11611         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11612         (xtensa_preferred_reload_class): Make static. Change return and
11613         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11614         Use CONST_DOUBLE_P predicate.
11615         (xtensa_preferred_output_reload_class): New function.
11616         (xtensa_secondary_reload): Make static.
11617
11618 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11619
11620         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11621         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11622         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11623
11624 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11625
11626         PR middle-end/31490
11627         * output.h (SECTION_RELRO): Define.
11628         (SECTION_MACH_DEP): Adjust.
11629         (get_variable_section): New prototype.
11630         * varpool.c (varpool_finalize_named_section_flags): New function.
11631         (varpool_assemble_pending_decls): Call it.
11632         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11633         * cgraphunit.c (cgraph_output_in_order): Call
11634         varpool_finalize_named_section_flags.
11635         * varasm.c (get_section): Allow section flags conflicts between
11636         relro and read-only sections if the section hasn't been declared yet.
11637         Set SECTION_OVERRIDE after diagnosing section type conflict.
11638         (get_variable_section): No longer static.
11639         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11640         readonly sections that need relocations.
11641         (decl_readonly_section_1): New function.
11642         (decl_readonly_section): Use it.
11643
11644         Revert:
11645         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11646                     Steve Ellcey  <sje@cup.hp.com>
11647
11648         PR middle-end/31490
11649         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11650         if section attribute used.
11651
11652 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11653
11654         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11655         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11656         (darwin_init_sections): Remove assertion.
11657
11658 2011-02-03  Nick Clifton  <nickc@redhat.com>
11659
11660         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11661         lt and ge.
11662         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11663         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11664         instead of "n" and "pz".
11665         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11666         CC_FLAG_S.
11667
11668 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11669
11670         PR target/47312
11671         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11672         fma, expand FMA_EXPR as fma{,f,l} call.
11673
11674         PR lto/47274
11675         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11676         copy them into a unsigned char variable and pass address of it to
11677         lto_output_data_stream.
11678
11679         PR target/47564
11680         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11681         around backend_init_target and lang_dependent_init_target calls.
11682         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11683         (verify_cgraph_node): Don't call set_cfun here.  Use
11684         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11685         Set error_found for incorrectly represented calls to thunks.
11686
11687 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11688
11689         PR debug/43092
11690         PR rtl-optimization/43494
11691         * rtl.h (for_each_inc_dec_fn): New type.
11692         (for_each_inc_dec): Declare.
11693         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11694         (for_each_inc_dec_find_inc_dec): New fn.
11695         (for_each_inc_dec_find_mem): New fn.
11696         (for_each_inc_dec): New fn.
11697         * dse.c (struct insn_size): Remove.
11698         (replace_inc_dec, replace_inc_dec_mem): Remove.
11699         (emit_inc_dec_insn_before): New fn.
11700         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11701         (canon_address): Pass mem modes to cselib_lookup.
11702         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11703         (cselib_lookup_from_insn): Likewise.
11704         (cselib_subst_to_values): Likewise.
11705         * cselib.c (find_slot_memmode): New var.
11706         (cselib_find_slot): New fn.  Use it instead of
11707         htab_find_slot_with_hash everywhere.
11708         (entry_and_rtx_equal_p): Use find_slot_memmode.
11709         (autoinc_split): New fn.
11710         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11711         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11712         Deal with autoinc.  Special-case recursion into MEMs.
11713         (cselib_hash_rtx): Likewise.
11714         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11715         address and MEM modes.
11716         (cselib_subst_to_values): Add memmode, pass it on.
11717         Deal with autoinc.
11718         (cselib_lookup): Add memmode argument, pass it on.
11719         (cselib_lookup_from_insn): Add memmode.
11720         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11721         (struct cselib_record_autoinc_data): New.
11722         (cselib_record_autoinc_cb): New fn.
11723         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11724         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11725         (cselib_process_insn): ... here.
11726         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11727         to cselib_lookup.
11728         (add_uses): Likewise, also to cselib_subst_to_values.
11729         (add_stores): Likewise.
11730         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11731         cselib_subst_to_values.
11732         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11733         * gcse.c (do_local_cprop): Adjusted.
11734         * postreload.c (reload_cse_simplify_set): Adjusted.
11735         (reload_cse_simplify_operands): Adjusted.
11736         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11737
11738 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11739
11740         PR tree-optimization/45122
11741         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11742         unsafe assumptions when there's more than one loop exit.
11743
11744 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11745
11746         PR target/47272
11747         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11748         Document using vector double with the load/store builtins, and
11749         that the load/store builtins always use Altivec instructions.
11750
11751         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11752         to use altivec memory instructions, even on VSX.
11753         (vector_altivec_store_<mode>): Ditto.
11754
11755         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11756         function.
11757
11758         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11759         V2DF, V2DI support to load/store overloaded builtins.
11760
11761         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11762         altivec load/store builtins for V2DF/V2DI types.
11763
11764         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11765         set avoid indexed addresses on power6 if -maltivec.
11766         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11767         vector_altivec_load/vector_altivec_store builtins.
11768         (altivec_expand_st_builtin): Ditto.
11769         (altivec_expand_builtin): Add VSX memory builtins.
11770         (rs6000_init_builtins): Add V2DI types to internal types.
11771         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11772         load/store builtins.
11773         (rs6000_address_for_altivec): Insure memory address is appropriate
11774         for Altivec.
11775
11776         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11777         vec_vsx_ld and vec_vsx_st.
11778         (vsx_store_<mode>): Ditto.
11779
11780         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11781         variables to hold long long types for VSX vector memory builtins.
11782         (RS6000_BTI_unsigned_long_long): Ditto.
11783         (long_long_integer_type_internal_node): Ditti.
11784         (long_long_unsigned_type_internal_node): Ditti.
11785
11786         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11787         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11788         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11789
11790         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11791         short cuts.
11792         (vec_vsx_st): Ditto.
11793
11794 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11795
11796         * config/pa/pa-hpux10.opt: New.
11797         * config/hpux11.opt (pthread): New Driver option.
11798         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11799         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11800
11801 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11802
11803         * config/ia64/vms.opt: New.
11804         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11805
11806 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11807
11808         PR target/47580
11809         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11810         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11811         generator functions.
11812         (vsx_floatuns<VSi><mode>2): Ditto.
11813         (vsx_fix_trunc<mode><VSi>2): Ditto.
11814         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11815
11816 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11817
11818         * config/i386/djgpp.opt (posix): New Driver option.
11819
11820 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11821
11822         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11823         Move to the unsupported targets list.
11824
11825 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11826
11827         PR rtl-optimization/47525
11828         * df-scan.c: Update copyright years.
11829         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11830         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11831
11832 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11833
11834         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11835         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11836         (ASM_OUTPUT_ASCII): Remove.
11837         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11838
11839 2011-02-02  Jeff Law  <law@redhat.com>
11840
11841         PR middle-end/47543
11842         * reload.c (find_reloads_address): Handle reg+d address where both
11843         components are invalid by reloading the entire address.
11844
11845 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11846             Richard Guenther  <rguenther@suse.de>
11847
11848         PR tree-optimization/40979
11849         PR bootstrap/47044
11850         * passes.c (init_optimization_passes): After LIM call copy_prop
11851         and DCE to clean up.
11852         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11853
11854 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11855
11856         PR tree-optimization/47576
11857         PR tree-optimization/47555
11858         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11859         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11860         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11861         * tree-scalar-evolution.c (follow_ssa_edge): Use
11862         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11863
11864 2011-02-02  Richard Guenther  <rguenther@suse.de>
11865
11866         PR tree-optimization/47566
11867         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11868
11869 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11870
11871         PR debug/47106
11872         PR debug/47402
11873         * tree-inline.c (declare_return_variable): Remove unused caller
11874         variable.
11875
11876         PR debug/47106
11877         PR debug/47402
11878         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11879         * cfgexpand.c (account_used_vars_for_block): Use them.
11880         * tree-nrv.c (tree_nrv): Likewise.
11881         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11882         (dump_scope_block): Likewise.
11883         (remove_unused_locals): Likewise.
11884
11885         PR debug/47106
11886         PR debug/47402
11887         * tree-inline.c (declare_return_variable): Add result decl to
11888         local decls only once.
11889         * gimple-low.c (record_vars_into): Mark newly-created variables
11890         as referenced.
11891
11892 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11893
11894         PR debug/47498
11895         PR debug/47501
11896         PR debug/45136
11897         PR debug/45130
11898         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11899         debug insns.
11900         (no_real_insns_p, schedule_block, set_priorities): Drop special
11901         treatment of boundary debug insns.
11902         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11903         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11904         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11905         (BOUNDARY_DEBUG_INSN_P): Likewise.
11906         (SCHEDULE_DEBUG_INSN_P): Likewise.
11907         * sched-rgn.c (init_ready_list): Drop special treatment of
11908         boundary debug insns.
11909         * final.c (rest_of_clean_state): Clear notes' BB.
11910
11911 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11912
11913         * config/openbsd.opt (assert=): New Driver option.
11914
11915 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11916
11917         * config/i386/nto.opt: New.
11918         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11919
11920 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11921
11922         * config/i386/netware.opt: New.
11923         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11924
11925 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11926
11927         * config/interix.opt (posix): New Driver option.
11928
11929 2011-02-01  DJ Delorie  <dj@redhat.com>
11930
11931         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11932
11933         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11934         class for A0/A1.
11935
11936 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11937
11938         PR tree-optimization/47561
11939         * toplev.c (process_options): Print the Graphite flags.  Add
11940         flag_loop_flatten to the list of options requiring Graphite.
11941
11942 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11943
11944         * config/i386/cygming.opt (posix): New Driver option.
11945
11946 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11947
11948         * config/arm/vxworks.opt: New.
11949         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11950
11951 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11952
11953         * config/alpha/elf.opt: New.
11954         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11955         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11956
11957 2011-02-01  Richard Guenther  <rguenther@suse.de>
11958
11959         PR tree-optimization/47559
11960         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11961         store-motion on references that can throw.
11962
11963 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11964
11965         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11966         * tree-pass.h (TDF_CSELIB): New macro.
11967         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11968         cselib_lookup): Check for it rather than for TDF_DETAILS.
11969
11970 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11971
11972         PR driver/47547
11973         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11974         is HOST_BIT_BUCKET.
11975
11976         * opts.c (finish_options): Don't add x_aux_base_name if it is
11977         HOST_BIT_BUCKET.
11978
11979 2011-02-01  Richard Guenther  <rguenther@suse.de>
11980
11981         PR tree-optimization/47555
11982         Revert
11983         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11984
11985         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11986
11987 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11988
11989         PR gcc/46692
11990         * config/lm32/t-lm32: Add multilib for all CPU options.
11991
11992 2011-02-01  Richard Guenther  <rguenther@suse.de>
11993
11994         PR tree-optimization/47541
11995         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11996         sure to have a field at offset zero.
11997
11998 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11999
12000         * config/arc/arc.opt (EB, EL): New Driver options.
12001
12002 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12003
12004         * config/alpha/osf5.opt: New.
12005         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12006
12007 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12008
12009         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12010
12011 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12012
12013         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12014         -floop-interchange.
12015         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12016         is an alias of -floop-interchange and that it requires the
12017         Graphite infrastructure.
12018         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12019         flag_loop_interchange based on the value of flag_tree_loop_linear.
12020
12021 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12022             Richard Guenther  <rguenther@suse.de>
12023
12024         PR tree-optimization/47538
12025         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12026         type instead of r1type, except for comparisons.  For right
12027         shifts and comparisons punt if there are mismatches in
12028         sizetype vs. non-sizetype types.
12029
12030 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12031
12032         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12033         avx_runtime.
12034
12035 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12036
12037         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12038         version number.
12039         * configure: Regenerate.
12040
12041 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12042
12043         * configure.ac (gcc_cv_ld_static_option): Define.
12044         (gcc_cv_ld_dynamic_option): Define.
12045         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12046         instead.
12047         (HAVE_LD_STATIC_DYNAMIC): Update message.
12048         (LD_STATIC_OPTION): Define.
12049         (LD_DYNAMIC_OPTION): Define.
12050         * configure: Regenerate.
12051         * config.in: Regenerate.
12052         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12053         HAVE_LD_STATIC_DYNAMIC]: Use them.
12054
12055 2011-01-31  Nick Clifton  <nickc@redhat.com>
12056
12057         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12058         registers inside interrupt handlers if the handler is not a leaf
12059         function.
12060
12061 2011-01-31  Nick Clifton  <nickc@redhat.com>
12062
12063         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12064         reg_renumber returning an INVALID_REGNUM.
12065
12066 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12067
12068         PR libgcj/44341
12069         * doc/install.texi: Document host options discarded when cross
12070         configuring target libraries.
12071
12072 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12073
12074         Reverted:
12075         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12076         PR debug/45136
12077         PR debug/45130
12078         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12079         debug insns.
12080         (no_real_insns_p, schedule_block, set_priorities): Drop special
12081         treatment of boundary debug insns.
12082         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12083         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12084         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12085         (BOUNDARY_DEBUG_INSN_P): Likewise.
12086         (SCHEDULE_DEBUG_INSN_P): Likewise.
12087         * sched-rgn.c (init_ready_list): Drop special treatment of
12088         boundary debug insns.
12089         * final.c (rest_of_clean-state): Clear notes' BB.
12090
12091 2011-01-31  Alan Modra  <amodra@gmail.com>
12092
12093         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12094         toc relative expressions as we do in print_operand_address.
12095
12096 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12097
12098         * doc/extend.texi: Follow spelling conventions.
12099         * doc/invoke.texi: Fix a typo.
12100
12101 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12102
12103         * config/hpux11.opt: New.
12104         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12105         ia64*-*-hpux*): Use hpux11.opt.
12106
12107 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12108
12109         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12110         to tmake_file.
12111
12112 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12113
12114         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12115         support sites.
12116
12117 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12118
12119         * doc/install.texi (Binaries): Remove outdated reference for
12120         Motorola 68HC11/68HC12 downloads.
12121
12122 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12123
12124         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12125         Drepper's paper.
12126
12127 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12128
12129         PR bootstrap/47147
12130         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12131         used by NetBSD.
12132
12133 2011-01-28  Ahmad Sharif  <asharif@google.com>
12134
12135         * value-prof.c (check_counter): Corrected error message.
12136
12137 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12138
12139         * config/arm/arm.c (arm_legitimize_reload_address): New.
12140         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12141         arm_legitimize_reload_address.
12142         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12143
12144 2011-01-28  Ian Lance Taylor  <iant@google.com>
12145
12146         * godump.c (go_define): Ignore macros whose definitions include
12147         two adjacent operands.
12148
12149 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12150
12151         PR target/42894
12152         * varasm.c (force_const_mem): Store copy of x in desc->constant
12153         instead of x itself.
12154         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12155         itself into REG_EQUAL note.
12156
12157 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12158
12159         * config/freebsd.opt (posix, rdynamic): New Driver options.
12160
12161 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12162
12163         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12164         -Bstatic/-Bdynamic.
12165         * configure: Regenerate.
12166
12167 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12168
12169         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12170         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12171
12172 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12173
12174         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12175         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12176         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12177         (s390_preferred_reload_class): Make static. Change return and
12178         'rclass' argument type to reg_class_t.
12179
12180 2011-01-27  Jan Hubicka  <jh@suse.cz>
12181
12182         PR middle-end/46949
12183         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12184         (process_function_and_variable_attributes): Check defined weakrefs.
12185
12186 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12187
12188         PR tree-optimization/47228
12189         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12190         build_ref_for_offset.
12191
12192 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12193
12194         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12195
12196 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12197
12198         PR rtl-optimization/46856
12199         * postreload.c (reload_combine_recognize_const_pattern): Do not
12200         separate cc0 setter and user on cc0 targets.
12201
12202 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12203
12204         PR c/43082
12205         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12206         passed a VOID_TYPE expression, immediately emit an error and
12207         return error_mark_node.
12208
12209 2011-01-26  Jeff Law  <law@redhat.com>
12210
12211         PR rtl-optimization/47464
12212         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12213         rather than may_trap_p as needed.
12214
12215 2011-01-26  DJ Delorie  <dj@redhat.com>
12216
12217         PR rtl-optimization/46878
12218         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12219         setter/user dependency as well.
12220
12221 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12222
12223         PR rtl-optimization/44469
12224         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12225         after removing trivially dead basic blocks.
12226
12227 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12228
12229         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12230         * config/frv/frv.h (LINK_SPEC): Likewise.
12231         * config/i386/netware.h (LINK_SPEC): Likewise.
12232         * config/m68k/linux.h (ASM_SPEC): Likewise.
12233         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12234         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12235         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12236         * config/sparc/linux.h (ASM_SPEC): Likewise.
12237         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12238         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12239
12240 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12241
12242         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12243         * config/frv/frv.h (ASM_SPEC): Likewise.
12244         * config/m68k/linux.h (ASM_SPEC): Likewise.
12245         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12246         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12247         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12248         * config/sparc/linux.h (ASM_SPEC): Likewise.
12249         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12250         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12251
12252 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12253
12254         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12255         * config/frv/frv.h (LINK_SPEC): Likewise.
12256         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12257
12258 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12259
12260         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12261         * config/frv/frv.h (ASM_SPEC): Likewise.
12262         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12263         * config/m68k/linux.h (ASM_SPEC): Likewise.
12264         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12265         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12266         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12267         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12268         * config/sparc/linux.h (ASM_SPEC): Likewise.
12269         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12270         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12271         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12272
12273 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12274
12275         PR target/46997
12276         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12277         (*mux2): Ditto.
12278         (vec_extract_evenodd_help): Ditto.
12279         (vec_extract_evenv4hi): Ditto.
12280         (vec_extract_oddv4hi): Ditto.
12281         (vec_interleave_lowv2si): Ditto.
12282         (vec_interleave_highv2si): Ditto.
12283         (vec_extract_evenv2si): Ditto.
12284         (vec_extract_oddv2si: Ditto.
12285         (vec_pack_trunc_v2si): Ditto.
12286
12287 2011-01-22  Jan Hubicka  <jh@suse.cz>
12288
12289         PR target/47237
12290         * cgraph.h (cgraph_local_info): New field can_change_signature.
12291         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12292         signature can change.
12293         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12294         can change.
12295         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12296         (cgraph_function_versioning): We can not change signature of functions
12297         that don't allow that.
12298         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12299         (lto_input_node): Likewise.
12300         * ipa-inline.c (compute_inline_parameters): Compute
12301         local.can_change_signature.
12302         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12303         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12304         functions that can not change signature.
12305         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12306         init_cumulative_args): Do not use local calling conventions
12307         for functions that can not change signature.
12308
12309 2011-01-22  Jan Hubicka  <jh@suse.cz>
12310
12311         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12312
12313 2011-01-26  Richard Guenther  <rguenther@suse.de>
12314
12315         PR tree-optimization/47190
12316         * cgraphunit.c (process_common_attributes): New function.
12317         (process_function_and_variable_attributes): Use it.
12318
12319 2011-01-26  Richard Guenther  <rguenther@suse.de>
12320
12321         PR lto/47423
12322         * cgraphbuild.c (record_eh_tables): Record reference to personality
12323         function.
12324
12325 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12326
12327         PR debug/45454
12328         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12329         non-debug insns from moving up.
12330
12331 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12332
12333         PR target/40125
12334         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12335         t-dlldir{,-x} fragment for build and add it to tmake_file.
12336         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12337         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12338         * config/i386/t-dlldir: New file.
12339         (SHLIB_DLLDIR): Define.
12340         * config/i386/t-dlldir-x: New file.
12341         (SHLIB_DLLDIR): Define.
12342         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12343         (SHLIB_INSTALL): Use it.
12344
12345 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12346
12347         PR target/47246
12348         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12349         lower bound of the allowed Thumb-2 coprocessor load/store
12350         index range to -256. Add explaining comment.
12351
12352 2011-01-25  Ian Lance Taylor  <iant@google.com>
12353
12354         * godump.c (go_define): Improve lexing of macro expansion to only
12355         accept expressions which match Go spec.
12356
12357 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12358
12359         PR c++/43601
12360         * tree.c (handle_dll_attribute): Handle it.
12361         * doc/extend.texi (@item dllexport): Mention it.
12362         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12363
12364 2011-01-25  Ian Lance Taylor  <iant@google.com>
12365
12366         PR tree-optimization/26854
12367         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12368         (decl_jump_unsafe): Move higher in file, with no other change.
12369         (bind): Set has_jump_unsafe_decl if appropriate.
12370         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12371         (check_earlier_gotos): Likewise.
12372         (c_check_switch_jump_warnings): Likewise.
12373
12374 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12375
12376         * doc/invoke.texi (Warning Options): Add missing hyphen.
12377         (-fprofile-dir): Minor grammatical fixes.
12378         (-fbranch-probabilities): Likewise.
12379
12380 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12381
12382         PR debug/45136
12383         PR debug/45130
12384         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12385         debug insns.
12386         (no_real_insns_p, schedule_block, set_priorities): Drop special
12387         treatment of boundary debug insns.
12388         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12389         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12390         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12391         (BOUNDARY_DEBUG_INSN_P): Likewise.
12392         (SCHEDULE_DEBUG_INSN_P): Likewise.
12393         * sched-rgn.c (init_ready_list): Drop special treatment of
12394         boundary debug insns.
12395         * final.c (rest_of_clean-state): Clear notes' BB.
12396
12397 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12398
12399         * Makefile.in (LAMBDA_H): Removed.
12400         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12401         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12402         lambda-trans.o, and tree-loop-linear.o.
12403         (lto-symtab.o): Remove dependence on LAMBDA_H.
12404         (tree-loop-linear.o): Remove rule.
12405         (lambda-mat.o): Same.
12406         (lambda-trans.o): Same.
12407         (lambda-code.o): Same.
12408         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12409         (tree-vect-slp.o): Same.
12410         * hwint.h (gcd): Moved here.
12411         (least_common_multiple): Same.
12412         * lambda-code.c: Removed.
12413         * lambda-mat.c: Removed.
12414         * lambda-trans.c: Removed.
12415         * lambda.h: Removed.
12416         * tree-loop-linear.c: Removed.
12417         * lto-symtab.c: Do not include lambda.h.
12418         * omega.c (gcd): Removed.
12419         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12420         * tree-data-ref.c (print_lambda_vector): Moved here.
12421         (lambda_vector_copy): Same.
12422         (lambda_matrix_copy): Same.
12423         (lambda_matrix_id): Same.
12424         (lambda_vector_first_nz): Same.
12425         (lambda_matrix_row_add): Same.
12426         (lambda_matrix_row_exchange): Same.
12427         (lambda_vector_mult_const): Same.
12428         (lambda_vector_negate): Same.
12429         (lambda_matrix_row_negate): Same.
12430         (lambda_vector_equal): Same.
12431         (lambda_matrix_right_hermite): Same.
12432         * tree-data-ref.h: Do not include lambda.h.
12433         (lambda_vector): Moved here.
12434         (lambda_matrix): Same.
12435         (dependence_level): Same.
12436         (lambda_transform_legal_p): Removed declaration.
12437         (lambda_collect_parameters): Same.
12438         (lambda_compute_access_matrices): Same.
12439         (lambda_vector_gcd): Same.
12440         (lambda_vector_new): Same.
12441         (lambda_vector_clear): Same.
12442         (lambda_vector_lexico_pos): Same.
12443         (lambda_vector_zerop): Same.
12444         (lambda_matrix_new): Same.
12445         * tree-flow.h (least_common_multiple): Removed declaration.
12446         * tree-parloops.c (lambda_trans_matrix): Moved here.
12447         (LTM_MATRIX): Same.
12448         (LTM_ROWSIZE): Same.
12449         (LTM_COLSIZE): Same.
12450         (LTM_DENOMINATOR): Same.
12451         (lambda_trans_matrix_new): Same.
12452         (lambda_matrix_vector_mult): Same.
12453         (lambda_transform_legal_p): Same.
12454         * tree-pass.h (pass_linear_transform): Removed declaration.
12455         * tree-ssa-loop.c (tree_linear_transform): Removed.
12456         (gate_tree_linear_transform): Removed.
12457         (pass_linear_transform): Removed.
12458         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12459         flag_loop_interchange.
12460
12461 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12462
12463         PR tree-optimization/47265
12464         PR tree-optimization/47443
12465         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12466         if name still has some uses.
12467
12468 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12469
12470         PR tree-optimization/47382
12471         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12472         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12473
12474 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12475
12476         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12477         sjlj_except_unwind_info.
12478
12479 2011-01-25  Richard Guenther  <rguenther@suse.de>
12480
12481         PR tree-optimization/47426
12482         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12483         visible functions results escape.
12484
12485 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12486
12487         PR target/45701
12488         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12489         (arm_get_frame_offsets): Use it.
12490
12491 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12492             Jakub Jelinek  <jakub@redhat.com>
12493
12494         PR tree-optimization/47271
12495         * tree-if-conv.c (bb_postdominates_preds): New.
12496         (if_convertible_bb_p): Call bb_postdominates_preds.
12497         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12498         (predicate_scalar_phi): Call bb_postdominates_preds.
12499
12500 2011-01-25  Nick Clifton  <nickc@redhat.com>
12501
12502         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12503         * config/rx/rx.c (rx_function_value): Likewise.
12504         (rx_promote_function_mode): Likewise.
12505         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12506         in order to make it legitimate.
12507         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12508         make sure that the first operand is the same as the result register.
12509         (addsi3_unspec): Delete.
12510         (subdi3): Do not accept immediate operands.
12511         (subdi3_internal): Likewise.
12512
12513 2011-01-25  Jeff Law  <law@redhat.com>
12514
12515         PR rtl-optimization/37273
12516         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12517         handle them like argument loads from stack slots.  Do not double
12518         count memory for memory constants and argument loads from stack slots.
12519
12520 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12521
12522         PR tree-optimization/47427
12523         PR tree-optimization/47428
12524         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12525         coalesce if the new root var would be TREE_READONLY.
12526
12527 2011-01-25  Richard Guenther  <rguenther@suse.de>
12528
12529         PR middle-end/47414
12530         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12531         correct type for TBAA.
12532
12533 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12534
12535         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12536         (close_phi_written_to_memory): Call for_each_index with
12537         dr_indices_valid_in_loop.
12538
12539 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12540
12541         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12542         when it is initialized.
12543
12544 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12545
12546         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12547         call to graphite_find_data_references_in_stmt.
12548         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12549         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12550         call to graphite_find_data_references_in_stmt.
12551         (analyze_drs_in_stmts): Same.
12552         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12553         in which the scalar analysis of indices is performed.
12554         (create_data_ref): Same.  Update call to dr_analyze_indices.
12555         (find_data_references_in_stmt): Update call to create_data_ref.
12556         (graphite_find_data_references_in_stmt): Same.
12557         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12558         declaration.
12559         (create_data_ref): Same.
12560         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12561         call to create_data_ref.
12562
12563 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12564
12565         * graphite-sese-to-poly.c (build_poly_scop): Move
12566         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12567
12568 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12569
12570         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12571         VAR_DECL, PARM_DECL, and RESULT_DECL.
12572
12573 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12574
12575         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12576         in a reduction PBB.
12577         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12578         that have already been marked as PBB_IS_REDUCTION.
12579
12580 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12581
12582         * graphite-scop-detection.c (same_close_phi_node): New.
12583         (remove_duplicate_close_phi): New.
12584         (make_close_phi_nodes_unique): New.
12585         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12586
12587 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12588
12589         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12590         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12591         of both data references to be the same.
12592
12593 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12594
12595         * graphite-dependences.c (build_lexicographical_constraint): Remove
12596         the gdim parameter.
12597         (build_lexicographical_constraint): Adjust call to
12598         ppl_powerset_is_empty.
12599         (dependence_polyhedron): Same.
12600         (graphite_legal_transform_dr): Same.
12601         (graphite_carried_dependence_level_k): Same.
12602         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12603         parameter.
12604         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12605
12606 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12607
12608         * graphite-sese-to-poly.c
12609         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12610         (close_phi_written_to_memory): New.
12611         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12612         and unshare_expr.
12613
12614 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12615
12616         * doc/install.texi: Update the expected version number of PPL to 0.11.
12617         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12618         #if PPL_VERSION_MINOR < 11.
12619
12620 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12621
12622         * graphite-dependences.c: Include graphite-cloog-util.h.
12623         (new_poly_ddr): Inlined into dependence_polyhedron.
12624         (free_poly_ddr): Moved close by new_poly_ddr.
12625         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12626         Early return NULL when ppl_powerset_is_empty returns true.
12627         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12628         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12629         (graphite_legal_transform_dr): Call new_poly_ddr.
12630         (graphite_carried_dependence_level_k): Same.
12631         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12632         (dot_transformed_deps_stmt_1): Removed.
12633         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12634         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12635         (dot_deps_1): Call dot_deps_2.
12636         * Makefile.in (graphite-dependences.o): Add missing dependence on
12637         graphite-cloog-util.h.
12638
12639 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12640
12641         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12642         (build_lexicographical_constraint): Same.
12643         (dependence_polyhedron_1): Same.
12644         (graphite_legal_transform_dr): Same.
12645         (graphite_carried_dependence_level_k): Same.
12646         * graphite-ppl.c (ppl_powerset_is_empty): New.
12647         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12648         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12649
12650 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12651
12652         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12653         the "a followed by b" relation and document it.
12654
12655 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12656
12657         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12658         iteration when the bag of constraints is empty.
12659
12660 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12661
12662         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12663
12664 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12665
12666         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12667         nest and two loop depths as parameters.
12668         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12669         lst_perfect_nestify.
12670
12671 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12672
12673         * graphite-dependences.c (print_pddr): Call
12674         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12675
12676 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12677
12678         * graphite-ppl.c (debug_gmp_value): New.
12679         * graphite-ppl.h (debug_gmp_value): Declared.
12680
12681 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12682
12683         * doc/install.texi: Document availability of cloog-0.16.
12684
12685 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12686
12687         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12688         invalid postdominance info.
12689
12690 2011-01-24  Jan Hubicka  <jh@suse.cz>
12691
12692         PR c/21659
12693         * doc/extend.texi (weak pragma): Drop claim that it must
12694         appear before definition.
12695         * varasm.c (merge_weak, declare_weak): Only sanity check
12696         that DECL is not output at a time it is declared weak.
12697
12698 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12699
12700         * machmode.def: Fixed comments.
12701
12702 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12703
12704         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12705
12706 2011-01-24  Paul Koning  <ni1d@arrl.net>
12707
12708         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12709         WORDS_BIG_ENDIAN.
12710
12711 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12712
12713         PR target/46519
12714         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12715         (block_info): Add scanned and prev.
12716         (move_or_delete_vzeroupper_2): Return if the basic block
12717         has been scanned and the upper 128bit state is unchanged
12718         from the last scan.
12719         (move_or_delete_vzeroupper_1): Return true if the exit
12720         state is changed.
12721         (move_or_delete_vzeroupper): Visit basic blocks using the
12722         work-list based algorithm based on vt_find_locations in
12723         var-tracking.c.
12724
12725         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12726
12727 2011-01-24  Nick Clifton  <nickc@redhat.com>
12728
12729         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12730         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12731         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12732         then define __v850e1__.
12733         * doc/invoke.texi: Document -mv850es.
12734
12735 2011-01-24  Richard Henderson  <rth@redhat.com>
12736
12737         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12738         compound unordered comparisons.
12739         * config/rx/rx.c (rx_split_fp_compare): Remove.
12740         * config/rx/rx-protos.h: Update.
12741         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12742         (cbranchsf4): Don't call rx_split_fp_compare.
12743         (*cbranchsf4): Use rx_split_cbranch.
12744         (*cmpsf): Don't accept "i" constraint.
12745         (*conditional_branch): Only valid after reload.
12746         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12747
12748 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12749
12750         PR target/47385
12751         * config/rs6000/altivec.md (vector constant splitters): Add
12752         support for creating vector single precision constants if -mvsx is
12753         used and we would create the constant using Altivec primitives.
12754
12755 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12756             Richard Sandiford  <rdsandiford@googlemail.com>
12757
12758         PR rtl-optimization/47166
12759         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12760         mechanism for PRE_MODIFY and POST_MODIFY.
12761         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12762         reloadreg.
12763
12764 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12765
12766         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12767
12768 2011-01-22  Jan Hubicka  <jh@suse.cz>
12769
12770         PR lto/47333
12771         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12772
12773 2011-01-22  Jan Hubicka  <jh@suse.cz>
12774
12775         PR tree-optimization/43884
12776         PR lto/44334
12777         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12778         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12779
12780 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12781
12782         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12783         * config/s390/s390.c (s390_register_move_cost,
12784         s390_memory_move_cost): New.
12785         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12786
12787 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12788
12789         PR middle-end/47401
12790         * except.c (sjlj_assign_call_site_values): Move setting the
12791         crtl->uses_eh_lsda flag to ...
12792         (sjlj_mark_call_sites): ... here.
12793         (sjlj_emit_function_enter): Support NULL dispatch label.
12794         (sjlj_build_landing_pads): In a function with no landing pads
12795         that still has must-not-throw regions, generate code to register
12796         a personality function with empty LSDA.
12797
12798 2011-01-21  Richard Henderson  <rth@redhat.com>
12799
12800         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12801
12802         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12803
12804         * compare-elim.c: New file.
12805         * Makefile.in (OBJS-common): Add it.
12806         (compare-elim.o): New.
12807         * common.opt (fcompare-elim): New.
12808         * opts.c (default_options_table): Add OPT_fcompare_elim.
12809         * tree-pass.h (pass_compare_elim_after_reload): New.
12810         * passes.c (init_optimization_passes): Add it.
12811         * recog.h: Protect against re-inclusion.
12812         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12813         * doc/invoke.texi (-fcompare-elim): Document it.
12814         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12815         * doc/tm.texi: Rebuild.
12816
12817 2011-01-22  Nick Clifton  <nickc@redhat.com>
12818
12819         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12820         rx_split_fp_compare.
12821
12822 2011-01-22  Nick Clifton  <nickc@redhat.com>
12823
12824         * config/rx/rx.md (UNSPEC_CONST): New.
12825         (deallocate_and_return): Wrap the amount popped off the stack in
12826         an UNSPEC_CONST in order to stop it being rejected by
12827         -mmax-constant-size.
12828         (pop_and_return): Add a "(return)" rtx.
12829         (call): Drop the immediate operand.
12830         (call_internal): Likewise.
12831         (call_value): Likewise.
12832         (call_value_internal): Likewise.
12833         (sibcall_internal): Likewise.
12834         (sibcall_value_internal): Likewise.
12835         (sibcall): Likewise.  Generate an explicit call using
12836         sibcall_internal.
12837         (sibcall_value): Likewise.
12838         (mov<>): FAIL if a constant operand is not legitimate.
12839         (addsi3_unpsec): New pattern.
12840
12841         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12842         (ok_for_max_constant): New function.
12843         (gen_safe_add): New function.
12844         (rx_expand_prologue): Use gen_safe_add.
12845         (rx_expand_epilogue): Likewise.
12846         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12847         UNSPEC CONSTs.
12848
12849 2011-01-21  Jeff Law  <law@redhat.com>
12850
12851         PR tree-optimization/47053
12852         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12853         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12854         statements are deleted.
12855         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12856         is nonempty, then purge dead edges and cleanup the CFG.
12857
12858 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12859
12860         PR debug/47402
12861         Temporarily revert:
12862         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12863         PR debug/47106
12864         * tree-dfa.c (create_var_ann): Mark variable as used.
12865
12866 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12867
12868         PR middle-end/45566
12869         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12870         notes from other section in hot/cold partitioning even if
12871         last_action is -3.  Increment call_site_base.
12872
12873         PR rtl-optimization/47366
12874         * fwprop.c (forward_propagate_into): Return bool.  If
12875         any changes are made, -fnon-call-exceptions is used and
12876         REG_EH_REGION note is present, call purge_dead_edges
12877         and return true if it purged anything.
12878         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12879         any EH edges were purged.
12880
12881 2011-01-21  Jeff Law  <law@redhat.com>
12882
12883         PR rtl-optimization/41619
12884         * caller-save.c (setup_save_areas): Break out code to determine
12885         which hard regs are live across calls by examining the reload chains
12886         so that it is always used.
12887         Eliminate code which checked REG_N_CALLS_CROSSED.
12888
12889 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12890
12891         PR tree-optimization/47355
12892         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12893         NOP has non-debug uses beyond PHIs in new_bb.
12894
12895 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12896
12897         PR debug/47106
12898         * cfgexpand.c (account_used_vars_for_block): Only account vars
12899         that are annotated as used.
12900         (estimated_stack_frame_size): Don't set TREE_USED.
12901         * tree-dfa.c (create_var_ann): Mark variable as used.
12902
12903 2011-01-21  Richard Guenther  <rguenther@suse.de>
12904
12905         PR middle-end/47395
12906         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12907
12908 2011-01-21  Richard Guenther  <rguenther@suse.de>
12909
12910         PR tree-optimization/47365
12911         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12912         (vn_reference_lookup_pieces): Adjust.
12913         (vn_reference_lookup): Likewise.
12914         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12915         (vn_reference_lookup_3): Only look through kills if in
12916         VN_WALKREWRITE mode.
12917         (vn_reference_lookup_pieces): Adjust.
12918         (vn_reference_lookup): Likewise.
12919         (visit_reference_op_load): Likewise.
12920         (visit_reference_op_store): Likewise.
12921         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12922         (compute_avail): Likewise.
12923         (eliminate): Likewise.
12924
12925 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12926
12927         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12928         DECL_IGNORED_P non-reg vars if they are used.
12929
12930         PR tree-optimization/47391
12931         * varpool.c (const_value_known_p): Return false if
12932         decl is volatile.
12933
12934 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12935
12936         PR bootstrap/47215
12937         * config/i386/i386.c (ix86_local_alignment): Handle
12938         case for va_list_type_node is nil.
12939         (ix86_canonical_va_list_type): Likewise.
12940
12941 2011-01-21  Alan Modra  <amodra@gmail.com>
12942
12943         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12944         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12945
12946 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12947
12948         * config/arm/arm.md (define_attr type): Rename f_load
12949         and f_store to f_fpa_load and f_fpa_store. Update.
12950         (write_conflict): Deal with rename fallout.
12951         (*push_fp_multi): Likewise.
12952         * config/arm/fpa.md (f_load): Use f_fpa_load.
12953         (f_store): Use f_fpa_store.
12954         (*movsf_fpa): Likewise.
12955         (*movdf_fpa): Likewise.
12956         (*movxf_fpa): Likewise.
12957         (*thumb2_movsf_fpa): Likewise.
12958         (*thumb2_movdf_fpa): Likewise.
12959         (*thumb2_movxf_fpa): Likewise.
12960         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12961         f_loadd and f_stored.
12962         (*thumb2_movdi_vfp): Likewise.
12963         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12964         (*thumb2_movsi_vfp): Likewise.
12965         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12966         Use f_loads instead of f_load.
12967         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12968
12969 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12970
12971         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12972         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12973         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12974         (xtensa_mode_dependent_address_p): New function.
12975         (constantpool_address_p): Make static. Change return type to bool.
12976         Change argument type to const_rtx. Use CONST_INT_P predicate.
12977
12978 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12979
12980         PR debug/46583
12981         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12982
12983 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12984
12985         PR debug/47283
12986         * cfgexpand.c (expand_debug_expr): Instead of generating
12987         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12988         etc. handling.
12989
12990 2011-01-20  Richard Guenther  <rguenther@suse.de>
12991
12992         PR middle-end/47370
12993         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12994         the pointer operand of MEM_REFs.
12995
12996 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12997
12998         PR tree-optimization/46130
12999         * ipa-split.c (consider_split): If return_bb contains non-virtual
13000         PHIs other than for retval or if split_function would not adjust it,
13001         refuse to split.
13002
13003 2011-01-20  Richard Guenther  <rguenther@suse.de>
13004
13005         PR tree-optimization/47167
13006         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13007         Revert previous change, only avoid enumeral type changes.
13008
13009 2011-01-19  Mike Stump  <mikestump@comcast.net>
13010
13011         * doc/tm.texi.in (BRANCH_COST): Englishify.
13012         * doc/tm.texi (BRANCH_COST): Likewise.
13013
13014 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13015
13016         PR c++/47291
13017         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13018         (gen_scheduled_generic_parms_dies): New functions.
13019         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13020         generation for the end of CU compilation.
13021         (dwarf2out_finish): Generate template parameters DIEs here.
13022
13023 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13024
13025         PR debug/46240
13026         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13027         debug bind stmt on merge edges.
13028
13029 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13030
13031         PR debug/47079
13032         PR debug/46724
13033         * function.c (instantiate_expr): Instantiate incoming rtl of
13034         implicit arguments, and recurse on VALUE_EXPRs.
13035         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13036         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13037
13038 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13039
13040         * c-parser.c (c_parser_for_statement): Initialize
13041         collection_expression.
13042
13043 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13044
13045         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13046
13047 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13048
13049         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13050         (LINK_SHLIB_SPEC): Don't use %(link_path).
13051         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13052
13053 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13054
13055         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13056         (NO_SHARED_LIB_SUPPORT): Remove.
13057         (LINK_SHLIB_SPEC): Remove one conditional definition.
13058
13059 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13060
13061         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13062         %{call_shared}.
13063         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13064         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13065         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13066         %{call_shared} and conditionals on these options not being passed.
13067         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13068         %{call_shared}.
13069
13070 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13071
13072         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13073         simplify.
13074
13075         * ipa-split.c: Spelling fixes.
13076
13077 2011-01-19  Richard Henderson  <rth@redhat.com>
13078
13079         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13080         (*mulsi3): Likewise.
13081
13082         * longlong.h [__mn10300__] (count_leading_zeros): New.
13083         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13084         [__mn10300__] (add_ssaaaa, subddmmss): New.
13085         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13086         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13087
13088 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13089
13090         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13091
13092 2011-01-19  Richard Henderson  <rth@redhat.com>
13093
13094         * config/mn10300/mn10300.md (addsi3_flags): New.
13095         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13096         (subsi3_flags, subc_internal, subdi3): New.
13097         (subdi3_internal, *subdi3_degenerate): New.
13098         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13099
13100         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13101         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13102         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13103         * config/mn10300/mn10300-protos.h: Update.
13104         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13105         (return_ret): Likewise.  Rename from return_internal_regs.
13106         (return_internal): Remove.
13107
13108         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13109         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13110         (mn10300_legitimate_constant_p): Likewise.
13111         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13112         (mn10300_frame_size): New.
13113         (mn10300_expand_prologue): Use it.
13114         (mn10300_expand_epilogue): Likewise.
13115         (mn10300_initial_offset): Likewise.
13116         * config/mn10300/mn10300-protos.h: Update.
13117         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13118         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13119         (prologue, epilogue, return_internal): Tidy output code.
13120         (mn10300_store_multiple_operation, return): Likewise.
13121         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13122         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13123         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13124         (load_pic, am33_load_pic): New.
13125         (mn10300_load_pic0, mn10300_load_pic1): New.
13126
13127         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13128         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13129         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13130         (cc_flags_for_mode, cc_flags_for_code): New.
13131         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13132         overflow flag is not valid.  Validate that the flags we need
13133         for the comparison are valid.
13134         (mn10300_output_cmp): Remove.
13135         (mn10300_output_add): New.
13136         (mn10300_select_cc_mode): Use cc_flags_for_code.
13137         (mn10300_split_cbranch): New.
13138         (mn10300_match_ccmode): New.
13139         (mn10300_split_and_operand_count): New.
13140         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13141         to the function.
13142         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13143         (addsi3): ... here.  Use mn10300_output_add.
13144         (*addsi3_flags): New.
13145         (*am33_subsi3, *mn10300_subsi3): Merge...
13146         (subsi3): ... here.  Use attribute isa.
13147         (*subsi3_flags): New.
13148         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13149         when possible.
13150         (*am33_andsi3, *mn10300_andsi3): Merge...
13151         (andsi3): ... here.
13152         (*andsi3_flags): New.
13153         (andsi3 splitters): New.
13154         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13155         (iorsi3): ... here.
13156         (*iorsi3_flags): New.
13157         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13158         (xorsi3): ... here.
13159         (*xorsi3_flags): New.
13160         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13161         (one_cmplsi2): ... here.
13162         (*one_cmplsi2_flags): New.
13163         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13164         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13165         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13166         use matching constraints to eliminate a self-comparison.
13167         (*integer_conditional_branch): Rename from integer_conditional_branch.
13168         Use int_mode_flags to match CC_REG.
13169         (*cbranchsi4_btst, *btstsi): New.
13170         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13171         mn10300_split_cbranch.
13172         (*am33_cmpsf): Rename from am33_cmpsf.
13173         (*float_conditional_branch): Rename from float_conditional_branch.
13174         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13175         (zero_extendqisi2): ... here.
13176         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13177         (zero_extendhisi2): ... here.
13178         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13179         (extendqisi2): ... here.
13180         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13181         (extendhisi2): ... here.
13182         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13183         (ashlsi3): ... here.
13184         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13185         (lshrsi3): ... here.
13186         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13187         (ashrsi3): ... here.
13188         (consecutive add peephole): Remove.
13189         * config/mn10300/predicates.md (label_ref_operand): New.
13190         (int_mode_flags): New.
13191         (CCZN_comparison_operator): New.
13192
13193         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13194         (throughput_42_latency_43): New reservation.
13195         (mulsidi3, umulsidi3): New expanders.
13196         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13197         the MDR register to allocation; separately allocate the low and
13198         high parts of the DImode result.
13199         (umulsidi3_internal): Similarly.
13200         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13201         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13202         (udivsi3, umodsi3): Remove.
13203         (udivmodsi4, divmodsi4): New expanders.
13204         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13205         (*divmodsi4): Simiarly.
13206         (ext_internal): New.
13207
13208         * config/mn10300/constraints.md ("z"): New constraint.
13209         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13210         (FIXED_REGISTERS): Don't fix MDR.
13211         (CALL_USED_REGSITERS): Reformat nicely.
13212         (REG_ALLOC_ORDER): Add MDR.
13213         (enum regclass): Add MDR_REGS.
13214         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13215         (IRA_COVER_CLASSES): Add MDR_REGS.
13216         (REGNO_REG_CLASS): Handle MDR_REG.
13217         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13218         (mn10300_register_move_cost): Likewise.
13219         * config/mn10300/mn10300.md (MDR_REG): New.
13220         (*movsi_internal): Handle moves to/from MDR_REGS.
13221
13222         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13223         POST_MODIFY.
13224         (mn10300_secondary_reload): Tidy combination reload classes.
13225         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13226         addresses for AM33.  Allow symbolic offsets for reg+imm.
13227         (mn10300_regno_in_class_p): New.
13228         (mn10300_legitimize_reload_address): New.
13229         * config/mn10300/mn10300.h (enum reg_class): Remove
13230         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13231         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13232         SP_OR_GENERAL_REGS.
13233         (REG_CLASS_NAMES): Update to match.
13234         (REG_CLASS_CONTENTS): Likewise.
13235         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13236         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13237         (REGNO_IN_RANGE_P): Remove.
13238         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13239         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13240         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13241         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13242         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13243         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13244         (REGNO_GENERAL_P): New.
13245         (HAVE_POST_MODIFY_DISP): New.
13246         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13247         (LEGITIMIZE_RELOAD_ADDRESS): New.
13248         * config/mn10300/mn10300-protos.h: Update.
13249
13250         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13251         DATA_REGS for AM33 stack-pointer destination.
13252         (mn10300_preferred_output_reload_class): Likewise.
13253         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13254         into a form appropriate for ...
13255         (TARGET_SECONDARY_RELOAD): New.
13256         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13257         * config/mn10300/mn10300-protos.h: Update.
13258         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13259         reload_insi; use the "A" constraint for the scratch; handle AM33
13260         moves of sp to non-address registers.
13261
13262         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13263         (*movqi_internal): ... here.
13264         (*am33_movhi, *mn10300_movhi): Merge into...
13265         (*movhi_internal): ... here.
13266         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13267         as the source/destination of moves from/to SP.
13268         (movsf): Only allow for AM33-2.
13269         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13270         any integer constant constraint.  Only allow for AM33-2.  Tidy
13271         all of the alternative outputs.
13272         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13273         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13274         for MN103.
13275         (udivsi3, umodsi3): New patterns for MN103 only.
13276
13277 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13278
13279         * doc/tm.texi.in: Spell out that a lack of register class unions
13280         can lead to ICEs.
13281         * doc/tm.texi: Regenerate.
13282
13283 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13284
13285         PR rtl-optimization/47337
13286         * dce.c (check_argument_store): New function.
13287         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13288
13289         PR tree-optimization/47290
13290         * tree-eh.c (infinite_empty_loop_p): New function.
13291         (cleanup_empty_eh): Use it.
13292
13293 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13294
13295         PR target/46997
13296         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13297         (a64_expand_widen_sum): Ditto.
13298         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13299         (vec_extract_evenodd_help): Ditto.
13300         (vec_extract_evenv4hi): Ditto.
13301         (vec_extract_oddv4hi): Ditto.
13302         (vec_extract_evenv2si): Ditto.
13303         (vec_extract_oddv2si): Ditto.
13304         (vec_extract_evenv2sf): Ditto.
13305         (vec_extract_oddv2sf): Ditto.
13306         (vec_pack_trunc_v4hi: Ditto.
13307         (vec_pack_trunc_v2si): Ditto.
13308         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13309         (vec_interleave_highv8qi): Ditto.
13310         (mix1_r): Ditto.
13311         (vec_extract_oddv8qi): Ditto.
13312         (vec_interleave_lowv4hi): Ditto.
13313         (vec_interleave_highv4hi): Ditto.
13314         (vec_interleave_lowv2si): Ditto.
13315         (vec_interleave_highv2si): Ditto.
13316
13317 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13318
13319         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13320         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13321         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13322         (pa_c_mode_for_suffix): New.
13323         (TARGET_EXPAND_BUILTIN): Define.
13324         (TARGET_C_MODE_FOR_SUFFIX): Define.
13325         (pa_builtins): Define.
13326         (pa_init_builtins): Register __float128 type and init new support
13327         builtins.
13328         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13329         * config/pa/quadlib.c (_U_Qfcopysign): New.
13330
13331 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13332
13333         PR middle-end/46894
13334         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13335         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13336         are defined.
13337
13338 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13339
13340         PR tree-optimization/47179
13341         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13342         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13343
13344 2011-01-18  Richard Guenther  <rguenther@suse.de>
13345
13346         PR rtl-optimization/47216
13347         * emit-rtl.c: Include tree-flow.h.
13348         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13349         of replicating it with different semantics.
13350         * Makefile.in (emit-rtl.o): Adjust.
13351
13352 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13353
13354         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13355         (cortex_a9_dp): Handle neon types correctly.
13356
13357 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13358
13359         PR rtl-optimization/47299
13360         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13361         subtarget.  Use normal multiplication if both operands are constants.
13362         * expmed.c (expand_widening_mult): Don't try to optimize constant
13363         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13364         before using it.
13365
13366 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13367
13368         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13369         spacing after 'e.g.', typos, comma, hyphenation.
13370
13371 2011-01-17  Richard Henderson  <rth@redhat.com>
13372
13373         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13374         (rx_restricted_mem_operand): New.
13375         (rx_shift_operand): Use register_operand.
13376         (rx_source_operand, rx_compare_operand): Likewise.
13377         * config/rx/rx.md (addsi3_flags): New expander.
13378         (adddi3): Rewrite as expander.
13379         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13380         (subsi3_flags): New expander.
13381         (subdi3): Rewrite as expander.
13382         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13383
13384         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13385         (rx_init_builtins): Remove sat builtin.
13386         (rx_expand_builtin): Likewise.
13387         * config/rx/rx.md (ssaddsi3): New.
13388         (*sat): Rename from sat.  Represent the CC_REG input.
13389
13390         * config/rx/predicates.md (rshift_operator): New.
13391         * config/rx/rx.c (rx_expand_insv): Remove.
13392         * config/rx/rx-protos.h: Update.
13393         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13394         operand to the canonical position.
13395         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13396         (*bitclr, *bitclr_in_memory): Similarly.
13397         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13398         (insv): Retain the zero_extract in the expansion.
13399
13400         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13401         (bswaphi2, bitinvert, revw): Likewise.
13402
13403         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13404         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13405         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13406         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13407         (bitset, bitset_in_memory): Likewise.
13408         (bitinvert, bitinvert_in_memory): Likewise.
13409         (bitclr, bitclr_in_memory): Likewise.
13410         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13411         (rx_strend, rx_cmpstrn): Likewise.
13412         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13413         (bitop peep2 patterns): Remove.
13414
13415         * config/rx/rx.c (rx_match_ccmode): New.
13416         * config/rx/rx-protos.h: Update.
13417         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13418         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13419         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13420         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13421         (fix_truncsfsi2, floatsisf2): Likewise.
13422         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13423         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13424         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13425         (*subsi3_flags, *xorsi3_flags): New.
13426
13427         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13428
13429         * config/rx/rx.c (rx_print_operand): Remove workaround for
13430         unsplit comparison operations.
13431
13432         * config/rx/rx.md (movsicc): Split after reload.
13433         (*movsicc): Merge *movsieq and *movsine via match_operator.
13434         (*stcc): New pattern.
13435
13436         * config/rx/rx.c (rx_float_compare_mode): Remove.
13437         * config/rx/rx.h (rx_float_compare_mode): Remove.
13438         * config/rx/rx.md (cstoresi4): Split after reload.
13439         (*sccc): New pattern.
13440
13441         * config/rx/predicates.md (label_ref_operand): New.
13442         (rx_z_comparison_operator): New.
13443         (rx_zs_comparison_operator): New.
13444         (rx_fp_comparison_operator): New.
13445         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13446         Validate that the flags are set properly for the comparison.
13447         (rx_gen_cond_branch_template): Remove.
13448         (rx_cc_modes_compatible): Remove.
13449         (mode_from_flags): New.
13450         (flags_from_code): Rename from flags_needed_for_conditional.
13451         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13452         (rx_select_cc_mode): Likewise.
13453         (rx_split_fp_compare): New.
13454         (rx_split_cbranch): New.
13455         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13456         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13457         (*cbranchsf4): Similarly.
13458         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13459         match_operator and rx_split_cbranch.
13460         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13461         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13462         (*cmpsi): Rename from cmpsi.
13463         (*tstsi): Rename from tstsi.
13464         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13465         (*conditional_branch): Rename from conditional_branch.
13466         (*reveresed_conditional_branch): Remove.
13467         (b<code>): Remove expander.
13468         * config/rx/rx-protos.h: Update.
13469
13470         * config/rx/rx.c (rx_compare_redundant): Remove.
13471         * config/rx/rx.md (cmpsi): Don't use it.
13472         * config/rx/rx-protos.h: Update.
13473
13474         * config/rx/rx-modes.def (CC_F): New mode.
13475         * config/rx/rx.c (rx_select_cc_mode): New.
13476         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13477         * config/rx/rx-protos.h: Update.
13478
13479 2011-01-17  Richard Henderson  <rth@redhat.com>
13480
13481         * except.c (dump_eh_tree): Fix stray ; after for statement.
13482
13483 2011-01-17  Richard Guenther  <rguenther@suse.de>
13484
13485         PR tree-optimization/47313
13486         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13487         handling before copying the body.  Properly deal with
13488         by-reference result in SSA form.
13489
13490 2011-01-17  Ian Lance Taylor  <iant@google.com>
13491
13492         PR target/47219
13493         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13494         (struct_value_alias_set): Don't define.
13495         (sparc_option_override): Don't set sparc_sr_alias_set and
13496         struct_value_alias_set.
13497         (save_or_restore_regs): Use gen_frame_mem rather than calling
13498         set_mem_alias_set.
13499         (sparc_struct_value_rtx): Likewise.
13500
13501 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13502
13503         PR target/47318
13504         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13505         (_mm_maskstore_pd): Likewise.
13506         (_mm_maskload_ps): Likewise.
13507         (_mm_maskstore_ps): Likewise.
13508         (_mm256_maskload_pd): Change mask to __m256i.
13509         (_mm256_maskstore_pd): Likewise.
13510         (_mm256_maskload_ps): Likewise.
13511         (_mm256_maskstore_ps): Likewise.
13512
13513         * config/i386/i386-builtin-types.def: Updated.
13514         (ix86_expand_special_args_builtin): Likewise.
13515
13516         * config/i386/i386.c (bdesc_special_args): Update
13517         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13518         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13519         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13520         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13521
13522         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13523         Use <avxpermvecmode> on mask register.
13524         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13525
13526 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13527             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13528             Eric Botcazou  <ebotcazou@adacore.com>
13529
13530         PR target/46655
13531         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13532         if <= USHRT_MAX in 32-bit mode.
13533
13534 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13535
13536         * doc/install.texi (Configuration, Specific): Wrap long
13537         lines in examples.  Allow line wrapping in long options
13538         and URLs where beneficial for PDF output.
13539
13540 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13541
13542         * config/mips/mips.c (mips_classify_symbol): Don't return
13543         SYMBOL_PC_RELATIVE for nonlocal labels.
13544
13545 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13546
13547         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13548
13549 2011-01-15  Jan Hubicka  <jh@suse.cz>
13550
13551         PR tree-optimization/47276
13552         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13553         declarations as needed.
13554
13555 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13556
13557         * common.opt (fdevirtualize): New flag.
13558         * doc/invoke.texi (Option Summary): Document it.
13559         * opts.c (default_options_table): Add devirtualize flag.
13560         * ipa-prop.c (detect_type_change): Return immediately if
13561         devirtualize flag is not set.
13562         (detect_type_change_ssa): Likewise.
13563         (compute_known_type_jump_func): Likewise.
13564         (ipa_analyze_virtual_call_uses): Likewise.
13565
13566 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13567
13568         PR tree-optimization/45934
13569         PR tree-optimization/46302
13570         * ipa-prop.c (type_change_info): New type.
13571         (stmt_may_be_vtbl_ptr_store): New function.
13572         (check_stmt_for_type_change): Likewise.
13573         (detect_type_change): Likewise.
13574         (detect_type_change_ssa): Likewise.
13575         (compute_complex_assign_jump_func): Check for dynamic type change.
13576         (compute_complex_ancestor_jump_func): Likewise.
13577         (compute_known_type_jump_func): Likewise.
13578         (compute_scalar_jump_functions): Likewise.
13579         (ipa_analyze_virtual_call_uses): Likewise.
13580         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13581
13582 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13583
13584         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13585         * config/i386/i386.opt (msse5): New Alias.
13586
13587 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13588
13589         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13590         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13591         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13592         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13593
13594 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13595
13596         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13597         -mcpu options.
13598         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13599         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13600         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13601         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13602         Likewise.
13603         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13604
13605 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13606
13607         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13608
13609 2011-01-14  Mike Stump  <mikestump@comcast.net>
13610
13611         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13612         * config/fr30/fr30.md: Likweise
13613         (movsi_push): Likewise.
13614         (movsi_pop): Likewise.
13615         (enter_func): Likewise.
13616         * config/moxie/moxie.md (movsi_push): Likewise.
13617         (movsi_pop): Likewise.
13618
13619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13620
13621         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13622         %{no_archive} %{exact_version}.
13623         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13624         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13625         %{no_archive} %{exact_version}.
13626         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13627         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13628         * config/mips/vxworks.h: Likewise.
13629
13630 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13631
13632         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13633
13634 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13637         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13638
13639 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13640
13641         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13642         -nodefaultlib.
13643
13644 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13645
13646         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13647         for mcpu not cpu.
13648         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13649         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13650         not cpu.
13651         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13652         Don't handle -shlib.
13653
13654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13655
13656         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13657         (CC1_SPEC): Don't handle -profile.
13658
13659 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13660
13661         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13662         * config/mips/mips.h (CC1_SPEC): Likewise.
13663
13664 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13667         * config/mips/mips.h (CC1_SPEC): Likewise.
13668
13669 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13670
13671         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13672         * config/m32r/linux.h (LINK_SPEC): Likewise.
13673         * config/mips/linux.h (LINK_SPEC): Likewise.
13674         * config/mips/linux64.h (LINK_SPEC): Likewise.
13675         * config/sparc/linux.h (LINK_SPEC): Likewise.
13676         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13677         LINK_SPEC): Likewise.
13678         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13679
13680 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13681
13682         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13683         %{version:-v}.
13684         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13685
13686 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13687
13688         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13689         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13690
13691 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13692
13693         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13694
13695 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13696
13697         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13698         supports -Bstatic/-Bdynamic.
13699         * configure: Regenerate.
13700
13701 2011-01-14  Jan Hubicka  <jh@suse.cz>
13702             Jack Howarth  <howarth@bromo.med.uc.edu>
13703
13704         PR target/46037
13705         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13706         when checking debug_info_level. Test write_symbols instead of
13707         debug_hooks->var_location when setting flag_var_tracking_uninit.
13708
13709 2011-01-14  Richard Guenther  <rguenther@suse.de>
13710
13711         PR tree-optimization/47179
13712         * target.def (ref_may_alias_errno): New target hook.
13713         * targhooks.h (default_ref_may_alias_errno): Declare.
13714         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13715         (default_ref_may_alias_errno): New function.
13716         * target.h (struct ao_ref_s): Declare.
13717         * tree-ssa-alias.c: Include target.h.
13718         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13719         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13720         (targhooks.o): Likewise.
13721         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13722         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13723
13724 2011-01-14  Richard Guenther  <rguenther@suse.de>
13725
13726         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13727
13728 2011-01-14  Richard Guenther  <rguenther@suse.de>
13729
13730         PR tree-optimization/47280
13731         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13732         return CFG changes.
13733         (tree_ssa_forward_propagate_single_use_vars): Deal with
13734         CFG changes from associate_plusminus.
13735
13736 2011-01-14  Richard Guenther  <rguenther@suse.de>
13737
13738         PR middle-end/47281
13739         Revert
13740         2011-01-11  Richard Guenther  <rguenther@suse.de>
13741
13742         PR tree-optimization/46076
13743         * tree-ssa.c (useless_type_conversion_p): Conversions from
13744         unprototyped to empty argument list function types are useless.
13745
13746 2011-01-14  Richard Guenther  <rguenther@suse.de>
13747
13748         PR tree-optimization/47286
13749         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13750
13751 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13752
13753         PR middle-end/46823
13754         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13755
13756 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13757
13758         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13759         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13760         * config/xtensa/xtensa.c (xtensa_libcall_value,
13761         xtensa_function_value_regno_p): New functions.
13762         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13763
13764 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13765
13766         PR c++/47213
13767         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13768         PE specific hook.
13769         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13770         New function prototype.
13771         * config/i386/winnt.c (i386_pe_assemble_visibility):
13772         Warn only if attribute was specified by user.
13773
13774 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13775
13776         PR target/47251
13777         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13778         floating point.
13779         (floatunsdidf2_fcfidu): Ditto.
13780
13781 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13782
13783         * config/s390/s390.c (print_operand_address): Replace 'error' with
13784         'output_operand_lossage'.
13785         (print_operand): Likewise.
13786
13787 2011-01-13  Jeff Law  <law@redhat.com>
13788
13789         PR rtl-optimization/39077
13790         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13791         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13792         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13793         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13794         * gcse.c (prune_insertions_deletions): New function.
13795         (compute_pre_data): Use it.
13796
13797 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13798
13799         PR debug/PR46973
13800         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13801         static function.
13802         (prune_unused_types_mark): Use it.
13803
13804 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13805
13806         PR rtl-optimization/45352
13807         * sel-sched.c: Update copyright years.
13808         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13809         in the advancing loop when we have issued issue_rate insns.
13810
13811 2011-01-12  Richard Henderson  <rth@redhat.com>
13812
13813         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13814         (TARGET_MD_ASM_CLOBBERS): New.
13815
13816         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13817         (TARGET_DELEGITIMIZE_ADDRESS): New.
13818
13819         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13820         (clzsi2, *bsch): New patterns.
13821
13822         * config/mn10300/mn10300.md (INT): New mode iterator.
13823         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13824
13825         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13826         flag_split_wide_types.
13827
13828         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13829         (mn10300_trampoline_init): Rewrite without a template, an immediate
13830         load and a direct branch.
13831         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13832
13833 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13834
13835         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13836         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13837         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13838         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13839
13840 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13841
13842         PR debug/47209
13843         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13844         of type.
13845
13846 2011-01-12  Jan Hubicka  <jh@suse.cz>
13847
13848         PR driver/47244
13849         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13850         (PLUGIN_COND_CLOSE): New macro.
13851         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13852
13853 2011-01-12  Richard Guenther  <rguenther@suse.de>
13854
13855         PR lto/47259
13856         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13857         register variables in a MEM_REF.
13858
13859 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13860
13861         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13862         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13863         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13864         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13865         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13866         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13867         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13868         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13869         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13870         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13871         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13872         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13873         * config/gnu-user.h: New.  Copied from linux.h.
13874         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13875         GNU_USER_TARGET_STARTFILE_SPEC.
13876         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13877         GNU_USER_TARGET_ENDFILE_SPEC.
13878         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13879         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13880         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13881         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13882         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13883         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13884         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13885         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13886         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13887         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13888         * config/arm/linux-eabi.h (CC1_SPEC): Use
13889         GNU_USER_TARGET_CC1_SPEC.
13890         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13891         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13892         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13893         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13894         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13895         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13896         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13897         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13898
13899 2011-01-12  Richard Guenther  <rguenther@suse.de>
13900
13901         PR other/46946
13902         * doc/invoke.texi (ffast-math): Document it is turned on
13903         with -Ofast.
13904
13905 2011-01-12  Jan Hubicka  <jh@suse.cz>
13906
13907         PR tree-optimization/47233
13908         * opts.c (common_handle_option): Disable ipa-reference with profile
13909         feedback.
13910
13911 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13912
13913         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13914         error message.
13915
13916 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13917
13918         * c-parser.c (c_lex_one_token): Updated and reindented some
13919         comments.  No changes in code.
13920
13921 2011-01-11  Ian Lance Taylor  <iant@google.com>
13922
13923         * godump.c (go_output_var): Don't output the variable if there is
13924         already a type with the same name.
13925
13926 2011-01-11  Ian Lance Taylor  <iant@google.com>
13927
13928         * godump.c (go_format_type): Don't generate float80.
13929
13930 2011-01-11  Richard Henderson  <rth@redhat.com>
13931
13932         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13933         declaration.  Rewrite for both speed and size.
13934         (mn10300_address_cost_1): Remove.
13935         (mn10300_register_move_cost): New.
13936         (mn10300_memory_move_cost): New.
13937         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13938         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13939         extensions, shifts, BSWAP, CLZ.
13940         (mn10300_wide_const_load_uses_clr): Remove.
13941         (TARGET_REGISTER_MOVE_COST): New.
13942         (TARGET_MEMORY_MOVE_COST): New.
13943         * config/mn10300/mn10300-protos.h: Update.
13944         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13945
13946         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13947         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13948         * config/mn10300/mn10300-protos.h: Update.
13949         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13950         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13951         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13952         (*test_int_bitfield, *test_byte_bitfield): Remove.
13953         (*bit_test, *subreg_bit_test): Remove.
13954         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13955
13956         * config/mn10300/constraints.md ("c"): Rename from "A".
13957         ("A", "D"): New constraint letters.
13958         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13959         (fmssf4, fnmasf4, fnmssf4): Likewise.
13960
13961         * config/mn10300/mn10300.md (isa): New attribute.
13962         (enabled): New attribute.
13963
13964         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13965         (abssf2, negsf2): Define only for hardware fp.
13966         (sqrtsf2): Reformat.
13967         (addsf3, subsf3, mulsf3): Merge expander and insn.
13968
13969         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13970         (DEBUGGER_AUTO_OFFSET): Remove.
13971         (DEBUGGER_ARG_OFFSET): Remove.
13972
13973         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13974         Emit register stores with the same offsets as the hardware.
13975         (mn10300_store_multiple_operation): Don't check that the register
13976         save offsets are monotonic.
13977         * config/mn10300/mn10300-protos.h: Update.
13978
13979         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13980
13981         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13982         in terms of the value on the stack, not the MDR register.
13983
13984 2011-01-11  Jan Hubicka  <jh@suse.cz>
13985
13986         PR lto/45721
13987         PR lto/45375
13988         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13989         (symbol_alias_set_destroy, symbol_alias_set_contains,
13990         propagate_aliases_backward): Declare.
13991         * lto-streamer-out.c (struct sets): New sturcture.
13992         (trivally_defined_alias): New function.
13993         (output_alias_pair_p): Rewrite.
13994         (output_unreferenced_globals): Fix output of alias pairs.
13995         (produce_symtab): Likewise.
13996         * ipa.c (function_and_variable_visibility): Set weak alias destination
13997         as needed in lto.
13998         * varasm.c (symbol_alias_set_t): Remove.
13999         (symbol_alias_set_destroy): Export.
14000         (propagate_aliases_forward, propagate_aliases_backward): New functions
14001         based on ...
14002         (compute_visible_aliases): ... this one; remove.
14003         (trivially_visible_alias): New
14004         (trivially_defined_alias): New.
14005         (remove_unreachable_alias_pairs): Rewrite.
14006         (finish_aliases_1): Reorganize code checking if alias is defined.
14007         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14008         in LTO mode.
14009
14010 2011-01-11  Richard Guenther  <rguenther@suse.de>
14011
14012         PR tree-optimization/46076
14013         * tree-ssa.c (useless_type_conversion_p): Conversions from
14014         unprototyped to empty argument list function types are useless.
14015
14016 2011-01-11  Richard Guenther  <rguenther@suse.de>
14017
14018         PR middle-end/45235
14019         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14020         volatile MEMs as MEM_READONLY_P.
14021
14022 2011-01-11  Richard Guenther  <rguenther@suse.de>
14023
14024         PR tree-optimization/47239
14025         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14026
14027 2011-01-11  Jeff Law  <law@redhat.com>
14028
14029         PR tree-optimization/47086
14030         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14031         IVs from statements that might throw.
14032
14033 2011-01-10  Jan Hubicka  <jh@suse.cz>
14034
14035         PR lto/45375
14036         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14037
14038 2011-01-10  Jan Hubicka  <jh@suse.cz>
14039
14040         PR lto/45375
14041         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14042         when correcting profile.
14043
14044 2011-01-10  Jan Hubicka  <jh@suse.cz>
14045
14046         PR lto/46083
14047         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14048         DECL_FINI_PRIORITY.
14049         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14050         Restore DECL_FINI_PRIORITY.
14051
14052 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14053
14054         * doc/gimple.texi: Fix quoting of multi-word return values in
14055         @deftypefn statements.  Ensure presence of return value.  Wrap
14056         overlong @deftypefn lines.
14057         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14058         descriptions of removed functions.
14059         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14060         of multi-word return value in @deftypefn statement.
14061
14062 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14063
14064         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14065         (Conditional Expressions, Logical Operators)
14066         (Statement and operand traversals): Do not indent smallexample
14067         code.  Fix duplicate function argument in example.
14068
14069 2011-01-10  Jeff Law  <law@redhat.com>
14070
14071         PR tree-optimization/47141
14072         * ipa-split.c (split_function): Handle case where we are
14073         returning a value and the return block has a virtual operand phi.
14074
14075 2011-01-10  Jan Hubicka  <jh@suse.cz>
14076
14077         PR tree-optimization/47234
14078         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14079         (pass_feedback_split_functions): Declare.
14080         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14081         tree-profile.
14082         * ipa-split.c (gate_split_functions): Update comments; disable
14083         split-functions for profile_arc_flag and branch_probabilities.
14084         (gate_feedback_split_functions): New function.
14085         (execute_feedback_split_functions): New function.
14086         (pass_feedback_split_functions): New global var.
14087
14088 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14089
14090         PR lto/46760
14091         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14092         calling gimple_call_set_cannot_inline.
14093
14094 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14095
14096         * config/darwin-sections.def: Remove unused section.
14097
14098 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14099
14100         PR c++/47218
14101         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14102
14103 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14104
14105         PR objc/47232
14106         * c-parser.c (c_parser_declaration_or_fndef): Improved
14107         error message.
14108
14109 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14110
14111         * config/i386/winnt.c (i386_pe_start_function): Make sure
14112         to switch back to function's section.
14113
14114 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14115
14116         PR gcc/46902
14117         PR testsuite/46912
14118         * plugin.c: Move include of dlfcn.h from here...
14119         * system.h: ... to here.
14120
14121 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14122
14123         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14124         file name.
14125         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14126         two extra empty pages in PDF output.
14127
14128 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14129
14130         PR objc/47078
14131         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14132         for error recovery purposes behave as if it was not specified so
14133         that the default type is usd.
14134
14135 2011-01-07  Jan Hubicka  <jh@suse.cz>
14136
14137         PR tree-optmization/46469
14138         * ipa.c (function_and_variable_visibility): Clear needed flags on
14139         nodes with external decls; handle weakrefs merging correctly.
14140
14141 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14142
14143         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14144         not false.
14145
14146 2011-01-07  Jan Hubicka  <jh@suse.cz>
14147
14148         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14149         and no longer claim that gold is required for linker plugin.
14150         * configure: Regenerate.
14151         * gcc.c (PLUGIN_COND): New macro.
14152         (LINK_COMMAND_SPEC): Use it.
14153         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14154         * config.in (HAVE_LTO_PLUGIN): New.
14155         * configure.ac (--with-lto-plugin): New parameter; autodetect
14156         HAVE_LTO_PLUGIN.
14157
14158 2011-01-07  Jan Hubicka  <jh@suse.cz>
14159
14160         PR tree-optimization/46367
14161         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14162         when we can update original.
14163         (cgraph_mark_inline_edge): Sanity check.
14164         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14165
14166 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14167
14168         * config/spu/spu.h (ASM_COMMENT_START): Define.
14169
14170 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14171
14172         PR driver/42445
14173         * gcc.c (%>S): New.
14174         (SWITCH_KEEP_FOR_GCC): Likewise.
14175         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14176         (do_spec_1): Handle "%>".
14177
14178         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14179
14180 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14181
14182         PR target/47201
14183         * config/i386/i386.c (ix86_delegitimize_address): If
14184         simplify_gen_subreg fails, return orig_x.
14185
14186         PR bootstrap/47187
14187         * value-prof.c (gimple_stringop_fixed_value): Handle
14188         lhs of the call properly.
14189
14190 2011-01-07  Jan Hubicka  <jh@suse.cz>
14191
14192         PR lto/45375
14193         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14194
14195 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14196
14197         * target.def (function_switched_text_sections): New hook.
14198         * doc/tm.texi: Regenerated.
14199         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14200         * final.c (default_function_switched_text_sections): New.
14201         (final_scan_insn): Call function_switched_text_sections when a
14202         mid-function section change occurs.
14203         * output.h (default_function_switched_text_sections): Declare.
14204         * config/darwin-protos.h (darwin_function_switched_text_sections):
14205         Likewise.
14206         * config/darwin.c (darwin_function_switched_text_sections): New.
14207         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14208
14209 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14210
14211         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14212         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14213         the secondary code fragment when outputting for DWARF == 2.
14214
14215 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14216
14217         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14218         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14219         Remove.
14220         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14221         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14222
14223 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14224
14225         PR debug/46704
14226         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14227         when it is not empty.
14228
14229 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14230
14231         Bobcat Enablement
14232         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14233         (case ${target}): Add btver1.
14234         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14235         -march=native recognize btver1 processors.
14236         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14237         btver1 def_and_undef
14238         * config/i386/i386.c (struct processor_costs btver1_cost): New
14239         btver1 cost table.
14240         (m_BTVER1): New definition.
14241         (m_AMD_MULTIPLE): Includes m_BTVER1.
14242         (initial_ix86_tune_features): Add btver1 tune.
14243         (processor_target_table): Add btver1 entry.
14244         (static const char *const cpu_names): Add btver1 entry.
14245         (software_prefetching_beneficial_p): Add btver1.
14246         (ix86_option_override_internal): Add btver1 instruction sets.
14247         (ix86_issue_rate): Add btver1.
14248         (ix86_adjust_cost): Add btver1.
14249         * config/i386/i386.h (TARGET_BTVER1): New definition.
14250         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14251         (enum processor_type): Add PROCESSOR_BTVER1.
14252         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14253
14254 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14255
14256         PR target/43309
14257         * config/i386/i386.c (legitimize_tls_address)
14258         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14259         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14260         (tls_initial_exec_64_sun): New pattern.
14261
14262 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14263
14264         * doc/invoke.texi (Overall Options): Improve wording and markup
14265         of the description of -wrapper.
14266
14267 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14268
14269         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14270         rdynamic, threads): New Driver options.
14271
14272 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14273
14274         PR target/38118
14275         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14276         if coming from .tdata.
14277         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14278
14279 2011-01-06  Jan Hubicka  <jh@suse.cz>
14280
14281         PR lto/47188
14282         * collect2.c (main): Do not enable LTOmode when plugin is active.
14283
14284 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14285
14286         PR other/45915
14287         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14288         --version output if supported.
14289         * configure: Regenerate.
14290
14291 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14294         Driver options.
14295
14296 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14297
14298         PR c/47150
14299         * c-convert.c (convert): When converting a complex expression
14300         other than COMPLEX_EXPR to a different complex type, ensure
14301         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14302         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14303         when converting COMPLEX_TYPE.
14304
14305 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14306
14307         PR tree-optimization/47139
14308         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14309         only the last reduction value is used outside the loop.  Update
14310         documentation.
14311
14312 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14313
14314         * config/rtems.opt: New.
14315         * config.gcc (*-*-rtems*): Use rtems.opt.
14316
14317 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14318
14319         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14320         processors do not support 3DNow instructions.
14321
14322 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14323
14324         * config/spu/spu.c (spu_option_override): Set parameter
14325         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14326
14327 2011-01-05  Jan Hubicka  <jh@suse.cz>
14328
14329         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14330         at the command line.
14331
14332 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14333
14334         PR lto/47162
14335         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14336         deltas on streamed outgoing edges.
14337         (output_node_opt_summary): Output info for outgoing edges only when
14338         the node is in new parameter set.
14339         (output_cgraph_opt_summary): New parameter set, passed to the two
14340         aforementioned functions.  Update its forward declaration and its
14341         callee too.
14342
14343 2011-01-05  Tom Tromey  <tromey@redhat.com>
14344
14345         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14346         operator to c_finish_omp_atomic.
14347         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14348         (build_unary_op): Update.
14349         (build_modify_expr): Update.
14350         (build_asm_expr): Update.
14351
14352 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14353
14354         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14355         newly inserted insns.
14356         (pad_bb): Likewise.
14357         (spu_emit_branch_hint): Likewise.
14358         (insert_hbrp_for_ilb_runout): Likewise.
14359         (spu_machine_dependent_reorg): Call df_finish_pass after
14360         schedule_insns returns.
14361
14362 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14363
14364         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14365
14366 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14367
14368         PR tree-optimization/47005
14369         * tree-sra.c (struct access): Add 'non_addressable' bit.
14370         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14371         (decide_one_param_reduction): Return 0 if the parameter is passed by
14372         reference and one of the accesses in the group is non_addressable.
14373
14374 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14375
14376         PR tree-optimization/47056
14377         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14378         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14379         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14380
14381 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14382
14383         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14384         initializer.  Skip view conversions from aggregate types.
14385
14386 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14387
14388         PR bootstrap/47055
14389         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14390
14391 2011-01-04  Philipp Thomas  <pth@suse.de>
14392
14393         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14394         obvious typo.
14395
14396 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14397
14398         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14399         on empty epilogue sequences.
14400
14401 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14402
14403         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14404         non-static): New Driver options.
14405
14406 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14407
14408         PR driver/47137
14409         * gcc.c (default_compilers[]): Set combinable field to 0
14410         for all assembly languages.
14411
14412 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14413
14414         * config/mips/loongson3a.md: New file.
14415         * config/mips/mips.md: Include loongson3a.md.
14416         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14417         TUNE_LOONGSON_3A.
14418
14419 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14420
14421         PR middle-end/47017
14422         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14423         instead of convert_memory_address_addr_space on the base expression.
14424
14425 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14426
14427         * config/spu/spu.c (spu_option_override): Update error text
14428         for bad -march= / -mtune= values.
14429
14430 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14431
14432         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14433         if branch-hint optimization will be performed.
14434
14435 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14436
14437         PR tree-optimization/47148
14438         * ipa-split.c (split_function): Convert arguments to
14439         DECL_ARG_TYPE if possible.
14440
14441         PR tree-optimization/47155
14442         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14443         when computing uns.
14444
14445         PR rtl-optimization/47157
14446         * combine.c (try_combine): If undobuf.other_insn becomes
14447         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14448         and set *new_direct_jump_p too.
14449
14450 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14451
14452         PR tree-optimization/47021
14453         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14454
14455 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14456
14457         * gcc.c (process_command): Update copyright notice dates.
14458         * gcov.c (print_version): Likewise.
14459         * gcov-dump.c (print_version): Likewise.
14460         * mips-tfile.c (main): Likewise.
14461         * mips-tdump.c (main): Likewise.
14462
14463 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14464
14465         PR tree-optimization/46801
14466         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14467         aggregate fields start at byte boundary instead of the bit-field flag.
14468
14469 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14470
14471         PR driver/47137
14472         * gcc.c (main): Revert revision 168407.
14473
14474 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14475
14476         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14477
14478 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14479
14480         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14481         vector optab to expand vector/scalar shift, update gimple to vector.
14482
14483 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14484
14485         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14486         a thunk.
14487
14488 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14489
14490         PR tree-optimization/46984
14491         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14492         HOST_WIDE_INT.
14493         (cgraph_create_indirect_edge): Fixed line length.
14494         (cgraph_indirect_call_info): Declare.
14495         (cgraph_make_edge_direct) Update declaration.
14496         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14497         (cgraph_create_indirect_edge): Use it.
14498         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14499         callees.
14500         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14501         the new thunk_delta representation.
14502         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14503         HOST_WIDE_INT.
14504         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14505         (ipa_read_indirect_edge_info): Likewise.
14506         * lto-cgraph.c (output_edge_opt_summary): New function.
14507         (output_node_opt_summary): Call it on all outgoing edges.
14508         (input_edge_opt_summary): New function.
14509         (input_node_opt_summary): Call it on all outgoing edges.
14510
14511 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14512
14513         PR driver/47137
14514         * gcc.c (main): Don't check have_o when settting combine_inputs.
14515
14516 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14517
14518         * regrename.c: Add general comment describing the pass.
14519         (struct du_head): Remove 'length' field.
14520         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14521         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14522         Force renaming to the preferred class (if any) in the first pass and do
14523         not consider registers that belong to it in the second pass.
14524         (create_new_chain): Do not set 'length' field.
14525         (scan_rtx_reg): Likewise.
14526
14527 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14528
14529         PR tree-optimization/47140
14530         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14531         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14532         to bit_value_binop.
14533
14534         PR rtl-optimization/47028
14535         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14536         parm_birth_insn instead of at the beginning of first bb.
14537
14538 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14539
14540         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14541         Remove the word "see" before "@pxref".
14542         * doc/rtl.texi: Remove the word "see" before "@pxref".
14543
14544 2011-01-01  Jan Hubicka  <jh@suse.cz>
14545
14546         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14547         memory.
14548
14549 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14550
14551         PR target/38662
14552         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14553
14554 \f
14555 Copyright (C) 2011 Free Software Foundation, Inc.
14556
14557 Copying and distribution of this file, with or without modification,
14558 are permitted in any medium without royalty provided the copyright
14559 notice and this notice are preserved.