OSDN Git Service

9e9ba7fcf34defb9b8380e159284bd726c7f7b3d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-14  Tobias Burnus  <burnus@net-b.de>
2
3         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4
5 2011-05-13  Martin Jambor  <mjambor@suse.cz>
6
7         * ipa-prop.c (ipa_cst_from_jfunc): New function.
8         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
10         (evaluate_conditions_for_ipcp_clone): Removed.
11         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14
15 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16
17         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19         lieu of MAY_HAVE_DEBUG_STMTS.
20         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
21         debug statements if !MAY_HAVE_DEBUG_STMTS.
22
23 2011-05-13  Martin Thuresson  <martint@google.com>
24
25         PR gcov-profile/47793
26         * libgcov.c (gcov_exit): Support relative profile paths.
27         * doc/invoke.texi (-fprofile-dir): Update for above change.
28
29 2011-05-13  Richard Guenther  <rguenther@suse.de>
30
31         * gimple.c (gimple_canonical_types_compatible_p): Do not use
32         type-pair caching, do not compare hashes.
33
34 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
35
36         PR middle-end/48965
37         * tree-cfg.c (edge_to_cases_cleanup): Return true.
38         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
39
40 2011-05-13  Kai Tietz  <ktietz@redhat.com>
41
42         * gimplify.c (gimplify_expr): Make sure operand is boolified.
43         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
44         compatible type for TRUTH_NOT_EXPR.
45
46 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
47
48         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
49         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
50         can_create_pseudo_p ().
51
52 2011-05-13  Richard Guenther  <rguenther@suse.de>
53
54         PR lto/48978
55         * gimple.c (iterative_hash_gimple_type): Revert change in
56         pointer target and function result and argument hashing.
57
58 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
59
60         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
61         (*movxf_internal_nointeger): Ditto.
62         (*movdf_internal_rex64): Ditto.
63         (*movdf_internal): Ditto.
64         (*movdf_internal_nointeger): Ditto.
65         (*movsf_internal): Ditto.
66         (sincos splitters): Use can_create_pseudo ().
67
68 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
69
70         * config/i386/i386-opts.h: New.
71         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
72         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
73         ix86_section_threshold): Remove.
74         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
75         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
76         OPT_mbranch_cost_.
77         (ix86_option_override_internal): Don't decode strings for options
78         other than -march=, -mtune= and -mfpmath=.  Don't allow for
79         __attribute__ uses in remaining diagnostics for options with
80         string arguments.  Don't check for integer arguments being negative.
81         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
82         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
83         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
84         ix86_branch_cost, ix86_section_threshold): Remove.
85         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
86         HeaderInclude.
87         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
88         but not Var.
89         (masm=): Use Enum and Init.
90         (asm_dialect): New Enum and EnumValue entries.
91         (mbranch-cost=): Use UInteger.
92         (mlarge-data-threshold=): Use UInteger and Init.
93         (mcmodel=): Use Enum and Init.
94         (cmodel): New Enum and EnumValue entries.
95         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
96         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
97         mregparm=): Use UInteger.
98         (mstringop-strategy=): Use Enum and Init.
99         (stringop_alg): New Enum and EnumValue entries.
100         (mtls-dialect=): Use Enum and Init.
101         (tls_dialect): New Enum and EnumValue entries.
102         (mabi=): Use Enum and Init.
103         (calling_abi): New Enum and EnumValue entries.
104         (mveclibabi=): Use Enum and Init.
105         (ix86_veclibabi): New Enum and EnumValue entries.
106
107 2011-05-13  Nick Clifton  <nickc@redhat.com>
108
109         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
110         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
111
112 2011-05-13  Kai Tietz  <ktietz@redhat.com>
113
114         PR middle-end/48984
115         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
116         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
117         (gimple_boolify): Check for cast for boolean_type_node instead for
118         BOOLEAN_TYPE.
119
120 2011-05-13  Richard Guenther  <rguenther@suse.de>
121
122         PR tree-optimization/48172
123         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
124         multiplying by number of iterations for equal step.
125         (vect_create_cond_for_alias_checks): Likewise.
126
127 2011-05-13  Andreas Schwab  <schwab@redhat.com>
128
129         * configure.ac: Use AS_HELP_STRING throughout.
130         * configure: Regenerate.
131
132 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
133
134         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
135         (ix86_emit_restore_regs_using_mov): Likewise.
136         (ix86_emit_restore_sse_regs_using_mov): Likewise.
137
138 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
139
140         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
141         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
142         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
143         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
144         RTX_OK_FOR_OLO10_P): ...here.
145         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
146         SYMBOLIC_CONST.
147
148 2011-05-12  Kai Tietz  <ktietz@redhat.com>
149
150         * gimplify.c (gimple_boolify): Re-boolify expression
151         arguments even if expression type is of kind BOOLEAN_TYPE.
152         (gimplify_boolean_expr): Removed.
153         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
154         and XOR. Additional take care that we keep expression's type.
155         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
156         of TRUTH_AND|OR|XOR_EXPR.
157
158 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
159
160         PR tree-optimization/48975
161         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
162         on all bbs here and free and clear ifc_bbs at the end.
163
164 2011-05-12  Richard Guenther  <rguenther@suse.de>
165
166         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
167         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
168         until after simple checks.
169         (gimple_types_compatible_p): Likewise.
170         (iterative_hash_gimple_type): Always hash pointer targets
171         and function return and argument types.
172         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
173         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
174         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
175         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
176         completely in the simple compare section.
177         (gimple_register_canonical_type): Query the cache again after
178         registering.
179
180 2011-05-12  Richard Guenther  <rguenther@suse.de>
181
182         PR tree-optimization/48172
183         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
184         the number of iterations from the segment size calculation.
185         (vect_create_cond_for_alias_checks): Adjust.
186
187 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
188
189         PR debug/48967
190         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
191         if validate_subreg fails.
192
193 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
194
195         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
196         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
197         early.
198
199 2011-05-12  DJ Delorie  <dj@redhat.com>
200
201         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
202         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
203         created builtin into rx_builtins array.
204         (rx_builtin_decl): New function.
205         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
206
207 2011-05-12  DJ Delorie  <dj@redhat.com>
208             Nick Clifton  <nickc@redhat.com>
209
210         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
211         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
212         (rx_is_legitimate_address): Add pre-decrement and post-increment
213         addressing in HImode and QImode.  Fix test for out of range
214         REG+INT addressing.
215         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
216         (rx_align_for_label): Test label before extracting its usage count.
217         (rx_adjust_insn_lengths): Fix selection of insn codes.
218         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
219
220 2011-05-11  Jason Merrill  <jason@redhat.com>
221
222         * tree.c (type_hash_canon): Use struct tree_type_non_common.
223
224 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
225
226         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
227         reindent the subsequent block.
228
229 2011-05-11  Satoru Takabayashi  <satorux@google.com>
230             Paul Pluzhnikov  <ppluzhnikov@google.com>
231
232         * doc/install.texi (Configuration): Document --with-linker-hash-style.
233         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
234         * config.in: Add LINKER_HASH_STYLE.
235         * configure.ac: Add --with-linker-hash-style.
236         * configure: Regenerate.
237
238 2011-05-11  Richard Guenther  <rguenther@suse.de>
239
240         PR middle-end/48964
241         * gimple.c (iterative_hash_canonical_type): Fix typo.
242
243 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
244
245         * config/i386/i386.c (legitimize_tls_address)
246         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
247         expanders directly for TARGET_GNU2_TLS.  Determine pic and
248         __tls_get_addr symbol reference here.  Update call to
249         gen_tls_global_dynamic_{32,64} for added arguments.
250         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
251         expanders directly for TARGET_GNU2_TLS.  Determine
252         __tls_get_addr symbol reference here.  Update call to
253         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
254         unique UNSPEC REG_EQUIV to libcall block.
255         (ix86_tls_get_addr): Declare static.
256         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
257         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
258         Do not determine pic and __tls_get_addr symbol reference here. Do not
259         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
260         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
261         (tls_global_dynamic_64): Add operand 2.  Do not determine
262         __tls_get_addr symbol reference here.  Do not call
263         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
264         (tls_local_dynamic_base64): Ditto for operand 1.
265
266 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
267
268         * function.c (expand_function_start): Initialize stack_check_probe_note
269         only if the generic stack checking mechanism is used.
270
271 2011-05-11  Richard Guenther  <rguenther@suse.de>
272
273         PR tree-optimization/15256
274         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
275         (A & B) | C, combine (A op CST1) op CST2.
276         (tree_ssa_forward_propagate_single_use_vars): Only bother to
277         visit assigns that have uses.
278
279 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
280
281         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
282         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
283         (unpack_ts_type_common_value_fields): ...this.  Update comment.
284         (unpack_value_fields): Adjust for renaming.
285         (lto_input_ts_type_tree_pointers): Split into...
286         (lto_input_ts_type_common_tree_pointer): ...this and...
287         (lto_input_ts_type_non_common_tree_pointers): ...this.
288         (lto_input_tree_pointers): Adjust for above split.
289         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
290         (pack_ts_type_common_value_fields): ...this.  Update comment.
291         (lto_output_ts_type_tree_pointers): Split into...
292         (lto_output_ts_type_common_tree_pointers): ...this and...
293         (lto_output_ts_type_non_common_tree_pointers): ...this.
294         (lto_output_tree_pointers): Adjust for above split.
295         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
296         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
297         * stor-layout.c (vector_type_mode): Adjust location of mode field.
298         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
299         Define.
300         (struct tree_type): Split into...
301         (struct tree_type_common: ...this and...
302         (struct tree_type_with_lang_specific): ...this and...
303         (struct tree_type_non_common): ...this.  Adjust accessor macros
304         accordingly.
305         (TYPE_VALUES_RAW): Define.
306         (union tree_node): Update for above changes.
307         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
308         TS_TYPE_NON_COMMON.
309         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
310         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
311         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
312         * treestructu.def (TS_TYPE): Remove.
313         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
314         Define.
315
316 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
317
318         PR debug/48159
319         * tree-ssa.c (reset_debug_uses): New function.
320         * tree-flow.h (reset_debug_uses): New prototype.
321         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
322         * tree-loop-distribution.c (generate_loops_for_partition): Call
323         reset_debug_uses on the stmts that will be removed.  Keep around
324         all debug stmts, don't count them as bits in partition bitmap.
325         (generate_builtin): Don't count debug stmts or labels as bits in
326         partition bitmap.
327
328 2011-05-11  Richard Guenther  <rguenther@suse.de>
329
330         * gimple.c (gimple_type_hash_1): Merge with ...
331         (gimple_type_hash): ... this.
332         (gtc_visit): Remove mode parameter and simplify accordingly.
333         (gimple_types_compatible_p_1): Likewise.
334         (gimple_types_compatible_p): Likewise.
335         (iterative_hash_gimple_type): Likewise.
336         (visit): Likewise.
337         (gimple_type_eq): Adjust.
338
339 2011-05-11  Revital Eres  <revital.eres@linaro.org>
340
341         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
342         enters the branch create an anti edge in the opposite direction
343         to prevent the creation of reg-moves.
344         * modulo-sched.c: Adjust comment to reflect the fact we are
345         scheduling closing branch.
346         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
347         (stage_count): New field in struct partial_schedule.
348         (calculate_stage_count): New function.
349         (normalize_sched_times): Rename to reset_sched_times and handle
350         incrementing the sched time of the nodes by a constant value
351         passed as parameter.
352         (duplicate_insns_of_cycles): Skip closing branch.
353         (sms_schedule_by_order): Schedule closing branch.
354         (ps_insn_find_column): Handle closing branch.
355         (sms_schedule): Call reset_sched_times and adjust the code to
356         support scheduling of the closing branch.
357         (ps_insert_empty_row): Update calls to normalize_sched_times
358         and rotate_partial_schedule functions.
359
360 2011-05-11  Richard Guenther  <rguenther@suse.de>
361
362         PR middle-end/48953
363         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
364
365 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
366
367         * opts.c (finish_options): Move warning settings from process_options.
368         * toplev.c (process_options): Move warning settings to finish_options.
369
370 2011-05-11  Richard Guenther  <rguenther@suse.de>
371
372         PR tree-optimization/18041
373         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
374         (simplify_bitwise_binary): ... this.  Handle operand conversions
375         by applying them to the result instead.
376         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
377
378 2011-05-11  Richard Guenther  <rguenther@suse.de>
379
380         * gimple.c (gimple_canonical_types_compatible_p): Split out
381         from gimple_types_compatible_p and friends.  Do not recurse
382         to pointed-to types.
383         (gimple_canonical_type_eq): Use it.
384         (iterative_hash_canonical_type): Split out from
385         iterative_hash_gimple_type and friends.  Do not recurse
386         to pointed-to types.
387         (gimple_canonical_type_hash): Use it, allocate the hash here.
388
389 2011-05-11  Revital Eres  <revital.eres@linaro.org>
390
391         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
392         recognizing doloop.
393
394 2011-05-11  Revital Eres  <revital.eres@linaro.org>
395
396         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
397         instead of PREV_INSN.
398
399 2011-05-11  Revital Eres  <revital.eres@linaro.org>
400
401         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
402         * loop-doloop.c (doloop_condition_get): Likewise.
403         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
404         (doloop_end): New.
405         * config/arm/arm.md (*addsi3_compare0): Remove "*".
406
407 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
408
409         * tree.def (CASE_LABEL_EXPR): Add an operand.
410         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
411
412 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
413
414         * c-decl.c (c_override_global_bindings_to_false): Remove.
415         (global_bindings_p): Don't check
416         c_override_global_bindings_to_false.
417         * c-tree.h (c_override_global_bindings_to_false): Remove.
418         * c-typeck.c (composite_type): Don't set
419         c_override_global_bindings_to_false.
420
421 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
422
423         PR target/48857, 48495
424         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
425         (VSX_MODE): Ditto.
426         (VSX_MOVE_MODE): Ditto.
427         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
428         VSX vector types.  Add V2DImode.
429         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
430         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
431         (MODES_TIEABLE_P): Ditto.
432
433         * config/rs6000/rs6000.c (rs6000_emit_move): Use
434         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
435         VSX_VECTOR_MODE.
436         (init_cumulative_args): Ditto.
437         (rs6000_function_arg_boundary): Ditto.
438         (rs6000_function_arg_advance_1): Ditto.
439         (rs6000_function_arg): Ditto.
440         (rs6000_function_ok_for_sibcall): Ditto.
441         (emit_frame_save): Ditto.
442         (rs6000_function_value): Ditto.
443         (rs6000_libcall_value): Ditto.
444
445 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
446
447         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
448         i386/darwin-lib.h to $libgcc_tm_file.
449         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
450
451 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
452
453         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
454
455 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
456
457         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
458         * config/rs6000/rs6000-tables.opt: New file (generated).
459         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
460         rs6000/rs6000-tables.opt to extra_options.
461         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
462         * config/rs6000/rs6000.c (rs6000_select): Remove.
463         (processor_target_table): Move contents to rs6000-cpus.def.
464         (darwin_rs6000_override_options): Check
465         global_options_set.x_rs6000_cpu_index instead of
466         rs6000_select[1].string.
467         (rs6000_option_override_internal): Likewise.
468         (rs6000_handle_option): Don't assert that global structures are in
469         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
470         (rs6000_default_cpu): New variable.
471         (rs6000_file_start): Set it instead of local default_cpu.  Check
472         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
473         global_options_set.x_rs6000_tune_index instead of rs6000_select.
474         (rs6000_darwin_file_start): Check rs6000_default_cpu and
475         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
476         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
477         rs6000_select): Remove.
478         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
479         Remove.
480         (mcpu=, mtune=): Use Var, Init, Enum and Save.
481         * config/rs6000/t-rs6000
482         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
483         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
484         global_options_set.x_rs6000_cpu_index instead of
485         rs6000_select[1].string.
486         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
487         global_options_set.x_rs6000_cpu_index instead of
488         rs6000_select[1].string.
489
490 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
491
492         * config.gcc (libgcc_tm_file): Define instead of including files
493         from ../../libgcc/config/ in tm_file.
494         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
495         * configure: Regenerate.
496         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
497         libgcc_tm.h, cs-libgcc_tm.h): New.
498         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
499         (clean): Remove libgcc_tm.h.
500         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
501         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
502         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
503
504 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
505
506         PR target/48896
507         * config/avr/avr.c (avr_ret_register): Return unsigned int
508         instead of int.
509         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
510         it to avr_libcall_value.
511         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
512         expand_expr.
513         (avr_expand_binop_builtin): Ditto.
514         (avr_expand_unop_builtin): Ditto.
515
516 2011-05-10  DJ Delorie  <dj@redhat.com>
517
518         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
519         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
520         * config/rx/rx.c (rx_align_for_label): Add label and
521         uses_threshold parameters.  Do not align when the label is not
522         used enough.
523         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
524
525 2011-05-10  Richard Guenther  <rguenther@suse.de>
526
527         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
528         a series of conversions and apply foldings similar to what
529         fold-const does.
530         (tree_ssa_forward_propagate_single_use_vars): Call it.
531
532 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
533
534         PR tree-optimization/48611
535         PR tree-optimization/48794
536         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
537         referenced from RESX or EH_DISPATCH arguments.
538
539         PR debug/48928
540         * dfp.c (decimal_to_decnumber): Handle conversion from
541         dconst{1,2,m1,half}.
542
543 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
544
545         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
546         for !flag_prefer_avx128.
547         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
548
549 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
550
551         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
552         (fold_ternary_loc): Use expr_location_or.
553
554 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
555
556         PR debug/48853
557         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
558         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
559         Pmode and mem_mode is not VOIDmode.
560
561 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
562
563         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
564         TYPE_QUAL_RESTRICT): Convert to enum.
565
566 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
567
568         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
569         (const_pow2_1_to_8_operand): Ditto.
570         (const_pow2_1_to_128_operand): Ditto.
571         (const_pow2_1_to_32768_operand): Ditto.
572         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
573         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
574         in insn constraint to check integer value of operand 3.
575         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
576
577         (PINSR_MODE): New mode iterator.
578         (sse2p4_1): New mode attribute.
579         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
580         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
581         iterator.  Use const_int_operand instead of
582         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
583         exact_log2 in insn constraint to check integer value of operand 3.
584
585 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
586
587         * config/i386/sse.md (blendbits): Remove mode attribute.
588         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
589         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
590         Check integer value of operand 3 in insn constraint.
591
592 2011-05-09  Richard Guenther  <rguenther@suse.de>
593
594         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
595         for diagnostics.
596         (lto_symtab_merge): Likewise.  Do not register types here.
597         (lto_symtab_merge_decls_2): Likewise.
598         (lto_symtab_merge_decls_1): Likewise.
599         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
600         * gimple.c (enum gtc_mode): Declare.
601         (gimple_types_compatible_p): Make static.
602
603 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
604
605         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
606         temporary register to match Pmode.
607
608 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
609
610         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
611         and *vec_concatv4si_1_avx.
612
613 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
614
615         PR rtl-optimization/48927
616         * ira-conflicts.c (commutative_constraint_p): Use
617         recog_data.alternative_enabled_p to disable alternatives where
618         "enabled" attribute is false.
619         (get_dup_num): Ditto.
620         * ira-lives.c (single_reg_class): Ditto.
621         (ira_implicitly_set_insn_hard_regs): Ditto.
622
623 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
624
625         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
626         (dataflow_set_preserve_mem_locs): Likewise.
627
628 2011-05-09  Philipp Thomas  <pth@suse.de>
629
630         * config/mep/mep.c (mep_validate_vliw): Syntax description
631         should not be translated.
632
633 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
634
635         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
636         * config/mips/mips-tables.opt: New file (generated).
637         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
638         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
639         MIPS_ARCH_OPTION_NATIVE): Define.
640         * config/mips/mips.c (mips_cpu_info_table): Move contents to
641         mips-cpus.def.
642         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
643         mips_parse_cpu): Remove.
644         (mips_cpu_info_from_opt, mips_default_arch): New.
645         (mips_handle_option): Don't assert that global structures are in
646         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
647         (mips_option_override): Use new variables and functions to set
648         state of these options.  Use strcmp to check for individual CPU names.
649         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
650         definition.
651         * config/mips/mips.opt (march=): Use ToLower and Enum.
652         (mips): Use ToLower, Enum and Var.
653         (mtune=): Use ToLower and Enum.
654         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
655
656 2011-05-08  Jan Hubicka  <jh@suse.cz>
657
658         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
659         Arrange type pairs to be UID ordered.
660         (gimple_lookup_type_leader): Make inline.
661
662 2011-05-09  Nick Clifton  <nickc@redhat.com>
663
664         PR target/48899
665         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
666         PROCESSOR_DEFAULT.
667
668         PR target/48897
669         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
670         variable 's'.
671
672 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
673
674         * combine.c (simplify_comparison): Abstract out parts into...
675         (simplify_compare_const): ... new function.
676         (try_combine): Generalize parallel arithmetic/compare combining
677         to call simplify_compare_const() and CANONICALIZE_COMPARE().
678
679 2011-05-08  Jan Hubicka  <jh@suse.cz>
680
681         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
682         (cgraph_create_virtual_clone): Call hooks once virtual clone
683         is finished.
684         * cgraph.h (cgraph_clone_node): Update prototype.
685         * ipa-cp.c (ipcp_estimate_growth): Use
686         estimate_ipcp_clone_size_and_time.
687         * ipa-inline-transform.c (clone_inlined_nodes): Update.
688         * lto-cgraph.c (input_node): Update.
689         * ipa-inline.c (recursive_inlining): Update.
690         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
691         (evaluate_conditions_for_known_args): Break out from ...
692         (evaluate_conditions_for_edge): ... here.
693         (evaluate_conditions_for_ipcp_clone): New function.
694         (inline_node_duplication_hook): Update clone summary based
695         on parameter map.
696         (estimate_callee_size_and_time): Rename to ...
697         (estimate_node_size_and_time): take NODE instead of EDGE;
698         take POSSIBLE_TRUTHS as argument.
699         (estimate_callee_size_and_time): Update.
700         (estimate_ipcp_clone_size_and_time): New function.
701         (do_estimate_edge_time): Update.
702
703 2011-05-08  Richard Guenther  <rguenther@suse.de>
704
705         PR middle-end/48908
706         PR middle-end/48905
707         * expmed.c (expand_shift_1): Compute adjusted constant shift
708         amount manually.
709
710 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
711
712         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
713
714 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
715
716         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
717
718 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
719
720         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
721
722 2011-05-07  Jan Hubicka  <jh@suse.cz>
723
724         * ipa-inline-transform.c (inline_call): Account when program size
725         decreases.
726         * ipa-inline.c (relative_time_benefit): New function.
727         (edge_badness): Reorganize to be power 2 based; fix thinko when
728         computing badness for negative growth; update comments to match
729         reality; better dumps.
730
731 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
732
733         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
734         type to bool and adjust comment.
735         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
736         (fold_mathfn_compare): Remove calls to global_bindings_p.
737         (fold_inf_compare): Likewise.
738         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
739         * c-tree.h (global_bindings_p): Adjust prototype.
740         * c-decl.c (global_bindings_p): Return bool and simplify.
741
742 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
743
744         PR tree-optimization/48837
745         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
746         when accumulator transformation is performed.
747
748 2011-05-06  Jan Hubicka  <jh@suse.cz>
749
750         * i386.h (ix86_tune_indices): Add
751         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
752         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
753         * i386.c (initial_ix86_tune_features): Add
754         X86_SOFTARE_PREFETCHING_BENEFICIAL.
755         (software_prefetching_beneficial_p): Remove predicate.
756         (ix86_option_override_internal): Use new macro.
757
758 2011-05-06  Jan Hubicka  <jh@suse.cz>
759
760         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
761
762 2011-05-06  Jan Hubicka  <jh@suse.cz>
763
764         * cgraph.c (cgraph_add_thunk): Create real function node instead
765         of alias node; finalize it and mark needed/reachale; arrange visibility
766         to be right and add it into the corresponding same comdat group list.
767         (dump_cgraph_node): Dump thunks.
768         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
769         cgraph_function_with_gimple_body_p,
770         cgraph_first_function_with_gimple_body,
771         cgraph_next_function_with_gimple_body): New functions.
772         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
773         New macros.
774         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
775         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
776         * cgraphunit.c (cgraph_finalize_function): Only look into possible
777         devirtualization when optimizing.
778         (verify_cgraph_node): Verify thunks.
779         (cgraph_analyze_function): Analyze thunks.
780         (cgraph_mark_functions_to_output): Output thunks only in combination
781         with function they are assigned to.
782         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
783         alias into normal node.
784         (assemble_thunks): New functoin.
785         (cgraph_expand_function): Use it.
786         * lto-cgraph.c (lto_output_node): Stream thunks.
787         (input_overwrite_node): Stream in thunks.
788         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
789         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
790         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
791         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
792         (inline_analyze_function): Do not care about thunk jump functions.
793         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
794         * ipa-prop.c (ipa_prop_write_jump_functions): Use
795         cgraph_function_with_gimple_body_p.
796         * passes.c (do_per_function_toporder): Use
797         cgraph_function_with_gimple_body_p.
798         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
799         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
800         (function_called_by_processed_nodes_p): Likewise.
801
802 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
803
804         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
805         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
806         entries.
807         (mabi=): Replace with separate entries for mabi=altivec,
808         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
809         mabi=ieeelongdouble and mabi=ibmlongdouble.
810         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
811         check for -mabi=spe without SPE ABI support here.
812         (rs6000_handle_option): Replace OPT_mabi_ handling with
813         OPT_mabi_altivec and OPT_mabi_spe handling.
814
815 2011-05-06  Cary Coutant  <ccoutant@google.com>
816
817         * dwarf2out.c (contains_subprogram_definition): New function.
818         (should_move_die_to_comdat): Call it.
819
820 2011-05-06  Jeff Law  <law@redhat.com>
821
822         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
823         remove_ctrl_stmt_and_useless_edges.
824         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
825         (fixup_template_block, thread_single_edge): Likewise.
826         (mark_threaded_blocks): Use THREAD_TARGET.
827
828 2011-05-06  Alan Modra  <amodra@gmail.com>
829
830         PR target/48900
831         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
832         const0_rtx as the arg to the dummy __tls_get_addr libcall.
833
834 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
835
836         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
837         constraint modifier to "r".
838
839 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
840
841         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
842         fall through for OPT_mcmodel_.
843
844 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
845
846         * config/s390/s390.c (s390_asm_trampoline_template): Comment
847         instruction sizes.
848         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
849
850 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
851
852         PR target/47930
853         * config/arm/arm.opt (marm): Document it.
854         (mthumb): Reject negative variant.
855
856 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
857
858         PR target/48898
859         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
860         Fix typo in "ccvt" variable name.
861
862 2011-05-06  Tristan Gingold  <gingold@adacore.com>
863
864         PR target/48895
865         * config/vms/vms-ar.c (main): Remove cwd variable.
866
867 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
868
869         PR debug/48902
870         * var-tracking.c (prepare_call_arguments): Move else before #endif.
871
872 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
873
874         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
875         * gimplify.c (gimplify_switch_expr): Likewise.
876         * omp-low.c (expand_omp_sections): Likewise.
877         * tree-eh.c (lower_try_finally_switch): Likewise.
878         (lower_eh_dispatch): Likewise.
879         * tree.h (build_case_label): Declare.
880         * tree.c (build_case_label): Define.
881
882 2011-05-05  Jason Merrill  <jason@redhat.com>
883
884         PR c++/40975
885         * tree-inline.c (copy_tree_r): Use copy_statement_list.
886         (copy_statement_list): Don't recurse.
887         * stor-layout.c (copy_self_referential_tree_r): Don't allow
888         STATEMENT_LIST.
889
890 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
891
892         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
893         through from -mfpu= handling.
894         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
895
896 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
897
898         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
899         POST_MODIFY.
900
901 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
902
903         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
904         for 11.31.
905         (hppa[12]*-*-hpux11*): Ditto.
906         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
907         * config/ia64/hpux-unix2003.h: New.
908         * config/pa/pa-hpux1131.opt: New.
909         * config/pa/pa-hpux1131.h: New.
910         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
911         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
912         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
913
914 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
915
916         PR debug/48853
917         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
918         instead of mode as 3rd argument to recursive call.
919         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
920         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
921         VOIDmode.
922         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
923         don't give up if mode is Pmode and mem_mode is not VOIDmode.
924         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
925         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
926
927 2011-05-05  Julian Brown  <julian@codesourcery.com>
928
929         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
930         parenthesis in D-register case.
931
932 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
933
934         * opt-functions.awk (var_type_struct): Handle Enum options.
935         * optc-gen.awk: Don't check range of variables of character type.
936         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
937         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
938         rs6000_sdata_name, rs6000_explicit_options): Remove.
939         (rs6000_option_override_internal): Check for -malign-power here.
940         Use global_options_set instead of rs6000_explicit_options.
941         (rs6000_parse_fpu_option): Remove.
942         (rs6000_handle_option): Access variables via opts and opts_set
943         pointers.  Use error_at and warning_at.  Add fall-through
944         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
945         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
946         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
947         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
948         here.  Don't use rs6000_parse_fpu_option.
949         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
950         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
951         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
952         (mrecip=): Use Var.
953         (mspe): Use Var and Save.
954         (mtraceback=): Use Enum and Var.
955         (rs6000_traceback_type): New Enum and EnumValue entries.
956         (mfloat-gprs=): Use Enum, Var and Save.
957         (rs6000_float_gprs): New Enum and EnumValue entries.
958         (mlong-double-): use Var and Save.
959         (msched-costly-dep=, minsert-sched-nops=): Use Var.
960         (malign-): Use Enum and Var.
961         (rs6000_alignment_flags): New Enum and EnumValue entries.
962         (mfpu=): Use Enum.
963         (fpu_type_t): New Enum and EnumValue entries.
964         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
965         global_options_set instead of rs6000_explicit_options.
966         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
967         global_options_set instead of rs6000_explicit_options.
968         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
969         global_options_set instead of rs6000_explicit_options.
970         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
971         global_options_set instead of rs6000_explicit_options.
972         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
973         global_options_set instead of rs6000_explicit_options.
974         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
975         global_options_set instead of rs6000_explicit_options.
976         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
977         definition.
978         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
979         global_options_set instead of rs6000_explicit_options.
980         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
981         (rs6000_cmodel): New Enum and EnumValue entries.
982         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
983         global_options_set instead of rs6000_explicit_options.
984         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
985         (mtls-size=): Use Enum and Var.
986         (rs6000_tls_size): New Enum and EnumValue entries.
987
988 2011-05-05  Michael Matz  <matz@suse.de>
989
990         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
991         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
992         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
993         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
994         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
995         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
996         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
997         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
998         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
999         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1000         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1001         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1002         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1003         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1004         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1005         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1006
1007 2011-05-05  Richard Guenther  <rguenther@suse.de>
1008
1009         * expmed.c (expand_variable_shift): Rename to ...
1010         (expand_shift_1): ... this.  Take an expanded shift amount.
1011         For rotates recurse directly not building trees for the shift amount.
1012         (expand_variable_shift): Wrap around expand_shift_1.
1013         (expand_shift): Adjust.
1014
1015 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1016
1017         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1018
1019 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1020
1021         * tree.h (get_pending_sizes): Remove prototype.
1022         (put_pending_size): Likewise.
1023         (put_pending_sizes): Likewise.
1024         * stor-layout.c (pending_sizes): Delete.
1025         (get_pending_sizes): Likewise.
1026         (put_pending_size): Likewise.
1027         (put_pending_sizes): Likewise.
1028         (variable_size): Do not call put_pending_size and tidy up.
1029         * function.h (struct function): Remove dont_save_pending_sizes_p.
1030         * lto-streamer-in.c (input_function): Do not stream it.
1031         * lto-streamer-out.c (output_function): Likewise.
1032         * tree-inline.c (initialize_cfun): Do not copy it.
1033         * c-decl.c (store_parm_decls): Do not set it.
1034         * omp-low.c (create_task_copyfn): Likewise.
1035         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1036
1037 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1038
1039         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1040         conditions.
1041         (*movdf_internal): Ditto.
1042         (*movdf_internal_nointeger): Ditto.
1043         (*movsf_internal): Ditto.
1044
1045 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1048         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1049         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1050         (c_variable_size): Remove.
1051         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1052         call put_pending_sizes.
1053         (get_parm_info): Add parameter expr.  Use it to set
1054         arg_info->pending_sizes.
1055         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1056         get_pending_sizes.
1057         * c-parser.c (c_parser_parms_declarator): Update call to
1058         c_parser_parms_list_declarator.
1059         (c_parser_parms_list_declarator): Take parameter expr.  Update
1060         call to push_parm_decl.  Update recursive call.  Don't call
1061         get_pending_sizes.  Update calls to get_parm_info.
1062         (c_parser_objc_method_definition): Update calls to
1063         c_parser_objc_method_decl and objc_start_method_definition.
1064         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1065         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1066         grokparm.
1067         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1068         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1069         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1070
1071 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1072
1073         PR pch/45979
1074         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1075         __ARM_EABI__ hosts.
1076
1077 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1078
1079         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1080         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1081         (spu_output_mi_thunk): New function.
1082
1083 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1084
1085         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1086         targetm.asm_out.print_operand.
1087         * config/sol2.c: Include target.h.
1088
1089 2011-05-04  Jan Hubicka  <jh@suse.cz>
1090
1091         * ipa-inline.c (reset_edge_caches): New function.
1092         (update_caller_keys): Add check_inlinablity_for; do not
1093         reset edge caches; remove now unnecesary loop.
1094         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1095         (update_all_callee_keys): Likewise.
1096         (inline_small_functions): Sanity check cache; update code
1097         recomputing it.
1098
1099 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1100
1101         PR rtl-optimization/47612
1102         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1103         as the last insn of the sequence to be moved.
1104
1105 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1106
1107         PR fortran/48864
1108         * doc/invoke.texi (Ofast): Document that it
1109         enables Fortran's -fno-protect-parens.
1110
1111 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1112
1113         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1114
1115 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1116
1117         * stor-layout.c (variable_size): Do not issue errors.
1118
1119 2011-05-04  Richard Guenther  <rguenther@suse.de>
1120
1121         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1122         for array-ref indices.
1123         (tree_coverage_counter_addr): Likewise.
1124         (build_fn_info_type): Use size_int for index types.
1125         (build_gcov_info): Likewise.
1126
1127 2011-05-04  Richard Guenther  <rguenther@suse.de>
1128
1129         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1130         to build_int_cst.
1131         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1132         for constructor indices.
1133         (push_init_level): Likewise.
1134
1135 2011-05-04  Richard Guenther  <rguenther@suse.de>
1136
1137         * explow.c (promote_mode): Move variable declarations before code.
1138
1139 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1140
1141         * tree.h (build_function_type_array): Declare.
1142         (build_varargs_function_type_array): Declare.
1143         (build_function_type_vec, build_varargs_function_type_vec): Define.
1144         * tree.c (build_function_type_array_1): New function.
1145         (build_function_type_array): New function.
1146         (build_varargs_function_type_array): New function.
1147
1148 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1149
1150         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1151         before setting STMT_VINFO_TYPE.
1152
1153 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1154
1155         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1156         instead of spu_pass_by_reference.
1157
1158 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1159
1160         * calls.c (emit_library_call_value_1): Invoke
1161         promote_function_mode hook on libcall arguments.
1162         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1163         argument being NULL.
1164         * targhooks.c (default_promote_function_mode): Lisewise.
1165         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1166         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1167
1168         * doc/tm.texi: Document that TYPE argument might be NULL.
1169
1170 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1171
1172         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1173
1174 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1175
1176         From Bernd Schmidt
1177         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1178
1179 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1182         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1183         Move ...
1184         * mips-tfile.c: ... here.
1185         Don't include coretypes.h, tm.h, filenames.h.
1186         (saber_stop): Remove definition and all calls.
1187         [__SABER__]: Remove.
1188         (__LINE__): Remove default.
1189         (Size_t, Ptrdiff_t): Remove definitions.
1190         Replace by size_t, ptrdiff_t.
1191         [!MIPS_DEBUGGING_INFO]: Remove.
1192         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1193         (progname): Add const.
1194         (STATIC): Remove.
1195         Replace all uses by static.
1196         (ALIGN_SYMTABLE_OFFSET): Remove default.
1197         * mips-tdump.c: Don't include coretypes.h, tm.h.
1198         Remove !MIPS_IS_STAB guard.
1199         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1200         $(TM_H), filenames.h dependencies.
1201         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1202
1203 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1204
1205         From Jie Zhang
1206         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1207         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1208
1209 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1210
1211         From Bernd Schmidt
1212         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1213         account and save/restore RETS.
1214         (PROFILE_BEFORE_PROLOGUE): Define.
1215         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1216         the push insn to use predecrement.
1217
1218 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1219
1220         From Jie Zhang
1221         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1222
1223 2011-05-04  Nick Clifton  <nickc@redhat.com>
1224
1225         * config/mn10300/mn10300.c: Include cfgloop.h.
1226         (DUMP): New macro.
1227         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1228         Lcc or a FLcc insn into the instruction stream.
1229         (mn10300_block_contains_call): New function.  Returns true if the
1230         given basic block contains a CALL insn.
1231         (mn10300_loop_contains_call_insn): New function.  Returns true if
1232         the given loop contains a CALL insn.
1233         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1234         to use the SETLB and Lcc or FLcc insns.
1235         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1236         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1237         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1238         disable the SETLB optimization.
1239         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1240         __SETLB__ or __NO_SETLB__.
1241         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1242         (movsf_internal): Handle MDR register.
1243         (cmpsi): Make visible.
1244         (setlb): New pattern.
1245         (Lcc): New pattern.
1246         (FLcc): New pattern.
1247
1248 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1249
1250         PR target/48860
1251         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1252         for reg<->xmm moves.
1253         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1254         (vec_concatv2di_rex64_sse): Ditto.
1255         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1256         (*vec_extractv2di_1_rex64): Ditto.
1257
1258         Revert:
1259         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1262         reg<->xmm moves.
1263         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1264
1265 2011-05-04  Richard Guenther  <rguenther@suse.de>
1266
1267         * tree.h (int_const_binop): Remove notrunc argument.
1268         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1269         create integer constants that are properly truncated.
1270         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1271         (const_binop): Remove zero notrunc argument to int_const_binop.
1272         (size_binop_loc): Likewise.
1273         (fold_div_compare): Likewise.
1274         (maybe_canonicalize_comparison_1): Likewise.
1275         (fold_comparison): Likewise.
1276         (fold_binary_loc): Likewise.
1277         (multiple_of_p): Likewise.
1278         * expr.c (store_constructor): Likewise.
1279         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1280         (maybe_fold_stmt_addition): Likewise.
1281         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1282         * stor-layout.c (layout_type): Likewise.
1283         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1284         * tree-sra.c (build_ref_for_offset): Likewise.
1285         (build_user_friendly_ref_for_offset): Likewise.
1286         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1287         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1288         * tree-ssa-loop-niter.c (inverse): Likewise.
1289         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1290         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1291         * tree-switch-conversion.c (check_range): Likewise.
1292         (build_constructors): Likewise.
1293         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1294         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1295         (extract_range_from_assert): Likewise.
1296         (vrp_int_const_binop): Likewise.
1297         (extract_range_from_binary_expr): Likewise.
1298         (extract_range_from_unary_expr): Likewise.
1299         (check_array_ref): Likewise.
1300         (find_case_label_range): Likewise.
1301         (simplify_div_or_mod_using_ranges): Likewise.
1302         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1303         comparing case labels for merging.
1304
1305 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1306
1307         * dwarf2out.c (debug_str_hash_forced): Removed.
1308         (gen_label_for_indirect_string): Removed.
1309         (get_debug_string_label): Removed.
1310         (AT_string_form): Generate label directly.
1311         (output_indirect_string): Test indirect_string_node for
1312         DW_FORM_strp instead of checking label and refcount.
1313         (prune_indirect_string): Removed.
1314         (prune_unused_types): Don't check debug_str_hash_forced or
1315         call prune_indirect_string.
1316
1317 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1318
1319         PR other/48093
1320         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1321
1322 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1323
1324         PR debug/47994
1325         PR debug/47919
1326         * combine.c (try_combine): Skip debug insns at m_split tests.
1327
1328 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1329
1330         PR42288
1331         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1332         when info_section_emitted.
1333
1334 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1335
1336         * config/mips/mips-opts.h: New.
1337         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1338         to mips-opts.h.
1339         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1340         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1341         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1342         via opts pointer.
1343         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1344         mips-opts.h.
1345         (mips_abi, mips_code_readable): Don't declare.
1346         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1347         (mabi=): Use Enum and Var.
1348         (mips_abi): New Enum and EnumValue entries.
1349         (mcode-readable=): Use Enum and Var.
1350         (mips_code_readable_setting): New Enum and EnumValue entries.
1351         (mr10k-cache-barrier=): Use Enum and Var.
1352         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1353
1354 2011-05-03  Jan Hubicka  <jh@suse.cz>
1355
1356         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1357         replace hash by pointer map.
1358         (cgraph_node_set_element_def, cgraph_node_set_element,
1359         const_cgraph_node_set_element, varpool_node_set_element_def,
1360         varpool_node_set_element, const_varpool_node_set_element): Remove.
1361         (free_cgraph_node_set, free_varpool_node_set): New function.
1362         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1363         * tree-emutls.c: Free varpool node set.
1364         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1365         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1366         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1367         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1368         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1369         Move here from ipa.c; implement using pointer_map
1370         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1371         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1372         debug_cgraph_node_set, varpool_node_set_new,
1373         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1374         dump_varpool_node_set, debug_varpool_node_set):
1375         Move to ipa-uitls.c.
1376         * passes.c (ipa_write_summaries): Update.
1377
1378 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1379
1380         From Mike Frysinger:
1381         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1382         bf542/bf544/bf547/bf548/bf549.
1383
1384 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1385
1386         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1387
1388 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1389
1390         From Bernd Schmidt:
1391         * config/bfin/bfin.md (MOVCC): New mode_macro.
1392         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1393         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1394         comments from generated assembly.
1395
1396 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1397
1398         From Bernd Schmidt
1399         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1400         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1401         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1402         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1403         * config/bfin/lib1funcs.asm (___muldi3): New function.
1404
1405 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1406
1407         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1408         build_function_type_list instead of build_function_type.
1409         Rearrange initialization of `args' to do so.
1410
1411 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1412
1413         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1414         instead of build_function_type.
1415
1416 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1417
1418         * config/rs6000/rs6000.c (spe_init_builtins): Call
1419         build_function_type_list instead of build_function_type.
1420         (paired_init_builtins, altivec_init_builtins): Likewise.
1421         (builtin_function_type): Likewise.
1422
1423 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1424
1425         * config/sh/sh.c (sh_media_init_builtins): Call
1426         build_function_type_list instead of build_function_type.
1427
1428 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1429
1430         * config/sparc/sparc.c (sparc_file_end): Call
1431         build_function_type_list instead of build_function_type.
1432
1433 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1434
1435         * config/alpha/alpha.c (alpha_init_builtins): Call
1436         build_function_type_list instead of build_function_type.
1437
1438 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1439
1440         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1441         build_function_type_list instead of build_function_type.
1442
1443 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1444
1445         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1446         build_function_type_list instead of build_function_type.
1447         Delete `endlink' variable.
1448
1449 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1450
1451         * config/avr/avr.c (avr_init_builtins): Call
1452         build_function_type_list instead of build_function_type.
1453
1454 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1455
1456         * config/picochip/picochip.c (picochip_init_builtins): Call
1457         build_function_type_list instead of build_function_type.
1458         Delete `endlink' variable.
1459
1460 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1461
1462         * config/bfin/bfin.c (bfin_init_builtins): Call
1463         build_function_type_list instead of build_function_type.
1464
1465 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1466
1467         From Bernd Schmidt
1468         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1469         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1470
1471 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1472
1473         From Jie Zhang:
1474         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1475         libbffastfp overrides libgcc when -mfast-fp.
1476
1477 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1478
1479         Originally from Bernd Schmidt
1480         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1481         * config/bfin/bfin.c (override_options): Test it and error if
1482         TARGET_FDPIC.
1483
1484 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1485
1486         Originally From Bernd Schmidt
1487         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1488         FD-PIC.
1489
1490 2011-05-03  Jeff Law  <law@redhat.com>
1491
1492         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1493         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1494         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1495         than accessing AUX field directly.  Free the AUX field before
1496         clearing it.
1497         (thread_block, thread_through_loop_header): Likewise.
1498         (thread_single_edge, mark_threaded_blocks): Likewise.
1499         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1500         (register_jump_thread): Do not attempt to thread to a NULL edge.
1501
1502 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1503
1504         * function.c (init_function_start): Call decide_function_section.
1505         * varasm.c (decide_function_section): New function.
1506         (assemble_start_function): When not using
1507         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1508         or first_function_block_is_cold.
1509         * rtl.h (decide_function_section): Declare.
1510
1511 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1512             Jakub Jelinek  <jakub@redhat.com>
1513
1514         PR target/48774
1515         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1516         only succeed if req_mode is the same as set_mode.
1517
1518 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1519
1520         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1521         * genemit.c (gen_exp): Handle RETURN.
1522         * emit-rtl.c (verify_rtx_sharing): Likewise.
1523         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1524         * rtl.c (copy_rtx): RETURN is shared.
1525         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1526         (ret_rtx): New.
1527         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1528         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1529         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1530         * config/cris/cris.c (cris_expand_return): Likewise.
1531         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1532         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1533         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1534         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1535         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1536         Likewise.
1537         * config/v850/v850.c (expand_epilogue): Likewise.
1538         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1539         * config/arm/arm.md (epilogue): Likewise.
1540         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1541         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1542         variable to ret_reg.
1543
1544 2011-05-03  Richard Guenther  <rguenther@suse.de>
1545
1546         PR lto/48846
1547         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1548         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1549         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1550
1551 2011-05-03  Richard Guenther  <rguenther@suse.de>
1552
1553         * c-decl.c (grokdeclarator): Instead of looking at
1554         TREE_OVERFLOW check if the constant fits in the index type.
1555
1556 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1557
1558         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1559         (vec_store_lanes<mode><mode>): Likewise.
1560
1561 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1562
1563         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1564         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1565         convert_optab_index values.
1566         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1567         * genopinit.c (optabs): Initialize the new optabs.
1568         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1569         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1570         (expand_STORE_LANES): New functions.
1571         * tree.h (build_array_type_nelts): Declare.
1572         * tree.c (build_array_type_nelts): New function.
1573         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1574         (vect_model_load_cost): Likewise.
1575         (vect_store_lanes_supported, vect_load_lanes_supported)
1576         (vect_record_strided_load_vectors): Declare.
1577         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1578         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1579         (vect_transform_strided_load): Split out statement recording into...
1580         (vect_record_strided_load_vectors): ...this new function.
1581         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1582         (write_vector_array, create_array_ref): New functions.
1583         (vect_model_store_cost): Add store_lanes_p argument.
1584         (vect_model_load_cost): Add load_lanes_p argument.
1585         (vectorizable_store): Try to use store-lanes functions for
1586         interleaved stores.
1587         (vectorizable_load): Likewise load-lanes and loads.
1588         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1589         to vect_model_store_cost.
1590         (vect_build_slp_tree): Likewise vect_model_load_cost.
1591
1592 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1593
1594         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1595         * hooks.c (hook_bool_mode_uhwi_false): New function.
1596         * target.def (array_mode_supported_p): New hook.
1597         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1598         * doc/tm.texi: Regenerate.
1599         * stor-layout.c (mode_for_array): New function.
1600         (layout_type): Use it.
1601         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1602         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1603
1604 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1605
1606         PR target/48723
1607         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1608         for -fstack-check if the size to allocate is negative.
1609
1610 2011-05-02  Lawrence Crowl  <crowl@google.com>
1611
1612         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1613         (timevar_cond_start): New for starting a timer only when it is not
1614         already running.
1615         (timevar_cond_stop): New for stopping a timer when it was not already
1616         running.
1617
1618         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1619         (timevar_cond_start): New as above.
1620         (timevar_cond_stop): New as above.
1621
1622         * timevar.def: Add start/stop timers for compiler phases,
1623         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1624         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1625         and TV_PHASE_FINALIZE.
1626         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1627         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1628         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1629         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1630         Make unused TV_OVERLOAD into a start/stop timer.
1631
1632         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1633         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1634         to indicate that they are start/stop timers.
1635
1636         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1637         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1638         Move initialization to do_compile.
1639         (do_compile): Add initialization from above.
1640         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1641
1642         * c-decl.c (c_write_global_declarations): Add start/stop of
1643         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1644
1645         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1646         or TV_PARSE_INLINE, as appropriate.
1647         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1648         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1649
1650 2011-05-02  Jason Merrill  <jason@redhat.com>
1651
1652         PR c++/40975
1653         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1654
1655 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1656
1657         PR c/35445
1658         * c-decl.c (finish_decl): Only create a composite if the types are
1659         compatible.
1660
1661 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1662
1663         * config/fr30/fr30-protos.h (Mmode): Don't define.
1664         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1665         definition where used.
1666         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1667         define.  Expand definitions where used.
1668         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1669         Expand definitions where used.
1670         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1671         rx_function_arg, rx_function_arg_advance,
1672         rx_function_arg_boundary): Expand definitions of those macros.
1673         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1674         definition where used.
1675
1676 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1677
1678         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1679         reg<->xmm moves.
1680         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1681         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1682         with *movv2sf_internal_rex64_avx.
1683         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1684         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1685         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1686         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1687         "vex" in "prefix" attribute calculation.
1688         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1689
1690 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1691
1692         PR target/47951
1693         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1694         inputs match the output.
1695
1696 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1697
1698         PR target/47955
1699         * config/m68k/m68k.c (m68k_expand_prologue): Set
1700         current_function_static_stack_size.
1701
1702 2011-05-02   Jan Hubicka  <jh@suse.cz>
1703
1704         * lto-streamer.c (lto_streamer_cache_insert_1,
1705         lto_streamer_cache_lookup, lto_streamer_cache_create,
1706         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1707         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1708
1709 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1710
1711         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1712         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1713         config/m68k/t-opts: New files.
1714         * config/m68k/m68k-tables.opt: New file (generated).
1715         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1716         extra_options and m68k/t-opts to tmake_file.
1717         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1718         (all_isas): Initialize using m68k-isas.def.
1719         (all_microarchs): Initialize using m68k-microarchs.def.
1720         (m68k_find_selection): Remove.
1721         (m68k_handle_option): Don't assert that global structures are in
1722         use.  Use error_at.  Access variables via opts pointer.  Don't
1723         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1724         directly for -m68020-40 and -m68020-60.
1725         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1726         m68k_tune_entry here.
1727         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1728         to m68k-opts.h.
1729         (m68k_library_id_string): Remove declaration.
1730         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1731         (m68k_library_id_string): New Variable.
1732         (march=, mcpu=, mtune=): Use Enum and Var.
1733
1734 2011-05-02  Richard Guenther  <rguenther@suse.de>
1735
1736         * varasm.c (output_constructor_regular_field): Compute zero-based
1737         index with double-ints.  Make sure to ICE instead of producing
1738         wrong code.
1739         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1740         in asserts.  Properly use a signed type.
1741
1742 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1743
1744         * config/i386/sse.md (V): New mode iterator.
1745         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1746         TARGET_SSE2.
1747         (V_256): Rename from AVX256MODE.
1748         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1749         condition to all users.
1750         (VF1): Ditto.
1751         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1752         condition to all users.
1753         (VF_128): Make V4SF mode unconditional.
1754         (VF_256): Rename from AVX256MODEF2P.
1755         (VI4F_128): Rename from SSEMODE4S.
1756         (VI8F_128): Rename from SSEMODE2D.
1757         (VI4F_256): Rename from AVX256MODE8P.
1758         (VI8F_256): Rename from AVX256MODE4P.
1759         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1760         (ssescalarmodesuffix): Remove SF and DF modes.
1761         (SSEMODE124): Remove.
1762         (SSEMODE1248): Ditto.
1763         (SSEMODEF2P): Ditto.
1764         (AVXMODEF2P): Ditto.
1765         (AVXMODEFDP): Ditto.
1766         (AVXMODEFSP): Ditto.
1767         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1768         unconditional.
1769         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1770         unconditional.
1771         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1772         xop_pcmov_<mode>256.  Use V mode iterator.
1773
1774         Adjust RTX patterns globally for renamed mode attributes.
1775
1776 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1777
1778         * haifa-sched.c (sched_emit_insn): Emit insn before first
1779         non-scheduled insn.  Inform back-end about new insn.  Add
1780         new insn to scheduled_insns list.
1781
1782 2011-05-02  Richard Guenther  <rguenther@suse.de>
1783
1784         PR tree-optimization/48822
1785         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1786         (process_scc): Indicate which iteration we start.
1787
1788 2011-05-02  Jan Hubicka  <jh@suse.cz>
1789
1790         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1791         (lto_section_overrun): New.
1792         * lto-section-out.c (append_block): Rename to ...
1793         (lto_append_block): ... this one; export.
1794         (lto_output_1_stream): Move lto lto-streamer.h
1795         (lto_output_data_stream): Update.
1796         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1797         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1798         functions.
1799
1800 2011-05-02  Richard Guenther  <rguenther@suse.de>
1801
1802         * tree.c (tree_code_counts): New global array.
1803         (record_node_allocation_statistics): Count individual tree codes.
1804         (dump_tree_statistics): Dump individual code stats.
1805
1806 2011-05-01  Jan Hubicka  <jh@suse.cz>
1807
1808         * ipa-inline.c (caller_growth_limits): Fix thinko when
1809         looking for largest stack frame.
1810         * ipa-inline.h (dump_inline_summary): Declare.
1811         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1812         on stack usage.
1813         (dump_inline_summary): Export.
1814         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1815
1816 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1817
1818         * reginfo.c (memory_move_cost): Change rclass argument type form
1819         'enum reg_class' to reg_class_t.
1820         * reload.h (memory_move_cost): Update prototype.
1821         * postreload.c reload_cse_simplify_set): Change type dclass var to
1822         reg_class_t.
1823         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1824         Update prototype.
1825         (ira_allocate_and_set_costs): Change aclass argument type form
1826         'enum reg_class' to reg_class_t.
1827         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1828         Change aclass argument type to reg_class_t.
1829         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1830         to reg_class_t.
1831         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1832         memory_move_cost call.
1833
1834         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1835         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1836         Change type tmp var to reg_class_t.
1837
1838 2011-04-30  Jan Hubicka  <jh@suse.cz>
1839
1840         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1841         inlining into function with flatten attribute.
1842         (want_inline_small_function_p): Be more realistic about inlining
1843         cold calls where callee size grows.
1844
1845 2011-04-30  Jan Hubicka  <jh@suse.cz>
1846
1847         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1848         flags.
1849
1850 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1851
1852         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1853         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1854         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1855         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1856         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1857         (print_operand): Rename to...
1858         (sparc_print_operand): ...this. Make static. Adjust
1859         sparc_print_operand function call.
1860         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1861         functions.
1862
1863 2011-04-30  Jan Hubicka  <jh@suse.cz>
1864
1865         PR middle-end/48752
1866         * ipa-inline.c (early_inliner): Disable when doing late
1867         addition of function.
1868
1869 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1870
1871         * dwarf2out.c (get_address_mode): New inline.
1872         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1873         if not dwarf_strict emit
1874         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1875         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1876         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1877         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1878         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1879         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1880         mem_loc_descriptor callers.
1881         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1882         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1883         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1884         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1885         (base_types): New variable.
1886         (get_base_type_offset, calc_base_type_die_sizes,
1887         base_type_for_mode, mark_base_types, base_type_cmp,
1888         move_marked_base_types): New functions.
1889         (calc_die_sizes): Assert that die_offset is 0 or equal to
1890         next_die_offset.
1891         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1892         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1893         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1894         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1895         (gen_subprogram_die): Don't give up on call site parameters
1896         with non-integral or large integral modes.  Adjust
1897         mem_loc_descriptor callers.
1898         (prune_unused_types): Call prune_unused_types_mark on base_types
1899         vector entries.
1900         (resolve_addr): Call mark_base_types.
1901         (dwarf2out_finish): Call move_marked_base_types.
1902
1903         PR tree-optimization/48809
1904         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1905         type.
1906         (gen_inbound_check): Don't compute index_expr - range_min in utype
1907         again, instead reuse SSA_NAME initialized in build_arrays.
1908         Remove two useless gsi_for_stmt calls.
1909
1910 2011-04-29  Jeff Law  <law@redhat.com>
1911
1912         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1913
1914 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1915
1916         * cgraph.h (cgraph_postorder): Remove declaration.
1917         * ipa-utils.h (ipa_free_postorder_info): Declare.
1918         (ipa_reverse_postorder): Likewise.
1919         * cgraphunit.c: Include ipa-utils.h.
1920         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1921         * ipa-inline.c: Include ipa-utils.h.
1922         (ipa_inline): Update call to ipa_reverse_postorder.
1923         * ipa-pure-const.c (propagate_pure_const): Update call to
1924         ipa_reduced_postorder and ipa_print_order.  Call
1925         ipa_free_postorder_info to clean up.
1926         (propagate_nothrow): Likewise.
1927         * ipa-reference.c (propagate): Removed a useless call to
1928         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1929         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1930         * ipa.c: Include ipa-utils.h.
1931         (ipa_profile): Update call to ipa_reverse_postorder.
1932         (cgraph_postorder): Moved to...
1933         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1934         (ipa_utils_print_order): Renamed to ipa_print_order.
1935         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1936         comments.
1937         (ipa_free_postorder_info): New function.
1938         * passes.c: Include ipa-utils.h.
1939         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1940         (ipa_write_summaries): Likewise.
1941         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1942         (cgraphunit.o): Likewise.
1943         (ipa.o): Likewise.
1944         (ipa-inline.o): Likewise.
1945
1946 2011-04-29  Jan Hubicka  <jh@suse.cz>
1947
1948         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1949         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1950         * ipa-inline.h (clause_t): Turn into unsigned int.
1951         * ipa-inline-analysis.c (add_clause): Do more simplification.
1952         (and_predicates): Shortcut more cases.
1953         (predicates_equal_p): Move forward; check that clauses are properly
1954         ordered.
1955         (or_predicates): Shortcut more cases.
1956         (edge_execution_predicate): Rewrite as...
1957         (set_cond_stmt_execution_predicate): ... this function; handle
1958         __builtin_constant_p.
1959         (set_switch_stmt_execution_predicate): New .
1960         (compute_bb_predicates): New.
1961         (will_be_nonconstant_predicate): Update TODO.
1962         (estimate_function_body_sizes): Use compute_bb_predicates
1963         and free them later, always try to estimate if stmt is constant.
1964         (estimate_time_after_inlining, estimate_size_after_inlining):
1965         Gracefully handle optimized out edges.
1966         (read_predicate): Fix off by one error.
1967
1968 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1969
1970         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1971
1972 2011-04-27  Xinliang David Li  <davidxl@google.com>
1973
1974         * tree-profile.c (init_ic_make_global_vars): Set
1975         tls attribute on ic vars.
1976         * coverage.c (coverage_end_function): Initialize
1977         function_list with zero.
1978
1979 2011-04-29  Richard Guenther  <rguenther@suse.de>
1980
1981         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1982         for the type of the result.
1983         (fold_builtin_isascii): Likewise.
1984         (fold_builtin_toascii): Use integer_type_node where appropriate.
1985         (fold_builtin_logb): Likewise.
1986         (fold_builtin_frexp): Likewise.
1987         (fold_builtin_strstr): Likewise.
1988         (fold_builtin_strpbrk): Likewise.
1989         (fold_builtin_fputs): Likewise.
1990         (fold_builtin_sprintf): Likewise.
1991         (fold_builtin_snprintf): Likewise.
1992         (fold_builtin_printf): Likewise.
1993         (do_mpfr_remquo): Use a proper type for the assigned constant.
1994         (do_mpfr_lgamma_r): Likewise.
1995         * dwarf2out.c (resolve_one_addr): Use size_int.
1996         * except.c (init_eh): Likewise.
1997         (assign_filter_values): Use integer_type_node for filter values.
1998         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1999         indices.
2000         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2001         for EH region numbers.
2002         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2003         for the shift amount.
2004
2005 2011-04-29  Richard Guenther  <rguenther@suse.de>
2006
2007         * expr.h (expand_shift): Rename to ...
2008         (expand_variable_shift): ... this.
2009         (expand_shift): Take a constant shift amount.
2010         * expmed.c (expand_shift): Rename to ...
2011         (expand_variable_shift): ... this.
2012         (expand_shift): New wrapper around expand_variable_shift.
2013         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2014         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2015         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2016         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2017         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2018         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2019         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2020         emit_store_flag_1, emit_store_flag): Likewise.
2021         * builtins.c (expand_builtin_signbit): Likewise.
2022         * calls.c (load_register_parameters): Likewise.
2023         * function.c (assign_parm_setup_block): Likewise.
2024         * lower-subreg.c (resolve_shift_zext): Likewise.
2025         * optabs.c (widen_bswap, expand_abs_nojump,
2026         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2027         * spu/spu.c (spu_expand_extv): Likewise.
2028         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2029
2030 2011-04-29  Richard Guenther  <rguenther@suse.de>
2031
2032         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2033         for the remapped region number.
2034         * predict.c (build_predict_expr): Use integer_type_node for the
2035         predict kind.
2036         * fold-const.c (fold_binary_loc): Use integer_type_node for
2037         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2038
2039 2011-04-29  Michael Matz  <matz@suse.de>
2040
2041         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2042         other trees that just builtins.
2043         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2044
2045 2011-04-29  Richard Guenther  <rguenther@suse.de>
2046
2047         * tree-nested.c (get_trampoline_type): Use size_int.
2048         (get_nl_goto_field): Likewise.
2049         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2050         for all indexes.
2051         (lower_eh_constructs_2): Likewise.
2052         (lower_resx): Likewise.
2053         (lower_eh_dispatch): Likewise.
2054         * tree-mudflap.c (mf_build_string): Use size_int.
2055         (mudflap_register_call): Use integer_type_node for the flag.
2056         (mudflap_enqueue_constant): Use size_int.
2057         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2058         instead of rebuilding it.
2059
2060 2011-04-29  Richard Guenther  <rguenther@suse.de>
2061
2062         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2063         Handle OBJ_TYPE_REF.
2064         (find_func_aliases_for_call): Use it more consistently.
2065
2066 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2067
2068         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2069         (rank_for_schedule): Use it.
2070         (schedule_block): Set it.
2071
2072 2011-04-28  David Li  <davidxl@google.com>
2073
2074         * tree.c (crc32_string): Use crc32_byte.
2075         (crc32_byte): New function.
2076         * tree.h (crc32_byte): New function.
2077         * gcov.c (read_graph_file): Handle new cfg_cksum.
2078         (read_count_file): Ditto.
2079         * profile.c (instrument_values): Ditto.
2080         (get_exec_counts): Ditto.
2081         (read_profile_edge_counts): Ditto.
2082         (compute_branch_probabilities): Ditto.
2083         (compute_value_histograms): Ditto.
2084         (branch_prob): Ditto.
2085         (end_branch_prob): Ditto.
2086         * coverage.c (read_counts_file): Ditto.
2087         (get_coverage_counts): Ditto.
2088         (tree_coverage_counter_addr): Ditto.
2089         (coverage_checksum_string): Ditto.
2090         (coverage_begin_output): Ditto.
2091         (coverage_end_function): Ditto.
2092         (build_fn_info_type): Ditto.
2093         (build_fn_info_value): Ditto.
2094         * libgcov.c (gcov_exit): Ditto.
2095         * gcov-dump.c (tag_function): Ditto.
2096         (compute_checksum): Remove.
2097
2098 2011-04-29  Alan Modra  <amodra@gmail.com>
2099
2100         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2101         unspec plus offset.  Tidy macho code.
2102
2103 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2104
2105         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2106         node instead of a decl.  Update all callers.
2107         * cgraph.h: Update declaration.
2108
2109 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2110
2111         PR tree-optimization/48765
2112         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2113         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2114         to indicate if loop aware SLP is being used.  Scan the statements
2115         and update the vectorization factor according to the type of
2116         vectorization before statement analysis.
2117         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2118         pass it to vect_analyze_loop_operations.
2119         (vectorizable_reduction): Set number of copies to 1 in case of pure
2120         SLP statement.
2121         * tree-vect-stmts.c (vectorizable_conversion,
2122         vectorizable_assignment, vectorizable_shift,
2123         vectorizable_operation, vectorizable_type_demotion,
2124         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2125         Likewise.
2126         (vectorizable_condition): Move the check that it is not SLP
2127         vectorization before the number of copies check.
2128         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2129         to vectorize the loop using SLP.
2130
2131 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2132
2133         PR middle-end/48597
2134         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2135         inline asm.
2136
2137 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2138
2139         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2140         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2141         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2142         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2143         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2144         linux*.h headers.
2145         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2146         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2147         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2148         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2149         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2150         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2151         REG_NAME.
2152         * config/i386/linux.h (REG_NAME): Don't define.
2153         * config/i386/linux64.h (REG_NAME): Don't define.
2154         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2155         Undefine before defining.
2156
2157 2011-04-28  Jan Hubicka  <jh@suse.cz>
2158
2159         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2160         nonconstant_names array.
2161         (estimate_function_body_sizes): Build nonconstant_names array; handle
2162         BUILT_IN_CONSTANT_P.
2163
2164 2011-04-28  Richard Guenther  <rguenther@suse.de>
2165
2166         PR bootstrap/48804
2167         Revert
2168         2011-04-28  Richard Guenther  <rguenther@suse.de>
2169
2170         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2171         as late as possible.
2172
2173 2011-04-28  Richard Guenther  <rguenther@suse.de>
2174
2175         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2176         (debug_constraint): Do it here.
2177         (dump_constraints): And here.
2178         (rewrite_constraints): And here.
2179         (dump_constraint_edge): Remove.
2180         (dump_constraint_graph): Rewrite to produce DOT output.
2181         (solve_constraints): Build succ graph as late as possible.
2182         Dump constraint graphs before and after solving.
2183
2184 2011-04-28  Richard Guenther  <rguenther@suse.de>
2185
2186         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2187         New function split out from ...
2188         (find_func_aliases): ... here.  Call it.
2189         (find_func_aliases_for_call): Likewise.
2190
2191 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2192
2193         * internal-fn.h (internal_fn_name_array): Declare.
2194         (internal_fn_flags_array): Likewise.
2195
2196 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2197
2198         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2199         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2200         Move from sse.md.
2201         (ssemodefsuffix): Remove.
2202         (ssevecmodesuffix): New mode attribute.
2203         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2204         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2205         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2206         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2207         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2208         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2209         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2210         ssemodesuffix mode attribute.
2211         (float splitters): Use ssevecmodesuffix mode attribute.
2212         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2213         (sseinsmode): Rename from avxvecmode.
2214         (avxsizesuffix): Rename from avxmodesuffix.
2215         (sseintvecmode): Rename from avxpermvecmode.
2216         (ssedoublevecmode): Rename from ssedoublesizemode.
2217         (ssehalfvecmode): Rename from avxhalfvecmode.
2218         (ssescalarmode): Rename from avxscalarmode.
2219         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2220         templates for ssemodesuffix mode attribute.
2221         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2222         mode attribute.
2223
2224         Adjust RTX patterns globally for renamed mode attributes.
2225
2226 2011-04-27  Jan Hubcika  <jh@suse.cz>
2227
2228         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2229         * ipa-inline-analysis.c: Include alloc-pool.h.
2230         (edge_predicate_pool): New.
2231         (trye_predicate_p): New function
2232         (false_predicate_p): New function.
2233         (add_clause): Sanity check that false clauses are "optimized";
2234         never add clauses to predicate that is already known to be false.
2235         (and_predicate): Use flase_predicate_p.
2236         (evaulate_predicate): Rename to ...
2237         (evaluate_predicate): ... this one; update all callers; assert
2238         that false is not listed among possible truths.
2239         (dump_predicate): Use true_predicate_p.
2240         (account_size_time): Use false_predicate_p.
2241         (evaulate_conditions_for_edge): Rename to ...
2242         (evaluate_conditions_for_edge) ... this one.
2243         (edge_set_predicate): New function.
2244         (inline_edge_duplication_hook): Duplicate edge predicates.
2245         (inline_edge_removal_hook): Free edge predicates.
2246         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2247         (dump_inline_summary): Update.
2248         (estimate_function_body_sizes): Set edge predicates.
2249         (estimate_calls_size_and_time): Handle predicates.
2250         (estimate_callee_size_and_time): Update.
2251         (remap_predicate): Add toplev_predicate; update comment.
2252         (remap_edge_predicates): New function.
2253         (inline_merge_summary): Compute toplev predicate; update.
2254         (read_predicate): New function.
2255         (read_inline_edge_summary): Use it.
2256         (inline_read_section): Likewise.
2257         (write_predicate): New function.
2258         (write_inline_edge_summary): Use it.
2259         (inline_write_summary): Likewise.
2260         (inline_free_summary): Free alloc pool and edge summary vec.
2261
2262 2011-04-27  Richard Guenther  <rguenther@suse.de>
2263
2264         * tree-ssa-structalias.c (changed_count): Remove.
2265         (changed): Use a bitmap.
2266         (unify_nodes): Adjust.
2267         (do_sd_constraint): Likewise.
2268         (do_ds_constraint): Likewise.
2269         (do_complex_constraint): Likewise.
2270         (solve_graph): Likewise.
2271
2272 2011-04-27  Jan Hubicka  <jh@suse.cz>
2273
2274         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2275
2276 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2277
2278         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2279         (avx_vperm2f128_*_operand): Ditto.
2280         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2281         Use avx_vpermilp_parallel in insn condition.
2282         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2283         Use avx_vperm2f128_parallel in insn condition.
2284
2285 2011-04-27  Richard Guenther  <rguenther@suse.de>
2286
2287         * Makefile.in (tree-ssa-structalias.o): Remove
2288         gt-tree-ssa-structalias.h dependency.
2289         (GTFILES): Remove tree-ssa-structalias.c.
2290         * tree.c (allocate_decl_uid): New function.
2291         (make_node_stat): Use it.
2292         (copy_node_stat): Likewise.
2293         * tree.h (allocate_decl_uid): Declare.
2294         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2295         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2296         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2297         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2298         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2299         (struct heapvar_map): Likewise.
2300         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2301         heapvar_insert): Likewise.
2302         (make_heapvar_for): Rename to ...
2303         (make_heapvar): ... this.  Simplify.
2304         (fake_var_decl_obstack): New global var.
2305         (build_fake_var_decl): New function.
2306         (make_constraint_from_heapvar): Adjust.
2307         (handle_lhs_call): Likewise.
2308         (create_function_info_for): Likewise.
2309         (intra_create_variable_infos): Likewise.
2310         (init_alias_vars): Allocate fake_var_decl_obstack.
2311         (init_alias_heapvars, delete_alias_heapvars): Remove.
2312         (compute_points_to_sets): Do not call init_alias_heapvars.
2313         (ipa_pta_execute): Likewise.
2314         (delete_points_to_sets): Free fake_var_decl_obstack.
2315
2316 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2317
2318         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2319         (si_from_UTItype, si_to_UTItype): New functions.
2320         (__udivmodti4): Use them to implement type-punning.
2321         * config/spu/multi3.c (union qword_TItype): New data type.
2322         (si_from_TItype, si_to_TItype): New functions.
2323         (__multi3): Use them to implement type-punning.
2324
2325 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2326
2327         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2328
2329 2011-04-27  Jan Hubicka  <jh@suse.cz>
2330
2331         * ipa-prop.c (function_insertion_hook_holder): New holder.
2332         (ipa_add_new_function): New function.
2333         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2334         Register/deregister holder.
2335
2336 2011-04-27  Richard Guenther  <rguenther@suse.de>
2337
2338         PR tree-optimization/48772
2339         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2340
2341 2011-04-27  Richard Guenther  <rguenther@suse.de>
2342
2343         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2344         TARGET_MEM_REF handling.
2345
2346 2011-04-27  Nick Clifton  <nickc@redhat.com>
2347
2348         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2349         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2350         (REG_CLASS_NAMES): Likewise.
2351         (REG_CLASS_CONTENTS): Likewise.
2352         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2353         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2354         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2355         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2356         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2357         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2358         duplicate register classes.
2359         (frv_class_likely_spilled_p): Likewise.
2360         (frv_register_move_cost): Likewise.
2361
2362         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2363         end of the regno_reg_class array.
2364
2365 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2366
2367         PR c/48742
2368         * c-typeck.c (build_binary_op): Don't wrap arguments if
2369         int_operands is true.
2370
2371 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2372
2373         PR target/48767
2374         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2375         targetm.calls.must_pass_in_stack for void type.
2376
2377 2011-04-26  Jan Hubicka  <jh@suse.cz>
2378
2379         * cgraphbuild.c (build_cgraph_edges): Update call
2380         of cgraph_create_edge and cgraph_create_indirect_edge.
2381         * cgraph.c (cgraph_create_edge_including_clones,
2382         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2383         cgraph_update_edges_for_call_stmt_node): Do not take nest
2384         argument; do not initialize call_stmt_size/time.
2385         (dump_cgraph_node): Do not dump nest.
2386         (cgraph_clone_edge): Do not take loop_nest argument;
2387         do not propagate it; do not clone call_stmt_size/time.
2388         (cgraph_clone_node): Likewise.
2389         (cgraph_create_virtual_clone): Update.
2390         * cgraph.h (struct cgraph_edge): Remove
2391         call_stmt_size/call_stmt_time/loop_nest.
2392         (cgraph_create_edge, cgraph_create_indirect_edge,
2393         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2394         prototype.
2395         * tree-emutls.c (gen_emutls_addr): Update.
2396         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2397         loop_nest; handle indirect calls, too.
2398         (clone_inlined_nodes): Do not care about updating inline summaries.
2399         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2400         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2401         stream call_stmt_size/call_stmt_time/loop_nest.
2402         * ipa-inline.c (edge_badness): Update.
2403         (ipa_inline): dump summaries after inlining.
2404         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2405         New.
2406         (inline_edge_summary): New function.
2407         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2408         (inline_edge_removal_hook): Handle edge summaries.
2409         (inline_edge_duplication_hook): New hook.
2410         (inline_summary_alloc): Alloc hooks.
2411         (initialize_growth_caches): Do not register removal hooks.
2412         (free_growth_caches); Do not free removal hook.
2413         (dump_inline_edge_summary): New function.
2414         (dump_inline_summary): Use it.
2415         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2416         (inline_update_callee_summaries): New function.
2417         (inline_merge_summary): Use it.
2418         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2419         (read_inline_edge_summary): New function.
2420         (inline_read_section): Use it.
2421         (write_inline_edge_summary): New function.
2422         (inline_write_summary): Use it.
2423         (inline_free_summary): Free edge new holders.
2424         * tree-inline.c (copy_bb): Update.
2425
2426 2011-04-26  Jason Merrill  <jason@redhat.com>
2427
2428         * tree-eh.c (lower_try_finally_switch): Create the label along with
2429         the CASE_LABEL_EXPR.
2430
2431 2011-04-26  David S. Miller  <davem@davemloft.net>
2432             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2433
2434         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2435         * configure: Regenerate.
2436
2437 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2438
2439         PR target/48258
2440         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2441         reduction.
2442         (VEC_reduc): New code iterator and splitters for vector reduction.
2443         (VEC_reduc_name): Ditto.
2444         (VEC_reduc_rtx): Ditto.
2445         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2446         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2447
2448         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2449         support for extracting SF on VSX.
2450
2451         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2452         generating xscvspdp.
2453         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2454         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2455         double add, minimum, maximum vector reduction.
2456         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2457         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2458         optimize double vector reduction.
2459         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2460
2461 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * config/fr30/fr30.h (inhibit_libc): Don't define.
2464         * config/m32r/m32r-protos.h: Correct comment.
2465         * config/v850/v850.h (GHS_default_section_names,
2466         GHS_current_section_names): Use tree, not union tree_node *.
2467
2468 2011-04-26  Xinliang David Li  <davidxl@google.com>
2469
2470         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2471         * c-family/c-opts.c (c_common_handle_option): Set
2472         warn_maybe_uninitialized.
2473         * opts.c (common_handle_option): Ditto.
2474         * common.opt:  New option.
2475         * tree-ssa.c (warn_uninit): Add one more parameter.
2476         (warn_uninitialized_var): Pass warning code.
2477         * tree-flow.h: Interface change.
2478
2479
2480 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2481
2482         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2483         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2484         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2485
2486 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2487
2488         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2489         * config/mips/mips.opt (mmips-tfile): Remove.
2490
2491         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2492         mips-tdump reference to ...
2493         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2494         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2495         reference by Tru64 UNIX.
2496
2497 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2498
2499         PR debug/48768
2500         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2501         is error_mark_node, set value to NULL.
2502
2503         PR tree-optimization/48734
2504         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2505         if return value from maybe_fold_*_comparsions isn't something
2506         the code is prepared to handle.
2507
2508 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2509
2510         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2511         mode check.
2512         (ext_QIreg_nomode_operands): Remove.
2513         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2514         (*andsi_1): Ditto.
2515         (*andhi_1): Ditto.
2516
2517 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2518
2519         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2520
2521 2011-04-26  Richard Guenther  <rguenther@suse.de>
2522
2523         * c-typeck.c (build_unary_op): Do not expand array-refs via
2524         pointer arithmetic.  Only adjust qualifiers for function types.
2525
2526 2011-04-26  Richard Guenther  <rguenther@suse.de>
2527
2528         PR middle-end/48694
2529         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2530         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2531         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2532         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2533
2534 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2535
2536         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2537         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2538         * doc/extend.texi: Document __underlying_type.
2539
2540 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2541
2542         * config/rs6000/titan.md (automata_option "progress"): Remove.
2543
2544 2011-04-25  Jeff Law  <law@redhat.com>
2545
2546         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2547
2548 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2549
2550         * system.h (ENUM_BITFIELD): Remove.
2551
2552 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2553             Eric Botcazou  <ebotcazou@adacore.com>
2554
2555         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2556         for STORE_FLAG_VALUE==-1 case.
2557
2558 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2559
2560         PR target/43804
2561         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2562         LEGITIMATE_PIC_OPERAND_P.
2563
2564 2011-04-24  Jan Hubicka  <jh@suse.cz>
2565
2566         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2567         WPA hack.
2568         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2569         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2570         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2571         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2572         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2573         Sanity check predicate length.
2574         (remap_predicate): Likewise; sanity check jump functions.
2575         (inline_read_section, inline_write_summary): Sanity check
2576         predicate length.
2577
2578 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2579
2580         PR other/48748
2581         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2582         __is_literal_type, and __is_trivial; update throughout about
2583         possibly cv-qualified void types.
2584
2585 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2586
2587         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2588         testsuite and make it version agnostic.
2589
2590 2011-04-22  Jan Hubicka  <jh@suse.cz>
2591
2592         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2593
2594 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2595
2596         PR c/48685
2597         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2598         to VOID_TYPE even around MODIFY_EXPR.
2599
2600 2011-04-22  Mike Stump  <mikestump@comcast.net>
2601
2602         * gensupport.c (read_md_rtx): Fix typo in comment.
2603         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2604         comment.
2605
2606 2011-04-22  Jan Hubicka  <jh@suse.cz>
2607
2608         * gengtype.c (open_base_files): Add ipa-inline.h include.
2609         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2610         ipa-prop.c; update all uses.
2611         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2612         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2613         merge summary of inlined function into former caller.
2614         * ipa-inline.c (max_benefit): Remove.
2615         (edge_badness): Compensate for removal of benefits.
2616         (update_caller_keys): Use
2617         reset_node_growth_cache/reset_edge_growth_cache.
2618         (update_callee_keys): Likewise.
2619         (update_all_callee_keys): Likewise.
2620         (inline_small_functions): Do not collect max_benefit; do not reset
2621         estimated_growth; call free_growth_caches and initialize_growth_caches.
2622         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2623         struct size_time_entry): New structures.
2624         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2625         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2626         and estimated_growth.
2627         (edge_growth_cache_entry): New structure.
2628         (node_growth_cache, edge_growth_cache): New global vars.
2629         (estimate_growth): Turn into inline.
2630         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2631         initialize_growth_caches, free_growth_caches): Declare.
2632         (estimate_edge_growth): Rewrite.
2633         (estimate_edge_time): Implement as inline cache lookup.
2634         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2635         functions.
2636         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2637         (NUM_CONDITIONS): New constant.
2638         (predicate_conditions): New enum.
2639         (IS_NOT_CONSTANT): New constant.
2640         (edge_removal_hook_holder): New var.
2641         (node_growth_cache, edge_growth_cache): New global vars.
2642         (true_predicate, single_cond_predicate, false_predicate,
2643         not_inlined_predicate, add_condition, add_clause, and_predicates,
2644         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2645         dump_clause, dump_predicate, account_size_time,
2646         evaulate_conditions_for_edge): New functions.
2647         (inline_summary_alloc): Move to heap.
2648         (inline_node_removal_hook): Clear condition and entry vectors.
2649         (inline_edge_removal_hook): New function.
2650         (initialize_growth_caches, free_growth_caches): New function.
2651         (dump_inline_summary): Update.
2652         (edge_execution_predicate): New function.
2653         (will_be_nonconstant_predicate): New function.
2654         (estimate_function_body_sizes): Compute BB and constantness predicates.
2655         (compute_inline_parameters): Do not clear estimated_growth.
2656         (estimate_edge_size_and_time): New function.
2657         (estimate_calls_size_and_time): New function.
2658         (estimate_callee_size_and_time): New function.
2659         (remap_predicate): New function.
2660         (inline_merge_summary): New function.
2661         (do_estimate_edge_time): New function based on...
2662         (estimate_edge_time): ... this one.
2663         (do_estimate_edge_growth): New function.
2664         (do_estimate_growth): New function based on....
2665         (estimate_growth): ... this one.
2666         (inline_analyze_function): Analyze after deciding on jump functions.
2667         (inline_read_section): New function.
2668         (inline_read_summary): Use it.
2669         (inline_write_summary): Write all the new data.
2670         * ipa-prop.c (ipa_get_param_decl_index): Export.
2671         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2672         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2673         Declare.
2674         (ipa_get_lattice): Move here from ipa-cp.c
2675         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2676         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2677         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2678         cgraph_edge_inlinable_p): Remove.
2679         * cgraphunit.c: Include ipainline.h
2680         (cgraph_process_new_functions): Update call of
2681         compute_inline_parameters.
2682
2683 2011-04-22  Richard Guenther  <rguenther@suse.de>
2684
2685         * tree.c (build_int_cst): Properly create canonicalized integer
2686         constants.
2687         (build_int_cst_type): Remove scary comments.
2688
2689 2011-04-22  Xinliang David Li  <davidxl@google.com>
2690
2691         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2692         by default when -Wno-error is not specified.
2693         * opts-global.c (decode_options): Remove call to
2694         control_warning_options.
2695
2696 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2697
2698         PR tree-optimization/48717
2699         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2700         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2701
2702 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2703
2704         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2705         definition where used.
2706
2707 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2708
2709         PR c/48716
2710         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2711         TREE_STATIC variables declared inside of some OpenMP construct.
2712
2713 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2714
2715         PR middle-end/48585
2716         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2717
2718 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2719
2720         PR c/36750
2721         * c-typeck.c (pop_init_level): Do not warn about initializing
2722         with ` = {0}'.
2723
2724 2011-04-22  Alan Modra  <amodra@gmail.com>
2725
2726         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2727         when returning call_cookie.
2728         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2729         pointers, to functions with no more vector args than the current
2730         function, and some non-local calls for ABI_V4.
2731         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2732         sibcall_nonlocal_aix64): Combine to ..
2733         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2734         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2735         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2736         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2737         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2738         operand.
2739         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2740         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2741         sibcall_value_symbolic_64): Delete.
2742
2743 2011-04-21  Xinliang David Li  <davidxl@google.com>
2744
2745         * cgraph.h: Remove pid.
2746         * cgraph.c: Remove pid.
2747         * value-prof.c (init_node_map): New function.
2748         (del_node_map): New function.
2749         (find_func_by_funcdef_no): New function.
2750         (gimple_ic_transform): Call new function.
2751         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2752         * function.c (get_last_funcdef_no): New function.
2753         * function.h (get_last_funcdef_no): New function.
2754         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2755         to libgcov function.
2756         (tree-profiling): Call node map init and delete function.
2757
2758 2011-04-21  Ian Lance Taylor  <iant@google.com>
2759
2760         * godump.c (go_format_type): Use exported Go name for anonymous
2761         field name.
2762
2763 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2764
2765         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2766         Call builtin_function_type_list instead of builtin_function_type.
2767         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2768
2769 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2770
2771         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2772         build_function_type_list instead of build_function_type.
2773         Delete variable `endlink'.
2774
2775 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2776
2777         * config/s390/s390.c (s390_init_builtins): Call
2778         build_function_type_list instead of build_function_type.
2779
2780 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2781
2782         * config/ia64/ia64.c (ia64_init_builtins): Call
2783         build_function_type_list instead of builtin_function_type.
2784
2785 2011-04-21  Easwaran Raman  <eraman@google.com>
2786
2787         * cfgexpand.c (stack_var): Remove OFFSET...
2788         (add_stack_var): ...and its reference here...
2789         (expand_stack_vars): ...and here.
2790         (stack_var_cmp): Sort by descending order of size.
2791         (partition_stack_vars): Change heuristic.
2792         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2793         (dump_stack_var_partition): Add newline after each partition.
2794
2795 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2796             Jeff Law  <law@redhat.com>
2797
2798         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2799         * gengtype.c (matching_file_name_substitute): Likewise.
2800
2801 2011-04-21  Richard Guenther  <rguenther@suse.de>
2802
2803         PR lto/48703
2804         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2805
2806 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2807
2808         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2809
2810 2011-04-21  Richard Guenther  <rguenther@suse.de>
2811
2812         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2813         file name.
2814
2815 2011-04-21  Richard Guenther  <rguenther@suse.de>
2816
2817         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2818         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2819         Use DECL_P, not SSA_VAR_P.
2820         (ptr_derefs_may_alias_p): Likewise.
2821         (ptr_deref_may_alias_ref_p_1): Likewise.
2822         (decl_refs_may_alias_p): Likewise.
2823         (refs_may_alias_p_1): Likewise.
2824         (ref_maybe_used_by_call_p_1): Likewise.
2825         (call_may_clobber_ref_p_1): Likewise.
2826         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2827         are either MEM_REF or TARGET_MEM_REF.
2828         (indirect_refs_may_alias_p): Likewise.
2829         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2830         for MEM_EXPR of indirect calls.
2831
2832 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2833
2834         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2835         (dst_file_info_struct): Remove flen field.
2836         (lookup_filename): Remove code that set flen field.
2837
2838 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2839
2840         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2841
2842 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2843
2844         PR target/48708
2845         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2846         vec_extract and vec_concat for non-SSE4_1 targets.
2847
2848 2011-04-21  Richard Guenther  <rguenther@suse.de>
2849
2850         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2851         return statements.
2852
2853 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2854
2855         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2856         undefine.
2857         (FILE): Don't undefine.
2858
2859 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2860
2861         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2862         struct rtx_def *.
2863         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2864         struct rtx_def *.
2865         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2866         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2867         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2868         rtx_def *.
2869         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2870         definitions where used.
2871         * config/microblaze/microblaze.h (struct microblaze_args): Use
2872         rtx, not struct rtx_def *.
2873         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2874         rtx_def *.
2875         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2876         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2877         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2878         not struct rtx_def *.
2879         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2880         struct rtx_def *.
2881         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2882         rtx_def *.
2883         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2884
2885 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2886
2887         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2888         operand_equal_p to compare DR_BASE_ADDRESSes.
2889         (vect_check_interleaving): Likewise.
2890
2891 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2892
2893         PR target/46329
2894         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2895         for all Neon struct constants.
2896
2897 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2898
2899         * target.def (legitimate_constant_p): New hook.
2900         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2901         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2902         * doc/tm.texi: Regenerate.
2903         * hooks.h (hook_bool_mode_rtx_true): Declare.
2904         * hooks.c (hook_bool_mode_rtx_true): Define.
2905         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2906         * calls.c (precompute_register_parameters): Replace uses of
2907         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2908         (emit_library_call_value_1): Likewise.
2909         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2910         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2911         * ira-costs.c (scan_one_insn): Likewise.
2912         * recog.c (general_operand, immediate_operand): Likewise.
2913         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2914         * reload1.c (init_eliminable_invariants): Likewise.
2915
2916         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2917         mode argument.
2918         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2919         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2920         argument.
2921         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922         * config/alpha/predicates.md (input_operand): Update call to
2923         alpha_legitimate_constant_p.
2924
2925         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2926         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2927         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2928         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2929         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2930         (arm_legitimate_constant_p): New functions.
2931         (arm_cannot_force_const_mem): Make static.
2932
2933         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2934
2935         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2936         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2937         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2938         instead of bfin_legitimate_constant_p.
2939         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2940         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2941
2942         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2943
2944         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2945
2946         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2947         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2948         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2949         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2950
2951         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2952         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2953         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2954
2955         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2956         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2957         * config/i386/i386.c (legitimate_constant_p): Rename to...
2958         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2959         argument.
2960         (ix86_cannot_force_const_mem): Update accordingly.
2961         (ix86_legitimate_address_p): Likewise.
2962         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2963         * config/i386/i386.md: Update commentary.
2964
2965         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2966         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2967         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2968         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2969
2970         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2971
2972         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2973         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2974         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2975         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2976
2977         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2978         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2979         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2980
2981         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2982         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2983         (m32r_legitimate_constant_p): New function.
2984
2985         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2986         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2987         LEGITIMATE_CONSTANT_P.
2988         (LEGITIMATE_CONSTANT_P): Delete.
2989         * config/m68k/m68k.c (m68k_expand_prologue): Call
2990         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2991         (m68k_legitimate_constant_p): New function.
2992         * config/m68k/m68k.md: Update comments.
2993
2994         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2995         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2996         (mcore_legitimate_constant_p): New function.
2997
2998         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2999         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3000         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3001         Add a mode argument.
3002         (mep_legitimate_address): Update accordingly.
3003         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3004
3005         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3006         Delete.
3007         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3008         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3009         static.  Check OP's mode for VOIDmode.
3010         (microblaze_legitimate_constant_p): New function.
3011         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3012
3013         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3014         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3015         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3016         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3017         * config/mips/predicates.md: Update comments.
3018
3019         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3020         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3021         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3022         (mmix_legitimate_constant_p): Make static, return a bool, and take
3023         a mode argument.
3024         (mmix_print_operand_address): Update accordingly.
3025
3026         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3027         Delete.
3028         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3029         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3030         static.  Add a mode argument.
3031         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3032
3033         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3034
3035         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3036         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3037         (pa_legitimate_constant_p): New function.
3038
3039         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3040
3041         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3042         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3043         (pdp11_legitimate_constant_p): New function.
3044
3045         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3046         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3047         (rs6000_legitimate_constant_p): New function.
3048
3049         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3050         (rx_legitimate_constant_p): ...this.
3051         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3052         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3053         (rx_legitimate_constant_p): ...this.
3054         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3055         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3056
3057         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3058         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3059         * config/s390/s390.c (legitimate_constant_p): Rename to...
3060         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3061         and add a mode argument.
3062         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3063
3064         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3065
3066         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3067         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3068         (sh_legitimate_constant_p): New function.
3069
3070         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3071         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3072         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3073         (legitimate_constant_p): Rename to...
3074         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3075         argument.
3076         (constant_address_p): Update accordingly.
3077
3078         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3079         argument and return a bool.
3080         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3081         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3082         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3083         (spu_rtx_costs): Update accordingly.
3084         * config/spu/predicates.md (vec_imm_operand): Likewise.
3085
3086         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3087
3088         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3089         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3090         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3091
3092         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3093         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3094         * config/vax/vax.c (legitimate_constant_p): Likewise.
3095
3096         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3097         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3098         (xtensa_legitimate_constant_p): New function.
3099
3100 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3101
3102         * target.def (cannot_force_const_mem): Add a mode argument.
3103         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3104         * doc/tm.texi: Regenerate.
3105         * hooks.h (hook_bool_mode_rtx_false): Declare.
3106         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3107         (hook_bool_mode_const_rtx_true): Likewise.
3108         (hook_bool_mode_rtx_false): New function.
3109         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3110         to be non-VOID.  Update call to cannot_force_const_mem.
3111         (find_reloads): Update accordingly.
3112         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3113         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3114         argument.
3115         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3116         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3117         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3118         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3119         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3120         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3121         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3122         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3123         (m68k_cannot_force_const_mem): ...this new function.
3124         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3125         argument.
3126         (mips_const_insns, mips_legitimize_const_move): Update calls.
3127         (mips_secondary_reload_class): Likewise.
3128         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3129         (pa_cannot_force_const_mem): ...this new function.
3130         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3131         (rs6000_cannot_force_const_mem): ...this new function.
3132         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3133         argument.
3134         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3135         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3136         to...
3137         (xtensa_cannot_force_const_mem): ...this new function.
3138
3139 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3140
3141         * config/mips/mips.c (mips16_build_function_stub): Call
3142         build_function_type_list instead of build_function_type.
3143         (mips16_build_call_stub): Likewise.
3144
3145 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3146
3147         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3148         instead of build_function_type.
3149
3150 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3151
3152         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3153         instead of build_function_type.
3154
3155 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3156
3157         PR target/48678
3158         * config/i386/i386.md (insv): Change operand 0 constraint to
3159         "register_operand".  Change operand 1 and 2 constraint to
3160         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3161         * config/i386/sse.md (sse4_1_pinsrb): Export.
3162         (sse2_pinsrw): Ditto.
3163         (sse4_1_pinsrd): Ditto.
3164         (sse4_1_pinsrq): Ditto.
3165         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3166         * config/i386/i386.c (ix86_expand_pinsr): New.
3167
3168 2011-04-20  Easwaran Raman  <eraman@google.com>
3169
3170         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3171         containing union type only with -fstrict-aliasing.
3172
3173 2011-04-20  Jim Meyering  <meyering@redhat.com>
3174
3175         Remove useless if-before-free tests.
3176         * calls.c (expand_call, save_area): Likewise.
3177         * cfgcleanup.c (try_forward_edges): Likewise.
3178         * collect2.c (collect_execute): Likewise.
3179         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3180         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3181         * coverage.c (coverage_checksum_string): Likewise.
3182         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3183         * cselib.c (cselib_init): Likewise.
3184         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3185         (df_set_clean_cfg): Likewise.
3186         * function.c (free_after_compilation): Likewise.
3187         * gcc.c (do_spec_1, main): Likewise.
3188         * gcov.c (create_file_names): Likewise.
3189         * gensupport.c (identify_predicable_attribute): Likewise.
3190         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3191         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3192         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3193         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3194         * ipa-pure-const.c (local_pure_const): Likewise.
3195         * ipa-reference.c (propagate): Likewise.
3196         * ira-costs.c (free_ira_costs): Likewise.
3197         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3198         * matrix-reorg.c (mat_free): Likewise.
3199         * prefix.c (get_key_value): Likewise.
3200         * profile.c (compute_value_histograms): Likewise.
3201         * reload1.c (free_reg_equiv): Likewise.
3202         * sched-deps.c (free_deps): Likewise.
3203         * sel-sched-ir.c (fence_clear): Likewise.
3204         * sese.c (set_rename, if_region_set_false_region): Likewise.
3205         * tree-data-ref.c (free_rdg): Likewise.
3206         * tree-eh.c (lower_try_finally): Likewise.
3207         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3208         * tree-ssa-live.c (delete_var_map): Likewise.
3209         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3210         * tree-ssa-pre.c (phi_trans_add): Likewise.
3211
3212 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3213
3214         PR tree-optimization/48611
3215         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3216         beyond ERT_MUST_NOT_THROW region.
3217
3218 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3219
3220         * config/mips/mips.opt (mfix-24k): New.
3221         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3222         * config/mips/mips.md (length): Increase by 4 for stores if
3223         fixing 24K errata.
3224         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3225         all noreorder if fixing 24K errata.
3226         * doc/invoke.texi: Document mfix-24k.
3227
3228 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3229
3230         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3231         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3232
3233 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3234
3235         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3236         (const_ok_for_op): ... to here.
3237
3238 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3239
3240         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3241         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3242
3243 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3244
3245         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3246
3247 2011-04-20  Richard Guenther  <rguenther@suse.de>
3248
3249         PR tree-optimization/47892
3250         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3251         are if-convertible.
3252
3253 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3254
3255         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3256
3257 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3258
3259         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3260
3261 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3262
3263         PR target/18145
3264
3265         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3266         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3267         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3268         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3269         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3270
3271         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3272         New prototype.
3273
3274         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3275         (avr_asm_named_section, avr_asm_output_aligned_common,
3276         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3277         New functions to update...
3278         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3279         (avr_asm_init_sections): Overwrite section callbacks for
3280         data_section, bss_section.
3281         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3282         from here to...
3283         (avr_file_end): ...here.
3284
3285 2011-04-20  Richard Guenther  <rguenther@suse.de>
3286
3287         PR middle-end/48695
3288         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3289         objects and types here.  Adjust for their offset before comparing.
3290
3291 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3292
3293         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3294         statement per copy.
3295
3296 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3297
3298         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3299         (GIMPLE_H): Include $(INTERNAL_FN_H).
3300         (OBJS-common): Add internal-fn.o.
3301         (internal-fn.o): New rule.
3302         * internal-fn.def: New file.
3303         * internal-fn.h: Likewise.
3304         * internal-fn.c: Likewise.
3305         * gimple.h: Include internal-fn.h.
3306         (GF_CALL_INTERNAL): New gf_mask.
3307         (gimple_statement_call): Put fntype into a union with a new
3308         internal_fn field.
3309         (gimple_build_call_internal): Declare.
3310         (gimple_build_call_internal_vec): Likewise.
3311         (gimple_call_same_target_p): Likewise.
3312         (gimple_call_internal_p): New function.
3313         (gimple_call_internal_fn): Likewise.
3314         (gimple_call_fntype): Return null for internal calls.
3315         (gimple_call_set_fntype): Assert that the function is not internal.
3316         (gimple_call_set_fn): Likewise.
3317         (gimple_call_set_fndecl): Likewise.
3318         (gimple_call_set_internal_fn): New function.
3319         (gimple_call_addr_fndecl): Handle null functions.
3320         (gimple_call_return_type): Likewise null types.
3321         * gimple.c (gimple_build_call_internal_1): New function.
3322         (gimple_build_call_internal): Likewise.
3323         (gimple_build_call_internal_vec): Likewise.
3324         (gimple_call_same_target_p): Likewise.
3325         (gimple_call_flags): Handle calls to internal functions.
3326         (gimple_call_fnspec): New function.
3327         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3328         (gimple_has_side_effects): Handle null functions.
3329         (gimple_rhs_has_side_effects): Likewise.
3330         (gimple_call_copy_skip_args): Handle calls to internal functions.
3331         * cfgexpand.c (expand_call_stmt): Likewise.
3332         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3333         * gimple-fold.c (gimple_fold_call): Handle null functions.
3334         (gimple_fold_stmt_to_constant_1): Don't fold
3335         calls to internal functions.
3336         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3337         functions.
3338         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3339         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3340         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3341         (do_warn_unused_result): Likewise.
3342         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3343         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3344         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3345         the target of a call.
3346         (initialize_hash_element): Update accordingly.
3347         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3348         (iterative_hash_hashable_expr): Handle calls to internal functions.
3349         (print_expr_hash_elt): Likewise.
3350         * tree-ssa-pre.c (can_value_number_call): Likewise.
3351         (eliminate): Handle null functions.
3352         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3353         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3354         (find_func_aliases): Likewise.
3355         * value-prof.c (gimple_ic_transform): Likewise.
3356         (gimple_indirect_call_to_profile): Likewise.
3357         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3358         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3359
3360 2011-04-19  Jan Hubicka  <jh@suse.cz>
3361
3362         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3363         * ipa-inline.c (inline_small_functions): Compute summaries first,
3364         populate heap later.
3365
3366 2011-04-19  Jan Hubicka  <jh@suse.cz>
3367
3368         * cgraph.h (save_inline_function_body): Remove.
3369         * ipa-inline-transform.c: New file, broke out of...
3370         * ipa-inline.c: ... this one; Update toplevel comment.
3371         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3372         make global.
3373         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3374         (cgraph_mark_inline_edge): Rename to inline_call; move to
3375         ipa-inline-transform.c.
3376         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3377         move to ipa-inline-transform.c
3378         (recursive_inlining, inline_small_functions, flatten_function,
3379         ipa_inline, inline_always_inline_functions,
3380         early_inline_small_functions): Update.
3381         (inline_transform): Move to ipa-inline-transform.c.
3382         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3383         Declare.
3384         * Makefile.in (ipa-inline-transform.o): New file.
3385         * cgraphunit.c (save_inline_function_body): Move to
3386         ipa-inline-transform.c
3387
3388 2011-04-19  DJ Delorie  <dj@redhat.com>
3389
3390         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3391         registers if we already know there aren't any.
3392         (m32c_emit_epilogue): Don't emit a barrier here.
3393         (m32c_emit_eh_epilogue): Likewise.
3394         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3395         operands at expand time.
3396         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3397         int" wchar type.
3398         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3399         duplicates.  Provide aliases instead.
3400         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3401         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3402         the compiler.
3403
3404 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3405
3406         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3407         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3408         (general_or_i64_p, sparc_register_move_cost): New function.
3409
3410 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3411
3412         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3413         Add lynx, mipssde.  Sort table.
3414
3415 2011-04-19  Xinliang David Li  <davidxl@google.com>
3416
3417         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3418         not negative.
3419
3420 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3421
3422         PR target/48678
3423         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3424         is a SUBREG with non-MODE_INT mode inside of it.
3425
3426 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3427
3428         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3429         also according to actual contants.
3430         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3431         (gimple_fold_call): Use it.
3432         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3433
3434 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3435
3436         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3437         non-pointer assignments.
3438
3439 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3440
3441         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3442         account anc_offset and otr_type from the indirect edge info.
3443         * ipa-prop.c (get_ancestor_addr_info): New function.
3444         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3445         get_ancestor_addr_info, call it.
3446         (ipa_note_param_call): Do not initialize information about polymorphic
3447         calls, return the indirect call graph edge.  Remove the last
3448         parameter, adjust all callers.
3449         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3450         parameters.  Initialize polymorphic information in the indirect edge.
3451
3452 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3453
3454         PR lto/48148
3455         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3456         the types if they have different enumeration identifiers.
3457
3458 2011-04-19  Jan Hubicka  <jh@suse.cz>
3459
3460         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3461         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3462         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3463         (optimize_function_for_size_p) ... here.
3464
3465 2011-04-19  Richard Guenther  <rguenther@suse.de>
3466
3467         PR lto/48207
3468         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3469         langhook.
3470
3471 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3472
3473         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3474         if DECL_NO_INLINE_WARNING_P is set on the function.
3475
3476 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3477
3478         PR fortran/47976
3479         * reload1.c (inc_for_reload): Return void. All callers changed.
3480         (emit_input_reload_insns): Don't try to delete previous output
3481         reloads to a register, or record spill_reg_store for autoincs.
3482
3483 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3484
3485         * gengtype.h: Updated copyright year.
3486         (struct input_file_st): Add inpisplugin field.
3487         (type_fileloc): New function.
3488         * gengtype.c
3489         (write_typed_struct_alloc_def): Add gcc_assert.
3490         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3491         (write_typed_alloc_defns): Don't output for plugin files.
3492         (input_file_by_name): Clear inpisplugin field.
3493         (main): Set inpisplugin field for plugin files.
3494
3495 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3496
3497         * gengtype-state.c (string_eq): New.
3498         (read_state): Use string_eq instead of strcmp when creating the
3499         state_ident_tab.
3500
3501 2011-04-19  Wei Guozhi  <carrot@google.com>
3502
3503         PR target/47855
3504         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3505         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3506         linkage.
3507         * config/arm/constraints.md (Uu): New constraint.
3508         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3509
3510 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3511
3512         * config.gcc (-*-*-*vms): Added.
3513         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3514         definitions moved.
3515         * config/vms/vms-ld.c: New file.
3516         * config/vms/vms-ar.c: New file.
3517         * config/vms/t-vmsnative: New file.
3518
3519 2011-04-18  Xinliang David Li  <davidxl@google.com>
3520
3521         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3522
3523 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3524
3525         PR middle-end/48661
3526         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3527         if TREE_TYPE (v) is non-NULL.
3528
3529         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3530         gimple_get_virt_mehtod_for_binfo.
3531         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3532         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3533         callers.
3534         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3535
3536 2011-04-18  Michael Matz  <matz@suse.de>
3537             Steve Ellcey  <sje@cup.hp.com>
3538
3539         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3540         use its mode as source mode if it isn't VOIDmode.
3541
3542 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3543
3544         * doc/passes.texi: Fill crossref nodes.
3545
3546 2011-04-18  Jim Meyering  <meyering@redhat.com>
3547
3548         Fix doubled-word typos in comments and strings
3549         * config/alpha/vms-unwind.h: s/for for/for/
3550         * config/arm/unwind-arm.h: Likewise.
3551         * config/microblaze/microblaze.c: Likewise.
3552         * config/sh/constraints.md: s/in in/in/
3553         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3554
3555 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3556
3557         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3558         (AVX_FLOAT_MODE_P): Ditto.
3559         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3560         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3561         (AVX_VEC_FLOAT_MODE_P): Ditto.
3562         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3563         (UNSPEC_MASKSTORE): Ditto.
3564         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3565         Merge from <sse>_movmsk<ssemodesuffix> and
3566         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3567         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3568         iterator.
3569         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3570         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3571         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3572
3573 2011-04-18  Jan Hubicka  <jh@suse.cz>
3574
3575         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3576
3577         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3578         (want_inline_function_called_once_p): Break out the logic from
3579         ipa_inline.
3580         (edge_badness): Ensure that profile is not misupdated.
3581         (lookup_recursive_calls): Prioritize by call frequencies.
3582         (inline_small_functions): Move program size estimates here;
3583         actually process whole queue even when unit growth has been
3584         met. (to properly compute inline_failed reasons and for the
3585         case unit size decrease.) Revisit comments on recursive inlining.
3586         (ipa_inline): Remove unit summary code; first inline hot calls
3587         of functions called once, cold calls next.
3588         (order, nnodes): Remove unused variables.
3589         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3590         (GTFILES): Remove ipa-inline.c
3591         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3592
3593 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3594
3595         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3596
3597 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3598             Richard Earnshaw  <rearnsha@arm.com>
3599
3600         * arm.c (neon_builtin_type_bits): Remove.
3601         (typedef enum neon_builtin_mode): New.
3602         (T_MAX): Don't define.
3603         (typedef enum neon_builtin_datum): Remove bits, codes[],
3604         num_vars and base_fcode.  Add mode, code and fcode.
3605         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3606         VAR10): Change accordingly.
3607         (neon_builtin_data[]): Change accordingly
3608         (arm_init_neon_builtins): Change accordingly.
3609         (neon_builtin_compare): Remove.
3610         (locate_neon_builtin_icode): Remove.
3611         (arm_expand_neon_builtin): Change accordingly.
3612
3613         * arm.h (enum arm_builtins): Move to ...
3614         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3615
3616         * arm.c (arm_builtin_decl): Declare.
3617         (TARGET_BUILTIN_DECL): Define.
3618         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3619         (arm_builtin_decls[]): New.
3620         (arm_init_neon_builtins): Store builtin declarations in
3621         arm_builtin_decls[].
3622         (arm_init_tls_builtins): Likewise.
3623         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3624         (arm_builtin_decl): New.
3625
3626 2011-04-18  Richard Guenther  <rguenther@suse.de>
3627
3628         * tree.c (upper_bound_in_type): Build properly canonicalized
3629         INTEGER_CSTs.
3630         (lower_bound_in_type): Likewise.
3631
3632 2011-04-18  Richard Guenther  <rguenther@suse.de>
3633
3634         * gimple.h (gimple_call_addr_fndecl): New function.
3635         (gimple_call_fndecl): Use it.
3636         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3637         for direct calls.
3638         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3639         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3640
3641 2011-04-18  Richard Guenther  <rguenther@suse.de>
3642
3643         PR middle-end/48650
3644         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3645
3646 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3647
3648         PR lto/48492
3649         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3650         DECL_IN_CONSTANT_POOL without RTL.
3651
3652 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3653             Ira Rosen  <ira.rosen@linaro.org>
3654
3655         PR target/48252
3656         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3657         to match neon_vzip/vuzp/vtrn_internal.
3658         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3659         outputs explicitly dependent on both inputs.
3660         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3661
3662 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3663
3664         PR tree-optimization/48616
3665         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3666         whether the shift is by scalar or vector based on whether all SLP
3667         scalar stmts have the same rhs.
3668
3669 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3670
3671         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3672         memory operands.
3673
3674 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3675
3676         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3677         registers.
3678
3679 2011-04-17  Jan Hubicka  <jh@suse.cz>
3680
3681         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3682         * cgrpahunit.c (cgraph_finalize_function): Do not set
3683         finalized_by_frontend.
3684         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3685         finalized_by_frontend.
3686
3687 2011-04-17  Jan Hubicka  <jh@suse.cz>
3688
3689         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3690         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3691         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3692         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3693         method.
3694         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3695         gimple-fold.c
3696         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3697
3698 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3699
3700         PR lto/48538
3701         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3702         is non-null before accessing it.
3703         (input_cgraph): Remove trailing spaces.
3704
3705 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3706
3707         * params.def (sms-min-sc): New param flag.
3708         * modulo-sched.c (sms_schedule): Use it.
3709         * doc/invoke.texi (sms-min-sc): Document it.
3710
3711 2011-04-17  Jan Hubicka  <jh@suse.cz>
3712
3713         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3714         present, also set gimple_call_set_cannot_inline.
3715         * ipa-inline.c: Update toplevel comment.
3716         (MAX_TIME): Remove.
3717         (cgraph_clone_inlined_nodes): Fix linebreaks.
3718         (cgraph_check_inline_limits): Restructure to ...
3719         (caller_growth_limits): ... this one; be more tolerant
3720         on growth in nested inline chains; add explanatory comment;
3721         fix stack accounting thinko introduced by previous patch.
3722         (cgraph_default_inline_p): Remove.
3723         (report_inline_failed_reason): New function.
3724         (can_inline_edge_p): New function.
3725         (can_early_inline_edge_p): New function.
3726         (leaf_node_p): Move upwards in file.
3727         (want_early_inline_function_p): New function.
3728         (want_inline_small_function_p): New function.
3729         (want_inline_self_recursive_call_p): New function.
3730         (cgraph_edge_badness): Rename to ...
3731         (edge_badness) ... this one; fix linebreaks.
3732         (update_edge_key): Update call of edge_baddness; add
3733         detailed dump about queue updates.
3734         (update_caller_keys): Use can_inline_edge_p and
3735         want_inline_small_function_p.
3736         (cgraph_decide_recursive_inlining): Rename to...
3737         (recursive_inlining): Use can_inline_edge_p and
3738         want_inline_self_recursive_call_p; simplify and remove no longer
3739         valid FIXME.
3740         (cgraph_set_inline_failed): Remove.
3741         (add_new_edges_to_heap): Use can_inline_edge_p and
3742         want_inline_small_function_p.
3743         (cgraph_decide_inlining_of_small_functions): Rename to ...
3744         (inline_small_functions): ... this one; cleanup; use
3745         can/want predicates; cleanup debug ouput; work edges till fibheap
3746         is exhausted and do not stop once unit growth is reached; remove
3747         later loop processing remaining edges.
3748         (cgraph_flatten): Rename to ...
3749         (flatten_function): ... this one; use can_inline_edge_p
3750         and can_early_inline_edge_p predicates.
3751         (cgraph_decide_inlining): Rename to ...
3752         (ipa_inline): ... this one; remove unreachable nodes before
3753         inlining functions called once; simplify the pass.
3754         (cgraph_perform_always_inlining): Rename to ...
3755         (inline_always_inline_functions): ... this one; use
3756         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3757         (cgraph_decide_inlining_incrementally): Rename to ...
3758         (early_inline_small_functions): ... this one; simplify
3759         using new predicates; cleanup; make dumps prettier.
3760         (cgraph_early_inlining): Rename to ...
3761         (early_inliner): newer inline regular functions into always-inlines;
3762         fix updating of call stmt summaries.
3763         (pass_early_inline): Update for new names.
3764         (inline_transform): Fix formating.
3765         (gate_cgraph_decide_inlining): Rename to ...
3766         (pass_ipa_inline): ... this one.
3767         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3768         * ipa-inline-analysis.c (dump_inline_summary): Update.
3769         (compute_inline_parameters): Do not compute disregard_inline_limits;
3770         look for mismatching arguments.
3771         (estimate_growth): Fix handlig of non-trivial self recursion.
3772         (inline_read_summary): Do not read info->disregard_inline_limits.
3773         (inline_write_summary): Do not write info->disregard_inline_limits.
3774         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3775         and move all checks into can_inline_edge_p predicate; re-enable code
3776         comparing optimization levels.
3777         (expand_call_inline): Do not test inline_forbidden_into_p.
3778         * Makefile.in (ipa-inline.o): Update arguments.
3779
3780 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3781
3782         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3783
3784 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3785
3786         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3787
3788 2011-04-17  Michael Matz  <matz@suse.de>
3789
3790         PR tree-optimization/48622
3791         PR lto/48645
3792         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3793         in same order as they're written.
3794
3795 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3796
3797         * config/pa/predicates.md: Reorganize and simplify predicates.
3798         Eliminate duplicate code checks.
3799         (arith_operand): Rename to arith14_operand
3800         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3801         * config/pa/pa.md: Use renamed operands.
3802         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3803         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3804         arith11_operand, adddi3_operand, indexed_memory_operand,
3805         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3806         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3807         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3808         move_dest_operand, move_src_operand, prefetch_cc_operand,
3809         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3810         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3811         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3812         div_operand, int5_operand, movb_comparison_operator,
3813         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3814         arith_double_operand, ireg_operand, lhs_lshift_operand,
3815         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3816         integer_store_memory_operand): Likewise.
3817         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3818         (integer_store_memory_operand, read_only_operand,
3819         function_label_operand, borx_reg_operand,
3820         non_hard_reg_operand): Likewise.
3821         (eq_neq_comparison_operator): Delete unused operator.
3822         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3823         function_label_operand.
3824         (emit_move_sequence): Likewise.
3825
3826 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3827
3828         * config/i386/sse.md (sseunpackmode): New mode attribute.
3829         (ssepackmode): Ditto.
3830         (vec_pack_trunc_<mode>): Macroize expander from
3831         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3832         (vec_unpacks_lo_<mode>): Macroize expander from
3833         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3834         (vec_unpacks_hi_<mode>): Macroize expander from
3835         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3836         (vec_unpacku_lo_<mode>): Macroize expander from
3837         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3838         (vec_unpacku_hi_<mode>): Macroize expander from
3839         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3840         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3841         ix86_expand_sse4_unpack.
3842         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3843
3844 2011-04-16  Jan Hubicka  <jh@suse.cz>
3845
3846         * cgraphbuild.c: Include ipa-inline.h.
3847         (reset_inline_failed): Use initialize_inline_failed.
3848         * cgraph.c: Include ipa-inline.h.
3849         (cgraph_create_node_1): Do not initialize estimated_growth.
3850         (initialize_inline_failed): More to ipa-inline-analysis.c
3851         (dump_cgraph_node): Do not dump inline flags.
3852         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3853         and disregard_inline_limits flags.
3854         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3855         time, size, estimated_growth.
3856         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3857         Update.
3858         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3859         DECL_DISREGARD_INLINE_LIMITS.
3860         (cgraph_analyze_function): Do not initialize
3861         node->local.disregard_inline_limits.
3862         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3863         inlinable, versionable and disregard_inline_limits.
3864         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3865         cgraph_check_inline_limits, cgraph_default_inline_p,
3866         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3867         add_new_edges_to_heap): Update.
3868         (cgraph_decide_inlining_of_small_function): Update; set
3869         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3870         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3871         cgraph_decide_inlining_incrementally): Update.
3872         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3873         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3874         time, size and estimated_growth parameters.
3875         (estimate_edge_growth): Update.
3876         (initialize_inline_failed): Declare.
3877         * ipa-split.c: Include ipa-inline.h
3878         (execute_split_functions): Update.
3879         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3880         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3881         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3882         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3883         estimated_growth to INT_MIN.
3884         (inline_node_duplication_hook): Likewise.
3885         (dump_inline_summary): Dump new fields.
3886         (compute_inline_parameters): Update.
3887         (estimate_edge_time, estimate_time_after_inlining,
3888         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3889         inline_write_summary):
3890         (initialize_inline_failed): Move here from cgraph.c.
3891         * tree-sra.c: Include ipa-inline.h.
3892         (ipa_sra_preliminary_function_checks): Update.
3893         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3894         ipa-inline.h.
3895
3896 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3897
3898         * config/i386/sse.md (V16): New mode iterator.
3899         (VI1, VI8): Ditto.
3900         (AVXMODEQI, AVXMODEDI): Remove.
3901         (sse2, sse3): New mode attribute.
3902         (mov<mode>): Use V16 mode iterator.
3903         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3904         (push<mode>1): Use V16 mode iterator.
3905         (movmisalign<mode>): Ditto.
3906         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3907         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3908         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3909         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3910         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3911         avx_movdqu<avxmodesuffix>.
3912         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3913         *avx_movdqu<avxmodesuffix>.
3914         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3915         avx_lddqu<avxmodesuffix>.
3916         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3917         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3918         avx_movnt<AVXMODEDI:mode>.
3919         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3920         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3921
3922 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3923
3924         PR target/48629
3925         * haifa-sched.c (prune_ready_list, schedule_block): Use
3926         sched_pressure_p rather than flag_sched_pressure.
3927
3928 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
3929
3930         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3931         cgraph_get_node instead of cgraph_get_create_node.
3932
3933 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3934
3935         * cfgexpand.c (expand_debug_expr): Use
3936         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3937
3938 2011-04-15  Michael Matz  <matz@suse.de>
3939
3940         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3941         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3942         * function.c (gimplify_parameters): Ditto.
3943         * gimplify.c (gimplify_vla_decl): Ditto.
3944
3945         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3946         (gimple_call_set_alloca_for_var): New inline function.
3947         (gimple_call_alloca_for_var_p): Ditto.
3948         * gimple.c (gimple_build_call_from_tree): Remember
3949         CALL_ALLOCA_FOR_VAR_P state.
3950         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3951
3952         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3953         calls if they were for VLA objects.
3954
3955 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3956
3957         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3958         of ADR_EXPRs.
3959
3960 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3961
3962         PR middle-end/48601
3963         * tree-emutls.c (lower_emutls_function_body): Call
3964         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3965         result is non-NULL.
3966
3967 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3968
3969         * c-decl.c (detect_field_duplicates): Call
3970         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3971
3972 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3973
3974         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3975         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3976         * ipa-pure-const.c (check_stmt): Call it.
3977         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3978
3979 2011-04-15  Richard Guenther  <rguenther@suse.de>
3980
3981         PR tree-optimization/48290
3982         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3983         Properly decide inhibiting propagation based on the valueized
3984         operand.  Do loop-closed SSA form preserving here ...
3985         (init_copy_prop): ... not here.
3986
3987 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3988
3989         PR target/48612
3990         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3991         (*ieee_smax<mode>3): Likewise.
3992
3993 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3994
3995         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3996         Replace match_operand with match_dup for the third operand in
3997         these expanders.
3998
3999 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4000
4001         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4002         to track processing of conditionals.  Update all callers.
4003         (try_combine, simplify_if_then_else): Update.
4004
4005 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4006
4007         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4008         -fsched-pressure.
4009
4010 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4011
4012         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4013         instead of match_operand for operand 3.
4014
4015 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4016
4017         * recog.h (insn_operand_data): Add an "allows_mem" field.
4018         * genoutput.c (output_operand_data): Initialize it.
4019         * optabs.c (maybe_legitimize_operand_same_code): New function.
4020         (maybe_legitimize_operand): Use it when matching the original
4021         op->value.
4022
4023 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4024
4025         * gimplify.c: Fix issues in comments throughout.
4026         (voidify_wrapper_expr): Fix long line.
4027         (build_stack_save_restore): Likewise.
4028         (gimplify_loop_expr): Likewise.
4029         (gimplify_compound_lval): Likewise.
4030         (gimplify_init_ctor_eval): Likewise.
4031         (gimplify_modify_expr_rhs): Likewise.
4032         (omp_notice_threadprivate_variable): Likewise.
4033
4034 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4035
4036         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4037         original one if this is not a builtin function.
4038
4039 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4040
4041         PR target/48605
4042         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4043         offset it as needed based on top 2 bits in operands[3], change
4044         MEM mode to SFmode and mask those 2 bits away from operands[3].
4045
4046 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4047
4048         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4049         change from objc_declare_protocols() to objc_declare_protocol().
4050
4051 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4052
4053         * config/i386/sse.md (sse4_1): New mode attribute.
4054         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4055         avx_blend<ssemodesuffix><avxmodesuffix> and
4056         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4057         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4058         avx_blendv<ssemodesuffix><avxmodesuffix> and
4059         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4060         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4061         avx_dp<ssemodesuffix><avxmodesuffix> and
4062         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4063         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4064         (sse4_1_packusdw): Merge with *avx_packusdw.
4065         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4066         (sse4_1_pblendw): Merge with *avx_pblendw.
4067         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4068         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4069         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4070         VF mode iterator.
4071         (sse4_1_round<ssescalarmodesuffix>): Merge with
4072         *avx_round<ssescalarmodesuffix>.
4073         (aesenc): Merge with *avx_aesenc.
4074         (aesenclast): Merge with *avx_aesenclast.
4075         (aesdec): Merge with *avx_aesdec.
4076         (aesdeclast): Merge with *avx_aesdeclast.
4077         (pclmulqdq): Merge with *pclmulqdq.
4078         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4079         New predicate.
4080         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4081
4082 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4083
4084         PR middle-end/48608
4085         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4086         (align_local_variable): This.  Update DECL_ALIGN.
4087         (add_stack_var): Updated.
4088         (expand_one_stack_var): Likewise.
4089
4090 2011-04-14  Richard Guenther  <rguenther@suse.de>
4091
4092         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4093         Remove.
4094         (dse_initialize_block_local_data, dse_leave_block,
4095         record_voperand_set, get_stmt_uid): Likewise.
4096         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4097         (dse_optimize_stmt): Remove voperand set handling code.
4098         Simplify and improve to handle any kind of killing stmt.
4099         (dse_record_phi): Remove.
4100         (dse_enter_block): Simplify.
4101         (tree_ssa_dse): Likewise.
4102         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4103
4104 2011-04-14  Jan Hubicka  <jh@suse.cz>
4105
4106         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4107         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4108         (cgraph_local_info): Remove inline_summary.
4109         * ipa-cp.c: Include ipa-inline.h.
4110         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4111         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4112         accesor.
4113         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4114         (input_overwrite_node): Do not set inline summary.
4115         (input_node): Do not stream inline summary.
4116         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4117         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4118         growth; we do not have inline parameters computed for that anyway.
4119         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4120         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4121         (inline_summary_t): New type and VECtor.
4122         (debug_inline_summary, dump_inline_summaries): Declare.
4123         (inline_summary): Use VOCtor.
4124         (estimate_edge_growth): Kill hack computing call stmt size directly.
4125         * lto-section-in.c (lto_section_name): Add inline section.
4126         * ipa-inline-analysis.c: Include lto-streamer.h
4127         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4128         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4129         (inline_summary_vec): Define.
4130         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4131         dump_inline_summaries): New functions.
4132         (estimate_function_body_sizes): Properly compute size/time of outgoing
4133         calls.
4134         (compute_inline_parameters): Alloc inline_summary; do not compute
4135         size/time of incomming calls.
4136         (estimate_edge_time): Avoid missing time summary hack.
4137         (inline_read_summary): Read inline summary info.
4138         (inline_write_summary): Write inline summary info.
4139         (inline_free_summary): Free all hooks and inline summary vector.
4140         * lto-streamer.h: Add LTO_section_inline_summary section.
4141         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4142         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4143
4144 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4145
4146         * tree-vectorizer.h (vect_strided_store_supported): Add a
4147         HOST_WIDE_INT argument.
4148         (vect_strided_load_supported): Likewise.
4149         (vect_permute_store_chain): Return void.
4150         (vect_transform_strided_load): Likewise.
4151         (vect_permute_load_chain): Delete.
4152         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4153         count argument.  Check that the count is a power of two.
4154         (vect_strided_load_supported): Likewise.
4155         (vect_permute_store_chain): Return void.  Update after above changes.
4156         Assert that the access is supported.
4157         (vect_permute_load_chain): Likewise.
4158         (vect_transform_strided_load): Return void.
4159         * tree-vect-stmts.c (vectorizable_store): Update calls after
4160         above interface changes.
4161         (vectorizable_load): Likewise.
4162         (vect_analyze_stmt): Don't check for strided powers of two here.
4163
4164 2011-04-14  Richard Guenther  <rguenther@suse.de>
4165
4166         PR tree-optimization/48590
4167         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4168         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4169         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4170         BUILT_IN_STACK_SAVE.
4171         * tree-ssa-dce.c (propagate_necessity): Handle
4172         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4173
4174 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4175
4176         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4177         objc_declare_class.
4178
4179 2011-04-14  Richard Guenther  <rguenther@suse.de>
4180
4181         * tree.h (get_object_alignment_1): Declare.
4182         * builtins.c (get_object_alignment_1): Split out worker from ...
4183         (get_object_alignment): ... here.
4184         * fold-const.c (get_pointer_modulus_and_residue): Use
4185         get_object_alignment_1.
4186
4187 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4188
4189         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4190         type parameter.
4191         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4192         parameter.  Generalise code to handle arrays as well as vectors.
4193         (vect_setup_realignment): Update accordingly.
4194         * tree-vect-stmts.c (vectorizable_store): Likewise.
4195         (vectorizable_load): Likewise.
4196
4197 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4198
4199         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4200         within the per-copy loop.
4201
4202 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4203
4204         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4205         in the dump file.
4206
4207 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4208
4209         * doc/options.texi (Negative): Explicitly mention that the
4210         Negative chain must be circular.
4211
4212 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4213
4214         * function.h (block_chainon): Declare.
4215         * function.c (block_chainon): Define.
4216
4217 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4218             Eric Weddington  <eric.weddington@atmel.com>
4219             Georg-Johann Lay  <avr@gjlay.de>
4220
4221         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4222         New Includes
4223         (avr_init_builtins, avr_expand_builtin,
4224         avr_expand_delay_cycles, avr_expand_unop_builtin,
4225         avr_expand_binop_builtin ): New functions.
4226         (avr_builtin_id): New enum
4227         (struct avr_builtin_description): New struct
4228         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4229         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4230
4231         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4232         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4233         UNSPECV_DELAY_CYCLES): new enumeration values
4234         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4235         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4236         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4237         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4238         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4239         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4240         "fmulsu"): New insns
4241
4242         * config/avr/avr-c.c: fix line endings
4243         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4244         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4245         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4246         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4247         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4248
4249         * doc/extend.texi (AVR Built-in Functions): New node
4250         (Target Builtins): Add documentation of AVR
4251         built-in functions.
4252
4253 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4254
4255         PR target/44643
4256         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4257         alone. Error if non-const data has attribute progmem.
4258
4259 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4260
4261         * tree.h (struct tree_constructor): Include tree_typed instead of
4262         tree_common.
4263         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4264         TS_TYPED instead of TS_COMMON.
4265
4266 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4267
4268         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4269         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4270         (sse2_psadbw): Merge with *avx_psadbw.
4271         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4272         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4273         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4274         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4275         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4276         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4277         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4278         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4279         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4280         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4281         (ssse3_palignrti): Merge with *avx_palignrti.
4282
4283 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4284
4285         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4286         * tree-ssanames.c (fini_ssanames): VEC_free it.
4287         (make_ssa_name_fn): Update for VECness of free_ssanames.
4288         (release_ssa_name, release_dead_ssa_names): Likewise.
4289         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4290         tree_common.
4291         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4292         TS_TYPED instead of TS_COMMON.
4293
4294 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4295
4296         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4297         statistics_counter_event.
4298         * tree-ssa-copyrename.c (stats): Define.
4299         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4300         statistics_counter_event.
4301         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4302         (bswap_stats, widen_mul_stats): Define.
4303         (insert_reciprocals): Increment rdivs_inserted.
4304         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4305         rfuncs_inserted.  Add calls to statistics_counter_event.
4306         (execute_cse_sincos_1): Increment inserted.
4307         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4308         statistics_counter_event.
4309         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4310         of bswap_stats.  Add calls to statistics_counter_event.
4311         (convert_mult_to_widen): Increment widen_mults_inserted.
4312         (convert_plusminus_to_widen): Increment maccs_inserted.
4313         (convert_mult_to_fma): Increment fmas_inserted.
4314         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4315         calls to statistics_counter_event.
4316
4317 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4318
4319         PR rtl-optimization/48455
4320         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4321         `temp_costs->mem_cost'.
4322
4323 2011-04-13  Jan Hubicka  <jh@suse.cz>
4324
4325         * ipa-inline.h: New file.
4326         * ipa-inline-analysis.c: New file. Broken out of ...
4327         * ipa-inline.c: ... this file; update toplevel comment;
4328         include ipa-inline.h
4329         (inline_summary): Move to ipa-inline.h
4330         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4331         ipa-inline-analysis.c.
4332         (cgraph_estimate_time_after_inlining): Rename to
4333         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4334         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4335         to estimate_edge_growth.
4336         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4337         rename to estimate_size_after_inlining.
4338         (cgraph_mark_inline_edge): Update for new naming convention.
4339         (cgraph_check_inline_limits): Likewise.
4340         (cgraph_edge_badness): Likewise.
4341         (cgraph_decide_recursive_inlining): Likewise.
4342         (cgraph_decide_inlining_of_small_functions): Likewise.
4343         (cgraph_decide_inlining_incrementally): Likewise.
4344         (cgraph_estimate_growth): Rename to estimate_growth; move to
4345         ipa-inline-analysis.c.
4346         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4347         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4348         (compute_inline_parameters): Likewise.
4349         (compute_inline_parameters_for_current): Likewise.
4350         (pass_inline_parameters): Likewise.
4351         (inline_indirect_intraprocedural_analysis): Likewise.
4352         (analyze_function): Rename to inline_analyze_function; likewise.
4353         (add_new_function): Move to ipa-inline-analysis.c.
4354         (inline_generate_summary): Likewise.
4355         (inline_read_summary): Likewise.
4356         (inline_write_summary): Likewise.
4357         * Makefile.in (ipa-inline-analysis.c): New file.
4358
4359 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4360
4361         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4362         * configure: Regenerate.
4363
4364 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4365
4366         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4367         instead of tree_common.
4368         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4369         Likewise.
4370         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4371         TS_TYPED rather than TS_COMMON.
4372         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4373
4374 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4375
4376         PR target/45263
4377         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4378         r20 around calls of __tablejump_elpm__
4379
4380 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4381
4382         PR middle-end/48591
4383         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4384         NULL.
4385         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4386
4387 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4388
4389         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4390         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4391         (cfi_vec): New typedef.
4392         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4393         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4394         (cie_cfi_vec): New static variable.
4395         (cie_cfi_head): Delete.
4396         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4397         declaration changed. Use vector rather than list operations.
4398         (new_cfi): Don't initialize the dw_cfi_next field.
4399         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4400         rather than list operations.
4401         (lookup_cfa): Use vector rather than list operations.
4402         (output_cfis): New argument upto. Accept a cfi_vec rather than
4403         a dw_cfi_ref list head as argument. All callers changed.
4404         Iterate over the vector using upto as a maximum index.
4405         (output_all_cfis): New static function.
4406         (output_fde): Use vector rather than list operations. Use the
4407         new upto argument for output_cfis rather than manipulating a
4408         list.
4409         (dwarf2out_begin_prologue): Change initializations to match
4410         new struct members.
4411         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4412         from the vector length rather than searching for the end of a list.
4413         Use output_all_cfis.
4414         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4415
4416 2011-04-13  Nick Clifton  <nickc@redhat.com>
4417
4418         * config/rx/rx.md (movmemsi): Do not use this pattern when
4419         volatile pointers are involved.
4420
4421 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4422
4423         * config/i386/sse.md (pinsrbits): Remove.
4424         (sse2_packsswb): Merge with *avx_packsswb.
4425         (sse2_packssdw): Merge with *avx_packssdw.
4426         (sse2_packuswb): Merge with *avx_packuswb.
4427         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4428         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4429         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4430         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4431         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4432         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4433         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4434         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4435         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4436         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4437         (sse2_loadld): Merge with *avx_loadld.
4438         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4439         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4440         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4441         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4442         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4443
4444 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4445
4446         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4447         calling TREE_CHAIN.
4448         * print-tree.c (print_node): Likewise.
4449         * tree-inline.c (copy_tree_r): Likewise.
4450         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4451         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4452         instead of TS_COMMON.
4453         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4454         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4455         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4456         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4457         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4458         ...and these...
4459         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4460         * tree.h: ...here.
4461         (TREE_CHAIN): Check for a TS_COMMON structure.
4462         (TREE_TYPE): Check for a TS_TYPED structure.
4463
4464 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4465
4466         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4467         cgraph_get_create_node instead of cgraph_node.
4468
4469 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4470
4471         * c-parser.c (c_parser_initelt): Updated call to
4472         objc_build_message_expr.
4473         (c_parser_postfix_expression): Likewise.
4474
4475 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4476
4477         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4478         MASK_MS_BITFIELD_LAYOUT bit.
4479
4480 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4481
4482         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4483         assert it is always true.
4484         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4485         moves.
4486
4487 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4488
4489         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4490         compiling Objective-C to be more efficient.
4491
4492 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4493
4494         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4495         argv_copied.
4496
4497 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4498
4499         * recog.h, genoutput.c, optabs.c: Revert last patch.
4500
4501 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4502
4503         PR target/48090
4504         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4505
4506 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4507
4508         * recog.h (insn_operand_data): Add an "allows_mem" field.
4509         * genoutput.c (output_operand_data): Initialize it.
4510         * optabs.c (maybe_legitimize_operand_same_code): New function.
4511         (maybe_legitimize_operand): Use it when matching the original
4512         op->value.
4513
4514 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4515
4516         * genpreds.c (process_define_predicate): Move most processing
4517         to gensupport.c.  Continue to validate the expression.
4518         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4519         (process_define_predicate): Move processing to gensupport.c.
4520         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4521         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4522         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4523         argument.
4524         (valid_predicate_name_p): New function, split out from old
4525         genpreds.c:process_define_predicate.
4526         (process_define_predicate): New function, combining code from
4527         old genpreds.c and genrecog.c functions.
4528         (process_rtx): Call it for DEFINE_PREDICATE and
4529         DEFINE_SPECIAL_PREDICATE.
4530
4531 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4532
4533         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4534         size of a '%A' memory reference.
4535         (T_DREG, T_QREG): New neon_builtin_type_bits.
4536         (arm_init_neon_builtins): Assert that the load and store operands
4537         are neon_struct_operands.
4538         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4539         (NEON_ARG_MEMORY): New builtin_arg.
4540         (neon_dereference_pointer): New function.
4541         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4542         Handle NEON_ARG_MEMORY.
4543         (arm_expand_neon_builtin): Update after above interface changes.
4544         Use NEON_ARG_MEMORY for loads and stores.
4545         * config/arm/predicates.md (neon_struct_operand): New predicate.
4546         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4547         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4548         (V_four_elem): Tweak formatting.
4549         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4550         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4551         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4552         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4553         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4554         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4555         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4556         Use %A in the output template.
4557         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4558         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4559         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4560         the width of the memory access.  Remove post-increment.
4561         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4562
4563 2011-04-12  Nick Clifton  <nickc@redhat.com>
4564
4565         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4566         instruction for interrupt handlers if the target is the basic V850
4567         architecture.
4568         (expand_epilogue): Likewise.
4569
4570 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4571
4572         PR rtl-optimization/48549
4573         * combine.c (propagate_for_debug): Also stop after BB_END of
4574         this_basic_block.  Process LAST and just stop processing after it.
4575         (combine_instructions): If last_combined_insn has been deleted,
4576         set last_combined_insn to its PREV_INSN.
4577
4578 2011-04-12  Richard Guenther  <rguenther@suse.de>
4579
4580         PR tree-optimization/46076
4581         * gimple.h (struct gimple_statement_call): Add fntype field.
4582         (gimple_call_fntype): Adjust.
4583         (gimple_call_set_fntype): New function.
4584         * gimple.c (gimple_build_call_1): Set the call function type.
4585         * gimplify.c (gimplify_call_expr): Preserve the function
4586         type the frontend used for the call.
4587         (gimplify_modify_expr): Likewise.
4588         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4589         function type.
4590         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4591         function type.
4592         * tree-ssa.c (useless_type_conversion_p): Function pointer
4593         conversions are useless.
4594
4595 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4596
4597         * cgraph.h (cgraph_node): Remove function declaration.
4598         (cgraph_create_node): Declare.
4599         (cgraph_get_create_node): Likewise.
4600         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4601         Updated all callers.
4602         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4603         the decl does not already exist.  Call cgraph_get_create_node instead
4604         of cgraph_node.
4605         (cgraph_get_create_node): New function.
4606         (cgraph_same_body_alias): Update comment.
4607         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4608         assert it does not return NULL.
4609         (cgraph_update_edges_for_call_stmt): Likewise.
4610         (cgraph_clone_edge): Likewise.
4611         (cgraph_create_virtual_clone): Likewise.
4612         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4613         instead of cgraph_node.
4614         (cgraph_add_new_function): Call cgraph_create_node or
4615         cgraph_get_create_node instead of cgraph_node.
4616         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4617         instead of cgraph_node.
4618         (record_eh_tables): Likewise.
4619         (mark_address): Likewise.
4620         (mark_load): Likewise.
4621         (build_cgraph_edges): Call cgraph_get_create_node instead
4622         of cgraph_node.
4623         (rebuild_cgraph_edges): Likewise.
4624         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4625         instead of cgraph_node.
4626         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4627         cgraph_node.
4628         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4629         cgraph_create_node instead of cgraph_node.
4630         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4631         of cgraph_node.
4632         * lto-cgraph.c (input_node): Likewise.
4633         * lto-streamer-in.c (input_function): Likewise.
4634         * varasm.c (mark_decl_referenced): Likewise.
4635         (assemble_alias): Likewise.
4636
4637 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4638
4639         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4640         instead of cgraph_node and assert it does not return NULL.
4641         * lto-streamer-in.c (lto_read_body): Likewise.
4642         * omp-low.c (new_omp_context): Likewise.
4643         (create_task_copyfn): Likewise.
4644         * tree-emutls.c (lower_emutls_function_body): Likewise.
4645         * matrix-reorg.c (transform_allocation_sites): Likewise.
4646
4647 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4648
4649         PR c/48552
4650         * c-typeck.c (build_asm_expr): Error out on attempts to use
4651         void type outputs or inputs for constraints that allow reg or
4652         don't allow memory.
4653
4654 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4655             Richard Earnshaw  <rearnsha@arm.com>
4656
4657         PR target/48250
4658         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4659         to use sign-magnitude offsets. Reject unsupported unaligned
4660         cases. Add detailed description in comments.
4661         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4662         condition from TARGET_32BIT to TARGET_ARM.
4663
4664 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4665
4666         * tree.h (struct typed_tree): New.
4667         (struct tree_common): Include it instead of tree_base.
4668         (TREE_TYPE): Update for new location of type field.
4669         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4670         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4671         (union tree_node): Add typed field.
4672         * treestruct.def (TS_TYPED): New.
4673         * lto-streamer.c (check_handled_ts_structures): Handle it.
4674         * tree.c (MARK_TS_TYPED): New macro.
4675         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4676
4677 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4678
4679         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4680         (force_nonfallthru): Do not alter the loop nest if no basic block
4681         was created.
4682
4683 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4684
4685         * config/i386/sse.md (VI): New mode iterator.
4686         (SSEMODEI): Remove.
4687         (AVX256MODEI): Ditto.
4688         (AVXMODEF4P): Ditto.
4689         (avxvecpsmode): Ditto.
4690         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4691         (sse2_andnot<mode>3): New expander.
4692         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4693         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4694         (<any_logic:code><mode>3): Use VI mode iterator.
4695         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4696         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4697         (*andnottf3): Handle AVX three-operand constraints.
4698         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4699
4700 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4701             Robert Millan  <rmh@gnu.org>
4702
4703         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4704         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4705         GNU_USER_DYNAMIC_LINKER64): Define.
4706         (REG_NAME): Don't undefine.
4707         (MD_UNWIND_SUPPORT): Undefine.
4708         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4709         (REG_NAME): Don't undefine.
4710         (MD_UNWIND_SUPPORT): Undefine.
4711         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4712
4713 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4714
4715         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4716         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4717
4718 2011-04-11  Xinliang David Li  <davidxl@google.com>
4719
4720         * value-profile.c (check_ic_target): New function.
4721         (gimple_ic_transform): Sanity check indirect call target.
4722         * gimple-low.c (gimple_check_call_args): Interface change.
4723         (gimple_check_call_matching_types): New function.
4724         * tree-inline.c (tree_can_inline_p): Call new function.
4725
4726 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4727
4728         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4729         tree-pretty-print.h & realmpfr.h.
4730
4731 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4732
4733         PR middle-end/48464
4734         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4735         (setup_allocno_and_important_classes): Ditto.
4736
4737 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4738
4739         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4740         GNU_USER_DYNAMIC_LINKER.
4741         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4742         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4743         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4744         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4745         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4746         GNU_USER_TARGET_OS_CPP_BUILTINS.
4747         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4748         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4749         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4750         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4751         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4752         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4753         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4754         GNU_USER_TARGET_OS_CPP_BUILTINS.
4755         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4756         GNU_USER_DYNAMIC_LINKER.
4757         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4758         GNU_USER_TARGET_OS_CPP_BUILTINS.
4759         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4760         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4761         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4762         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4763         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4764         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4765         GNU_USER_DYNAMIC_LINKER64): Remove.
4766         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4767         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4768         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4769         GNU_USER_DYNAMIC_LINKER.
4770         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4771         GNU_USER_TARGET_OS_CPP_BUILTINS.
4772         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4773         GNU_USER_TARGET_OS_CPP_BUILTINS.
4774         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4775         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4776         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4777         GNU_USER_TARGET_OS_CPP_BUILTINS.
4778         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4779         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4780         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4781         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4782         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4783         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4784         GNU_USER_DYNAMIC_LINKER.
4785         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4786         GNU_USER_TARGET_OS_CPP_BUILTINS.
4787         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4788         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4789         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4790         GNU_USER_DYNAMIC_LINKER.
4791         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4792         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4793         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4794         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4795         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4796         GNU_USER_DYNAMIC_LINKER.
4797         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4798         GNU_USER_DYNAMIC_LINKERN32.
4799         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4800         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4801         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4802         GNU_USER_DYNAMIC_LINKER32.
4803         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4804         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4805         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4806         GNU_USER_DYNAMIC_LINKER.
4807         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4808         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4809         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4810         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4811         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4812         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4813         GNU_USER_DYNAMIC_LINKER32.
4814         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4815         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4816         GNU_USER_DYNAMIC_LINKER.
4817         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4818         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4819         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4820         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4821         GNU_USER_DYNAMIC_LINKER64.
4822         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4823         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4824         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4825         GNU_USER_DYNAMIC_LINKER.
4826         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4827         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4828         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4829         GNU_USER_DYNAMIC_LINKER.
4830         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4831         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4832         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4833         GNU_USER_DYNAMIC_LINKER32.
4834         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4835         GNU_USER_DYNAMIC_LINKER64.
4836         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4837         GNU_USER_DYNAMIC_LINKER64.
4838         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4839         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4840         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4841         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4842         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4843
4844 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4845
4846         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4847         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4848         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4849         GNU_USER_DYNAMIC_LINKER.
4850         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4851         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4852         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4853         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4854         GNU_USER_DYNAMIC_LINKER64.
4855         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4856         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4857         GNU_USER_LINK_EMULATION.
4858         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4859         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4860         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4861         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4862         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4863         CPP_SPEC, CC1_SPEC): Remove.
4864         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4865         (GNU_USER_DYNAMIC_LINKER): Define.
4866         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4867         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4868         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4869         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4870         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4871         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4872         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4873         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4874         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4875         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4876         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4877         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4878         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4879         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4880         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4881         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4882         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4883         GNU_USER_DYNAMIC_LINKER.
4884         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4885         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4886         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4887         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4888         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4889         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4890         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4891         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4892         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4893         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4894
4895 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4896
4897         PR target/9601
4898         PR target/11772
4899         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4900         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4901         comment.
4902         (ix86_is_msabi_thiscall): Removed.
4903         (ix86_is_type_thiscall): Likewise.
4904         (ix86_get_callcvt): New function.
4905         (ix86_comp_type_attributes): Simplify check.
4906         (ix86_function_regparm): Use ix86_get_callcvt for calling
4907         convention attribute checks.
4908         (ix86_return_pops_args): Likewise.
4909         (ix86_static_chain): Likewise.
4910         (x86_this_parameter): Likewise.
4911         (x86_output_mi_thunk): Likewise.
4912         (ix86_function_type_abi): Optimize check for types without attributes.
4913         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4914         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4915         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4916         by flag-values.
4917         (IX86_BASE_CALLCVT): Helper macro.
4918         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4919         Use ix86_get_callcvt for calling convention attribute checks and avoid
4920         symbol-decoration for stdcall in TARGET_RTD case.
4921         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4922         Likewise.
4923         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4924         for declaration.
4925
4926 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4927
4928         * config/i386/sse.md (VI_128): New mode iterator.
4929         (VI12_128): Rename from SSEMODE12.
4930         (VI14_128): Rename from SSEMODE14.
4931         (VI124_128): New mode iterator.
4932         (VI24_128): Rename from SSEMODE248.
4933         (VI248_128): Rename from SSEMODE248.
4934         (SSEMODE124C8): Remove.
4935         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4936         (*sse2_<plusminus_insn><mode>3): Merge with
4937         *avx_<plusminus_insn><mode>3.
4938         (*mulv8hi3): Merge with *avx_mulv8hi3.
4939         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4940         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4941         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4942         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4943         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4944         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4945         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4946         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4947         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4948         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4949         (*<smaxmin:code>v8hi3): Ditto.
4950         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4951         (*<smaxmin:code>v16qi3): Ditto.
4952         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4953         (*sse2_eq<mode>3): Ditto.
4954         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4955         (*sse2_gt<mode>3): Ditto.
4956         (vcondv2di): Split out of vcond<mode>.
4957         (vconduv2di): Split out of vcondu<mode>.
4958
4959 2011-04-11  Richard Guenther  <rguenther@suse.de>
4960
4961         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4962         before calling tree_low_cst.
4963
4964 2011-04-11  Richard Guenther  <rguenther@suse.de>
4965
4966         * stor-layout.c (layout_type): Compute all array index size operations
4967         in the original type.
4968         (initialize_sizetypes): Add comment.
4969         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4970
4971 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4972
4973         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4974
4975 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4976
4977         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4978         of cgraph_node, handle NULL return value.
4979         (cgraph_global_info): Likewise.
4980         (cgraph_rtl_info): Likewise.
4981         * tree-inline.c (estimate_num_insns): Likewise.
4982         * gimplify.c (unshare_body): Likewise.
4983         (unvisit_body): Likewise.
4984         (gimplify_body): Likewise.
4985         * predict.c (optimize_function_for_size_p): Likewise.
4986         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4987         (call_may_clobber_ref_p_1): Likewise.
4988         * varasm.c (function_section_1): Likewise.
4989         (assemble_start_function): Likewise.
4990
4991 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4992
4993         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4994         of cgraph_node.
4995         * final.c (rest_of_clean_state): Likewise.
4996         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4997         * passes.c (pass_init_dump_file): Likewise.
4998         (execute_all_ipa_transforms): Likewise.
4999         (function_called_by_processed_nodes_p): Likewise.
5000         * predict.c (maybe_hot_frequency_p): Likewise.
5001         (probably_never_executed_bb_p): Likewise.
5002         (compute_function_frequency): Likewise.
5003         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5004         (unnest_nesting_tree_1): Likewise.
5005         (lower_nested_functions): Likewise.
5006         * tree-optimize.c (execute_fixup_cfg): Likewise.
5007         (tree_rest_of_compilation): Likewise.
5008         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5009         * tree-sra.c (ipa_early_sra): Likewise.
5010         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5011         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5012         * ipa.c (record_cdtor_fn): Likewise.
5013         * ipa-inline.c (cgraph_early_inlining): Likewise.
5014         (compute_inline_parameters_for_current): Likewise.
5015         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5016         * ipa-pure-const.c (local_pure_const): Likewise.
5017         * ipa-split.c (split_function): Likewise.
5018         (execute_split_functions): Likewise.
5019         * cgraphbuild.c (build_cgraph_edges): Likewise.
5020         (rebuild_cgraph_edges): Likewise.
5021         (cgraph_rebuild_references): Likewise.
5022         (remove_cgraph_callee_edges): Likewise.
5023         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5024         (verify_cgraph_node): Likewise.
5025         (cgraph_analyze_functions): Likewise.
5026         (cgraph_preserve_function_body_p): Likewise.
5027         (save_inline_function_body): Likewise.
5028         (save_inline_function_body): Likewise.
5029         * tree-inline.c (copy_bb): Likewise.
5030         (optimize_inline_calls): Likewise.
5031
5032 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5033
5034         PR tree-optimization/48195
5035         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5036         ipa_check_create_edge_args.
5037         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5038         ipa_check_create_edge_args.
5039         * ipa-inline.c (inline_generate_summary): Do not call
5040         ipa_check_create_node_params and ipa_check_create_edge_args.
5041         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5042         ipa_check_create_edge_args.
5043
5044 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5045
5046         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5047         instead of loop.
5048         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5049         * function.c (record_hard_reg_sets): Likewise.
5050         * ira.c (compute_regs_asm_clobbered): Likewise.
5051         * sched-deps.c (sched_analyze_1): Likewise.
5052         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5053
5054 2011-04-09  Xinliang David Li  <davidxl@google.com>
5055
5056         PR tree-optimization/PR48484
5057         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5058         has_valid_pred lazily
5059
5060 2011-04-09  Duncan Sands  <baldrick@free.fr>
5061
5062         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5063
5064 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5065
5066         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5067         cost of I0 to zero at the end, if any.
5068
5069 2011-04-08  Xinliang David Li  <davidxl@google.com>
5070
5071         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5072         to insane profile data.
5073
5074 2011-04-08  Xinliang David Li  <davidxl@google.com>
5075
5076         * ipa-cp.c (ipcp_update_profiling): Correct
5077          negative scale factor due to insane profile data.
5078
5079 2011-04-08  Xinliang David Li  <davidxl@google.com>
5080
5081         * final.c (dump_basic_block_info): New function.
5082         (final): Dump basic block.
5083         (final_scan_insn): Remove old dump.
5084
5085 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5086
5087         PR target/47829
5088         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5089         crtbegin/crtend.
5090
5091 2011-04-08  Michael Matz  <matz@suse.de>
5092
5093         PR middle-end/48389
5094         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5095         functions.
5096         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5097         * rtl.h (rebuild_jump_labels_chain): Declare.
5098         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5099         insns inserted on edges.
5100
5101 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5102
5103         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5104         * config/arm/arm-arches.def: New.
5105         * config/arm/arm-opts.h: New.
5106         * config/arm/genopt.sh: New.
5107         * config/arm/arm-tables.opt: New (generated).
5108         * config/arm/arm.c (arm_handle_option, arm_target_help,
5109         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5110         (all_architectures): Get most table contents from arm-arches.def.
5111         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5112         arm_selected_tune here.
5113         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5114         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5115         (march=, mcpu=, mtune=): Use Enum and Var.
5116         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5117         (arm.o): Update dependencies.
5118
5119 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5120
5121         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5122         of header_file.
5123         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5124         (write_typed_alloc_defns): Likewise.
5125         (main): Calls write_typed_alloc_defns with output_header.
5126
5127 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5128
5129         PR inline-asm/48435
5130         * ira-color.c (setup_profitable_hard_regs): Add comments.
5131         Don't take prohibited hard regs into account.
5132         (setup_conflict_profitable_regs): Rename to
5133         get_conflict_profitable_regs.
5134         (check_hard_reg_p): Check prohibited hard regs.
5135
5136 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5137
5138         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5139         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5140         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5141
5142 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5143
5144         PR target/48366
5145         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5146         move from floating point to shift amount register.
5147         (emit_move_sequence): Remove secondary reload support for floating
5148         point to shift amount amount register copies.
5149         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5150         amount register copies.
5151         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5152         register, return false if mode isn't a scalar integer mode.
5153         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5154
5155 2011-04-08  Richard Guenther  <rguenther@suse.de>
5156
5157         * gimple.c (gimple_call_flags): Remove kludge.
5158
5159 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5160
5161         * sel-sched.c (sel_region_init): Move call to
5162         sel_setup_region_sched_flags after setup_current_loop_nest.
5163
5164 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5165
5166         PR rtl-optimization/48272
5167         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5168         init_insn_reg_pressure_info.  Adjust a caller.
5169         * sched-int.h (init_insn_reg_pressure_info): Declare.
5170         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5171         when sched-pressure is enabled.
5172
5173 2011-04-08  Richard Guenther  <rguenther@suse.de>
5174
5175         * gimple.c (gimple_set_modified): Do not queue calls to
5176         MODIFIED_NORETURN_CALLS here ...
5177         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5178
5179 2011-04-08  Richard Guenther  <rguenther@suse.de>
5180
5181         PR lto/48467
5182         * toplev.c (lang_dependent_init): Do not open asm_out_file
5183         in WPA mode, nor perform debug machinery initialization.
5184         (finalize): Do not unlink asm_out_file in WPA mode.
5185
5186 2011-04-08  Richard Guenther  <rguenther@suse.de>
5187
5188         * gimple.h (gimple_call_fntype): New function.
5189         (gimple_call_return_type): Use it.
5190         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5191         * gimple-low.c (gimple_check_call_args): Likewise.
5192         * gimple.c (gimple_call_flags): Likewise.
5193         (gimple_call_arg_flags): Likewise.
5194         (gimple_call_return_flags): Likewise.
5195         * tree-cfg.c (verify_gimple_call): Likewise.
5196         (do_warn_unused_result): Likewise.
5197         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5198         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5199
5200 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5201
5202         PR rtl-optimization/48235
5203         * sel-sched.c (code_motion_process_successors): Recompute the last
5204         insn in basic block if control flow changed.
5205         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5206         Update condition for ilist_remove.
5207
5208 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5209
5210         PR rtl-optimization/48302
5211         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5212         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5213         it to record added preheader blocks.
5214         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5215         on to sel_add_loop_preheaders.
5216         (sel_region_init): Move call to setup_current_loop_nest after
5217         sel_init_bbs.
5218
5219 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5220
5221         PR target/48273
5222         * cfgloop.h (loop_has_exit_edges): New helper.
5223         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5224         non-clonable.
5225         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5226         that have no exit edges.
5227
5228 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5229
5230         PR rtl-optimization/48442
5231         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5232         all callers.  Adjust assert.
5233
5234 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5235
5236         PR tree-optimization/48377
5237         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5238         is_packed to true even for types with smaller TYPE_ALIGN than
5239         TYPE_SIZE.
5240
5241 2011-04-08  Richard Guenther  <rguenther@suse.de>
5242
5243         PR bootstrap/48513
5244         * doc/tm.texi: Re-generate.
5245
5246 2011-04-08  Wei Guozhi  <carrot@google.com>
5247
5248         PR target/47855
5249         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5250         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5251         * config/arm/arm.md (*push_multi): Change the length computation to
5252         call a C function.
5253
5254 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5255
5256         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5257         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5258         * doc/tm.texi: Regenerate.
5259         * system.h (ASM_OUTPUT_BSS): Poison.
5260         * varasm.c (asm_output_bss): Remove function.
5261         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5262
5263         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5264         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5265         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5266         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5267         Likewise.
5268         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5269         Likewise.
5270         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5271         Likewise.
5272         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5273
5274 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5275
5276         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5277         EnumValue lines.
5278
5279 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5280
5281         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5282         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5283         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5284         OPT_mcpu32.
5285         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5286         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5287         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5288         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5289         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5290         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5291         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5292         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5293         options.  Don't map other m68k options manually.  Don't handle
5294         old-style options as canonical.
5295         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5296         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5297
5298 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5299
5300         * basic-block.h (force_nonfallthru): Move to...
5301         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5302         (force_nonfallthru): ...here.
5303         * cfghooks.c (force_nonfallthru): New function.
5304         * cfgrtl.c (force_nonfallthru): Rename into...
5305         (rtl_force_nonfallthru): ...this.
5306         (commit_one_edge_insertion): Do not set AUX field.
5307         (commit_edge_insertions): Do not discover new basic blocks.
5308         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5309         (cfg_layout_rtl_cfg_hooks): Likewise.
5310         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5311         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5312         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5313
5314 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5315
5316         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5317         Remove macros.
5318
5319 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5320
5321         * config/i386/sse.md: Update copyright year.
5322         (avxcvtvecmode): Remove.
5323         (sse_movhlps): Merge with *avx_movhlps.
5324         (sse_movlhps): Merge with *avx_movlhps.
5325         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5326         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5327         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5328         (sse_loadhps): Merge with *avx_loadhps.
5329         (sse_storelps): Merge with *avx_storelps.
5330         (sse_loadlps): Merge with *avx_loadlps.
5331         (sse_movss): Merge with *avx_movss.
5332         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5333         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5334         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5335         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5336         (vec_set<mode>_0): Ditto.
5337         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5338         (sse4_1_insertps): Merge with *avx_insertps.
5339         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5340         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5341         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5342         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5343         (sse2_storehpd): Merge with *avx_storehpd.
5344         (sse2_loadhpd): Merge with *avx_loadhpd.
5345         (sse2_loadlpd): Merge with *avx_loadlpd.
5346         (sse2_movsd): Merge with *avx_movsd.
5347         (*vec_concatv2df): Merge with *vec_concatv2df.
5348
5349 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5350
5351         PR debug/48343
5352         * combine.c (combine_instructions): Add last_combined_insn,
5353         update it if insn is after it, pass it to all try_combine calls.
5354         (try_combine): Add last_combined_insn parameter, pass it instead of
5355         i3 to propagate_for_debug.
5356
5357 2011-04-07  Nick Clifton  <nickc@redhat.com>
5358
5359         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5360         to handle MDR <-> data register transfers.
5361         (movhi_internal): Likewise.
5362
5363 2011-04-07  Alan Modra  <amodra@gmail.com>
5364
5365         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5366         previous stack info.
5367
5368 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5369
5370         PR target/43920
5371         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5372         flow_find_cross_jump.  Swap variables to implement backward replacement.
5373         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5374
5375 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5376
5377         PR target/43920
5378         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5379         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5380         and bb2.
5381         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5382         src1 or src2.  Redirect edges to the last basic block.  Update
5383         frequency and count on multiple basic blocks in case of fallthru.
5384
5385 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5386
5387         PR target/43920
5388         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5389         function.
5390         (old_insns_match_p): Change return type.  Replace return false/true
5391         with return dir_none/dir_both.  Use can_replace_by.
5392         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5393         direction from dir_p.  Register replacement direction in dir, last_dir
5394         and afterlast_dir.  Handle new return type of old_insns_match_p using
5395         merge_dir.  Return replacement direction in dir_p.
5396         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5397         return type of old_insns_match_p.
5398         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5399         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5400         flow_find_cross_jump.
5401         * basic-block.h (enum replace_direction): New type.
5402         (flow_find_cross_jump): Add parameter to declaration.
5403
5404 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5405
5406         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5407         (AVXMODEDCVTPS2DQ): Ditto.
5408         (VEC_FLOAT_MODE): Ditto.
5409         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5410         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5411         (<any_logic:code><mode>3): Use VF mode iterator.
5412         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5413         Use VF mode iterator.
5414         (copysign<mode>3): Use VF mode iterator.
5415         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5416         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5417         (*<any_logic:code><MODEF:mode>3): Merge with
5418         *avx_<any_logic:code><MODEF:mode>3.
5419         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5420         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5421         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5422         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5423         (sse2_cvtdq2ps): Use %v modifier.
5424         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5425         (avx_cvtps2dq<avxmodesuffix>): Remove.
5426         (sse2_cvtps2dq): Use %v modifier.
5427         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5428         (avx_cvttps2dq<avxmodesuffix>): Remove.
5429         (sse2_cvttps2dq): Use %v modifier.
5430         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5431         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5432         (sse2_cvtsd2siq): Fix insn template.
5433         (sse2_cvtsd2siq_2): Ditto.
5434         (sse2_cvttsd2siq): Ditto.
5435         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5436         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5437
5438 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5439
5440         * gcov-io.c: Use GCC Runtime Library Exception.
5441
5442 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5443
5444         PR debug/48466
5445         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5446         as base_reg whatever register reg has been eliminated to, instead
5447         of hardcoding STACK_POINTER_REGNUM.
5448
5449 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5450
5451         * doc/tm.texi.in: Document C target hooks as separate from general
5452         target hooks.
5453         * doc/tm.texi: Regenerate.
5454         * genhooks.c (struct hook_desc): Add docname field.
5455         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5456         docname field.
5457         (hook_array): Include c-target.def.
5458         (emit_documentation): Use docname field in output.
5459         (emit_init_macros): Take docname argument.  Only emit definitions
5460         for hooks matching docname.
5461         (main): Expect additional arguments in all cases.  Pass argument
5462         to emit_init_macros.
5463         * target.def: Move initial macro definitions and comments to
5464         target-hooks-macros.h.
5465         (gcc_targetcm): Move to c-family/c-target.def.
5466         * target.h (targetcm): Move declaration to c-family/c-target.h.
5467         * targhooks.c (default_handle_c_option): Move to
5468         c-family/c-opts.c.
5469         * targhooks.h (default_handle_c_option): Move declaration to
5470         c-family/c-common.h.
5471         * target-hooks-macros.h: New file.
5472         * config.gcc (target_has_targetcm): Define and use to add to
5473         c_target_objs and cxx_target_objs.
5474         * config/default-c.c: New file.
5475         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5476         of target.h and target-def.h.
5477         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5478         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5479         darwin_check_cfstring_format_arg): Make static.
5480         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5481         TARGET_STRING_OBJECT_REF_TYPE_P,
5482         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5483         * config/darwin-protos.h (darwin_objc_construct_string,
5484         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5485         declare.
5486         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5487         TARGET_STRING_OBJECT_REF_TYPE_P,
5488         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5489         * config/t-darwin (darwin-c.o): Update dependencies.
5490         * system.h (TARGET_HAS_TARGETCM): Poison.
5491         * Makefile.in (TARGET_H): Update.
5492         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5493         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5494         (default-c.o): New target.
5495         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5496         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5497         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5498         c-target.def.
5499         (build/genhooks.o): Update dependencies.
5500
5501 2011-04-06  Richard Guenther  <rguenther@suse.de>
5502
5503         * ipa-inline.c (enum inlining_mode): Remove.
5504         (cgraph_flatten): Use some other token.
5505         (cgraph_edge_early_inlinable_p): New function, split out from ...
5506         (cgraph_perform_always_inlining): New function, split out from ...
5507         (cgraph_decide_inlining_incrementally): ... here.
5508         (cgraph_mark_inline_edge): Adjust.
5509         (cgraph_early_inlining): Re-structure.
5510         (pass_early_inline): Require SSA form.
5511
5512 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5513             Julian Brown  <julian@codesourcery.com>
5514             Mark Shinwell  <shinwell@codesourcery.com>
5515
5516         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5517         LO_REGS only for Thumb-1.
5518         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5519         be used in short instructions when optimising for size on Thumb-2.
5520
5521 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5522
5523         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5524         associated with user returns to be preserved.
5525
5526 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5527
5528         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5529         symbol_queue_size, DBXOUT_DECR_NESTING,
5530         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5531         if XCOFF_DEBUGGING_INFO.
5532
5533 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5534
5535         * config/i386/i386.md (attribute isa): New.
5536         (attribute enabled): New.
5537         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5538         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5539         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5540         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5541         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5542         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5543         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5544         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5545
5546         * config/i386/sse.md (VF): New mode iterator.
5547         (VF1): Ditto.
5548         (VF2): Ditto.
5549         (VF_128): Ditto.
5550         (SSEMODEF4): Remove.
5551         (attribute sse): Handle V8SF and V4DF modes.
5552         (<absneg:code><mode>2): Use VF mode iterator.
5553         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5554         mode iterator.
5555         (<plusminus_insn><mode>3): Use VF mode iterator.
5556         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5557         Use VF mode iterator.
5558         (<sse>_vm<plusminus_insn><mode>3): Merge with
5559         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5560         (mul<mode>3): Use VF mode iterator.
5561         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5562         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5563         mode iterator.
5564         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5565         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5566         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5567         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5568         mode iterator.
5569         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5570         Use VF1 mode iterator.
5571         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5572         (sqrt<VF2:mode>2): New expander.
5573         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5574         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5575         and sqrtv2df2.  Use VF mode iterator.
5576         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5577         mode iterator.
5578         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5579         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5580         Use VF1 mode iterator.
5581         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5582         (<smaxmin:code><mode>3): Use VF mode iterator.
5583         (*<smaxmin:code><mode>3_finite): Merge with
5584         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5585         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5586         (<sse>_vm<smaxmin:code><mode>2): Merge with
5587         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5588         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5589         mode iterator.
5590         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5591         mode iterator.
5592         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5593         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5594         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5595         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5596         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5597         VF mode iterator.
5598         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5599         Use VF_128 mode iterator.
5600         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5601         mode iterator.
5602         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5603         VF_128 mode iterator.
5604         (vcond<mode>): Use VF mode iterator.
5605         * config/i386/predicates.md (sse_comparison_operator): Merge with
5606         avx_comparison_float_operator.  Do not declare as special_predicate.
5607         * config/i386/i386.c (struct builtin_description): Update for renamed
5608         compare patterns.
5609         (ix86_expand_args_builtin): Ditto.
5610         (ix86_expand_sse_compare_mask): Ditto.
5611
5612 2011-04-06  Richard Guenther  <rguenther@suse.de>
5613
5614         * tree-inline.c (estimate_num_insns): For calls simply account
5615         for all passed arguments and a used return value.
5616
5617 2011-04-06  Richard Guenther  <rguenther@suse.de>
5618
5619         PR tree-optimization/47663
5620         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5621         call_stmt_time fields.
5622         (cgraph_edge_inlinable_p): Declare.
5623         (cgraph_edge_recursive_p): New inline function.
5624         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5625         (cgraph_clone_edge): Copy it.
5626         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5627         Account for call stmt time.
5628         (cgraph_estimate_time_after_inlining): Take edge argument.
5629         (cgraph_estimate_edge_growth): Account call stmt size.
5630         (cgraph_estimate_size_after_inlining): Take edge argument.
5631         (cgraph_mark_inline_edge): Adjust.
5632         (cgraph_check_inline_limits): Likewise.
5633         (cgraph_recursive_inlining_p): Remove.
5634         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5635         (cgraph_decide_recursive_inlining): Take edge argument and
5636         adjust.
5637         (cgraph_decide_inlining_of_small_functions): Do not avoid
5638         diags for recursive inlining here.
5639         (cgraph_flatten): Adjust.
5640         (cgraph_decide_inlining_incrementally): Likewise.
5641         (estimate_function_body_sizes): Remove call cost handling.
5642         (compute_inline_parameters): Initialize caller edge call costs.
5643         (cgraph_estimate_edge_growth): New function.
5644         (cgraph_estimate_growth): Use it.
5645         (cgraph_edge_badness): Likewise.
5646         (cgraph_check_inline_limits): Take an edge argument.
5647         (cgraph_decide_inlining_of_small_functions): Adjust.
5648         (cgraph_decide_inlining): Likewise.
5649         * tree-inline.c (estimate_num_insns): Only account for call
5650         return value if it is used.
5651         (expand_call_inline): Avoid diagnostics on recursive inline
5652         functions here.
5653         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5654         (input_edge): Input edge call costs.
5655
5656 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5657
5658         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5659
5660 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5661
5662         * doc/invoke.texi (Spec Files): Fix typo.
5663
5664 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5665
5666         * profile.c (branch_prob): Move declaration of local variable.  Remove
5667         obsolete ??? comment.  Expand the location explicitly instead of using
5668         the LOCATION_FILE and LOCATION_LINE macros.
5669
5670 2011-04-06  Wei Guozhi  <carrot@google.com>
5671
5672         PR target/47855
5673         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5674         (arm_cond_branch): Likewise.
5675         (arm_cond_branch_reversed): Likewise.
5676         (arm_jump): Likewise.
5677         (push_multi): Likewise.
5678         * config/arm/constraints.md (Py): New constraint.
5679
5680 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5681
5682         PR bootstrap/48471
5683         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5684         Move these...
5685         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5686         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5687         #ifdef DBX_DEBUGGING_INFO.
5688
5689 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5690
5691         PR bootstrap/48403
5692         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5693         if old and new states differ.
5694
5695 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5696
5697         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5698         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5699         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5700         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5701         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5702         mcfv4e): Use Alias.
5703         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5704         ColdFire options to -mcpu= options.
5705
5706 2011-04-05  Jeff Law  <law@redhat.com>
5707
5708         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5709         check if BB is a successor of LOOP->header and return
5710         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5711
5712 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5713
5714         * cprop.c (struct reg_use): Remove.
5715         (reg_use_table): Make an array of RTX.
5716         (find_used_regs, constprop_register, local_cprop_pass,
5717         bypass_block): Simplify users of reg_use_table.
5718         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5719         on one of the uses found by find_used_regs.
5720
5721 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5722
5723         PR bootstrap/48469
5724         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5725         declaration.
5726
5727 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5728
5729         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5730         as an rtx.
5731         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5732
5733 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5734
5735         PR middle-end/48441
5736         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5737
5738 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5739
5740         * combine.c: Include obstack.h.
5741         (struct insn_link): Define.
5742         (uid_log_links): Adjust type.
5743         (FOR_EACH_LOG_LINK): New macro.
5744         (insn_link_obstack): Declare.
5745         (alloc_insn_link): Define.
5746         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5747         type of link variables.
5748         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5749         (try_combine, record_promoted_values, distribute_notes): Likewise.
5750         (distribute_links): Likewise.  Tweak prototype.
5751         (clear_log_links): Delete.
5752         (adjust_for_new_dest): Call alloc_insn_link.
5753         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5754
5755 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5756
5757         * gcse.c (modify_mem_list): Convert to an array of VECs.
5758         (canon_modify_mem_list, compute_transp): Tweak formatting.
5759         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5760         (load_killed_in_block_p): Likewise.
5761         (record_last_mem_set_info): Likewise.
5762         (clear_modify_mem_tables): Likewise.
5763
5764 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5765
5766         PR middle-end/48461
5767         * function.c (emit_use_return_register_into_block): Only define if
5768         HAVE_return.
5769
5770 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5771
5772         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5773
5774 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5775
5776         * config/rx/rx-opts.h: New.
5777         * config/rx/rx.c (rx_cpu_type): Remove.
5778         (rx_handle_option): Don't assert that global structures are in
5779         use.  Access variables via opts pointer.  Defer most handling of
5780         OPT_mint_register_.  Use error_at.
5781         (rx_option_override): Handle deferred OPT_mint_register_ here.
5782         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5783         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5784         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5785         (rx_cpu_types): New Enum and EnumValue entries.
5786         (mint-register=): Use Defer and use Var accordingly.
5787
5788 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5789
5790         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5791         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5792         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5793         Move these...
5794         (debug_free_queue, debug_nesting, symbol_queue_index):
5795         ...and these...
5796         * dbxout.c: ...to here.  Make static.
5797
5798 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5799
5800         * gcse.c (modify_pair): Define.  Define a VEC of it.
5801         (canon_modify_mem_list): Convert to an array of VECs.
5802         (free_insn_expr_list_list): Delete.
5803         (clear_modify_mem_tables): Call VEC_free instead.
5804         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5805         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5806         (canon_list_insert, compute_transp): Likewise.
5807
5808 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5809
5810         PR target/43920
5811         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5812         for size.
5813
5814 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5815
5816         PR target/43920
5817         * function.c (emit_use_return_register_into_block): New function.
5818         (thread_prologue_and_epilogue_insns): Use
5819         emit_use_return_register_into_block.
5820
5821 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5822
5823         PR target/43920
5824         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5825         insn.
5826
5827 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5828
5829         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5830
5831 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5832
5833         * config/arm/arm.md (define_constants for unspec): Replace with
5834         define_c_enum.
5835         (define_constants for unspecv): Replace with define_c_enum.
5836         * config/arm/neon.md (define_constants for unspec): Replace with
5837         define_c_enum.
5838
5839 2011-04-04  Richard Henderson  <rth@redhat.com>
5840
5841         PR bootstrap/48400
5842         * dwarf2out.c (output_line_info): Always emit line info from
5843         at least one section.
5844         (dwarf2out_init): Create text_section_line_info here ...
5845         (set_cur_line_info_table): ... not here.
5846
5847 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5848
5849         PR target/48380
5850         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5851         not called.
5852
5853         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5854
5855 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5856
5857         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5858         (expr_equiv_p): Remove.
5859         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5860         (hash_scan_set): Update call to insert_set_in_table.
5861         (dump_hash_table): Dump <dest, src> pair.
5862         (lookup_set): Simplify.  Lookup <dest, src> pair.
5863         (compute_transp): Remove, fold heavily simplified code into...
5864         (compute_local_properties): ...here.  Expect COMP and TRANSP
5865         unconditionally.
5866         (find_avail_set): Take set directly from struct expr.
5867         (find_bypass-set): Likewise.
5868         (bypass_block): Likewise.
5869         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5870
5871         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5872         checks on form of COND from find_implicit_sets to here.
5873         (find_implicit_sets): Cleanup control flow. Split critical edges
5874         if it exposes implicit sets.  Allocate/resize implicit_sets as
5875         necessary.
5876         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5877         changed something.  Run df_analyze after find_implicit_sets if any
5878         edges were split.  Do not allocate implicit_sets here.
5879
5880         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5881         (gcse_obstack): Renamed to cprop_obstack.
5882         (GNEW, GNEWVEC, GNEWVAR): Remove.
5883         (gmalloc): Remove.
5884         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5885         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5886         (gcse_alloc): Likewise, and rename to cprop_alloc.
5887         (alloc_gcse_men, free_gcse_mem): Remove.
5888         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5889         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5890         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5891
5892         * cprop.c (oprs_not_set_p): Remove.
5893         (mark_set, mark_clobber): Remove.
5894         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5895         (reg_not_set_p): New function.
5896         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5897         (cprop_insn): Likewise.
5898         (cprop_jump): Use FOR_EACH_EDGE.
5899
5900 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5901
5902         PR bootstrap/48403
5903         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5904         (rank_for_schedule): Use scheduled_insns vector instead of
5905         last_scheduled_insn.
5906         (ok_for_early_queue_removal): Likewise.
5907         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5908         we have a dbg_cnt.
5909         (choose_ready): Likewise.
5910         (commit_schedule): Use VEC_iterate.
5911         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5912         a dbg_cnt, use it and ensure the first insn is in the ready list.
5913         (haifa_sched_init): Allocate scheduled_insns.
5914         (sched_extend_ready_list): Don't allocate it; reserve space.
5915         (haifa_sched_finish): Free it.
5916
5917 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5918
5919         * optc-gen.awk: Always remove type from Variable entry before
5920         recording in var_seen.
5921
5922 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5923
5924         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5925         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5926         call to tidy_fallthru_edges.
5927
5928 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5929
5930         * doc/options.texi (ToLower): Document.
5931         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5932         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5933         * opts.h (cl_option): Add cl_tolower field.
5934         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5935         arguments with lowercase strings.
5936         * config/rx/rx.opt (mcpu=): Add ToLower.
5937         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5938         argument.
5939
5940 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5941
5942         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5943
5944 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5945
5946         * config/vax/vax.c: Include reload.h.
5947
5948 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5949
5950         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5951         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5952         (sparc_preferred_reload_class): New function.
5953
5954 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5955
5956         PR debug/48401
5957         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5958         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5959
5960 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5961
5962         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5963         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5964
5965 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5966
5967         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5968         (ASM_OUTPUT_ALIGNED_BSS): Define.
5969
5970 2011-04-03  Michael Matz  <matz@suse.de>
5971
5972         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5973         and next_slot members.
5974         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5975         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5976         (lto_streamer_cache_append): Declare.
5977         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5978         unsigned index, remove offset parameter, ensure that we append
5979         or update existing entries.
5980         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5981         parameter, update next_slot for append.
5982         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5983         parameter.
5984         (lto_streamer_cache_insert_at): Likewise.
5985         (lto_streamer_cache_append): New function.
5986         (lto_streamer_cache_lookup): Use unsigned index.
5987         (lto_streamer_cache_get): Likewise.
5988         (lto_record_common_node): Don't test tree_node_can_be_shared.
5989         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5990         (lto_streamer_cache_delete): Don't free offsets member.
5991         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5992         (lto_output_string_with_length): Use lto_output_data_stream.
5993         (lto_output_tree_header): Remove ix parameter, don't write it.
5994         (lto_output_builtin_tree): Likewise.
5995         (lto_write_tree): Adjust callers to above, don't track and write
5996         offset, write unsigned index.
5997         (output_unreferenced_globals): Don't emit all global vars.
5998         (write_global_references): Use unsigned indices.
5999         (lto_output_decl_state_refs): Likewise.
6000         (write_symbol): Likewise.
6001         * lto-streamer-in.c (lto_input_chain): Move earlier.
6002         (input_function): Use unsigned index.
6003         (input_alias_pairs): Don't read and then ignore all global vars.
6004         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6005         don't pass it back, use lto_streamer_cache_append.
6006         (lto_register_var_decl_in_symtab): Use unsigned index.
6007         (lto_register_function_decl_in_symtab): Likewise.
6008         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6009         index.
6010         (lto_get_builtin_tree): Don't read index, use
6011         lto_streamer_cache_append.
6012         (lto_read_tree): Adjust call to lto_materialize_tree.
6013
6014         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6015         don't use function calls in arguments to MIN.
6016
6017         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6018         twice.
6019
6020         * gimple.c (gimple_type_leader_entry): Mark deletable.
6021
6022 2011-04-03  Alan Modra  <amodra@gmail.com>
6023
6024         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6025
6026 2011-04-03  Michael Matz  <matz@suse.de>
6027
6028         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6029         an integer.
6030         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6031
6032 2011-04-03  Michael Matz  <matz@suse.de>
6033
6034         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6035         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6036         without function context.
6037         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6038         current_function_decl and cfun.
6039
6040 2011-04-03  Michael Matz  <matz@suse.de>
6041
6042         * tree.c (decl_init_priority_insert): Don't create entry for
6043         default priority.
6044         (decl_fini_priority_insert): Ditto.
6045         (fields_compatible_p, find_compatible_field): Remove.
6046         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6047         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6048
6049 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6050
6051         * combine.c (try_combine): Remove useless local variable.
6052
6053 2011-04-03  Richard Guenther  <rguenther@suse.de>
6054             Ira Rosen  <ira.rosen@linaro.org>
6055
6056         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6057         non-variable offsets and compare the remaining bases of the two
6058         accesses instead of looking for exact same data-ref.
6059
6060 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6061
6062         PR target/48416
6063         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6064
6065         * i386.c (ix86_is_msabi_thiscall): New helper function.
6066         (ix86_is_type_thiscall): New helper function.
6067         (ix86_comp_type_attributes): Handle thiscall for method-functions
6068         special.
6069         (init_cumulative_args): Likewise.
6070         (find_drap_reg): Likewise.
6071         (ix86_static_chain): Likewise.
6072         (x86_this_parameter): Likewise.
6073         (x86_output_mi_thunk): Likewise.
6074
6075 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6076             Nicolas Setton  <setton@adacore.com>
6077             Eric Botcazou  <ebotcazou@adacore.com>
6078
6079         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6080         (add_gnat_descriptive_type_attribute): New function.
6081         (gen_array_type_die): Call it.
6082         (gen_enumeration_type_die): Likewise.
6083         (gen_struct_or_union_type_die): Likewise.
6084         (modified_type_die): Likewise.
6085         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6086         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6087         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6088
6089 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6090
6091         PR bootstrap/48148
6092         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6093         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6094
6095         Revert:
6096         2011-03-17  Richard Guenther  <rguenther@suse.de>
6097
6098         PR bootstrap/48148
6099         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6100         origin for decls in other ltrans units.
6101         (input_varpool_node): Likewise.
6102
6103 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6104
6105         PR middle-end/48335
6106         * expr.c (expand_assignment): Handle all possibilities
6107         if TO_RTX is CONCAT.
6108         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6109         (store_split_bit_field): If SUBREG_REG (op0) or
6110         op0 itself has smaller mode than word, return it
6111         for offset 0 and const0_rtx for out-of-bounds stores.
6112         If word is const0_rtx, skip it.
6113
6114 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6115
6116         * config/h8300/h8300.c (print_operand_address): Rename to...
6117         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6118         Call h8300_print_operand and h8300_print_operand_address instead of
6119         print_operand and print_operand_address. Declare.
6120         (print_operand): Renake to...
6121         (h8300_print_operand): ...this. Make static. Adjust comments.
6122         Call h8300_print_operand instead of print_operand. Declare.
6123         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6124         (h8300_register_move_cost): Likewise.
6125         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6126         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6127         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6128         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6129         * config/h8300/h8300-protos.h (print_operand): Delete.
6130         (print_operand_address): Delete.
6131
6132 2011-04-01  Richard Henderson  <rth@redhat.com>
6133
6134         PR 48400
6135         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6136         in strict mode before dwarf4.  Re-order tests to early out
6137         before switching sections.
6138
6139 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6140
6141         * config/h8300/constraints.md: New file.
6142         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6143         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6144         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6145         * config/h8300/predicates.md (bit_operand): Likewise.
6146         (incdec_operand): Use satisfies_constraint_M and
6147         satisfies_constraint_O.  Don't use C code block.
6148         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6149         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6150         (compute_mov_length): Use satisfies_constraint_G.
6151         (fix_bit_operand): Use satisfies_constraint_U.
6152         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6153         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6154         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6155         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6156         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6157         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6158         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6159         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6160         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6161         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6162         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6163         (EXTRA_MEMORY_CONSTRAINT): Delete.
6164
6165 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6166             Michael Meissner  <meissner@linux.vnet.ibm.com>
6167
6168         PR target/48262
6169         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6170         operands, as per the specifications.
6171
6172         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6173         (vec_extract_evenv4sf): Ditto.
6174         (vec_extract_evenv8hi): Ditto.
6175         (vec_extract_evenv16qi): Ditto.
6176         (vec_extract_oddv4si): Ditto.
6177
6178 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6179
6180         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6181         high_pc attribute if the CU has no associated code. Only output
6182         DW_AT_entry_pc for CU if not generating strict dwarf and
6183         dwarf_version < 4.
6184
6185 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6186
6187         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6188         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6189         out of ...
6190         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6191         * final.c (final_start_function): Call the new function rather
6192         than using a NULL argument for dwarf2out_frame_debug.
6193
6194         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6195         that contains the prologue.
6196
6197         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6198         changed.  Print it in debugging output.
6199
6200         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6201
6202         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6203         Split most of the code into...
6204         (begin_move_insn): ... here.  New function.
6205         (ebb_sched_info): Add a pointer to it.
6206         * haifa-sched.c (scheduled_insns): New static variable.
6207         (sched_extend_ready_list): Allocate it.
6208         (schedule_block): Use it to record the order of scheduled insns.
6209         Perform RTL changes to move insns only after all scheduling
6210         decisions have been made.
6211         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6212         begin_move_insn field.
6213         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6214         * sched-int.h (struct haifa_sched_info): Remove second argument
6215         from begin_schedule_ready hook.  Add new member begin_move_insn.
6216         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6217         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6218
6219         * haifa-sched.c (prune_ready_list): New function, broken out of
6220         schedule_block.
6221         (schedule_block): Use it.
6222
6223 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6224
6225         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6226
6227 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6228
6229         * config.gcc (*-*-mingw*): Allow as option the
6230         posix threading model.
6231         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6232         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6233         definition.
6234         (CPP_SPEC): Add pthread/no-pthread handling.
6235         (LIB_SPEC): Likewise.
6236         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6237         (LIB_SPEC): Likewise.
6238         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6239         flag to pass -pthread option for shared libgcc build.
6240         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6241         for shared libgcc build.
6242         * config/i386/t-mingw-pthread: New file.
6243         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6244         New define to enable use of library pthread by default.
6245         * config/i386/mingw.opt (pthread): New driver option.
6246         (no-pthread): New driver option.
6247         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6248         * config/i386/mingw-w64.opt: Likewise.
6249
6250 2011-04-01  Gary Funck  <gary@intrepid.com>
6251
6252         * c-decl.c (grokdeclarator): Fix formatting.
6253
6254 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6255
6256         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6257         instead of n_operands.
6258         (set_storage_via_setmem): Likewise.
6259         * optabs.c (maybe_gen_insn): Likewise.
6260         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6261         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6262         (mips_expand_builtin_direct): Likewise.
6263         * config/spu/spu.c (expand_builtin_args): Likewise.
6264
6265 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6266
6267         * recog.h (insn_data_d): Add n_generator_args.
6268         * genoutput.c (data): Likewise.
6269         (output_insn_data): Print it.
6270         (max_opno, num_dups): Delete.
6271         (scan_operands): Just fill in "d->operand[...]".
6272         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6273
6274 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6275
6276         * gensupport.h (pattern_stats): New structure.
6277         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6278         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6279         (max_operand_1, max_operand_vec): Delete.
6280         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6281
6282 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6283
6284         * emit-rtl.c (emit_pattern_after_setloc): New function.
6285         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6286         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6287         (emit_pattern_after): New function.
6288         (emit_insn_after, emit_jump_insn_after): Call it.
6289         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6290         (emit_pattern_before_setloc): New function.
6291         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6292         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6293         Likewise.
6294         (emit_pattern_before): New function.
6295         (emit_insn_before, emit_jump_insn_before): Call it.
6296         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6297
6298 2011-03-31  Richard Henderson  <rth@redhat.com>
6299
6300         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6301         (dw_separate_line_info_entry): Remove.
6302         (enum dw_line_info_opcode): New.
6303         (dw_line_info_entry): Use it.
6304         (dw_line_info_table, dw_line_info_table_p): New.
6305         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6306         (line_info_table, line_info_label_num): Remove.
6307         (line_info_table_in_use): Remove.
6308         (separate_line_info_table): Remove.
6309         (separate_line_info_table_allocated): Remove.
6310         (separate_line_info_table_in_use): Remove.
6311         (LINE_INFO_TABLE_INCREMENT): Remove.
6312         (line_info_label_num): New.
6313         (cur_line_info_table): New.
6314         (text_section_line_info, cold_text_section_line_info): New.
6315         (separate_line_info): New.
6316         (SEPARATE_LINE_CODE_LABEL): Remove.
6317         (print_dwarf_line_table): Remove.
6318         (debug_dwarf): Don't dump it.
6319         (output_one_line_info_table): New.
6320         (output_line_info): Use it.
6321         (new_line_info_table): New.
6322         (set_cur_line_info_table): New.
6323         (dwarf2out_switch_text_section): Use it.
6324         (dwarf2out_begin_function): Likewise.
6325         (push_dw_line_info_entry): New.
6326         (dwarf2out_source_line): Rewrite for new line info tables.
6327         (dwarf2out_init): Remove dead initailizations.
6328
6329 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6330
6331         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6332         various flags.
6333         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6334         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6335         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6336         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6337         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6338         * opt-functions.awk (flag_init, switch_bit_fields): New.
6339         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6340         generate CL_MISSING_OK or CL_SAVE.
6341         * optc-gen.awk: Update to generate bit-field output as well as
6342         flags field.
6343         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6344         bit-field instead of CL_REJECT_DRIVER flag.
6345         * opts-common.c (generate_canonical_option,
6346         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6347         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6348         instead of CL_REJECT_NEGATIVE flag.
6349         * toplev.c (print_switch_values): Use cl_report bit-field instead
6350         of CL_REPORT flag.
6351
6352 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6353
6354         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6355         a zero minimum index only if it is redundant.
6356
6357 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6358
6359         PR rtl-optimization/48381
6360         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6361         instead of ira_class_hard_reg_index for calculating conflicting
6362         hard registers.
6363
6364 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6365
6366         * cprop.c: Clean up hash table building.
6367         (reg_avail_info): Remove.
6368         (oprs_available_p): Remove.
6369         (record_last_reg_set_info): Remove.
6370         (record_last_set_info): Remove.
6371         (reg_available_p): New function.
6372         (gcse_constant_p): Do not treat unfolded conditions as constants.
6373         (make_set_regs_unavailable): New function.
6374         (hash_scan_set): Simplify with new reg_available_p.
6375         (compute_hash_table_work): Traverse insns stream only once.
6376         Do not compute reg_avail_info. Traverse insns in reverse order.
6377         Record implicit sets after recording explicit sets from the block.
6378
6379 2011-03-31  Michael Matz  <matz@suse.de>
6380
6381         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6382
6383 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6384
6385         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6386         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6387         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6388         (h8300_mode_dependent_address_p): New function.
6389         (h8300_get_index): Make static.
6390
6391 2011-03-31  Jeff Law  <law@redhat.com>
6392
6393         * reload1.c (elimination_effects): Fix typo in recent change.
6394
6395         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6396         typo potentially leading to null pointer dereference.
6397
6398         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6399         (setup_save_areas): Corresponding changes to avoid useless
6400         assignments.
6401
6402         * jump.c (reversed_comparison_code_parts): Avoid successive return
6403         statements when REVERSE_CONDITION is defined.
6404
6405         * expr.c (expand_assignment): Avoid useless assignments.
6406         (expand_expr_real_1): Likewise.
6407         (expand_expr_real_2): Avoid useless statements.
6408
6409         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6410
6411         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6412
6413         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6414         statements.
6415
6416         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6417
6418 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6419
6420         PR target/47109
6421         * doc/tm.texi.in (TARGET_VERSION): Remove.
6422         * doc/tm.texi: Regenerate.
6423         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6424         * collect2.c (main): Don't use TARGET_VERSION.
6425         * mips-tdump.c (main): Don't use TARGET_VERSION.
6426         * mips-tfile.c (main): Don't use TARGET_VERSION.
6427         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6428         * config/rs6000/vxworksae.h: Remove.
6429         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6430         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6431         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6432         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6433         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6434         * config/arm/arm.h (TARGET_VERSION): Remove.
6435         * config/arm/coff.h (TARGET_VERSION): Remove.
6436         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6437         * config/arm/elf.h (TARGET_VERSION): Remove.
6438         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6439         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6440         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6441         * config/arm/pe.h (TARGET_VERSION): Remove.
6442         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6443         * config/arm/semi.h (TARGET_VERSION): Remove.
6444         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6445         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6446         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6447         * config/avr/avr.h (TARGET_VERSION): Remove.
6448         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6449         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6450         * config/frv/frv.h (TARGET_VERSION): Remove.
6451         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6452         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6453         * config/i386/darwin.h (TARGET_VERSION): Remove.
6454         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6455         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6456         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6457         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6458         * config/i386/gnu.h (TARGET_VERSION): Remove.
6459         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6460         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6461         * config/i386/linux.h (TARGET_VERSION): Remove.
6462         * config/i386/linux64.h (TARGET_VERSION): Remove.
6463         * config/i386/lynx.h (TARGET_VERSION): Remove.
6464         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6465         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6466         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6467         * config/i386/netware.h (TARGET_VERSION): Remove.
6468         * config/i386/nto.h (TARGET_VERSION): Remove.
6469         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6470         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6471         * config/ia64/elf.h (TARGET_VERSION): Remove.
6472         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6473         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6474         * config/ia64/linux.h (TARGET_VERSION): Remove.
6475         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6476         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6477         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6478         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6479         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6480         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6481         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6482         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6483         * config/m68k/linux.h (TARGET_VERSION): Remove.
6484         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6485         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6486         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6487         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6488         * config/mep/mep.h (TARGET_VERSION): Remove.
6489         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6490         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6491         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6492         * config/mips/linux.h (TARGET_VERSION): Remove.
6493         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6494         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6495         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6496         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6497         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6498         * config/pa/pa.h (TARGET_VERSION): Remove.
6499         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6500         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6501         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6502         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6503         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6504         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6505         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6506         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6507         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6508         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6509         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6510         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6511         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6512         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6513         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6514         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6515         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6516         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6517         * config/s390/linux.h (TARGET_VERSION): Remove.
6518         * config/s390/s390.h (TARGET_VERSION): Remove.
6519         * config/s390/tpf.h (TARGET_VERSION): Remove.
6520         * config/score/score.h (TARGET_VERSION): Remove.
6521         * config/sh/linux.h (TARGET_VERSION): Remove.
6522         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6523         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6524         * config/sh/sh.h (TARGET_VERSION): Remove.
6525         * config/sh/sh64.h (TARGET_VERSION): Remove.
6526         * config/sh/superh.h (TARGET_VERSION): Remove.
6527         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6528         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6529         * config/sparc/linux.h (TARGET_VERSION): Remove.
6530         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6531         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6532         TARGET_NAME32, TARGET_NAME): Remove.
6533         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6534         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6535         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6536         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6537         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6538         * config/spu/spu.h (TARGET_VERSION): Remove.
6539         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6540         * config/v850/v850.h (TARGET_VERSION): Remove.
6541         * config/vax/linux.h (TARGET_VERSION): Remove.
6542         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6543         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6544         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6545
6546 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6547
6548         PR target/48142
6549         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6550         frame-related from frame-unrelated adjustments to the stack pointer.
6551
6552 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6553
6554         * common.opt (fdebug-types-section): Move earlier.
6555         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6556
6557 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6558
6559         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6560         var.
6561
6562 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6563
6564         * tree.h (CASE_CHAIN): Define.
6565         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6566         (gimple_redirect_edge_and_branch): Likewise.
6567
6568 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6569
6570         PR middle-end/48367
6571         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6572         calculation.
6573
6574 2011-03-30  Jeff Law  <law@redhat.com>
6575
6576         * PR bootstrap/48371
6577         * reload1.c (reload): Fix botch in last change.
6578
6579         * reload.h (struct reload): Fix typo introduced in last change.
6580
6581 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6582
6583         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6584         Undocumented.  Remove help text.
6585         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6586         -mhard-float.
6587
6588 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6589
6590         * doc/options.texi (NegativeAlias): Document.
6591         (Alias): Mention NegativeAlias.
6592         * opt-functions.awk: Handle NegativeAlias.
6593         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6594         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6595         * opts.h (CL_NEGATIVE_ALIAS): Define.
6596         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6597         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6598         OPT_mspe_.
6599         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6600         Alias entries.
6601         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6602         mno-spe and mno-isel instead of mspe=no and -misel=no.
6603
6604 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6605
6606         * common.opt (fdebug-types-section): New flag.
6607         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6608         * dwarf2out.c (use_debug_types): New define.
6609         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6610         (print_die): Guard output of type unit signatures using
6611         use_debug_types.
6612         (build_abbrev_table): Replace assert of dwarf_version >= 4
6613         with assert on use_debug_types.
6614         (size_of_die): Likewise.
6615         (unmark_dies): Likewise.
6616         (value_format): Decide AT_ref_external form on use_debug_types.
6617         (output_die): Replace dwarf_version version check guard with
6618         use_debug_types where appropriate.
6619         (modified_type_die): Likewise.
6620         (gen_reference_type_die): Likewise.
6621         (dwarf2out_start_source_file): Likewise.
6622         (dwarf2out_end_source_file): Likewise.
6623         (prune_unused_types_walk_attribs): Likewise.
6624         (dwarf2out_finish): Likewise.
6625
6626 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6627
6628         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6629
6630 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6631
6632         PR rtl-optimization/48332
6633         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6634         mode of input operand N and modeN to its actual mode.
6635
6636 2011-03-30  Jeff Law  <law@redhat.com>
6637
6638         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6639         define accessor macro.
6640         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6641         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6642         (reg_equiv_init): Likewise.
6643         (reg_equivs_size): New variable.
6644         (reg_equiv_init_size): Remove.
6645         (allocate_initial_values): Move prototype to here from....
6646         * integrate.h (allocate_initial_values): Remove prototype.
6647         * integrate.c: Include reload.h.
6648         (allocate_initial_values): Corresponding changes.
6649         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6650         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6651         (update_equiv_regs): Corresponding changes.
6652         (ira): Corresponding changes.
6653         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6654         (push_secondary_reload): Corresponding changes.
6655         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6656         (make_memloc, find_reloads_address): Corresponding changes.
6657         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6658         (find_reloads_address_1): Corresponding changes.
6659         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6660         (refers_to_regno_for_reload_p): Corresponding changes.
6661         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6662         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6663         * reload1.c: Include ggc.h.
6664         (grow_reg_equivs): New function.
6665         (replace_pseudos_in, reload): Corresponding changes.
6666         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6667         (eliminate_regs_1, elimination_effects): Corresponding changes.
6668         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6669         (delete_output_reload): Likewise.
6670         * caller-save.c (mark_referenced_regs): Corresponding changes.
6671         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6672         * frv/predicates.md (frv_load_operand): Corresponding changes.
6673         * microblaze/microblaze.c (double_memory_operand): Corresponding
6674         changes.
6675         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6676         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6677         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6678         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6679         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6680         changes.
6681         * pa/pa.c (emit_move_sequence): Corresponding changes.
6682         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6683
6684 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6685
6686         PR target/47551
6687         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6688         structure modes.  Don't check neon_vector_mem_operand for
6689         vector or structure modes.
6690
6691 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6692             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6693
6694         PR target/43590
6695         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6696         operand 1 and reshuffle the operands to match.
6697         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6698
6699 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6700
6701         PR driver/48208
6702         * config/c.opt (F): Added 'Driver' to -F option.
6703
6704         PR driver/48260
6705         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6706           handler function.
6707         * config/darwin.opt: Added '-arch' option.
6708
6709 2011-03-30  Nick Clifton  <nickc@redhat.com>
6710
6711         * config/rx/rx.md: Add peepholes and patterns to combine
6712         extending loads and simple arithmetic instructions.
6713         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6714         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6715         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6716         modes to use pre-decrement and post-increment addressing.
6717         (rx_is_restricted_memory_address): Add range checking of REG+INT
6718         addresses.
6719         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6720         (rx_memory_move_cost): Adjust cost of stores.
6721         (rx_adjust_insn_length): New function.
6722
6723 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6724
6725         PR c/48305
6726         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6727         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6728         matching arg00/arg01 types.
6729
6730 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6731
6732         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6733         last_location to UNKNOWN_LOCATION.
6734
6735 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6736
6737         PR target/48349
6738         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6739         FLOAT_SSE_REGS.
6740
6741 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6742             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6743
6744         PR bootstrap/48337
6745         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6746         Init(PROCESSOR_V7).
6747         (sparc_cpu): Likewise.
6748         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6749         PROCESSOR_V7.
6750
6751 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6752
6753         PR target/48336
6754         PR middle-end/48342
6755         PR rtl-optimization/48345
6756         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6757         hard regs for given mode from profitable regs when doing secondary
6758         allocation.
6759
6760 2011-03-29  Jeff Law  <law@redhat.com>
6761
6762         PR bootstrap/48327
6763         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6764         do_not_duplicate field.
6765         (lookup_redirection_data): Corresponding changes.
6766         (create_duplicates): Always create a template block.
6767         (redirect_edges): Remove code which reused the original block
6768         when it was going to become unreachable code.
6769         (thread_block): Don't set do_not_duplicate field.
6770
6771 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6772
6773         * lto-opts.c (register_user_option_p, lto_register_user_option):
6774         Make type argument unsigned.
6775         * lto-streamer.h (lto_register_user_option): Make type argument
6776         unsigned.
6777         * opth-gen.awk: Make CL_* macros unsigned.
6778         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6779         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6780         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6781         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6782         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6783         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6784         (find_opt): Make lang_mask argument unsigned.
6785
6786 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6787
6788         PR rtl-optimization/48331
6789         PR rtl-optimization/48334
6790         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6791         for any used algorithm.
6792
6793 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6794
6795         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6796         to parent_max.
6797
6798 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6799
6800         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6801         (alpha_option_override): Don't set alpha_sr_alias_set.
6802         (emit_frame_store_1): Use gen_frame_mem rather than calling
6803         set_mem_alias_set.
6804         (alpha_expand_epilogue): Ditto.
6805
6806 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6807
6808         PR tree-optimization/48290
6809         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6810         vectorization, check that relevant phis in the basic block after
6811         the inner loop are really inner loop's exit phis.
6812
6813 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6814
6815         PR debug/48190
6816         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6817         (cached_dw_loc_list_def): New structure.
6818         (cached_dw_loc_list): New typedef.
6819         (cached_dw_loc_list_table): New variable.
6820         (cached_dw_loc_list_table_hash): New function.
6821         (cached_dw_loc_list_table_eq): Likewise.
6822         (add_location_or_const_value_attribute): Take a bool cache_p.
6823         Cache the list when the parameter is true.
6824         (gen_formal_parameter_die): Update caller.
6825         (gen_variable_die): Likewise.
6826         (dwarf2out_finish): Likewise.
6827         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6828         while generating debug info for the decl.
6829         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6830         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6831         (resolve_addr): Cache the result of resolving a chain of
6832         location lists.
6833
6834 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6835
6836         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6837         conflict object hard regset nodes have intersecting hard reg sets.
6838
6839         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6840         after regstat_init_n_sets_and_refs.
6841
6842         * ira.c: Add more comments at the top.
6843         (setup_stack_reg_pressure_class, setup_pressure_classes):
6844         Add comments how we compute the register pressure classes.
6845         (setup_allocno_and_important_classes): Add more comments.
6846         (setup_class_translate_array, reorder_important_classes)
6847         (setup_reg_class_relations): Add comments.
6848
6849         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6850         start of the file.
6851
6852         * ira-color.c: Add 2011 to the Copyright line.
6853         (assign_hard_reg):  Add more comments.
6854         (improve_allocation): Ditto.
6855
6856         * ira-costs.c: Add 2011 to the Copyright line.
6857         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6858         comments.
6859         (setup_regno_cost_classes_by_mode): Ditto.
6860
6861         Initial patches from ira-improv branch:
6862
6863         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6864
6865         * ira-build.c (ira_create_object): Remove initialization of
6866         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6867         (ira_create_allocno): Remove initialization of
6868         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6869         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6870         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6871         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6872         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6873         Initialize ALLOCNO_ADD_DATA.
6874         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6875         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6876         ALLOCNO_REG.
6877         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6878         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6879
6880         * ira.c (ira_reallocate): Remove.
6881         (setup_pressure_classes): Call
6882         ira_init_register_move_cost_if_necessary.  Use
6883         ira_register_move_cost instead of ira_get_register_move_cost.
6884         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6885         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6886
6887         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6888         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6889         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6890         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6891         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6892         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6893         Fix formatting.
6894         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6895         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6896         (struct allocno_color_data): New.
6897         (allocno_color_data_t): New typedef.
6898         (allocno_color_data): New definition.
6899         (ALLOCNO_COLOR_DATA): New macro.
6900         (struct object_color_data): New.
6901         (object_color_data_t): New typedef.
6902         (object_color_data): New definition.
6903         (OBJECT_COLOR_DATA): New macro.
6904         (update_copy_costs, calculate_allocno_spill_cost): Call
6905         ira_init_register_move_cost_if_necessary.  Use
6906         ira_register_move_cost instead of ira_get_register_move_cost.
6907         (move_spill_restore, update_curr_costs): Ditto.
6908         (allocno_spill_priority): Make it inline.
6909         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6910         (struct coalesce_data, coalesce_data_t): New.
6911         (allocno_coalesce_data): New definition.
6912         (ALLOCNO_COALESCE_DATA): New macro.
6913         (merge_allocnos, coalesced_allocno_conflict_p): Use
6914         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6915         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6916         (coalesce_allocnos): Ditto.
6917         (setup_coalesced_allocno_costs_and_nums): Ditto.
6918         (collect_spilled_coalesced_allocnos): Ditto.
6919         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6920         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6921         (coalesce_spill_slots): Ditto.
6922         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6923         free allocno_coalesce_data.
6924
6925         * ira-conflicts.c: Fix formatting.
6926         (process_regs_for_copy): Call
6927         ira_init_register_move_cost_if_necessary.  Use
6928         ira_register_move_cost instead of ira_get_register_move_cost.
6929         (build_object_conflicts): Optimize.
6930
6931         * ira-costs.c (record_reg_classes): Optimize.  Call
6932         ira_init_register_move_cost_if_necessary.  Use
6933         ira_register_move_cost, ira_may_move_in_cost, and
6934         ira_may_move_out_cost instead of ira_get_register_move_cost and
6935         ira_get_may_move_cost.
6936         (record_address_regs): Ditto.
6937         (scan_one_insn): Optimize.
6938         (find_costs_and_classes): Optimize.
6939         (process_bb_node_for_hard_reg_moves): Call
6940         ira_init_register_move_cost_if_necessary.  Use
6941         ira_register_move_cost instead of ira_get_register_move_cost.
6942
6943         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6944         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6945         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6946         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6947         definitions.
6948         (ira_initiate_emit_data, ira_finish_emit_data)
6949         (create_new_allocno): New functions.
6950         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6951         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6952         Use ira_register_move_cost instead of ira_get_register_move_cost.
6953
6954         * ira-int.h: Fix some comments.
6955         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6956         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6957         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6958         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6959         add_data.
6960         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6961         bitfield after mode.  Make hard_regno a short int.  Make
6962         hard_regno short.  Remove first_coalesced_allocno and
6963         next_coalesced_allocno.  Move mem_optimized_dest_p,
6964         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6965         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6966         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6967         temp, colorable_p.  Add new member add_data.
6968         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6969         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6970         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6971         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6972         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6973         (ALLOCNO_ADD_DATA): New macro.
6974         (ira_emit_data_t): New typedef.
6975         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6976         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6977         from struct ira_allocno.
6978         (ALLOCNO_EMIT_DATA): New macro.
6979         (ira_allocno_emit_data, allocno_emit_reg): New.
6980         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6981         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6982         (OBJECT_ADD_DATA): New macro.
6983         (ira_reallocate): Remove.
6984         (ira_initiate_emit_data, ira_finish_emit_data): New.
6985         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6986         (ira_init_register_move_cost_if_necessary): New.
6987         (ira_object_conflict_iter_next): Merge into
6988         ira_object_conflict_iter_cond.
6989         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6990
6991         * ira-live.c (process_single_reg_class_operands): Call
6992         ira_init_register_move_cost_if_necessary.  Use
6993         ira_register_move_cost instead of ira_get_register_move_cost.
6994
6995         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6996
6997         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6998
6999         * ira-costs.c: Fix formatting.
7000         (cost_classes, cost_classes_num): Remove.
7001         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7002         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7003         (cost_classes_del, cost_classes_htab): New.
7004         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7005         (initiate_regno_cost_classes, setup_cost_classes): New.
7006         (setup_regno_cost_classes_by_aclass): New.
7007         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7008         (record_reg_classes): Use regno_cost_classes instead of
7009         cost_classes.  Move checking opposite operand up.
7010         (record_address_regs): Use regno_cost_classes
7011         instead of cost_classes.
7012         (scan_one_insn): Ditto.  Use always general register.
7013         (print_allocno_costs): Use regno_cost_classes instead of
7014         cost_classes.
7015         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7016         (find_costs_and_classes): Set up cost classes for each registers.
7017         Use also their mode for this.  Use regno_cost_classes instead of
7018         cost_classes.
7019         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7020         cost_classes.
7021         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7022         (ira_costs, ira_set_pseudo_classes): Call
7023         initiate_regno_cost_classes and finish_regno_cost_classes.
7024
7025         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7026
7027         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7028
7029         * target.def (ira_cover_classes): Remove.
7030
7031         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7032
7033         * doc/tm.texi.in: Ditto.
7034
7035         * ira-conflicts.c: Remove mentioning cover classes from the file.
7036         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7037         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7038
7039         * targhooks.c (default_ira_cover_classes): Remove.
7040
7041         * targhooks.h (default_ira_cover_classes): Ditto.
7042
7043         * haifa-sched.c: Remove mentioning cover classes from the file.
7044         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7045         ira_pressure_classes and ira_pressure_classes_num instead of
7046         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7047         sched_regno_pressure_class instead of sched_regno_cover_class.
7048         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7049         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7050
7051         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7052         classes from the file.
7053         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7054         (struct object_hard_regs, struct object_hard_regs_node): New.
7055         (struct ira_object): New members profitable_hard_regs,
7056         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7057         (struct ira_allocno): Rename cover_class to aclass.  Rename
7058         cover_class_cost and updated_cover_class_cost to class_cost and
7059         updated_class_cost.  Remove splay_removed_p and
7060         left_conflict_size.  Add new members colorable_p.
7061         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7062         (ALLOCNO_COLORABLE_P): New macro.
7063         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7064         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7065         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7066         (OBJECT_...): Rename parameter C to O.
7067         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7068         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7069         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7070         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7071         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7072         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7073         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7074         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7075         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7076         x_ira_reg_class_subunion.
7077         (ira_max_memory_move_cost, ira_max_register_move_cost)
7078         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7079         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7080         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7081         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7082         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7083         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7084         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7085         (ira_tune_allocno_costs_and_cover_classes): Rename to
7086         ira_tune_allocno_costs.
7087         (ira_debug_hard_regs_forest): New.
7088         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7089         (ira_object_conflict_iter_next): Fix comments.
7090         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7091         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7092         cover_class to aclass.
7093         (ira_allocate_and_accumulate_costs): Ditto.
7094         (ira_allocate_and_set_or_copy_costs): Ditto.
7095
7096         * opts.c (decode_options): Remove ira_cover_class check.
7097
7098         * ira-color.c: Remove mentioning cover classes from the file.  Use
7099         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7100         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7101         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7102         (splay-tree.h): Remove include.
7103         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7104         before copy_freq_compare_func.
7105         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7106         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7107         New definitions.
7108         (hard_regs_roots, hard_regs_node_vec): Ditto.
7109         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7110         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7111         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7112         (create_new_object_hard_regs_node): Ditto.
7113         (add_new_object_hard_regs_node_to_forest): Ditto.
7114         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7115         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7116         Ditto.
7117         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7118         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7119         (remove_unused_object_hard_regs_nodes): Ditto.
7120         (enumerate_object_hard_regs_nodes): Ditto.
7121         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7122         (object_hard_regs_subnode_t): Ditto.
7123         (struct object_hard_regs_subnode): Ditto.
7124         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7125         (setup_object_hard_regs_subnode_index): Ditto.
7126         (get_object_hard_regs_subnodes_num): Ditto.
7127         (form_object_hard_regs_nodes_forest): Ditto.
7128         (finish_object_hard_regs_nodes_tree): Ditto.
7129         (finish_object_hard_regs_nodes_forest): Ditto.
7130         (allocnos_have_intersected_live_ranges_p): Rename to
7131         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7132         (pseudos_have_intersected_live_ranges_p): Rename to
7133         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7134         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7135         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7136         (update_copy_costs): Remove assert.  Skip cost update if the hard
7137         reg does not belong the class.
7138         (assign_hard_reg): Process only profitable hard regs.
7139         (uncolorable_allocnos_num): Make it scalar.
7140         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7141         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7142         and ira_reg_class_max_nregs.
7143         (bucket_allocno_compare_func): Check frequency first.
7144         (sort_bucket): Add compare function as a parameter.
7145         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7146         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7147         (push_allocno_to_stack): Rewrite for checking new allocno
7148         colorability.
7149         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7150         (push_only_colorable): Pass new parameter to sort_bucket.
7151         (push_allocno_to_spill): Remove.
7152         (allocno_spill_priority_compare): Make it inline and rewrite.
7153         (splay_tree_allocate, splay_tree_free): Remove.
7154         (allocno_spill_sort_compare): New function.
7155         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7156         build and use splay tree.  Choose first allocno in uncolorable
7157         allocno bucket to spill.  Remove setting spill cost.
7158         (all_conflicting_hard_regs): Remove.
7159         (setup_allocno_available_regs_num): Check only profitable hard
7160         regs.  Print info about hard regs nodes.
7161         (setup_allocno_left_conflicts_size): Remove.
7162         (put_allocno_into_bucket): Don't call
7163         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7164         (improve_allocation): New.
7165         (color_allocnos): Call setup_profitable_hard_regs,
7166         form_object_hard_regs_nodes_forest, improve_allocation,
7167         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7168         (print_loop_title): Use pressure classes.
7169         (color_allocnso): Ditto.
7170         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7171         and allocnos_for_spilling.
7172         (ira_sort_regnos_for_alter_reg): Don't setup members
7173         {first,next}_coalesced_allocno.
7174         (color): Remove allocating and freeing removed_splay_allocno_vec.
7175         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7176         prohibited_class_mode_regs.
7177
7178         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7179         formatting.
7180         (update_allocno_pressure_excess_length): Use pressure classes.
7181         (inc_register_pressure, dec_register_pressure): Check for pressure
7182         class.
7183         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7184         pressure class.  Use ira_reg_class_nregs instead of
7185         ira_reg_class_max_nregs.
7186         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7187         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7188         (single_reg_class): Use ira_reg_class_nregs instead of
7189         ira_reg_class_max_nregs.
7190         (process_bb_node_lives): Use pressure classes.
7191
7192         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7193         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7194         (change_loop): Use pressure classes.
7195         (modify_move_list): Call ira_set_allocno_class instead of
7196         ira_set_allocno_cover_class.
7197
7198         * ira-build.c: Remove mentioning cover classes from the file.  Use
7199         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7200         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7201         ALLOCNO_UPDATED_CLASS_COST instead of
7202         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7203         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7204         (ira_create_allocno): Remove initialization of
7205         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7206         ALLOCNO_COLORABLE_P.
7207         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7208         Update conflict regs for the objects.
7209         (create_cap_allocno): Remove assert.  Don't propagate
7210         ALLOCNO_AVAILABLE_REGS_NUM.
7211         (ira_free_allocno_costs): New function.
7212         (finish_allocno): Change a part of code into call of
7213         ira_free_allocno_costs.
7214         (low_pressure_loop_node_p): Use pressure classes.
7215         (object_range_compare_func): Don't compare classes.
7216         (setup_min_max_conflict_allocno_ids): Ditto.
7217
7218         * loop-invariant.c: Remove mentioning cover classes from the file.
7219         Use ira_pressure_classes and ira_pressure_classes_num instead of
7220         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7221         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7222         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7223         Use reg_allocno_class instead of reg_cover_class.
7224         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7225         STACK_REG_COVER_CLASS.
7226         (get_regno_cover_class): Rename to get_regno_pressure_class.
7227         (move_loop_invariants): Initialize and finalize regstat.
7228
7229         * ira.c: Remove mentioning cover classes from the file.  Add
7230         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7231         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7232         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7233         setup_class_subset_and_memory_move_costs.
7234         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7235         (setup_cover_and_important_classes): Rename to
7236         setup_allocno_and_important_classes.
7237         (setup_class_translate_array): New.
7238         (setup_class_translate): Call it for allocno and pressure classes.
7239         (cover_class_order): Rename to allocno_class_order.
7240         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7241         of ira_class_translate.
7242         (reorder_important_classes): Set up ira_important_class_nums.
7243         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7244         (print_class_cover): Rename to print_classes.  Add parameter.
7245         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7246         Print pressure classes too.
7247         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7248         setup_reg_subclasses.
7249         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7250         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7251         (setup_prohibited_class_mode_regs): Use
7252         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7253         (clarify_prohibited_class_mode_regs): New function.
7254         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7255         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7256         (ira_init_once): Initialize them.
7257         (free_register_move_costs): Process them.
7258         (ira_init): Move calls of find_reg_classes and
7259         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7260         Call clarify_prohibited_class_mode_regs.
7261         (ira_no_alloc_reg): Remove.
7262         (too_high_register_pressure_p): Use pressure classes.
7263
7264         * sched-deps.c: Remove mentioning cover classes from the file.
7265         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7266         ira_pressure_classes and ira_pressure_classes_num instead of
7267         ira_reg_class_cover_size and ira_reg_class_cover.
7268         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7269         sched_regno_pressure_class instead of sched_regno_cover_class.
7270         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7271         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7272
7273         * ira.h: Add 2010 to Copyright.
7274         (ira_no_alloc_reg): Remove external.
7275         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7276         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7277         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7278         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7279         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7280         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7281         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7282         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7283         x_ira_no_alloc_regs.
7284         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7285         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7286         ira_allocno_classes_num and ira_allocno_classes.
7287         (ira_class_translate): Rename to ira_allocno_class_translate.
7288         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7289         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7290         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7291         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7292         (ira_no_alloc_regs): New.
7293
7294         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7295         classes from the file.  Use ALLOCNO_CLASS instead of
7296         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7297         ALLOCNO_COVER_CLASS_COST.
7298         (regno_cover_class): Rename to regno_aclass.
7299         (record_reg_classes): Use ira_reg_class_subunion instead of
7300         ira_reg_class_union.
7301         (record_address_regs): Check overflow.
7302         (scan_one_insn): Ditto.
7303         (print_allocno_costs): Print total mem cost fore regional allocation.
7304         (print_pseudo_costs): Use REG_N_REFS.
7305         (find_costs_and_classes): Use classes intersected with them on the
7306         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7307         ira_reg_class_union.  Use ira_allocno_class_translate and
7308         regno_aclass instead of ira_class_translate and regno_cover_class.
7309         Modify code for finding regno_aclass.  Setup preferred classes for
7310         the next pass.
7311         (setup_allocno_cover_class_and_costs): Rename to
7312         setup_allocno_class_and_costs.  Use regno_aclass instead of
7313         regno_cover_class.  Use ira_set_allocno_class instead of
7314         ira_set_allocno_cover_class.
7315         (init_costs, finish_costs): Use regno_aclass instead of
7316         regno_cover_class.
7317         (ira_costs): Use setup_allocno_class_and_costs instead of
7318         setup_allocno_cover_class_and_costs.
7319         (ira_tune_allocno_costs_and_cover_classes): Rename to
7320         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7321         by processing objects.  Use ira_reg_class_max_nregs instead of
7322         ira_reg_class_nregs.
7323
7324         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7325
7326         * sched-int.h: Remove mentioning cover classes from the file.
7327         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7328
7329         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7330         classes from the file.
7331         (struct reg_pref): Rename coverclass into allocnoclass.
7332         (reg_cover_class): Rename to reg_allocno_class.
7333
7334         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7335
7336         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7337
7338         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7339
7340         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7341
7342         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7343
7344         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7345
7346         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7347
7348         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7349
7350         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7351
7352         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7353
7354         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7355         (i386_ira_cover_classes): Ditto.
7356
7357         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7358
7359         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7360
7361         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7362
7363         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7364
7365         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7366
7367         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7368
7369         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7370         (mips_ira_cover_classes): Ditto.
7371
7372         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7373
7374         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7375
7376         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7377
7378         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7379
7380         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7381
7382         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7383         (IRA_COVER_CLASSES_VSX): Ditto.
7384
7385         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7386         (rs6000_ira_cover_classes): Ditto.
7387
7388         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7389
7390         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7391
7392         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7393
7394         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7395
7396         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7397
7398         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7399
7400         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7401
7402         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7403
7404         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7405
7406         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7407
7408 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7409
7410         PR debug/48253
7411         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7412         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7413         dw_fde_unlikely_section_end_label, cold_in_std_section,
7414         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7415         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7416         fields.
7417         (output_fde): Use dw_fde_second_{begin,end} if second is
7418         true, otherwise dw_fde_{begin,end}.
7419         (output_call_frame_info): Test dw_fde_second_begin != NULL
7420         instead of dw_fde_switched_sections.
7421         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7422         fields, initialize new fields.  Initialize in_std_section
7423         unconditionally from the first partition.
7424         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7425         dw_fde_second_begin is non-NULL.
7426         (dwarf2out_switch_text_section): Stop initializing removed
7427         dw_fde_struct fields, initialize new fields, initialize
7428         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7429         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7430         (struct var_loc_list_def): Add last_before_switch field.
7431         (arange_table, arange_table_allocated, arange_table_in_use,
7432         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7433         (size_of_aranges): Count !in_std_section and !second_in_std_section
7434         hunks in fdes, instead of looking at arange_table_in_use.
7435         (output_aranges): Add aranges_length argument, don't call
7436         size_of_aranges here.  Instead of using aranges_table*
7437         emit ranges for fdes when !in_std_section resp.
7438         !second_in_std_section.
7439         (dw_loc_list): Break ranges crossing section switch.
7440         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7441         use dw_fde_second_end instead of dw_fde_end as end of last range.
7442         (gen_subprogram_die): Don't call add_arange.  Use
7443         dw_fde_{begin,end} for first partition and if switched
7444         section dw_fde_second_{begin,end} for the second.
7445         (var_location_switch_text_section_1,
7446         var_location_switch_text_section): New functions.
7447         (dwarf2out_begin_function): Initialize cold_text_section even
7448         when function_section () isn't text_section.
7449         (prune_unused_types): Don't walk arange_table.
7450         (dwarf2out_finish): Don't needlessly test
7451         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7452         If info_section_emitted, call size_of_aranges and if it indicates
7453         non-empty .debug_aranges, call output_aranges with the computed
7454         size.  Stop using removed dw_fde_struct fields, use
7455         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7456         for second.
7457
7458         PR debug/48203
7459         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7460         create ENTRY_VALUE if incoming or address of incoming's MEM
7461         is a hard REG.
7462         * dwarf2out.c (mem_loc_descriptor): Don't emit
7463         DW_OP_GNU_entry_value of DW_OP_fbreg.
7464         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7465         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7466         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7467         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7468         ENTRY_VALUE_EXPs.
7469         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7470         is a REG_P or MEM_P with REG_P address, compute hash directly
7471         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7472         (preserve_only_constants): Don't clear VALUES forwaring
7473         ENTRY_VALUE to some other VALUE.
7474
7475 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7476
7477         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7478         instead of GEN_INT.
7479
7480 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7481
7482         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7483         block before expanding the statement.
7484         (expand_gimple_stmt_1): Likewise.  Set them here...
7485         (expand_gimple_stmt): ...and not here.  Tidy.
7486         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7487         unknown.
7488
7489 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7490
7491         * Makefile.in: New rule for cprop.o.
7492         * gcse.c: Move constant/copy propagation to cprop.c.
7493         (compute_local_properties): Only handle expression tables.
7494         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7495         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7496         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7497         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7498         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7499         compute_cprop_data, find_used_regs, try_replace_reg,
7500         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7501         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7502         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7503         find_bypass_set, reg_killed_on_edge, bypass_block,
7504         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7505         execute_rtl_cprop, pass_rtl_cprop): Move to...
7506         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7507         moved from gcse.c to here with minor cleanups in duplicated code.
7508
7509 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * config/i386/i386.c (flag_opts): Fix a typo in
7512         -mavx256-split-unaligned-store.
7513
7514 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7515
7516         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7517         LIBCALL_VALUE): Remove macros.
7518         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7519         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7520         (h8300_function_value, h8300_libcall_value,
7521         h8300_function_value_regno_p): New functions.
7522
7523 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7524
7525         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7526
7527 2011-03-28  Jeff Law  <law@redhat.com>
7528
7529         * tree-ssa-threadupdate.c (redirect_edges): Call
7530         create_edge_and_update_destination_phis as needed.
7531         (create_edge_and_update_destination_phis): Accept new BB argument.
7532         All callers updated.
7533         (thread_block): Do not update the profile when threading around
7534         intermediate blocks.
7535         (thread_single_edge): Likewise.
7536         (determine_bb_domination_status): If BB is not a successor of the
7537         loop header, return NONDOMINATING.
7538         (register_jump_thread): Note when we register a jump thread around
7539         an intermediate block.
7540         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7541         (thread_across_edge): Use it.
7542
7543 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7544
7545         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7546         when for_return is 2.
7547
7548 2011-03-28  Jeff Law  <law@redhat.com>
7549
7550         * var-tracking.c (canonicalize_values_mark): Delete unused
7551         lhs assignment.
7552         (canonicalize_values_star, set_variable_part): Likewise.
7553         (clobber_variable_part, delete_variable_part): Likewise.
7554
7555 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7556
7557         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7558
7559 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7560
7561         * tree-inline.c (expand_call_inline): Do not check that destination
7562         node is analyzed.
7563         (optimize_inline_calls): Assert that destination node is analyzed.
7564         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7565         not call tree_lowering_passes.
7566         * cgraph.h (cgraph_analyze_function): Declare.
7567         * cgraphunit.c (cgraph_analyze_function): Make public.
7568
7569 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7570
7571         * config/sparc/sparc-opts.h: New.
7572         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7573         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7574         (sparc_option_override): Store processor_type enumeration rather
7575         than string in cpu_default.  Remove name and enumeration from
7576         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7577         without using sparc_select.  Use target_flags_explicit instead of
7578         fpu_option_set.
7579         * config/sparc/sparc.h (enum processor_type): Move to
7580         sparc-opts.h.
7581         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7582         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7583         HeaderInclude entry.
7584         (mcpu=, mtune=): Use Var and Enum.
7585         (sparc_processor_type): New Enum and EnumValue entries.
7586
7587 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7588             Iain Sandoe  <iains@gcc.gnu.org>
7589
7590         PR target/48245
7591         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7592
7593 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7594
7595         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7596         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7597         Insert new statements at it in lieu of STMT.
7598         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7599         * tree-vect-stmts.c (vectorizable_store): Likewise.
7600         (vectorizable_load): Likewise.
7601
7602 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7603
7604         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7605         (divtf3): Ditto.
7606         (multf3): Ditto.
7607         (subtf3): Ditto.
7608
7609 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7610
7611         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7612         unaligned 256bit load/store.
7613         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7614         (*avx_movdqu<avxmodesuffix>): Likewise.
7615
7616 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7617
7618         PR target/48288
7619         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7620         * config/pa/pa.md (iordi3): Use new predicate in expander.
7621         (iorsi3): Likewise.
7622
7623 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7624
7625         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7626         FUNCTION_VALUE_REGNO_P): Remove macros.
7627         * config/mips/mips-protos.h (mips_function_value): Remove.
7628         * config/mips/mips.c (mips_function_value): Rename to...
7629         (mips_function_value_1): ... this. Make static.  Handle receiving
7630         the function type in 'fn_decl_or_type' argument.
7631         (mips_function_value, mips_libcall_value,
7632         mips_function_value_regno_p): New function.
7633         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7634         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7635
7636 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7637
7638         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7639         and -mavx256-split-unaligned-store.
7640         (ix86_option_override_internal): Split 32-byte AVX unaligned
7641         load/store by default.
7642         (ix86_avx256_split_vector_move_misalign): New.
7643         (ix86_expand_vector_move_misalign): Use it.
7644
7645         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7646         -mavx256-split-unaligned-store.
7647
7648         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7649         256bit load/store.  Generate unaligned store on misaligned memory
7650         operand.
7651         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7652         256bit load/store.
7653         (*avx_movdqu<avxmodesuffix>): Likewise.
7654
7655         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7656         -mavx256-split-unaligned-store.
7657
7658 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7659
7660         PR target/38598
7661         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7662         Update commentary.
7663
7664 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7665
7666         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7667         opno arguments with an expand_operand.  Use create_input_operand.
7668         (mips_prepare_builtin_target): Delete.
7669         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7670         functions.
7671         (mips_expand_builtin_direct): Use create_output_operand and
7672         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7673         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7674         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7675
7676 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7677
7678         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7679         function.
7680         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7681
7682 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7683
7684         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7685         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7686         basic blocks and call commit_edge_insertions directly.
7687         (fixup_abnormal_edges): Move from here to...
7688         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7689         on the edges and return whether some have actually been inserted.
7690         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7691         compensation code.
7692
7693 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7694
7695         PR rtl-optimization/48144
7696         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7697         (merge_expr_data): ... here.
7698         (av_set_intersect): Rename to av_set_code_motion_filter.
7699         Update all callers.  Call merge_history_vect when an expression
7700         is found in both sets.
7701         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7702
7703 2011-03-26  Alan Modra  <amodra@gmail.com>
7704
7705         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7706         cmodel medium addresses.
7707         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7708         64-bit gpr loads and stores.
7709         (rs6000_secondary_reload_ppc64): New function.
7710         * config/rs6000/rs6000-protos.h: Declare it.
7711         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7712
7713 2011-03-26  Alan Modra  <amodra@gmail.com>
7714
7715         PR target/47487
7716         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7717         GNU Go in traceback table.
7718
7719 2011-03-25  Richard Henderson  <rth@redhat.com>
7720
7721         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7722         if there are exactly 6 operands.
7723         (set_storage_via_setmem): Similarly.
7724
7725 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7726
7727         * collect2.c (write_c_file_stat): Handle backslash
7728         as right-hand directory separator.
7729         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7730         checking just for slash.
7731         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7732         instead of checking for trailing slash.
7733         * gcc.c (record_temp_file): Use filename_cmp instead
7734         of strcmp.
7735         (do_spec_1): Likewise.
7736         (replace_outfile_spec_function): Likewise.
7737         (is_directory): Use filename_ncmp instead of strncmp.
7738         (print_multilib_info): Likewise.
7739         * gcov.c (find_source): Use filename_cmp instead
7740         instead of strcmp.
7741         (make_gcov_file_name): Fix order of slash/backslash
7742         checks.
7743         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7744         (add_standard_paths): Likewise.
7745         * mips-tfile.c (saber_stop): Handle backslash.
7746         * prefix.c (update_path): Use filename_ncmp instead of
7747         strncmp.
7748         * profile.c (output_location): Use filename_cmp instead
7749         of strcmp.
7750         * read-md.c (handle_toplevel_file): Handle backslash.
7751         * tlink.c (frob_extension):  Likewise.
7752         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7753         strcmp.
7754         * tree-dump.c (dequeue_and_dump): Handle backslash.
7755         * tree.c (get_file_function_name): Likewise.
7756         * gengtype.c (read_input_list): Likewise.
7757         (get_file_realbasename): Likewise.
7758         (get_output_file_with_visibility): Use filename_cmp
7759         instead of strcmp.
7760
7761 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7762
7763         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7764         case to VFPv1.
7765
7766 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7767
7768         * fold-const.c (expr_location_or): New function.
7769         (fold_truth_not_expr): Call it.
7770
7771 2011-03-25  Jeff Law  <law@redhat.com>
7772
7773         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7774         va_end.
7775         * c-family/c-common.c (def_fn_type): Likewise.
7776         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7777         * emit-rtl.c (gen_rtvec): Likewise.
7778         * lto/lto-lang.c (def_fn_type): Likewise.
7779
7780 2011-03-25  Richard Guenther  <rguenther@suse.de>
7781
7782         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7783         also generate copies.
7784         (fini_copy_prop): Handle constant values properly.
7785
7786 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7787
7788         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7789         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7790         (hash_loc_operands, compare_loc_operands): Handle
7791         DW_OP_GNU_entry_value.
7792
7793 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7794
7795         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7796         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7797         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7798         comment and use macro TARGET_64BIT_MS_ABI instead.
7799         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7800         and change default behavior for 32-bit MS_ABI.
7801         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7802         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7803         32-bit, too.
7804         (ix86_cfun_abi): Likewise.
7805         (ix86_maybe_switch_abi): Adjust comment.
7806         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7807         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7808         instead of checking for SYSV_ABI.
7809         (ix86_nsaved_sseregs): Likewise.
7810         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7811         to 16 bytes.
7812         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7813         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7814         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7815         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7816         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7817
7818 2011-03-25  Richard Guenther  <rguenther@suse.de>
7819
7820         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7821         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7822         (verify_gimple): Remove.
7823         * tree-cfg.c (verify_gimple_call): Merge verification
7824         from verify_stmts.
7825         (verify_gimple_phi): Merge verification from verify_stmts.
7826         (verify_gimple_label): New function.
7827         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7828         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7829         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7830         (verify_stmts): Rename to verify_gimple_in_cfg.
7831         (verify_gimple_in_cfg): New function.
7832         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7833         * tree-ssa.c (verify_ssa): Likewise.
7834         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7835
7836 2011-03-25  Richard Guenther  <rguenther@suse.de>
7837
7838         * passes.c (init_optimization_passes): Add FRE pass after
7839         early SRA.
7840
7841 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7842             Andrew Stubbs  <ams@codesourcery.com>
7843
7844         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7845         for Cortex-A8.
7846         (arm_movdi_vfp_cortexa8): New pattern.
7847         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7848         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7849         instructions when tuning for Cortex-A8.  Set attribute "arch".
7850         * config/arm/arm.md: Move include arm-tune.md up a bit.
7851         (define_attr "arch"): Add "onlya8" and "nota8" values.
7852         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7853
7854 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7855
7856         PR bootstrap/48282
7857         Revert:
7858         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7859
7860         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7861         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7862         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7863         * passes.c (init_optimization_passes): Move
7864         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7865
7866 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7867
7868         * c-typeck.c (comptypes_internal): Replace target
7869         hook call of comp_type_attributes by version in tree.c file.
7870         * gimple.c (gimple_types_compatible_p_1): Likewise.
7871         * tree-ssa.c (useless_type_conversion_p): Likewise.
7872         * tree.c (build_type_attribute_qual_variant): Likewise.
7873         (attribute_value_equal): New static helper function.
7874         (comp_type_attributes): New function.
7875         (merge_attributes): Use attribute_value_equal for comparison.
7876         (attribute_list_contained): Likewise.
7877         * tree.h (comp_type_attributes): New prototype.
7878
7879 2011-03-25  Richard Guenther  <rguenther@suse.de>
7880
7881         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7882         of complex types at -O0.
7883         (verify_gimple_assign_binary): Likewise.
7884         (verify_gimple_assign_ternary): Likewise.
7885
7886 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7887
7888         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7889         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7890
7891 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7892
7893         PR debug/48041
7894         * dwarf2out.c (output_abbrev_section): Only write table when
7895         abbrev_die_table_in_use > 1.
7896
7897 2011-02-24  Richard Henderson  <rth@redhat.com>
7898
7899         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7900         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7901         (alpha_expand_unaligned_load_words): Use extql.
7902         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7903         (emit_insxl): Handle all modes for consistency.
7904
7905 2011-02-24  Richard Henderson  <rth@redhat.com>
7906
7907         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7908         (alpha_expand_unaligned_load): Likewise.
7909         (alpha_expand_unaligned_store): Likewise.
7910         (alpha_expand_unaligned_load_words): Likewise.
7911         (alpha_expand_unaligned_store_words): Likewise.
7912         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7913         (alpha_split_lock_test_and_set_12): Likewise.
7914         (print_operand, alpha_fold_builtin_extxx): Likewise.
7915         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7916         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7917         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7918         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7919         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7920         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7921         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7922         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7923         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7924         (extwl, extll, extql): Similarly.
7925         (inswh, inslh, insqh): Similarly.
7926         (mskbl, mskwl, mskll, mskql): Similarly.
7927         (mskwh, msklh, mskqh): Similarly.
7928
7929 2011-02-24  Richard Henderson  <rth@redhat.com>
7930
7931         * config/alpha/alpha.md (attribute isa): Add er, ner.
7932         (attribute enabled): Handle them.
7933         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7934
7935 2011-02-24  Richard Henderson  <rth@redhat.com>
7936
7937         * config/alpha/alpha.md (attribute isa): Add vms.
7938         (attribute enabled): Handle it.
7939         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7940         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7941         (*movtf): Rename from *movtf_internal for consistency.
7942         (*movsi): Merge with *movsi_nt_vms.
7943         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7944         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7945         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7946         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7947
7948 2011-02-24  Richard Henderson  <rth@redhat.com>
7949
7950         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7951         (extendqisi2, extendhisi2): Likewise.
7952         (extendqidi2): Simplify BWX/non-BWX expansions.
7953         (extendhidi2): Similarly.
7954
7955 2011-02-24  Richard Henderson  <rth@redhat.com>
7956
7957         * config/alpha/alpha.md (attribute isa): New.
7958         (attribute enabled): New.
7959         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7960         (zero_extendqisi2, zero_extendqidi2): Similarly.
7961         (zero_extendhisi2, zero_extendhidi2): Similarly.
7962         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7963
7964 2011-02-24  Richard Henderson  <rth@redhat.com>
7965
7966         * config/alpha/predicates.md (input_operand): Revert last change;
7967         update comment to mention 32-bit VMS rather than Windows.
7968
7969 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7970
7971         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7972         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7973         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7974         * passes.c (init_optimization_passes): Move
7975         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7976
7977 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7978
7979         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7980
7981 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7982
7983         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7984         correctly.
7985
7986 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7987
7988         PR debug/48204
7989         * simplify-rtx.c (simplify_const_unary_operation): Call
7990         real_convert when changing mode class with FLOAT_EXTEND.
7991
7992 2011-03-24  Nick Clifton  <nickc@redhat.com>
7993
7994         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7995         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7996         * config/rx/rx.c (rx_option_override): Set align_jumps,
7997         align_loops and align_labels if not set by the user.
7998         (rx_align_for_label): New function.
7999         (rx_max_skip_for_label): New function.
8000         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8001         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8002         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8003         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8004         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8005
8006 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8007
8008         PR rtl-optimization/48263
8009         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8010         and original commutative_p handling.  Use maybe_gen_insn.
8011
8012 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8013
8014         * reload.c (find_reloads_subreg_address): Add address_reloaded
8015         parameter and return true there if the full address has been
8016         reloaded.
8017         (find_reloads_toplev): Pass address_reloaded flag.
8018         (find_reloads_address_1): Don't use address_reloaded parameter.
8019
8020 2011-03-24  Jeff Law  <law@redhat.com>
8021
8022         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8023         unused variable "ann".
8024         (remove_unused_locals): Likewise.
8025
8026         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8027         statement.
8028
8029         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8030         after it is freed.
8031
8032 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8033
8034         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8035         for invalid symbolic addresses.
8036         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8037         larl operands.
8038
8039 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8040
8041         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8042         the argument in calls to fold_truth_not_expr.
8043
8044 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8045
8046         * tree.c (record_node_allocation_statistics): New function.
8047         (make_node_stat, copy_node_stat, build_string): Call it.
8048         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8049         (build1_stat, build_omp_clause): Likewise.
8050
8051 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8052
8053         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8054         last commit.
8055
8056 2011-03-24  Richard Guenther  <rguenther@suse.de>
8057
8058         PR tree-optimization/48271
8059         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8060         blocks that still exist.
8061
8062 2011-03-24  Richard Guenther  <rguenther@suse.de>
8063
8064         PR tree-optimization/48270
8065         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8066         not free datarefs before ddrs.
8067
8068 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8069
8070         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8071         from the address built for a reference with variable offset.
8072
8073 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8074
8075         PR target/48237
8076         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8077         alternatives that can be handled with movq or movabsq insn.
8078         (*movdf_internal): Disable for !TARGET_64BIT.
8079         (*movdf_internal_nointeger): Ditto.
8080         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8081
8082 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8083
8084         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8085         (FUNCTION_ARG_ADVANCE): Likewise.
8086         * tm.texi.in: Change references to them to hook references.
8087         * tm.texi: Regenerate.
8088         * targhooks.c (default_function_arg): Eliminate check for target macro.
8089         (default_function_incoming_arg): Likewise.
8090         (default_function_arg_advance): Likewise.
8091         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8092         (function_arg_advance): Likewise.
8093         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8094
8095 2011-03-24  Richard Guenther  <rguenther@suse.de>
8096
8097         PR middle-end/48269
8098         * tree-object-size.c (addr_object_size): Do not double-account
8099         for MEM_REF offsets.
8100
8101 2011-03-24  Diego Novillo  <dnovillo@google.com>
8102
8103         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8104         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8105         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8106         Update all users.
8107         (lto_input_string): Rename from input_string.  Make extern.
8108         Update all users.
8109         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8110         output_string_with_length.
8111         Output 0 to indicate a non-NULL string.  Update all callers to
8112         not emit 0.
8113         (lto_output_string): Rename from output_string.  Make extern.
8114         Update all users.
8115         (lto_output_decl_state_streams): Make extern.
8116         (lto_output_decl_state_refs): Make extern.
8117         * lto-streamer.h (lto_input_string): Declare.
8118         (lto_input_data_block): Declare.
8119         (lto_output_string): Declare.
8120         (lto_output_string_with_length): Declare.
8121         (lto_output_decl_state_streams): Declare.
8122         (lto_output_decl_state_refs): Declare.
8123
8124 2011-03-24  Richard Guenther  <rguenther@suse.de>
8125
8126         PR tree-optimization/46562
8127         * tree.c (build_invariant_address): New function.
8128         * tree.h (build_invariant_address): Declare.
8129         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8130         a renamed function moved ...
8131         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8132         Take valueization callback parameter.
8133         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8134         * gimple-fold.h: New file.
8135         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8136         (ccp_fold, fold_const_aggregate_ref,
8137         fold_ctor_reference, fold_nonarray_ctor_reference,
8138         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8139         get_base_constructor): Move ...
8140         * gimple-fold.c: ... here.
8141         (gimple_fold_stmt_to_constant_1): New function
8142         split out from ccp_fold.  Take a valueization callback parameter.
8143         Valueize all operands.
8144         (gimple_fold_stmt_to_constant): New wrapper function.
8145         (fold_const_aggregate_ref_1): New function split out from
8146         fold_const_aggregate_ref.  Take a valueization callback parameter.
8147         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8148         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8149         invariant POINTER_PLUS_EXPRs to invariant form.
8150         (vn_valueize): New function.
8151         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8152         * tree-vrp.c (vrp_valueize): New function.
8153         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8154         to fold statements to constants.
8155         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8156         function declarations.
8157         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8158         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8159
8160 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8161
8162         * config/h8300/predicates.md (jump_address_operand): Fix register
8163         mode check.
8164
8165 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8166
8167         * doc/invoke.texi (max-stores-to-sink): Document.
8168         * params.h (MAX_STORES_TO_SINK): Define.
8169         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8170         if either vectorization or if-conversion is disabled.
8171         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8172         tree-vect-data-refs.c vect_equal_offsets.
8173         (dr_equal_offsets_p): New function.
8174         (find_data_references_in_bb): Remove static.
8175         * tree-data-ref.h (find_data_references_in_bb): Declare.
8176         (dr_equal_offsets_p): Likewise.
8177         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8178         (vect_drs_dependent_in_basic_block): Update calls to
8179         vect_equal_offsets.
8180         (vect_check_interleaving): Likewise.
8181         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8182         (cond_if_else_store_replacement): Rename to...
8183         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8184         documentation.
8185         (cond_if_else_store_replacement): New function.
8186         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8187         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8188
8189 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8190
8191         PR target/46934
8192         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8193         to subtract lower bound instead of GEN_INT().
8194
8195 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8196
8197         PR other/48179
8198         PR other/48221
8199         PR other/48234
8200         * doc/extend.texi (Alignment): Move section to match order in TOC.
8201         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8202         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8203
8204 2011-03-23  Jeff Law  <law@redhat.com>
8205
8206         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8207         before removing the edge.
8208
8209         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8210         it may have been freed by redirect_branch_edge or
8211         redirect_edge_succ_nodup.
8212
8213 2011-03-23  Richard Guenther  <rguenther@suse.de>
8214
8215         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8216         (check_va_list_escapes): Likewise.
8217         (check_all_va_list_escapes): Likewise.
8218
8219 2011-03-23  Richard Guenther  <rguenther@suse.de>
8220
8221         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8222         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8223         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8224         (alias.o): Likewise.
8225         (ipa-type-escape.o): Remove.
8226         (ipa-struct-reorg.o): Likewise.
8227         (GTFILES): Remove ipa-struct-reorg.c.
8228         * alias.c: Do not include ipa-type-escape.h.
8229         * tree-ssa-alias.c: Likewise.
8230         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8231         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8232         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8233         and ipa-type-escape passes.
8234         * tree-pass.h (pass_ipa_type_escape): Remove.
8235         (pass_ipa_struct_reorg): Likewise.
8236         * ipa-struct-reorg.h: Remove.
8237         * ipa-struct-reorg.c: Likewise.
8238         * ipa-type-escape.h: Likewise.
8239         * ipa-type-escape.c: Likewise.
8240         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8241         (--param struct-reorg-cold-struct-ratio): Likewise.
8242         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8243         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8244         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8245
8246 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8247
8248         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8249         cpu attribute value.
8250         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8251         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8252         * config/s390/s390.c (processor_flags_table): New constant array.
8253         (s390_handle_arch_option): Remove.
8254         (s390_handle_option): Remove s390_handle_arch_option invocations
8255         and OPT_mwarn_framesize_ handling.
8256         (s390_option_override): Remove s390_handle_arch_option invocation.
8257         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8258         warnings.
8259         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8260         * config/s390/s390.opt (s390_tune, s390_arch)
8261         (march=): Replace s390_arch_option enum and values with
8262         processor_type.  Set variable name to s390_arch.  Set
8263         initialization value.
8264         (mtune=): Replace s390_arch_option with processor_type.  Set
8265         variable name to s390_tune.  Set initialization value.
8266
8267 2011-03-23  Julian Brown  <julian@codesourcery.com>
8268
8269         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8270         accesses which are not naturally aligned.
8271
8272 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8273
8274         PR target/47553
8275         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8276
8277 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8278
8279         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8280         parameter from "int" to "enum insn_code".
8281         (expand_operand_type): New enum.
8282         (expand_operand): New structure.
8283         (create_expand_operand): New function.
8284         (create_fixed_operand, create_output_operand): Likewise
8285         (create_input_operand, create_convert_operand_to): Likewise.
8286         (create_convert_operand_from, create_address_operand): Likewise.
8287         (create_integer_operand): Likewise.
8288         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8289         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8290         (expand_insn, expand_jump_insn): Likewise.
8291         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8292         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8293         (expand_movstr, expand_builtin___clear_cache): Likewise.
8294         (expand_builtin_lock_release): Likewise.
8295         * explow.c (allocate_dynamic_stack_space): Likewise.
8296         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8297         and use the default handling in that case.
8298         * expmed.c (check_predicate_volatile_ok): Delete.
8299         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8300         (emit_cstore): Likewise.
8301         * expr.c (emit_block_move_via_movmem): Likewise.
8302         (set_storage_via_setmem, expand_assignment): Likewise.
8303         (emit_storent_insn, try_casesi): Likewise.
8304         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8305         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8306         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8307         (expand_twoval_unop, expand_twoval_binop): Likewise.
8308         (expand_unop_direct, emit_indirect_jump): Likewise.
8309         (emit_conditional_move, vector_compare_rtx): Likewise.
8310         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8311         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8312         (expand_sync_lock_test_and_set): Likewise.
8313         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8314         (emit_unop_insn): Likewise.
8315         (expand_copysign_absneg): Change icode to an insn_code.
8316         (create_convert_operand_from_type): New function.
8317         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8318         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8319         (expand_insn, expand_jump_insn): Likewise.
8320         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8321         than const_int_operand for operand 2.
8322
8323 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8324
8325         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8326         if possible.
8327
8328 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8329
8330         * emit-rtl.c (emit_pattern_before_noloc): New function.
8331         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8332         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8333         (emit_pattern_after_noloc): New function.
8334         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8335         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8336
8337 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8338
8339         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8340         (__ffsDI2): Likewise.
8341
8342 2011-03-22  Richard Henderson  <rth@redhat.com>
8343
8344         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8345         of !TARGET_ABI_OPEN_VMS.
8346         (alpha_trampoline_init, alpha_start_function): Likewise.
8347         (alpha_expand_epilogue, alpha_file_start): Likewise.
8348         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8349         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8350         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8351         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8352         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8353
8354 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8355
8356         * config/s390/s390-opts.h: New.
8357         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8358         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8359         s390_stack_guard): Remove.
8360         (s390_handle_arch_option): Return void.  Take enum
8361         s390_arch_option value instead of string and searching array.
8362         (s390_handle_option): Don't assert that global structures are in
8363         use.  Access variables via opts pointer.  Use error_at.  Don't use
8364         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8365         s390_handle_arch_option.
8366         (s390_option_override): Update call to s390_handle_arch_option.
8367         (s390_emit_prologue): Use %d format for s390_stack_size in
8368         diagnostic.  Use %wd for HOST_WIDE_INT.
8369         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8370         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8371         * config/s390/s390.opt (config/s390/s390-opts.h): New
8372         HeaderInclude entry.
8373         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8374         s390_arch_flags, s390_warn_framesize): New Variable entries.
8375         (s390_arch_option): New Enum and EnumValue entries.
8376         (march=): Use Enum instead of Var.
8377         (mstack-guard=, mstack-size=): Use UInteger and Var.
8378         (mtune=): Use Enum.
8379
8380 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8381
8382         * config/score/score.c (score_handle_option): Don't assert that
8383         global structures are in use.  Access target_flags via opts
8384         pointer.  Use value of -march= option to determine target_flags
8385         settings.
8386         * config/score/score.opt (march=): Use Enum.
8387         (score_arch): New Enum and EnumValue entries.
8388
8389 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8390
8391         * config/mep/mep.c (option_mtiny_specified): Remove.
8392         (mep_option_override): Move register handling for -mivc2 from
8393         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8394         instead of option_mtiny_specified.
8395         (mep_handle_option): Access target_flags via opts pointer.  Don't
8396         assert that global structures are in use.  Defer part of -mivc2
8397         handling and move it to mep_option_override.
8398         * config/mep/mep.opt (IVC2): New Mask entry.
8399         (mivc2): Use Var and Defer instead of Mask.
8400
8401 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8402
8403         * config/v850/v850-opts.h: New.
8404         * config/v850/v850.c (small_memory): Replace with
8405         small_memory_physical_max array.  Make that array static const.
8406         (v850_handle_memory_option): Take integer value of argument.  Take
8407         gcc_options pointer, option text and location.  Return void.
8408         Update for changes to small memory structures.
8409         (v850_handle_option): Access target_flags via opts pointer.  Don't
8410         assert that global structures are in use.  Update calls to
8411         v850_handle_memory_option.
8412         (v850_encode_data_area): Update references to small memory settings.
8413         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8414         (enum small_memory_type): Move to v850-opts.h.
8415         * config/v850/v850.opt (config/v850/v850-opts.h): New
8416         HeaderInclude entry.
8417         (small_memory_max): New Variable entry.
8418         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8419         (mtda, mzda): Likewise.
8420
8421 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8424         pointer.  Don't assert that global structures are in use.
8425
8426 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8427
8428         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8429         via opts pointer.  Don't assert that global structures are in use.
8430
8431 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8432
8433         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8434         (munix=93): Use Var.
8435         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8436         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8437         * config/pa/pa-opts.h: New.
8438         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8439         (pa_handle_option): Don't assert that global structures are in
8440         use.  Access target_flags via opts pointer.  Don't handle
8441         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8442         OPT_munix_98 here.
8443         (pa_option_override): Handle deferred OPT_mfixed_range_.
8444
8445 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8446
8447         * config/mn10300/mn10300-opts.h: New.
8448         * config/mn10300/mn10300.c (mn10300_processor,
8449         mn10300_tune_string): Remove.
8450         (mn10300_handle_option): Don't assert that global structures are
8451         in use.  Access mn10300_processor via opts pointer.  Don't handle
8452         OPT_mtune_ here.
8453         * config/mn10300/mn10300.h (enum processor_type): Move to
8454         mn10300-opts.h.
8455         (mn10300_processor): Remove.
8456         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8457         HeaderInclude entry.
8458         (mn10300_processor): New Variable entry.
8459         (mtune=): Use Var.
8460
8461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8462
8463         * config/microblaze/microblaze.c: Don't include opts.h.
8464         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8465         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8466         (mno-clearbss): Use Var and Warn.
8467
8468 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8469
8470         * config/m32r/m32r-opts.h: New.
8471         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8472         (m32r_handle_option): Don't assert that global structures are in
8473         use.  Access target_flags and m32r_cache_flush_func via opts
8474         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8475         OPT_mno_flush_trap here.
8476         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8477         include of m32r-opts.h.
8478         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8479         HeaderInclude entry.
8480         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8481         (mmodel=): Use Enum and Var.
8482         (m32r_model): New Enum and EnumValue entries.
8483         (mno-flush-trap): Use Var.
8484         (msdata=): Use Enum and Var.
8485         (m32r_sdata): New Enum and EnumValue entries.
8486
8487 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8488
8489         * config/m32c/m32c.c: Don't include opts.h.
8490         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8491         m32c_handle_option): Remove.
8492         (m32c_option_override): Check global_options_set.x_target_memregs
8493         instead of target_memregs_set.
8494         * config/m32c/m32c.h (target_memregs): Remove.
8495         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8496         variable.
8497
8498 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8499
8500         * config/iq2000/iq2000-opts.h: New.
8501         * config/iq2000/iq2000.c: Don't include opts.h.
8502         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8503         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8504         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8505         HeaderInclude entry.
8506         (iq2000_tune): New Variable entry.
8507         (march=): Add comment.  Use Enum.
8508         (iq2000_arch): New Enum and EnumValue entries.
8509         (mcpu=): Use Enum and Var.
8510         (iq2000_tune): New Enum and EnumValue entries.
8511
8512 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8513
8514         * config/ia64/ia64-opts.h: New.
8515         * config/ia64/ia64.c (ia64_tune): Remove.
8516         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8517         here.  Use error_at.
8518         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8519         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8520         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8521         HeaderInclude entry.
8522         (ia64_tune): New Variable entry.
8523         (mfixed-range=): Use Defer and Var.
8524         (mtune=): Use Enum and Var.
8525         (ia64_tune): New Enum and EnumValue entries.
8526
8527 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8528
8529         * config/frv/frv-opts.h: New.
8530         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8531         frv-opts.h.
8532         (frv_cpu_type): Remove.
8533         * config/frv/frv.c: Don't include opts.h.
8534         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8535         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8536         (frv_cpu_type): New Variable entry.
8537         (frv_cpu): New Enum and EnumValue entries.
8538
8539 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8540
8541         * config/cris/cris.c (cris_handle_option): Access target_flags via
8542         opts pointer.  Don't assert that global structures are in use.
8543         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8544         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8545
8546 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8547
8548         * config/bfin/bfin-opts.h: New.
8549         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8550         bfin_si_revision, bfin_workarounds): Remove.
8551         (bfin_cpus): Make static const.
8552         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8553         not bfin_lib_id_given.
8554         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8555         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8556         pointer. Use error_at.  Don't assert that global structures are in use.
8557         * config/bfin/bfin.h: Include bfin-opts.h.
8558         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8559         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8560         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8561         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8562         entries.
8563
8564 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8565
8566         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8567         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8568         or -msoft-float here.
8569         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8570         -msoft-float and -mhard-float.
8571         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8572         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8573         msoft-float.
8574         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8575         -msoft-float.
8576         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8577         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8578         not mhard-float.
8579         (LIBGCC_SPEC): Don't handle -msoft-float.
8580         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8581         -mhard-float.
8582         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8583         msoft-float.
8584         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8585         -mfloat-abi=*, not -msoft-float and -mhard-float.
8586         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8587         -msoft-float.
8588         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8589         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8590         mhard-float and msoft-float.
8591         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8592         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8593         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8594         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8595         mhard-float.
8596         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8597         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8598         msoft-float.
8599         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8600         not mhard-float.
8601         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8602         not msoft-float.
8603
8604 2011-03-22  Richard Henderson  <rth@redhat.com>
8605
8606         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8607         TARGET_ABI_WINDOWS_NT.
8608         (alpha_output_function_end_prologue): Likewise.
8609         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8610         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8611         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8612         (trap, *movsi_nt_vms): Likewise.
8613         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8614         (*tablejump_osf_nt_internal): Remove.
8615         * config/alpha/predicates.md (input_operand): Only test Pmode.
8616
8617 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8618
8619         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8620         via opts pointer.  Use error_at.  Don't assert that global
8621         structures are in use.
8622
8623 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8624
8625         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8626         (ix86_handle_option): Access ix86_isa_flags and
8627         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8628         global structures are in use.
8629         (ix86_function_specific_save, ix86_function_specific_restore):
8630         Update ix86_isa_flags_explicit field name.
8631         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8632         (ix86_isa_flags_explicit): Rename TargetSave entry to
8633         x_ix86_isa_flags_explicit.
8634
8635 2011-03-22  Richard Henderson  <rth@redhat.com>
8636
8637         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8638         (alpha_option_override, direct_return): Likewise.
8639         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8640         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8641         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8642         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8643         (alpha_expand_epilogue, alpha_end_function): Likewise.
8644         (alpha_init_libfuncs): Likewise.
8645         (struct machine_function): Remove unicosmk members.
8646         (print_operand) ['t']: Remove.
8647         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8648         unicosmk_output_module_name, unicosmk_output_common,
8649         current_section_align, unicosmk_output_text_section_asm_op,
8650         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8651         unicosmk_section_type_flags, unicosmk_unique_section,
8652         unicosmk_asm_named_section, unicosmk_insert_attributes,
8653         unicosmk_output_align, unicosmk_defer_case_vector,
8654         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8655         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8656         unicosmk_output_ssib, unicosmk_add_call_info_word,
8657         unicosmk_extern_head, unicosmk_output_default_externs,
8658         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8659         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8660         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8661         * config/alpha/alpha-protos.h: Update.
8662         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8663         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8664         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8665         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8666         (*mulsi_se, mulvsi3): Likewise.
8667         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8668         (*divmodsi_internal, call, call_value, realign): Likewise.
8669         (moddi3, umoddi3): Likewise; remove duplicate expander.
8670         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8671         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8672         (*movdi_nofix): Remove r/U alternative.
8673         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8674         * config/alpha/constraints.md ("U"): Remove.
8675         * config/alpha/predicates.md (call_operand"): Don't test
8676         TARGET_ABI_UNICOSMK.
8677
8678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8679
8680         * target.def (handle_option): Take gcc_options and
8681         cl_decoded_option pointers and location_t.
8682         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8683         * doc/tm.texi: Regenerate.
8684         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8685         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8686         * lto-opts.c (lto_reissue_options): Generate option structure for
8687         targetm.handle_option call.
8688         * opts.c (target_handle_option): Update call to
8689         targetm.handle_option.  Remove assertions about values now passed
8690         down to hook.
8691         * targhooks.c (default_target_handle_option): New.
8692         * targhooks.h (default_target_handle_option): Declare.
8693         * config/alpha/alpha.c: Include opts.h.
8694         (alpha_handle_option): Update to new hook interface.
8695         * config/arm/arm.c: Include opts.h.
8696         (arm_handle_option): Update to new hook interface.
8697         * config/arm/t-arm (arm.o): Update dependencies.
8698         * config/bfin/bfin.c: Include opts.h.
8699         (bfin_handle_option): Update to new hook interface.
8700         * config/cris/cris.c: Include opts.h.
8701         (cris_handle_option): Update to new hook interface.
8702         * config/frv/frv.c: Include opts.h.
8703         (frv_handle_option): Update to new hook interface.
8704         * config/i386/i386.c: Include opts.h.
8705         (ix86_handle_option): Update to new hook interface.
8706         (ix86_valid_target_attribute_inner_p): Generate option structure
8707         for call to ix86_handle_option.
8708         * config/i386/t-i386 (i386.o): Update dependencies.
8709         * config/ia64/ia64.c: Include opts.h.
8710         (ia64_handle_option): Update to new hook interface.
8711         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8712         * config/iq2000/iq2000.c: Include opts.h.
8713         (iq2000_handle_option): Update to new hook interface.
8714         * config/m32c/m32c.c: Include opts.h.
8715         (m32c_handle_option): Update to new hook interface.
8716         * config/m32r/m32r.c: Include opts.h.
8717         (m32r_handle_option): Update to new hook interface.
8718         * config/m68k/m68k.c: Include opts.h.
8719         (m68k_handle_option): Update to new hook interface.
8720         * config/mep/mep.c: Include opts.h.
8721         (mep_handle_option): Update to new hook interface.
8722         * config/microblaze/microblaze.c: Include opts.h.
8723         (microblaze_handle_option): Update to new hook interface.
8724         * config/mips/mips.c: Include opts.h.
8725         (mips_handle_option): Update to new hook interface.
8726         * config/mn10300/mn10300.c: Include opts.h.
8727         (mn10300_handle_option): Update to new hook interface.
8728         * config/pa/pa.c: Include opts.h.
8729         (pa_handle_option): Update to new hook interface.
8730         * config/pdp11/pdp11.c: Include opts.h.
8731         (pdp11_handle_option): Update to new hook interface.
8732         * config/rs6000/rs6000.c: Include opts.h.
8733         (rs6000_handle_option): Update to new hook interface.
8734         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8735         * config/rx/rx.c: Include opts.h.
8736         (rx_handle_option): Update to new hook interface.
8737         * config/s390/s390.c: Include opts.h.
8738         (s390_handle_option): Update to new hook interface.
8739         * config/score/score.c: Include opts.h.
8740         (score_handle_option): Update to new hook interface.
8741         * config/sh/sh.c: Include opts.h.
8742         (sh_handle_option): Update to new hook interface.
8743         * config/sparc/sparc.c: Include opts.h.
8744         (sparc_handle_option): Update to new hook interface.
8745         * config/v850/v850.c: Include opts.h.
8746         (v850_handle_option): Update to new hook interface.
8747
8748 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8749
8750         * gcc.c (driver_unknown_option_callback): Only permit and save
8751         unknown -Wno- options.
8752         (driver_wrong_lang_callback): Save options directly instead of via
8753         driver_unknown_option_callback.
8754
8755 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8756
8757         * combine.c (simplify_set): Try harder to find the best CC mode when
8758         simplifying a nested COMPARE on the RHS.
8759
8760 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8761
8762         * config/alpha/gnu.h: Remove.
8763         * config/arc: Remove directory.
8764         * config/arm/netbsd.h: Remove.
8765         * config/arm/t-pe: Remove.
8766         * config/crx: Remove directory.
8767         * config/i386/netbsd.h: Remove.
8768         * config/m68hc11: Remove directory.
8769         * config/m68k/uclinux-oldabi.h: Remove.
8770         * config/mcore/mcore-pe.h: Remove.
8771         * config/mcore/t-mcore-pe: Remove.
8772         * config/netbsd-aout.h: Remove.
8773         * config/rs6000/gnu.h: Remove.
8774         * config/sh/sh-symbian.h: Remove.
8775         * config/sh/symbian-base.c: Remove.
8776         * config/sh/symbian-c.c: Remove.
8777         * config/sh/symbian-cxx.c: Remove.
8778         * config/sh/symbian-post.h: Remove.
8779         * config/sh/symbian-pre.h: Remove.
8780         * config/sh/t-symbian: Remove.
8781         * config/svr3.h: Remove.
8782         * config/vax/netbsd.h: Remove.
8783         * config.build: Don't handle i[34567]86-*-pe.
8784         * config.gcc: Remove handling of deprecations for most deprecated
8785         targets.
8786         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8787         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8788         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8789         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8790         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8791         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8792         Remove cases.
8793         * config.host: Don't handle i[34567]86-*-pe.
8794         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8795         (ASM_SPEC32): Don't handle -mcall-gnu.
8796         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8797         -mcall-gnu.
8798         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8799         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8800         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8801         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8802         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8803         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8804         conditional on SYMBIAN.
8805         * configure.ac: Don't handle powerpc*-*-gnu*.
8806         * configure: Regenerate.
8807         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8808         * doc/install-old.texi (m6811, m6812): Don't mention.
8809         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8810         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8811         (m68k-uclinuxoldabi): Don't mention.
8812         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8813         Remove.
8814         (-mcall-gnu): Remove.
8815         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8816         families): Remove constraint documentation.
8817
8818 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8819
8820         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8821         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8822         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8823
8824 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8825
8826         PR target/48226
8827         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8828         vector when peeking at the next token for vector, don't expand the
8829         keywords.
8830
8831 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8832
8833         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8834         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8835         * config/avr/avr.c (init_cumulative_args)
8836         (avr_function_arg_advance): Use it.
8837         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8838         sibcall epilogues.
8839         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8840         (avr_function_ok_for_sibcall): ...this new function.
8841         (avr_lookup_function_attribute1): New static Function.
8842         (avr_naked_function_p, interrupt_function_p)
8843         (signal_function_p, avr_OS_task_function_p)
8844         (avr_OS_main_function_p): Use it.
8845         * config/avr/avr.md ("sibcall", "sibcall_value")
8846         ("sibcall_epilogue"): New expander.
8847         ("*call_insn", "*call_value_insn"): New insn.
8848         ("call_insn", "call_value_insn"): Remove
8849         ("call", "call_value", "epilogue"): Change expander to handle
8850         sibling calls.
8851
8852 2011-03-21  Nick Clifton  <nickc@redhat.com>
8853
8854         * doc/invoke.texi (Overall Options): Move closing brace to end of
8855         options list.
8856         (Optimization Options): Add missing @gol.
8857         (Directory Options): Likewise.
8858         (i386 and x86-64 Options): Likewise.
8859         (RS6000 and PowerPC Options): Likewise.
8860         (i386 and x86-64 Windows Options): Likewise.
8861         (V850 Options): Add text missing from descriptions.
8862
8863 2011-03-22  Richard Henderson  <rth@redhat.com>
8864
8865         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8866         (avr_incoming_return_addr_rtx): New.
8867         (emit_push_byte): New.
8868         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8869         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8870         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8871         (emit_pop_byte): New.
8872         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8873         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8874         (INCOMING_RETURN_ADDR_RTX): New.
8875         (INCOMING_FRAME_SP_OFFSET): New.
8876         (ARG_POINTER_CFA_OFFSET): New.
8877         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8878         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8879         (pophi): Remove.
8880
8881         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8882
8883 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8884
8885         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8886         (FUNCTION_ARG_ADVANCE): Likewise.
8887         * tm.texi.in: Change references to them to hook references.
8888         * tm.texi: Regenerate.
8889         * targhooks.c (default_function_arg): Eliminate check for target
8890         macro.
8891         (default_function_incoming_arg): Likewise.
8892         (default_function_arg_advance): Likewise.
8893         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8894         (function_arg_advance): Likewise.
8895         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8896
8897 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8898
8899         * tree.c (build_call_1): New function.
8900         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8901
8902 2011-03-22  Richard Guenther  <rguenther@suse.de>
8903
8904         PR tree-optimization/48228
8905         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8906         for single-arg PHIs.
8907
8908 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8909
8910         PR rtl-optimization/48143
8911         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8912         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8913         sse2_cvtps2pd): Likewise.
8914
8915 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8916
8917         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8918
8919 2011-03-22  Richard Guenther  <rguenther@suse.de>
8920
8921         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8922         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8923         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8924         and REALIGN_LOAD_EXPR.
8925         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8926         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8927         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8928         DOT_PROD_EXPR case ...
8929         (expand_expr_real_2): ... here.
8930         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8931         and REALIGN_LOAD_EXPR.
8932         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8933         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8934         (vect_create_epilog_for_reduction): Likewise.
8935         (vectorizable_reduction): Likewise.
8936         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8937         * tree-vect-stmts.c (vectorizable_load): Likewise.
8938
8939 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8940
8941         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8942
8943 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8944
8945         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8946         handling for PLTOFF/GOTOFF.
8947
8948 2011-03-22  Nick Clifton  <nickc@redhat.com>
8949
8950         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8951         trailing backslash from the end of the macro definition.
8952
8953 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8954
8955         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8956         and PLT unspecs.
8957
8958 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8959
8960         * expr.h (prepare_operand): Move to...
8961         * optabs.h (prepare_operand): ...here and change the insn code
8962         parameter from "int" to "enum insn_code".
8963         (insn_operand_matches): Declare.
8964         * expr.c (init_expr_target): Use insn_operand_matches.
8965         (compress_float_constant): Likewise.
8966         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8967         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8968         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8969         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8970         Likewise.
8971         (gen_cond_trap): Likewise.
8972         (prepare_operand): Likewise.  Change icode to an insn_code.
8973         (insn_operand_matches): New function.
8974         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8975         * reload1.c (gen_reload): Likewise.
8976         * targhooks.c (default_secondary_reload): Likewise.
8977
8978 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8979
8980         * config/alpha/alpha.md (unspec): New define_c_enum.
8981         (unspecv): Ditto.
8982
8983 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8984
8985         PR debug/48214
8986         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8987         between a call and its CALL_ARG_LOCATION note.
8988
8989 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8990
8991         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8992
8993 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8994
8995         PR c/42544
8996         PR c/48197
8997         * c-common.c (shorten_compare): If primopN is first sign-extended
8998         to opN and then zero-extended to result type, set primopN to opN.
8999
9000 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9001
9002         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9003         for barrier handlers.
9004
9005 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9006
9007         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9008         UNSPEC constants to be in the unspec enumeration, and redefine
9009         all UNSPECV constants to be in the unspecv enumeration, so that
9010         dumps print which unspec/unspec_volatile this is.
9011         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9012         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9013         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9014         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9015         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9016
9017         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9018         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9019         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9020         * config/rs6000/sync.md (isync, lwsync): Ditto.
9021
9022 2011-03-21  Richard Guenther  <rguenther@suse.de>
9023
9024         * params.def (lto-min-partition): Fix typo.
9025
9026 2011-03-21  Richard Guenther  <rguenther@suse.de>
9027
9028         PR c/47939
9029         * c-decl.c (grokdeclarator): Drop to the main variant only
9030         for array types.  Drop flag_gen_aux_info check.
9031
9032 2011-03-21  Richard Guenther  <rguenther@suse.de>
9033
9034         PR translation/47911
9035         * params.def (lto-partitions): Fix typo.
9036         (lto-min-partition): Fix wording.
9037
9038 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9039
9040         * config/rs6000/t-freebsd: Remove duplication from file.
9041
9042 2011-03-21  Richard Guenther  <rguenther@suse.de>
9043
9044         PR middle-end/47661
9045         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9046
9047 2011-03-21  Richard Guenther  <rguenther@suse.de>
9048
9049         PR lto/48210
9050         * params.def (lto-partitions): Require at least 1 partition.
9051
9052 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9053
9054         * gthr-solaris.h: Remove.
9055         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9056         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9057         (LIB_SPEC): Likewise.
9058         * config/sol2.opt (threads): Remove.
9059         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9060         (sparc*-*-solaris2*): Likewise.
9061         * configure.ac (enable_threads): Enable solaris support.
9062         * configure: Regenerate.
9063         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9064         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9065         solaris.
9066
9067 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9068
9069         * config.gcc: Obsolete *-*-solaris2.8*.
9070         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9071
9072 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9073
9074         PR bootstrap/48135
9075         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9076         reference.  Solaris 8 perl works.
9077
9078 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9079
9080         PR bootstrap/48135
9081         * doc/install.texi (Prerequisites): Move jar etc. up.
9082         Explain support library version requirements.
9083
9084 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9085
9086         PR bootstrap/48135
9087         * doc/install.texi (Prerequisites): Move Perl to build
9088         requirements.  Always necessary on Solaris 2 with Sun ld.
9089
9090 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9091
9092         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9093         binutils 2.21.
9094         (Specific, i?86-*-solaris2.[89]): Likewise.
9095         (Specific, i?86-*-solaris2.10): Likewise.
9096         (Specific, mips-sgi-irix6): Likewise.
9097         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9098         Update for binutils 2.21.
9099
9100 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9101
9102         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9103         Allow -fuse-linker-plugin for non-default plugin linker.
9104         * configure: Regenerate.
9105
9106 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9107
9108         PR bootstrap/48167
9109         * gengtype.c (files_rules): Added rule for cp/parser.h.
9110
9111 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9112
9113         PR target/48213
9114         * config/s390/s390.c (s390_delegitimize_address): Don't call
9115         lowpart_subreg if orig_x has BLKmode.
9116
9117 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9118
9119         PR target/12171
9120         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9121         * tree.h (attribute_spec): Add new member affects_type_identity.
9122         * attribs.c (empty_attribute_table): Adjust attribute_spec
9123         initializers.
9124         * config/alpha/alpha.c: Likewise.
9125         * config/arc/arc.c: Likewise.
9126         * config/arm/arm.c: Likewise.
9127         * config/avr/avr.c: Likewise.
9128         * config/bfin/bfin.c: Likewise.
9129         * config/crx/crx.c: Likewise.
9130         * config/darwin.h: Likewise.
9131         * config/h8300/h8300.c: Likewise.
9132         * config/i386/cygming.h: Likewise.
9133         * config/i386/i386.c: Likewise.
9134         * config/ia64/ia64.c: Likewise.
9135         * config/m32c/m32c.c: Likewise.
9136         * config/m32r/m32r.c: Likewise.
9137         * config/m68hc11/m68hc11.c: Likewise.
9138         * config/m68k/m68k.c: Likewise.
9139         * config/mcore/mcore.c: Likewise.
9140         * config/mep/mep.c: Likewise.
9141         * config/microblaze/microblaze.c: Likewise.
9142         * config/mips/mips.c: Likewise.
9143         * config/rs6000/rs6000.c: Likewise.
9144         * config/rx/rx.c: Likewise.
9145         * config/sh/sh.c: Likewise.
9146         * config/sol2.h: Likewise.
9147         * config/sparc/sparc.c: Likewise.
9148         * config/spu/spu.c: Likewise.
9149         * config/stormy16/stormy16.c: Likewise.
9150         * config/v850/v850.c: Likewise.
9151
9152 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9153
9154         * simplify-rtx.c (simplify_binary_operation_1): Handle
9155         (xor (and A B) C) case when B and C are both constants.
9156
9157 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9158
9159         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9160
9161 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9162
9163         PR bootstrap/48168
9164         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9165
9166 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9167
9168         PR rtl-optimization/48156
9169         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9170         assume df and df_lr are not NULL.
9171
9172 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9173
9174         PR debug/48023
9175         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9176         between a call and its CALL_ARG_LOCATION note.
9177
9178 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9179
9180         PR debug/48178
9181         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9182         between a call and its corresponding CALL_ARG_LOCATION note.
9183
9184 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9185
9186         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9187         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9188         * haifa-sched.c (setup_ref_regs): Ditto.
9189         * caller-save.c (add_used_regs_1): Ditto.
9190         * dse.c (look_for_hardregs): Ditto.
9191         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9192         * sched-rgn.c (check_live_1): Ditto.
9193
9194 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9195
9196         * c-decl.c (diagnose_mismatched_decls): Give an error for
9197         redefining a typedef with variably modified type.
9198
9199 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9200
9201         * c-decl.c (grokfield): Don't allow typedefs for structures or
9202         unions with no tag by default.
9203         * doc/extend.texi (Unnamed Fields): Update.
9204
9205 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9206
9207         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9208         Rewrite using indirect functions.
9209         (lwp_slwpcb): Ditto.
9210         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9211         (avx_vinsertf128<mode>): Ditto.
9212
9213 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9214
9215         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9216         unspecs.
9217
9218 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9219
9220         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9221         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9222
9223 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9224
9225         PR rtl-optimization/48170
9226         * gcse.c (hoist_code): Remove bogus asserts.
9227
9228 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9229
9230         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9231         computation for prologue/epilogue.
9232
9233 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9234
9235         * Makefile.in (check-consistency): Remove.
9236
9237 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9238
9239         PR debug/48176
9240         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9241         arange_table_in_use is 0, but either text_section_used or
9242         cold_text_section_used is true.  Don't call it if
9243         !info_section_emitted.
9244
9245 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9246
9247         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9248         FUNCTION_VALUE_REGNO_P): Remove.
9249         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9250         Remove.
9251         * config/avr/avr.c (avr_ret_register): Make static inline.
9252         (avr_function_value_regno_p): New function.
9253         (avr_libcall_value): Make static. Add 'func' argument.
9254         (avr_function_value): Make static. Rename 'func' argument to
9255         'fn_decl_or_type', forward it to avr_libcall_value. Call
9256         avr_ret_register function instead of RET_REGISTER macro.
9257         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9258
9259 2011-03-18  Jason Merrill  <jason@redhat.com>
9260
9261         PR c++/23372
9262         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9263
9264 2011-03-18  Richard Guenther  <rguenther@suse.de>
9265
9266         * doc/install.texi (--enable-gold): Remove.
9267         (--with-plugin-ld): Document.
9268         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9269
9270 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9271
9272         PR middle-end/47790
9273         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9274         again after expansion changes.
9275
9276 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9277
9278         * combine.c (try_combine): Do simplification only call of
9279         subst() on i2 even when i1 is present. Update comments.
9280
9281 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9282
9283         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9284         and UNSPEC_PCREL_SYMOFF.
9285
9286 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9287
9288         * config/s390/s390.md: Use define_c_enum for the unspec constant
9289         definitions.
9290
9291 2011-03-18  Richard Henderson  <rth@redhat.com>
9292             Jakub Jelinek  <jakub@redhat.com>
9293
9294         PR bootstrap/48161
9295         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9296         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9297
9298 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9299
9300         PR middle-end/47725
9301         * combine.c (cant_combine_insn_p): Don't check zero/sign
9302         extended hard registers.
9303
9304 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9305
9306         PR middle-end/47725
9307         * combine.c (cant_combine_insn_p): Check zero/sign extended
9308         hard registers.
9309
9310 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9311
9312         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9313         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9314         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9315         Change return type to bool.
9316         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9317
9318 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9319
9320         PR debug/48163
9321         * var-tracking.c (prepare_call_arguments): If CALL target
9322         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9323         pc instead of looking it up using cselib_lookup and use
9324         Pmode for it if x has VOIDmode.
9325         * dwarf2out.c (gen_subprogram_die): If also both first and
9326         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9327
9328         PR debug/48163
9329         * function.c (assign_parms): For data.passed_pointer parms
9330         use MEM of data.entry_parm instead of data.entry_parm itself
9331         as DECL_INCOMING_RTL.
9332         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9333         also when passed and declared mode is the same, DECL_RTL
9334         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9335         a MEM too.
9336
9337 2011-03-16  Jeff Law  <law@redhat.com>
9338
9339         PR rtl-optimization/37273
9340         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9341         handle them like argument loads from stack slots.  Do not double
9342         count memory for memory constants and argument loads from stack slots.
9343
9344 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9345
9346         PR debug/48160
9347         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9348
9349 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9350
9351         PR target/48171
9352         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9353
9354 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9355
9356         PR bootstrap/48153
9357         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9358         if dwarf_strict.
9359         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9360         Clear call_arg_locations and call_arg_loc_last always.
9361
9362         PR middle-end/48152
9363         * var-tracking.c (prepare_call_arguments): If argument needs to be
9364         passed by reference, adjust argtype and mode.
9365
9366 2011-03-17  Richard Guenther  <rguenther@suse.de>
9367
9368         PR middle-end/48134
9369         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9370         a value make sure to fold the statement.
9371
9372 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9373
9374         PR target/43872
9375         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9376         return condition with !cfun->calls_alloca.
9377
9378 2011-03-17  Richard Guenther  <rguenther@suse.de>
9379
9380         PR bootstrap/48148
9381         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9382         origin for decls in other ltrans units.
9383         (input_varpool_node): Likewise.
9384
9385 2011-03-17  Richard Guenther  <rguenther@suse.de>
9386
9387         PR middle-end/48165
9388         * tree-object-size.c (compute_object_offset): Properly return
9389         the offset operand of MEM_REFs as sizetype.
9390
9391 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9392
9393         PR rtl-optimization/48141
9394         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9395         * dse.c: Include params.h.
9396         (active_local_stores_len): New variable.
9397         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9398         to NULL.
9399         (record_store, check_mem_read_rtx): Decrease it when removing
9400         from the chain.
9401         (scan_insn): Likewise.  Increase it when adding to chain, if it
9402         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9403         set active_local_stores to NULL before the addition.
9404         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9405
9406         PR rtl-optimization/48141
9407         * dse.c (record_store): If no positions are needed in an insn
9408         that cannot be deleted, at least unchain it from active_local_stores.
9409
9410 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9411
9412         PR debug/47510
9413         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9414         (lookup_type_die_strip_naming_typedef): ... here.
9415         (get_context_die): Use it.
9416         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9417         the anonymous struct named by the naming typedef.
9418
9419 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9420
9421         PR target/48154
9422         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9423         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9424
9425 2011-03-16  Jeff Law  <law@redhat.com>
9426
9427         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9428         check for operands of conditional.  Allow type to be a pointer.
9429
9430 2011-03-16  Richard Guenther  <rguenther@suse.de>
9431
9432         PR tree-optimization/48149
9433         * fold-const.c (fold_binary_loc): Fold
9434         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9435
9436 2011-03-16  Richard Guenther  <rguenther@suse.de>
9437
9438         PR tree-optimization/26134
9439         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9440         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9441         (non_rewritable_mem_ref_base): Handle complex type component
9442         accesses, constrain offsets for vector and complex extracts
9443         more properly.
9444
9445 2011-03-16  Richard Guenther  <rguenther@suse.de>
9446
9447         PR tree-optimization/48146
9448         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9449         operands avoiding the need for renaming.
9450
9451 2011-03-16  Richard Guenther  <rguenther@suse.de>
9452
9453         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9454         constant folding.  Move MEM_REF canonicalization first.
9455         Rely on fold_const_aggregate_ref for initializer folding.
9456         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9457
9458 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9459
9460         PR middle-end/48136
9461         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9462         arg0/arg1 or their arguments are always fold converted to matching
9463         types.
9464
9465         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9466         to nargs.
9467
9468 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9469
9470         PR lto/46944
9471         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9472         Handle in-tree gold.
9473         (ld_vers): Extract binutils version for gold.
9474         (gcc_cv_ld_hidden): Handle gold here.
9475         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9476         * configure: Regenerate.
9477         * config.in: Regenerate.
9478         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9479         -fuse-linker-plugin otherwise.
9480         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9481         (LINK_COMMAND_SPEC): Use it.
9482         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9483
9484 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9485
9486         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9487         * calls.c: Remove debug.h include.
9488         (emit_call_1): Don't call virtual_call_token debug hook.
9489         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9490         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9491         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9492         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9493         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9494         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9495         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9496         dwarf2out_virtual_call): Remove.
9497         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9498         copy_call_info and virtual_call hooks.
9499         (dwarf2out_init): Don't initialize vcall_insn_table,
9500         debug_dcall_section and debug_vcall_section.
9501         (prune_unused_types): Don't mark nodes from dcall_table.
9502         (dwarf2out_finish): Don't output dcall or vcall tables.
9503         * final.c (final_scan_insn): Don't call direct_call or
9504         virtual_call debug hooks.
9505         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9506         virtual_call_token, copy_call_info and virtual_call hooks.
9507         (debug_nothing_uid): Remove prototype.
9508         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9509         copy_call_info and virtual_call hooks.
9510         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9511         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9512         * debug.c (do_nothing_debug_hooks): Likewise.
9513         (debug_nothing_uid): Remove.
9514         * doc/invoke.texi (-fenable-icf-debug): Remove.
9515         * common.opt (-fenable-icf-debug): Likewise.
9516
9517         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9518         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9519         call's MEM.  Handle functions returning aggregate through a hidden
9520         first pointer.  For virtual calls add clobbered pc to call arguments
9521         chain.
9522         * dwarf2out.c (gen_subprogram_die): Emit
9523         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9524         can't be emitted.
9525
9526         PR debug/45882
9527         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9528         * rtl.h (ENTRY_VALUE_EXP): Define.
9529         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9530         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9531         * print-rtl.c (print_rtx): Likewise.
9532         * gengtype.c (adjust_field_rtx_def): Likewise.
9533         * var-tracking.c (vt_add_function_parameter): Adjust
9534         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9535         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9536         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9537         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9538         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9539
9540         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9541         Call var_location debug hook even on CALL_INSNs.
9542         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9543         * rtl.def (ENTRY_VALUE): New.
9544         * dwarf2out.c: Include cfglayout.h.
9545         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9546         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9547         (struct call_arg_loc_node): New type.
9548         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9549         tail_call_site_count): New variables.
9550         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9551         DW_TAG_GNU_call_site_parameter.
9552         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9553         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9554         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9555         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9556         and DW_AT_GNU_all_source_call_sites.
9557         (mem_loc_descriptor): Handle ENTRY_VALUE.
9558         (add_src_coords_attributes): Don't add enything if
9559         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9560         (dwarf2out_abstract_function): Save and clear call_arg_location,
9561         call_site_count and tail_call_site_count around dwarf2out_decl call.
9562         (gen_call_site_die): New function.
9563         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9564         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9565         (dwarf2out_function_decl): Clear call_arg_locations,
9566         call_arg_loc_last, set call_site_count and tail_call_site_count
9567         to -1 and free block_map.
9568         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9569         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9570         followed by any real instructions.
9571         (dwarf2out_begin_function): Set call_site_count and
9572         tail_call_site_count to 0.
9573         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9574         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9575         attempt to force a DIE for it and worst case remove the attribute.
9576         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9577         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9578         the decl itself.
9579         * var-tracking.c: Include tm_p.h.
9580         (vt_stack_adjustments): For calls call note_register_arguments.
9581         (argument_reg_set): New variable.
9582         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9583         ensure the VALUE is resolved.
9584         (call_arguments): New variable.
9585         (prepare_call_arguments): New function.
9586         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9587         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9588         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9589         always use the best expression.
9590         (vt_expand_loc): Add ignore_cur_loc argument.
9591         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9592         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9593         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9594         note for all calls.
9595         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9596         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9597         argument.  Don't call cselib_preserve_only_values and
9598         cselib_reset_table.
9599         (note_register_arguments): New function.
9600         (vt_initialize): Compute argument_reg_set.  Call
9601         vt_add_function_parameters before processing basic blocks instead of
9602         afterwards.  For calls call prepare_call_arguments before calling
9603         cselib_process_insn.
9604         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9605         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9606         (var-tracking.o): Depend on $(TM_P_H).
9607         * cfglayout.h (insn_scope): New prototype.
9608         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9609         * cfglayout.c (insn_scope): No longer static.
9610         * insn-notes.def (CALL_ARG_LOCATION): New.
9611         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9612         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9613         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9614         nothing for DECL_EXTERNAL BLOCK_VARS.
9615
9616 2011-03-16  Alan Modra  <amodra@gmail.com>
9617
9618         PR target/45844
9619         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9620         create invalid offset address for vsx splat insn.
9621         * config/rs6000/predicates.md (splat_input_operand): New.
9622         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9623
9624 2011-03-15  Xinliang David Li  <davidxl@google.com>
9625
9626         PR c/47837
9627         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9628         (normalize_preds): New function.
9629         (is_use_properly_guarded): Normalize def predicates.
9630
9631 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9632
9633         PR target/46788
9634         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9635         in the output template.
9636
9637 2011-03-15  Richard Guenther  <rguenther@suse.de>
9638
9639         PR middle-end/47650
9640         * tree-pretty-print.c (dump_function_declaration): Properly
9641         dump unprototyped and varargs function types.
9642
9643 2011-03-15  Richard Guenther  <rguenther@suse.de>
9644
9645         PR tree-optimization/13954
9646         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9647         and friends.
9648
9649 2011-03-15  Richard Guenther  <rguenther@suse.de>
9650
9651         PR tree-optimization/48037
9652         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9653         selects into BIT_FIELD_REFs.
9654         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9655         vector select.
9656
9657 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9658
9659         PR tree-optimization/48129
9660         * builtins.c (fold_builtin_snprintf): Convert to type of
9661         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9662         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9663
9664 2011-03-15  Richard Guenther  <rguenther@suse.de>
9665
9666         PR tree-optimization/41490
9667         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9668         value but with VUSE.
9669         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9670         return statements.
9671         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9672         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9673         * tree-tailcall.c (find_tail_calls): Ignore returns.
9674
9675 2011-03-15  Richard Guenther  <rguenther@suse.de>
9676
9677         PR middle-end/48031
9678         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9679         or variable-indexed array accesses when in gimple form.
9680
9681 2011-03-15  Richard Guenther  <rguenther@suse.de>
9682
9683         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9684
9685 2011-03-15  Alan Modra  <amodra@gmail.com>
9686
9687         PR target/48032
9688         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9689         presume symbol_refs without a symbol_ref_decl are suitably
9690         aligned, nor other trees we may see here.  Handle anchor symbols.
9691         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9692         Check cmodel=medium addresses.  Adjust all calls.
9693         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9694         creating cmodel=medium optimized access to locals.
9695         * config/rs6000/constraints.md (R): Pass QImode to
9696         legitimate_constant_pool_address_p.
9697         * config/rs6000/predicates.md (input_operand): Pass mode to
9698         legitimate_constant_pool_address_p.
9699         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9700         Update prototype.
9701
9702 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9703
9704         PR target/48053
9705         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9706         64-bit constants being loaded into registers other than GPRs such
9707         as loading 0 into a VSX register.
9708
9709 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9710
9711         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9712
9713 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9714
9715         PR middle-end/47917
9716         * builtins.c (fold_builtin_snprintf): New function.
9717         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9718         (fold_builtin_4): Likewise.
9719
9720         PR middle-end/38878
9721         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9722         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9723         and C - X == X also strip nops from +/-/p+ operand.
9724         When optimizing -X == C, fold C to arg0's type.
9725
9726         PR debug/47946
9727         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9728         emit it as add_AT_int instead of add_AT_unsigned.
9729
9730 2011-03-14  Tom Tromey  <tromey@redhat.com>
9731
9732         * unwind-dw2.c: Include sys/sdt.h if it exists.
9733         (_Unwind_DebugHook): Use STAP_PROBE2.
9734         * config.in, configure: Rebuild.
9735         * configure.ac: Check for sys/sdt.h.
9736
9737 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9738
9739         * config/i386/i386.md (ROUND_FLOOR): New constant.
9740         (ROUND_CEIL): Ditto.
9741         (ROUND_TRUNC): Ditto.
9742         (ROUND_MXCSR): Ditto.
9743         (ROUND_NO_EXC): Ditto.
9744         (rint<mode>2): Use new defines instead of numerical constants.
9745         (floor<mode>2): Ditto.
9746         (ceil<mode>2): Ditto.
9747         (btrunc<mode>2): Ditto.
9748         * config/i386/i386-builtin-types.def: Define ROUND function type
9749         aliases.
9750         * config/i386/i386.c (enum ix86_builtins): Add
9751         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9752         (struct builtin_description): Add
9753         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9754         (ix86_expand_sse_round): New static function.
9755         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9756         function types.
9757         (ix86_builtin_vectorized_function): Handle
9758         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9759
9760 2011-03-14  Tom Tromey  <tromey@redhat.com>
9761
9762         * c-parser.c (c_parser_asm_string_literal): Clear
9763         warn_overlength_strings.
9764
9765 2011-03-14  Tom Tromey  <tromey@redhat.com>
9766
9767         * c-parser.c (disable_extension_diagnostics): Save
9768         warn_overlength_strings.
9769         (restore_extension_diagnostics): Restore warn_overlength_strings.
9770
9771 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9772
9773         * BASE-VER: Change to 4.7.0.
9774
9775 2011-03-14  Richard Guenther  <rguenther@suse.de>
9776
9777         PR middle-end/48098
9778         * tree.c (build_vector_from_val): Adjust assert to requirements
9779         and reality.
9780
9781 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9782
9783         PR bootstrap/48102
9784         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9785
9786 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9787
9788         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9789         terms of target_flags_explicit. Adjust copyright year.
9790
9791         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9792         * config/rs6000/t-freebsd: New file. Add override for
9793         LIB2FUNCS_EXTRA.
9794
9795 2011-03-13  Chris Demetriou  <cgd@google.com>
9796
9797         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9798         (-fno-diagnostics-show-option): this, to reflect current default.
9799         (-Werror=): Update text about -fno-diagnostics-show-option.
9800
9801 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9802
9803         PR target/48053
9804         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9805         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9806         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9807         mode is not V2DImode or V2DFmode.
9808         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9809         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9810         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9811         registers to 0.
9812         (movdi_internal64): Likewise.
9813
9814 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9815
9816         PR tree-optimization/47127
9817         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9818         parameter.
9819         (set_cloog_options): Same.
9820         (scop_to_clast): Same.
9821         (print_clast_stmt): Do not call cloog_state_malloc and
9822         cloog_state_free.
9823         (print_generated_program): Same.
9824         (gloog): Same.
9825         * graphite-clast-to-gimple.h (cloog_state): Declared.
9826         (scop_to_clast): Adjust declaration.
9827         * graphite.c (cloog_state): Defined here.
9828         (graphite_initialize): Call cloog_state_malloc.
9829         (graphite_finalize): Call cloog_state_free.
9830
9831 2011-03-11  Jason Merrill  <jason@redhat.com>
9832
9833         * attribs.c (lookup_attribute_spec): Take const_tree.
9834         * tree.h: Adjust.
9835
9836 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9837
9838         * config/sparc/sparc.c (sparc_option_override): Use
9839         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9840
9841 2011-03-11  Richard Guenther  <rguenther@suse.de>
9842
9843         PR tree-optimization/48067
9844         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9845         multiplication result will be only used once on the target
9846         stmt.
9847
9848 2011-03-11  Richard Guenther  <rguenther@suse.de>
9849
9850         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9851
9852 2011-03-11  Richard Guenther  <rguenther@suse.de>
9853
9854         PR lto/48073
9855         * tree.c (find_decls_types_r): Do not walk types only reachable
9856         from IDENTIFIER_NODEs.
9857
9858 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9859
9860         PR middle-end/48044
9861         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9862         all vnode->force_output nodes as needed.
9863
9864 2011-03-11  Jason Merrill  <jason@redhat.com>
9865
9866         PR c++/48069
9867         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9868         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9869
9870 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9871
9872         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9873         cgraph_node.
9874
9875 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9876
9877         PR tree-optimization/48063
9878         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9879         inline functions called once if !tree_can_inline_p (node->callers).
9880
9881 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9882
9883         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9884         extra_objs.
9885         * config/score/score3.c: Delete.
9886         * config/score/score3.h: Delete.
9887         * config/score/mul-div.S: Delete.
9888         * config/score/sfp-machine.h: Add new file.
9889         * config/score/constraints.md: Add new file.
9890         * config/score/t-score-softfp: Add new file.
9891         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9892         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9893         (score7_extra_constraint): Delete.
9894         (score7_option_override): Remove unused code.
9895         * config/score/score.c: Remove score3 and score5 define and code.
9896         * config/score/score.h: Remove score3 and score5 define and code.
9897         * config/score/score.md: Remove score3 template and unusual insn.
9898         * config/score/score.opt: Remove score3 and score5 options.
9899
9900 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9901
9902         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9903         when _HPUX_SOURCE is defined.
9904         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9905
9906 2011-03-10  Jason Merrill  <jason@redhat.com>
9907
9908         PR c++/48029
9909         * stor-layout.c (layout_type): Don't set structural equality
9910         on arrays of incomplete type.
9911         * tree.c (type_hash_eq): Handle comparing them properly.
9912
9913 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9914
9915         PR debug/48043
9916         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9917         result mode matches original rtl mode.
9918
9919 2011-03-10  Nick Clifton  <nickc@redhat.com>
9920
9921         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9922         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9923
9924 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9925
9926         PR rtl-optimization/47866
9927         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9928         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9929         if target wasn't scalar.
9930         * function.c (assign_stack_temp_for_type): Assert that neither
9931         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9932         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9933         macro.
9934         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9935
9936 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9937
9938         * config/s390/s390-protos.h (s390_label_align): New prototype.
9939         * config/s390/s390.c (s390_label_align): New function.
9940         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9941
9942 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9943
9944         PR target/47755
9945         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9946         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9947         (output_vec_const_move): Ditto.
9948
9949 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9950
9951         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9952         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9953         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9954         Change 'rclass' argument and result type to reg_class_t.
9955         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9956
9957 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9958
9959         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9960         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9961         (TARGET_MEMORY_MOVE_COST): Define.
9962         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9963
9964 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9965
9966         PR debug/47881
9967         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9968         removed anything.
9969
9970         PR tree-optimization/48022
9971         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9972         for EQ/NE_EXPR.
9973
9974 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9975
9976         PR debug/47991
9977         * var-tracking.c (find_use_val): Return NULL for
9978         cui->sets && cui->store_p BLKmode MEMs.
9979
9980 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9981
9982         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9983         Remove.
9984         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9985         xstormy16_print_operand_address): Remove.
9986         * config/stormy16/stormy16.c (xstormy16_print_operand,
9987         xstormy16_print_operand_address): Make static.
9988         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9989
9990 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9991
9992         PR target/47862
9993         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9994         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9995         before definition.
9996
9997 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9998
9999         PR bootstrap/48000
10000         * cfgloopmanip.c (fix_bb_placements): Return immediately
10001         if FROM is BASE_LOOP's header.
10002
10003 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10004
10005         * gimplify.c (gimplify_function_tree): Fix building calls
10006         to __builtin_return_address.
10007
10008 2011-03-07  Alan Modra  <amodra@gmail.com>
10009
10010         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10011         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10012         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10013         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10014         return_mode args.
10015         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10016         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10017         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10018         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10019         * config/rs6000/rs6000.c
10020         (rs6000_elf_end_indicate_exec_stack): Rename to..
10021         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10022         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10023         (rs6000_file_start): ..here.
10024         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10025         file scope variables.
10026         (call_ABI_of_interest): New function.
10027         (init_cumulative_args): Set above vars when function return value
10028         is a float, vector, or small struct.
10029         (rs6000_function_arg_advance_1): Likewise for function args.
10030         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10031         references float args.
10032
10033 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10034
10035         * doc/cfg.texi: Remove "See" before @ref.
10036         * doc/invoke.texi: Likewise.
10037
10038 2011-03-05  Jason Merrill  <jason@redhat.com>
10039
10040         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10041
10042 2011-03-05  Anthony Green  <green@moxielogic.com>
10043
10044         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10045
10046 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10047
10048         PR rtl-optimization/47899
10049         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10050         to flow_loop_nested_p when moving the loop upward.
10051
10052 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10053
10054         PR target/47719
10055         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10056
10057 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10058
10059         PR tree-optimization/47967
10060         * ipa-cp.c (build_const_val): Return NULL instead of creating
10061         VIEW_CONVERT_EXPR for mismatching sizes.
10062         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10063         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10064         give up on versioning.
10065
10066 2011-03-05  Alan Modra  <amodra@gmail.com>
10067
10068         PR target/47986
10069         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10070         full cmodel medium/large lo_sum + high addresses.
10071
10072 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10073
10074         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10075         pool references in UNSPEC_LTREL_OFFSET.
10076
10077 2011-03-04  Jan Hubicka  <jh@suse.cz>
10078
10079         PR lto/47497
10080         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10081         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10082         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10083         Add node pointers.
10084         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10085         cgraph_add_thunk): Add node pointers.
10086         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10087         associated to right node.
10088         (input_node): Update use of cgraph_same_body_alias
10089         and cgraph_add_thunk.
10090
10091 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10092
10093         * config/i386/i386.opt (mprefer-avx128): New flag.
10094         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10095         modes when the flag -mprefer-avx128 is on.
10096
10097 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10098
10099         * dwarf2out.c (compare_loc_operands): Fix address handling.
10100
10101 2011-03-04  Alan Modra  <amodra@gmail.com>
10102
10103         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10104
10105 2011-03-04  Richard Guenther  <rguenther@suse.de>
10106
10107         PR middle-end/47968
10108         * expmed.c (extract_bit_field_1): Prefer vector modes that
10109         vec_extract patterns can handle.
10110
10111 2011-03-04  Richard Guenther  <rguenther@suse.de>
10112
10113         PR middle-end/47975
10114         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10115
10116 2011-03-04  Richard Henderson  <rth@redhat.com>
10117
10118         * explow.c (emit_stack_save): Remove 'after' parameter.
10119         (emit_stack_restore): Likewise.
10120         * expr.h: Update to match.
10121         * builtins.c, calls.c, stmt.c: Likewise.
10122         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10123         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10124         * function.c (expand_function_end): Insert the emit_stack_save
10125         sequence before parm_birth_insn instead of after.
10126
10127 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10128
10129         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10130         (ssse3_pmaddubsw128): Ditto.
10131         (ssse3_pmaddubsw): Ditto.
10132
10133 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10134
10135         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10136
10137 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10138
10139         PR c/47963
10140         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10141         on TYPE_SIZE_UNIT if it is a DECL.
10142
10143         PR debug/47283
10144         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10145         first operand is not is_gimple_mem_ref_addr, try to fold it.
10146         If the operand still isn't is_gimple_mem_ref_addr, clear
10147         MEM_EXPR on op0.
10148
10149 2011-03-03  Richard Guenther  <rguenther@suse.de>
10150
10151         PR middle-end/47283
10152         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10153         match comment.
10154         (refs_may_alias_p_1): For release branches return true if
10155         we are confused by our input.
10156
10157 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10158
10159         * config/s390/s390.c (s390_function_value): Rename to ...
10160         (s390_function_and_libcall_value): ... this.
10161         (s390_function_value): New function.
10162         (s390_libcall_value): New function.
10163         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10164         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10165         target macro definitions.
10166         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10167
10168 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10169
10170         * config/i386/freebsd64.h (CC1_SPEC): Define.
10171         * config/i386/linux64.h (CC1_SPEC): Define.
10172         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10173
10174 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10175
10176         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10177         Remove.
10178         * config/stormy16/stormy16.c: Include reload.h.
10179         (xstormy16_memory_move_cost): New function.
10180         (TARGET_MEMORY_MOVE_COST): Define.
10181
10182 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10183
10184         PR rtl-optimization/47925
10185         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10186         with side effects.  Remove the more-specific check for volatile asms.
10187
10188 2011-03-02  Alan Modra  <amodra@gmail.com>
10189
10190         PR target/47935
10191         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10192         toc relative addresses for valid offsets.
10193
10194 2011-03-01  Richard Guenther  <rguenther@suse.de>
10195
10196         PR tree-optimization/47890
10197         * tree-vect-loop.c (get_initial_def_for_induction): Set
10198         related stmt properly.
10199
10200 2011-03-01  Richard Guenther  <rguenther@suse.de>
10201
10202         PR lto/47924
10203         * lto-streamer.c (lto_record_common_node): Also register
10204         the canonical type.
10205
10206 2011-03-01  Richard Guenther  <rguenther@suse.de>
10207
10208         PR lto/46911
10209         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10210         Do not stream DECL_ABSTRACT_ORIGIN.
10211         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10212         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10213         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10214         Do not stream DECL_ABSTRACT_ORIGIN.
10215         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10216         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10217
10218 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10219
10220         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10221         FUNCTION_VALUE_REGNO_P): Remove.
10222         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10223         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10224         Add 'outgoing' argument.
10225         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10226         function.
10227         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10228         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10229
10230 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10231
10232         PR debug/28047
10233         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10234         (lookup_filename): Likewise.
10235         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10236
10237 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10238             Jakub Jelinek  <jakub@redhat.com>
10239
10240         PR middle-end/47893
10241         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10242         (assign_stack_local_1): Change last argument type to int.
10243         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10244         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10245         don't record padding space into frame_space_list nor use those areas.
10246         (assign_stack_local): Adjust caller.
10247         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10248         of assign_stack_local, pass 0 as last argument.
10249         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10250         callers.
10251
10252 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10253
10254         PR debug/47283
10255         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10256         Use target address_mode and pointer_mode hooks instead of hardcoded
10257         Pmode and ptr_mode.  Handle some simple cases of extending if
10258         POINTERS_EXTEND_UNSIGNED < 0.
10259         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10260         Call convert_debug_memory_address.
10261         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10262         convert_debug_memory_address.
10263
10264         PR middle-end/46790
10265         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10266         * configure: Regenerated.
10267         * config.in: Regenerated.
10268         * varasm.c (default_function_section): Return NULL
10269         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10270
10271 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10272
10273         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10274         the description to match the printed values.
10275
10276 2011-02-28  Richard Guenther  <rguenther@suse.de>
10277
10278         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10279         of the copied scope tree.
10280
10281 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10282
10283         * doc/extend.texi (Function Attributes): Avoid deeply (and
10284         wrongly) nested tables.
10285
10286 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10287
10288         PR middle-end/47903
10289         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10290         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10291         r isn't op0 nor op1.
10292
10293 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10294
10295         * config/avr/avr.md: Remove magic comment for emacs.
10296
10297 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10298
10299         PR target/45261
10300         * config/avr/avr.c (avr_option_override): Use error on bad options.
10301         (avr_help): New function.
10302         (TARGET_HELP): Define.
10303
10304 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10305
10306         PR target/42240
10307         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10308         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10309
10310 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10311
10312         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10313         (ARM Options): Ditto.
10314         (i386 and x86-64 Options): Ditto.
10315         (RX Options): Ditto.
10316         (SPARC Options): Ditto.
10317
10318 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10319
10320         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10321         FreeBSD 6 and later.  Generally use cpu generic.
10322
10323 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10324
10325         * doc/cpp.texi: Update copyright years.
10326
10327 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10328
10329         PR target/46898
10330         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10331
10332 2011-02-25  Jon Beniston  <jon@beniston.com>
10333
10334         PR target/46898
10335         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10336         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10337         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10338         (lm32_block_move_inline): Add type cast to remove warning.
10339         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10340         (gen_int_relational): Move declarations to start of function.
10341
10342 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10343
10344         PR tree-optimization/45470
10345         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10346         can throw internally only.
10347         * tree-vect-stmts.c (vectorizable_call): Likewise.
10348
10349 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10350
10351         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10352         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10353         * config/stormy16/stormy16-protos.h
10354         (xstormy16_preferred_reload_class): Remove.
10355         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10356         static. Change 'rclass' argument and return type to reg_class_t.
10357         (TARGET_PREFERRED_RELOAD_CLASS,
10358         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10359
10360 2011-02-24  Richard Guenther  <rguenther@suse.de>
10361
10362         * lto-streamer-in.c (input_bb): Do not find referenced vars
10363         in debug statements.
10364
10365 2011-02-23  Jason Merrill  <jason@redhat.com>
10366
10367         * common.opt (fabi-version): Document v5 and v6.
10368
10369 2011-02-23  Richard Guenther  <rguenther@suse.de>
10370
10371         PR tree-optimization/47849
10372         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10373
10374 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10375
10376         * opts-common.c (decode_cmdline_option): Print empty string
10377         argument as "" in decoded->orig_option_with_args_text.
10378         * gcc.c (execute): Print empty string argument as ""
10379         in the verbose output.
10380         (do_spec_1): Keep empty string argument.
10381
10382 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10383
10384         * config.gcc: Declare score-* and crx-* obsolete.
10385
10386 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10387
10388         PR rtl-optimization/47763
10389         * web.c (web_main): Ignore naked clobber when replacing register.
10390
10391 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10392
10393         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10394         Remove.
10395
10396 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10397
10398         PR doc/47848
10399         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10400
10401 2011-02-22  Mike Stump  <mikestump@comcast.net>
10402
10403         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10404         assembler.
10405         * configure: Regenerate.
10406
10407 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10408
10409         PR rtl-optimization/46002
10410         * ira-color.c (update_copy_costs): Change class intersection
10411         test to reg_class_contents[] test of 'hard_regno'.
10412
10413 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10414
10415         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10416         than Driver option.
10417         * config/hpux11.opt (mt): Likewise.
10418         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10419         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10420         * config/vax/elf.opt (mno-asm-pic): Likewise.
10421         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10422
10423 2011-02-21  Mike Stump  <mikestump@comcast.net>
10424
10425         PR target/47822
10426         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10427         tree so we can get save the type.
10428         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10429         for CFString instead of trying to use past the end of the builtins.
10430         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10431         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10432         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10433         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10434         Rename to darwin_builtin_cfstring.
10435         (darwin_init_cfstring_builtins): Return the built type.
10436
10437 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10438
10439         PR target/47840
10440         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10441         (_mm256_insert_epi64): Use _mm_insert_epi64.
10442
10443 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10444
10445         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10446         * config/stormy16/stormy16-protos.h
10447         (xstormy16_mode_dependent_address_p): Remove.
10448         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10449         Make static. Change return type to bool. Change argument type to
10450         const_rtx. Remove dead code.
10451         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10452
10453 2011-02-21  Richard Guenther  <rguenther@suse.de>
10454
10455         PR lto/47820
10456         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10457         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10458         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10459         TUs context.
10460         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10461         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10462
10463 2011-02-20  Richard Guenther  <rguenther@suse.de>
10464
10465         PR lto/47822
10466         * tree.c (free_lang_data_in_decl): Clean builtins from
10467         the TU decl BLOCK_VARS.
10468
10469 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10470
10471         PR debug/47620
10472         PR debug/47630
10473         * haifa-sched.c (fix_tick_ready): Skip tick computation
10474         for debug insns.
10475
10476 2011-02-19  Richard Guenther  <rguenther@suse.de>
10477
10478         PR lto/47647
10479         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10480         Remove lazy BLOCK_VARS streaming.
10481         (lto_input_ts_block_tree_pointers): Likewise.
10482         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10483
10484 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10485
10486         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10487
10488 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10489
10490         * config/i386/biarch32.h, config/i386/mach.h,
10491         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10492
10493 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10494
10495         PR target/47800
10496         * config/i386/i386.md (peephole2 for shift and plus): Use
10497         operands[1] original mode in the first insn.
10498
10499 2011-02-18  Mike Stump  <mikestump@comcast.net>
10500
10501         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10502
10503 2011-02-18  Jan Hubicka  <jh@suse.cz>
10504
10505         PR middle-end/47788
10506         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10507         to zero when the function is not inlinable at all.
10508
10509 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10510
10511         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10512         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10513         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10514         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10515         * config/pa/t-pa64: Likewise.
10516         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10517
10518 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10519
10520         PR driver/47787
10521         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10522
10523 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10524
10525         PR target/47792
10526         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10527
10528 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10529
10530         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10531         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10532         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10533         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10534         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10535         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10536         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10537         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10538         m32r_legitimate_address_p): New functions.
10539         * config/m32r/constraints.md (constraint "S"): Don't use
10540         STORE_PREINC_PREDEC_P.
10541         (constraint "U"): Don't use LOAD_POSTINC_P.
10542
10543 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10544
10545         PR rtl-optimization/46178
10546         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10547         compute ira_hard_regno_cover_class[].
10548
10549 2011-02-18  Richard Guenther  <rguenther@suse.de>
10550
10551         PR lto/47798
10552         * lto-streamer.h (lto_global_var_decls): Declare.
10553         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10554         statics for global var processing.
10555
10556 2011-02-18  Richard Guenther  <rguenther@suse.de>
10557
10558         PR tree-optimization/47737
10559         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10560         edge dominance check.
10561
10562 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10563
10564         PR debug/47780
10565         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10566         avoid invalid rtx sharing.
10567
10568 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10569
10570         * doc/cpp.texi (Obsolete Features): Add background on the
10571         origin of assertions.
10572
10573 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10574
10575         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10576         objc_abi == 2.
10577         * config/darwin.c (output_objc_section_asm_op): Added support for
10578         ABI v1 and v2.
10579         (is_objc_metadata): New.
10580         (darwin_objc2_section): New.
10581         (darwin_objc1_section): New.
10582         (machopic_select_section): Added support for ABI v1 and v2.
10583         (darwin_emit_objc_zeroed): New.
10584         (darwin_output_aligned_bss): Detect objc metadata and treat it
10585         appropriately.
10586         (darwin_asm_output_aligned_decl_common): Same.
10587         (darwin_asm_output_aligned_decl_local): Same.
10588         * config/darwin-sections.def: Updated for ABI v1 and v2.
10589         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10590         compiling Objective-C code for the NeXT runtime, default to using
10591         ABI version 0 for 32-bit, and version 2 for 64-bit.
10592
10593 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10594
10595         * common.opt (optimize_fast): New Variable.
10596         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10597         instead of local variable ofast.
10598
10599 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10600
10601         * doc/invoke.texi (fobjc-abi-version): Documented.
10602         (fobjc-nilcheck): Documented.
10603         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10604         version.
10605
10606 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10607
10608         PR driver/47390
10609         * common.opt (export-dynamic): New Driver option.
10610         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10611
10612 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10613
10614         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10615
10616 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10617             Jan Hubicka  <jh@suse.cz>
10618
10619         PR debug/47106
10620         PR debug/47402
10621         * cfgexpand.c (account_used_vars_for_block): Remove.
10622         (estimated_stack_frame_size): Use referenced vars.
10623         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10624         that were referenced in the original function.  Test src_fn
10625         rather than cfun.  Drop redundant get_var_ann.
10626         (setup_one_parameter): Drop redundant get_var_ann.
10627         (declare_return_variable): Likewise.
10628         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10629         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10630         * ipa-inline.c (compute_inline_parameters): Do not compute
10631         disregard_inline_limits here.
10632         (compute_inlinable_for_current, pass_inlinable): New.
10633         (pass_inline_parameters): Require PROP_referenced_vars.
10634         * cgraphunit.c (cgraph_process_new_functions): Don't run
10635         compute_inline_parameters explicitly unless function is in SSA form.
10636         (cgraph_analyze_function): Set .disregard_inline_limits.
10637         * tree-sra.c (convert_callers): Compute inliner parameters
10638         only for functions already in SSA form.
10639
10640 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10641
10642         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10643         -mlittle-endian-data.
10644
10645 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10646
10647         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10648         -mno-fpu, not -fpu and -no-fpu.
10649         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10650         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10651
10652 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10653
10654         PR target/43653
10655         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10656         input reload with PLUS RTX.
10657
10658 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10659
10660         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10661         of InverseVar(MDMX).
10662
10663 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10664
10665         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10666         --m4-340.
10667
10668 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10669
10670         * config/mn10300/mn10300.opt (mno-crt0): New.
10671
10672 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10673
10674         * config/m68k/uclinux.opt (static-libc): New Driver option.
10675
10676 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10677
10678         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10679
10680 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10681
10682         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10683         %{muser-extend-enabled}.
10684
10685 2011-02-16  Richard Guenther  <rguenther@suse.de>
10686
10687         PR tree-optimization/47738
10688         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10689         the TODO from tree_predictive_commoning.
10690
10691 2011-02-15  Jeff Law  <law@redhat.com>
10692
10693         Revert
10694         2011-01-25  Jeff Law  <law@redhat.com>
10695
10696         PR rtl-optimization/37273
10697         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10698         handle them like argument loads from stack slots.  Do not double
10699         count memory for memory constants and argument loads from stack slots.
10700
10701 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10702
10703         PR middle-end/47725
10704         * combine.c (cant_combine_insn_p): Revert the last change.
10705
10706 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10707
10708         PR target/47755
10709         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10710         mode for vector constants.  Remove code that checks for TImode.
10711
10712 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10713
10714         PR debug/47106
10715         PR debug/47402
10716         * cgraph.h (compute_inline_parameters): Return void.
10717         * ipa-inline.c (compute_inline_parameters): Adjust.
10718
10719 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10720
10721         PR debug/47106
10722         PR debug/47402
10723         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10724         rather than decl.
10725         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10726         * ipa-inline.c (compute_inline_parameters): Adjust.
10727
10728 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10729
10730         PR debug/47106
10731         PR debug/47402
10732         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10733         Adjust all users.  Pass FN to...
10734         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10735         fn argument.
10736         * ipa-struct-reorg.c: Adjust.
10737         * tree-dfa.c: Adjust.
10738         * tree-into-ssa.c: Adjust.
10739         * tree-sra.c: Adjust.
10740         * tree-ssa-alias.c: Adjust.
10741         * tree-ssa-live.c: Adjust.
10742         * tree-ssa.c: Adjust.
10743         * tree-ssanames.c: Adjust.
10744         * tree-tailcall.c: Adjust.
10745
10746 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10747
10748         PR debug/47106
10749         PR debug/47402
10750         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10751         Adjust all callers.
10752         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10753         * tree-flow-inline.h: Adjust.
10754         * gimple-pretty-print.c: Adjust.
10755         * tree-into-ssa.c: Adjust.
10756         * tree-ssa.c: Adjust.
10757         * cfgexpand.c: Adjust.
10758
10759 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10760
10761         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10762         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10763         (EXTRA_CONSTRAINT): Delete.
10764         * config/iq2000/constraints.md: New file.
10765         * config/iq2000/iq2000.md: Include it.
10766         (define_insn ""): Delete.
10767         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10768         unsupported constraint letters from patterns.
10769         (call_value, call_value_internal1): Likewise.
10770         (call_value_multiple_internal1): Likewise.
10771
10772 2011-02-15  Nick Clifton  <nickc@redhat.com>
10773
10774         * config/mn10300/mn10300.c: Include tm-constrs.h.
10775         (struct liw_data): New data structure describing an LIW candidate
10776         instruction.
10777         (extract_bundle): Use struct liw_data.  Allow small integer
10778         operands for some instructions.
10779         (check_liw_constraints): Use struct liw_data.  Remove swapped
10780         parameter.  Add comments describing the checks.  Fix bug when
10781         assigning the source of liw1 to the source of liw2.
10782         (liw_candidate): Delete.  Code moved into extract_bundle.
10783         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10784         before swapping.
10785         * config/mn10300/predicates.md (liw_operand): New predicate.
10786         Allows registers and small integer constants.
10787         * config/mn10300/constraints.md (O): New constraint.  Accetps
10788         integers in the range -8 to +7 inclusive.
10789         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10790         for moving a small integer into a register.  Give this alternative
10791         LIW attributes.
10792         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10793         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10794         using the J,K,L and M constraints,
10795         (liw): Remove SI mode on second operands to allow for HI and QI
10796         mode values.
10797         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10798         instruction.
10799
10800 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10801
10802         PR middle-end/47725
10803         * combine.c (cant_combine_insn_p): Check zero/sign extended
10804         hard registers.
10805
10806 2011-02-15  Richard Guenther  <rguenther@suse.de>
10807
10808         PR tree-optimization/47743
10809         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10810         for a non-type-compatible VN lookup bail out.
10811
10812 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10813
10814         * config/fr30/constraints.md: New file.
10815         * config/fr30/fr30.md: Include it.
10816         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10817         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10818         (EXTRA_CONSTRAINT): Delete.
10819
10820 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10821
10822         * config/frv/constraints.md: New file.
10823         * config/frv/predicates.md: Include it.
10824         * config/frv/frv.c (reg_class_from_letter): Delete.
10825         (frv_option_override): Don't initialize it.
10826         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10827         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10828         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10829         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10830         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10831         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10832         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10833         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10834         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10835         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10836         (REG_CLASS_FROM_CONSTRAINT): Delete.
10837
10838 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10839
10840         PR middle-end/47581
10841         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10842         if frame size is 0 in a leaf function.
10843
10844 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10845
10846         PR pch/14940
10847         * config/alpha/host-osf.c: New file.
10848         * config/alpha/x-osf: New file.
10849         * config.host (alpha*-dec-osf*): Use it.
10850
10851 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10852
10853         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10854         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10855         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10856         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10857         type to const_rtx.
10858         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10859
10860 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10861
10862         * config/stormy16/constraints.md: New file.
10863         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10864         Use satisfies_constraint_Q and satisfies_constraint_R.
10865         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10866         Delete.
10867         (xstormy16_legitiamte_address_p): Declare.
10868         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10869         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10870         (EXTRA_CONSTRAINT): Delete.
10871         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10872         Un-staticize.
10873         (xstormy16_extra_constraint_p): Delete.
10874
10875 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10876
10877         PR tree-optimization/46494
10878         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10879         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10880         (pass_rtl_loop_done): Add TODO_verify_flow.
10881         * fwprop.c (pass_rtl_fwprop): Likewise.
10882         * modulo-sched.c (pass_sms): Likewise.
10883         * tree-ssa-dom.c (pass_dominator): Likewise.
10884         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10885         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10886         (pass_tree_loop_done): Likewise.
10887         * tree-ssa-pre.c (execute_pre): Likewise.
10888         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10889         * tree-ssa-sink.c (pass_sink_code): Likewise.
10890         * tree-vrp.c (pass_vrp): Likewise.
10891
10892 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10893
10894         * config/v850/constraints.md: New file.
10895         * config/v850/v850.md: Include it.
10896         * config/v850/predicates.md (reg_or_0_operand): Use
10897         satisfies_constraint_G.
10898         (special_symbolref_operand): Use satisfies_constraint_K.
10899         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10900         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10901         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10902         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10903         (EXTRA_CONSTRAINT): Delete.
10904         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10905         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10906         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10907
10908 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10909
10910         PR target/47696
10911         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10912         description.
10913
10914 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10915
10916         * config/mcore/constraints.md: New file.
10917         * config/mcore/mcore.md: Include it.
10918         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10919         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10920         (REG_CLASS_FROM_LETTER): Delete.
10921         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10922         insn_const_int_ok_for_constraint.
10923         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10924         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10925         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10926         (EXTRA_CONSTRAINT): Delete.
10927
10928 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10929
10930         PR ada/41929
10931         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10932         (IS_SIGHANDLER): Define.
10933         (sparc64_is_sighandler): New function, split off from
10934         sparc64_fallback_frame_state.
10935         (sparc_is_sighandler): New function, split off from
10936         sparc_fallback_frame_state.
10937         (sparc64_fallback_frame_state): Merge with ...
10938         (sparc_fallback_frame_state): ... this into ...
10939         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10940         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10941         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10942         stack instead of hardcoded offsets.
10943
10944 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10945
10946         PR target/45808
10947         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10948
10949 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10950
10951         * configure: Regenerate.
10952
10953 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10954
10955         PR driver/45731
10956         * gcc.c (asm_options): Correct spec matching --target-help.
10957
10958 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10959
10960         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10961         to gimple call error.
10962
10963 2011-02-12  Mike Stump  <mikestump@comcast.net>
10964
10965         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10966         comments in backslash regions.
10967
10968 2011-02-12  Mike Stump  <mikestump@comcast.net>
10969             Jakub Jelinek  <jakub@redhat.com>
10970             Iain Sandoe  <iains@gcc.gnu.org>
10971
10972         PR target/47324
10973         * dwarf2out.c (output_cfa_loc): When required, apply the
10974         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10975         (output_loc_sequence): Likewise.
10976         (output_loc_operands_raw): Likewise.
10977         (output_loc_sequence_raw): Likewise.
10978         (output_cfa_loc): Likewise.
10979         (output_loc_list): Suppress register number adjustment when
10980         calling output_loc_sequence()
10981         (output_die): Likewise.
10982
10983 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10984
10985         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10986         Remove macros.
10987         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10988         xtensa_memory_move_cost): New functions.
10989         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10990
10991 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10992
10993         PR lto/47225
10994         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10995         in the current directory.
10996         * configure: Rebuilt.
10997
10998 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10999
11000         * config/darwin.c (darwin_override_options): Add a hunk missed
11001         from the commit of r168571.  Trim comment line lengths and
11002         correct indents of the preceding block.
11003
11004 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11005
11006         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11007         the switch.
11008
11009 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11010
11011         * common.opt (nostartfiles): New Driver option.
11012
11013 2011-02-11  Xinliang David Li  <davidxl@google.com>
11014
11015         PR tree-optimization/47707
11016         * tree-chrec.c (convert_affine_scev): Keep type precision.
11017
11018 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11019
11020         PR tree-optimization/47420
11021         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11022
11023 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11024
11025         PR rtl-optimization/47614
11026         * rtl.h (check_for_inc_dec): Declare.
11027         * dse.c (check_for_inc_dec): Externalize...
11028         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11029         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11030
11031 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11032
11033         PR driver/47678
11034         * gcc.c (main): Do not compile inputs if there were errors in
11035         option handling.
11036         * opts-common.c (read_cmdline_option): Check for wrong language
11037         after other error checks.
11038
11039 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11040
11041         * cgraph.c: Fix comment typos.
11042         * cgraph.h: Likewise.
11043         * cgraphunit.c: Likewise.
11044         * ipa-cp.c: Likewise.
11045         * ipa-inline.c: Likewise.
11046         * ipa-prop.c: Likewise.
11047         * ipa-pure-const.c: Likewise.
11048         * ipa-ref.c: Likewise.
11049         * ipa-reference.c: Likewise.
11050
11051 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11052
11053         PR debug/47684
11054         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11055
11056 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11057
11058         PR testsuite/47400
11059         * doc/sourcebuild.texi (Require Support): Document
11060         dg-require-ascii-locale.
11061
11062 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11063
11064         * doc/lto.texi (Write summary): Fix missing parentheses.
11065
11066 2011-02-10  DJ Delorie  <dj@redhat.com>
11067
11068         * config/m32c/m32c.c (m32c_option_override): Disable
11069         -fcombine-stack-adjustments until flag value tracking and compare
11070         optimization can be rewritten.
11071
11072 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11073
11074         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11075         PROCESSOR_POWER7.
11076         (PROCESSOR_DEFAULT64): Likewise.
11077
11078 2011-02-10  Richard Henderson  <rth@redhat.com>
11079
11080         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11081         change from 2011-02-03.
11082         * config/rx/rx.c (flags_from_code): Likewise.
11083         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11084         is valid, n/pz otherwise.
11085         (rx_select_cc_mode): Return CCmode if Y is not zero.
11086
11087 2011-02-10  Richard Guenther  <rguenther@suse.de>
11088
11089         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11090
11091 2011-02-10  Richard Guenther  <rguenther@suse.de>
11092
11093         PR tree-optimization/47677
11094         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11095
11096 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11097
11098         PR target/47665
11099         * combine.c (make_compound_operation): Only change shifts into
11100         multiplication for SCALAR_INT_MODE_P.
11101
11102 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11103
11104         PR testsuite/47622
11105         Revert
11106         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11107         PR debug/42631
11108         * web.c (entry_register): Don't clobber the number of the
11109         first uninitialized reference in used[].
11110
11111 2011-02-09  Richard Guenther  <rguenther@suse.de>
11112
11113         PR tree-optimization/47664
11114         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11115         all edges again.
11116
11117 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11118
11119         PR target/46481
11120         PR target/47032
11121         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11122         PROCESSOR_POWER7.
11123         (PROCESSOR_DEFAULT64): Same.
11124         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11125
11126 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11127
11128         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11129
11130 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11131
11132         PR middle-end/45505
11133         * tree-sra.c (struct access): New flags grp_scalar_read and
11134         grp_scalar_write.  Changed description of assignment read and write
11135         flags.
11136         (dump_access): Dump new flags, reorder all of them.
11137         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11138         to detect multiple scalar reads.
11139         (analyze_access_subtree): Use the new scalar read write flags instead
11140         of the old flags.  Adjusted comments.
11141
11142 2011-02-08  DJ Delorie  <dj@redhat.com>
11143
11144         PR target/47548
11145         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11146         patterns.
11147
11148 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * config/m68k/uclinux.opt: New.
11151         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11152
11153 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11154
11155         * config/cris/elf.opt (sim): New Driver option.
11156
11157 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11158
11159         * config/xtensa/elf.opt: New.
11160         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11161
11162 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11163
11164         * config/vax/elf.opt: New.
11165         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11166
11167 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11168
11169         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11170
11171 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11172
11173         * config/gnu-user.opt: New.
11174         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11175         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11176         *-*-uclinux*): Use gnu-user.opt.
11177
11178 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11179
11180         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11181         * config/i386/gnu.h (CPP_SPEC): Likewise.
11182
11183 2011-02-08  Ian Lance Taylor  <iant@google.com>
11184
11185         * common.opt (fcx-limited-range): Add SetByCombined flag.
11186         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11187         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11188         (fassociative-math, freciprocal-math): Likewise.
11189         (funsafe-math-optimizations): Likewise.
11190         * opth-gen.awk: Handle SetByCombined.
11191         * optc-gen.awk: Likewise.
11192         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11193         (set_unsafe_math_optimizations_flags): Likewise.
11194         * doc/options.texi (Option properties): Document SetByCombined.
11195
11196 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11197
11198         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11199         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11200         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11201         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11202         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11203
11204 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11205
11206         PR tree-optimization/46834
11207         PR tree-optimization/46994
11208         PR tree-optimization/46995
11209         * graphite-sese-to-poly.c (used_outside_reduction): New.
11210         (detect_commutative_reduction): Call used_outside_reduction.
11211         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11212         translate_scalar_reduction_to_array only when at least one
11213         loop-phi/close-phi tuple has been detected.
11214
11215 2011-02-08  Richard Guenther  <rguenther@suse.de>
11216
11217         PR middle-end/47639
11218         * tree-vect-generic.c (expand_vector_operations_1): Update
11219         stmts here ...
11220         (expand_vector_operations): ... not here.  Cleanup EH info
11221         and the CFG if required.
11222
11223 2011-02-08  Richard Guenther  <rguenther@suse.de>
11224
11225         PR tree-optimization/47641
11226         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11227         require type compatibility.
11228
11229 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11230
11231         * gimple-low.c (lower_function_body): Don't remove the location of
11232         the return statement here.
11233         (lower_gimple_return): Do it here instead but only if the return
11234         statement is actually used twice.
11235
11236 2011-02-08  Richard Guenther  <rguenther@suse.de>
11237
11238         PR tree-optimization/47632
11239         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11240         unused up_to_stmt parameter, return whether cfg-cleanup is
11241         necessary, remove EH info properly.
11242         (forward_propagate_into_gimple_cond): Adjust caller.
11243         (forward_propagate_into_cond): Likewise.
11244         (forward_propagate_comparison): Likewise.
11245         (tree_ssa_forward_propagate_single_use_vars): Make
11246         forward_propagate_comparison case similar to the two others.
11247
11248 2011-02-08  Nick Clifton  <nickc@redhat.com>
11249
11250         * config/mn10300/mn10300.opt (mliw): New command line option.
11251         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11252         (liw_bundling): New automaton.
11253         (liw): New attribute.
11254         (liw_op): New attribute.
11255         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11256         (movsi_internal): Add LIW attributes.
11257         (andsi3): Likewise.
11258         (iorsi3): Likewise.
11259         (xorsi3): Likewise.
11260         (addsi3): Separate register and immediate alternatives.
11261         Add LIW attributes.
11262         (subsi3): Likewise.
11263         (cmpsi): Likewise.
11264         (aslsi3): Likewise.
11265         (lshrsi3): Likewise.
11266         (ashrsi3): Likewise.
11267         (liw): New pattern.
11268         * config/mn10300/mn10300.c (liw_op_names): New
11269         (mn10300_print_operand): Handle 'W' operand descriptor.
11270         (extract_bundle): New function.
11271         (check_liw_constraints): New function.
11272         (liw_candidate): New function.
11273         (mn10300_bundle_liw): New function.
11274         (mn10300_reorg): New function.
11275         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11276         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11277         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11278         __LIW__ or __NO_LIW__.
11279         * doc/invoke.texi: Describe the -mliw command line option.
11280
11281 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11282
11283         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11284         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11285         pthread_mutex_unlock): Remove.
11286         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11287         * config/pa/t-pa64: Likewise.
11288         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11289         shared libc if not linking against libpthread.
11290         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11291
11292 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11293
11294         PR target/47558
11295         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11296         on 10.6 and later to ensure that we always use the unwinder from
11297         the system.  Only add -no_compact_unwind when tarteting darwin
11298         10.6 or later.
11299
11300 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11301
11302         PR target/46997
11303         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11304         (vec_interleave_lowv2sf): Ditto.
11305         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11306         (vec_extract_oddv2sf): Ditto.
11307
11308 2011-02-07  Mike Stump  <mikestump@comcast.net>
11309
11310         PR target/42333
11311         Add __ieee_divdc3 entry point.
11312         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11313         entry point.
11314         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11315         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11316         * config/darwin.c (darwin_rename_builtins): Add.
11317         * config/darwin-protos.h (darwin_rename_builtins): Add.
11318
11319 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11320
11321         PR target/47636
11322         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11323         for the condition.
11324
11325 2011-02-07  Mike Stump  <mikestump@comcast.net>
11326
11327         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11328
11329 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11330
11331         PR target/47534
11332         * config/avr/libgcc.S (exit): Move .endfunc
11333
11334 2011-02-07  Richard Guenther  <rguenther@suse.de>
11335
11336         PR tree-optimization/47615
11337         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11338         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11339         (run_scc_vn): Initialize it.
11340         (visit_reference_op_load): Use it.
11341         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11342
11343 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11344
11345         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11346         DImode trapping arithmetic libfuncs.
11347
11348 2011-02-07  Richard Guenther  <rguenther@suse.de>
11349
11350         PR tree-optimization/47621
11351         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11352         two duplicates ...
11353         (execute_update_addresses_taken): ... here.  Make it more
11354         conservative in what we accept.
11355
11356 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11357
11358         * config/sparc/freebsd.h (ASM_SPEC): Define.
11359         * config/sparc/vxworks.h (ASM_SPEC): Define.
11360
11361 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11362
11363         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11364
11365 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11366
11367         * doc/invoke.texi: Remove reference to compiler internals from
11368         user documentation.
11369
11370         * reg-notes.def: Remove REG_VALUE_PROFILE.
11371         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11372
11373 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR middle-end/47610
11376         * varasm.c (default_section_type_flags): If decl is NULL,
11377         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11378
11379 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11380
11381         PR debug/42631
11382         * web.c (entry_register): Don't clobber the number of the
11383         first uninitialized reference in used[].
11384
11385 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11386
11387         PR tree-optimization/46194
11388         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11389         (build_classic_dist_vector_1): Do not represent classic distance
11390         vectors when the access functions are variating in different loops.
11391
11392 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11393
11394         * config/mips/iris6.opt: New.
11395         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11396
11397 2011-02-04  Richard Henderson  <rth@redhat.com>
11398             Steve Ellcey  <sje@cup.hp.com>
11399
11400         PR target/46997
11401         * config/ia64/predicates.md (mux1_brcst_element): New.
11402         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11403         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11404         (ia64_unpack_sign): New.
11405         (ia64_expand_unpack): Rewrite using new routines.
11406         (ia64_expand_widen_sum): Ditto.
11407         (ia64_expand_dot_prod_v8qi): Ditto.
11408         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11409         routines, add endian check.
11410         (pmpy2_even): Rename from pmpy2_r, add endian check.
11411         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11412         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11413         (vec_widen_smult_hi_v4hi): Ditto.
11414         (vec_widen_umult_lo_v4hi): Ditto.
11415         (vec_widen_umult_hi_v4hi): Ditto.
11416         (mulv2si3): Change endian checks.
11417         (sdot_prodv4hi): Rewrite with new calls.
11418         (udot_prodv4hi): New.
11419         (vec_pack_ssat_v4hi): Add endian check.
11420         (vec_pack_usat_v4hi): Ditto.
11421         (vec_pack_ssat_v2si): Ditto.
11422         (max1_even): Rename from max1_r, add endian check.
11423         (max1_odd): Rename from max1_l, add endian check.
11424         (*mux1_rev): Format change.
11425         (*mux1_mix): Ditto.
11426         (*mux1_shuf): Ditto.
11427         (*mux1_alt): Ditto.
11428         (*mux1_brcst_v8qi): Use new predicate.
11429         (vec_extract_evenv8qi): Remove endian check.
11430         (vec_extract_oddv8qi): Ditto.
11431         (vec_interleave_lowv4hi): Format change.
11432         (vec_interleave_highv4hi): Ditto.
11433         (mix2_even): Rename from mix2_r, add endian check.
11434         (mix2_odd): Rename from mux2_l, add endian check.
11435         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11436         (vec_extract_evenodd_helper): Format change.
11437         (vec_extract_evenv4hi): Remove endian check.
11438         (vec_extract_oddv4hi): Remove endian check.
11439         (vec_interleave_lowv2si): Format change.
11440         (vec_interleave_highv2si): Format change.
11441         (vec_initv2si): Remove endian check.
11442         (vecinit_v2si): Add endian check.
11443         (reduc_splus_v2sf): Add endian check.
11444         (reduc_smax_v2sf): Ditto.
11445         (reduc_smin_v2sf): Ditto.
11446         (vec_initv2sf): Remove endian check.
11447         (fpack): Add endian check.
11448         (fswap): Add endian check.
11449         (vec_interleave_highv2sf): Add endian check.
11450         (vec_interleave_lowv2sf): Add endian check.
11451         (fmix_lr): Add endian check.
11452         (vec_setv2sf): Format change.
11453         (*vec_extractv2sf_0_be): Use shift to extract operand.
11454         (*vec_extractv2sf_1_be): New.
11455         (vec_pack_trunc_v4hi): Add endian check.
11456         (vec_pack_trunc_v2si): Format change.
11457
11458 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11459
11460         PR inline-asm/23200
11461         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11462         do bb, locus and block comparison and disallow loads if it is not set.
11463         (stmt_is_replaceable_p): New function.
11464         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11465         callers.
11466         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11467         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11468         SSA_NAME_DEF_STMT.
11469         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11470
11471 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11472
11473         * config/rs6000/xilinx.opt: New.
11474         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11475
11476 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11477
11478         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11479
11480 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11481
11482         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11483         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11484         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11485         secondary_reload_info, xtensa_secondary_reload): Remove.
11486         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11487         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11488         (xtensa_preferred_reload_class): Make static. Change return and
11489         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11490         Use CONST_DOUBLE_P predicate.
11491         (xtensa_preferred_output_reload_class): New function.
11492         (xtensa_secondary_reload): Make static.
11493
11494 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11497         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11498         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11499
11500 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11501
11502         PR middle-end/31490
11503         * output.h (SECTION_RELRO): Define.
11504         (SECTION_MACH_DEP): Adjust.
11505         (get_variable_section): New prototype.
11506         * varpool.c (varpool_finalize_named_section_flags): New function.
11507         (varpool_assemble_pending_decls): Call it.
11508         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11509         * cgraphunit.c (cgraph_output_in_order): Call
11510         varpool_finalize_named_section_flags.
11511         * varasm.c (get_section): Allow section flags conflicts between
11512         relro and read-only sections if the section hasn't been declared yet.
11513         Set SECTION_OVERRIDE after diagnosing section type conflict.
11514         (get_variable_section): No longer static.
11515         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11516         readonly sections that need relocations.
11517         (decl_readonly_section_1): New function.
11518         (decl_readonly_section): Use it.
11519
11520         Revert:
11521         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11522                     Steve Ellcey  <sje@cup.hp.com>
11523
11524         PR middle-end/31490
11525         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11526         if section attribute used.
11527
11528 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11529
11530         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11531         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11532         (darwin_init_sections): Remove assertion.
11533
11534 2011-02-03  Nick Clifton  <nickc@redhat.com>
11535
11536         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11537         lt and ge.
11538         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11539         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11540         instead of "n" and "pz".
11541         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11542         CC_FLAG_S.
11543
11544 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11545
11546         PR target/47312
11547         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11548         fma, expand FMA_EXPR as fma{,f,l} call.
11549
11550         PR lto/47274
11551         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11552         copy them into a unsigned char variable and pass address of it to
11553         lto_output_data_stream.
11554
11555         PR target/47564
11556         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11557         around backend_init_target and lang_dependent_init_target calls.
11558         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11559         (verify_cgraph_node): Don't call set_cfun here.  Use
11560         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11561         Set error_found for incorrectly represented calls to thunks.
11562
11563 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11564
11565         PR debug/43092
11566         PR rtl-optimization/43494
11567         * rtl.h (for_each_inc_dec_fn): New type.
11568         (for_each_inc_dec): Declare.
11569         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11570         (for_each_inc_dec_find_inc_dec): New fn.
11571         (for_each_inc_dec_find_mem): New fn.
11572         (for_each_inc_dec): New fn.
11573         * dse.c (struct insn_size): Remove.
11574         (replace_inc_dec, replace_inc_dec_mem): Remove.
11575         (emit_inc_dec_insn_before): New fn.
11576         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11577         (canon_address): Pass mem modes to cselib_lookup.
11578         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11579         (cselib_lookup_from_insn): Likewise.
11580         (cselib_subst_to_values): Likewise.
11581         * cselib.c (find_slot_memmode): New var.
11582         (cselib_find_slot): New fn.  Use it instead of
11583         htab_find_slot_with_hash everywhere.
11584         (entry_and_rtx_equal_p): Use find_slot_memmode.
11585         (autoinc_split): New fn.
11586         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11587         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11588         Deal with autoinc.  Special-case recursion into MEMs.
11589         (cselib_hash_rtx): Likewise.
11590         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11591         address and MEM modes.
11592         (cselib_subst_to_values): Add memmode, pass it on.
11593         Deal with autoinc.
11594         (cselib_lookup): Add memmode argument, pass it on.
11595         (cselib_lookup_from_insn): Add memmode.
11596         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11597         (struct cselib_record_autoinc_data): New.
11598         (cselib_record_autoinc_cb): New fn.
11599         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11600         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11601         (cselib_process_insn): ... here.
11602         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11603         to cselib_lookup.
11604         (add_uses): Likewise, also to cselib_subst_to_values.
11605         (add_stores): Likewise.
11606         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11607         cselib_subst_to_values.
11608         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11609         * gcse.c (do_local_cprop): Adjusted.
11610         * postreload.c (reload_cse_simplify_set): Adjusted.
11611         (reload_cse_simplify_operands): Adjusted.
11612         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11613
11614 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11615
11616         PR tree-optimization/45122
11617         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11618         unsafe assumptions when there's more than one loop exit.
11619
11620 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11621
11622         PR target/47272
11623         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11624         Document using vector double with the load/store builtins, and
11625         that the load/store builtins always use Altivec instructions.
11626
11627         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11628         to use altivec memory instructions, even on VSX.
11629         (vector_altivec_store_<mode>): Ditto.
11630
11631         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11632         function.
11633
11634         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11635         V2DF, V2DI support to load/store overloaded builtins.
11636
11637         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11638         altivec load/store builtins for V2DF/V2DI types.
11639
11640         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11641         set avoid indexed addresses on power6 if -maltivec.
11642         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11643         vector_altivec_load/vector_altivec_store builtins.
11644         (altivec_expand_st_builtin): Ditto.
11645         (altivec_expand_builtin): Add VSX memory builtins.
11646         (rs6000_init_builtins): Add V2DI types to internal types.
11647         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11648         load/store builtins.
11649         (rs6000_address_for_altivec): Insure memory address is appropriate
11650         for Altivec.
11651
11652         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11653         vec_vsx_ld and vec_vsx_st.
11654         (vsx_store_<mode>): Ditto.
11655
11656         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11657         variables to hold long long types for VSX vector memory builtins.
11658         (RS6000_BTI_unsigned_long_long): Ditto.
11659         (long_long_integer_type_internal_node): Ditti.
11660         (long_long_unsigned_type_internal_node): Ditti.
11661
11662         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11663         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11664         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11665
11666         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11667         short cuts.
11668         (vec_vsx_st): Ditto.
11669
11670 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11671
11672         * config/pa/pa-hpux10.opt: New.
11673         * config/hpux11.opt (pthread): New Driver option.
11674         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11675         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11676
11677 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11678
11679         * config/ia64/vms.opt: New.
11680         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11681
11682 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11683
11684         PR target/47580
11685         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11686         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11687         generator functions.
11688         (vsx_floatuns<VSi><mode>2): Ditto.
11689         (vsx_fix_trunc<mode><VSi>2): Ditto.
11690         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11691
11692 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11693
11694         * config/i386/djgpp.opt (posix): New Driver option.
11695
11696 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11697
11698         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11699         Move to the unsupported targets list.
11700
11701 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11702
11703         PR rtl-optimization/47525
11704         * df-scan.c: Update copyright years.
11705         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11706         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11707
11708 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11709
11710         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11711         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11712         (ASM_OUTPUT_ASCII): Remove.
11713         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11714
11715 2011-02-02  Jeff Law  <law@redhat.com>
11716
11717         PR middle-end/47543
11718         * reload.c (find_reloads_address): Handle reg+d address where both
11719         components are invalid by reloading the entire address.
11720
11721 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11722             Richard Guenther  <rguenther@suse.de>
11723
11724         PR tree-optimization/40979
11725         PR bootstrap/47044
11726         * passes.c (init_optimization_passes): After LIM call copy_prop
11727         and DCE to clean up.
11728         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11729
11730 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11731
11732         PR tree-optimization/47576
11733         PR tree-optimization/47555
11734         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11735         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11736         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11737         * tree-scalar-evolution.c (follow_ssa_edge): Use
11738         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11739
11740 2011-02-02  Richard Guenther  <rguenther@suse.de>
11741
11742         PR tree-optimization/47566
11743         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11744
11745 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11746
11747         PR debug/47106
11748         PR debug/47402
11749         * tree-inline.c (declare_return_variable): Remove unused caller
11750         variable.
11751
11752         PR debug/47106
11753         PR debug/47402
11754         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11755         * cfgexpand.c (account_used_vars_for_block): Use them.
11756         * tree-nrv.c (tree_nrv): Likewise.
11757         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11758         (dump_scope_block): Likewise.
11759         (remove_unused_locals): Likewise.
11760
11761         PR debug/47106
11762         PR debug/47402
11763         * tree-inline.c (declare_return_variable): Add result decl to
11764         local decls only once.
11765         * gimple-low.c (record_vars_into): Mark newly-created variables
11766         as referenced.
11767
11768 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11769
11770         PR debug/47498
11771         PR debug/47501
11772         PR debug/45136
11773         PR debug/45130
11774         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11775         debug insns.
11776         (no_real_insns_p, schedule_block, set_priorities): Drop special
11777         treatment of boundary debug insns.
11778         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11779         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11780         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11781         (BOUNDARY_DEBUG_INSN_P): Likewise.
11782         (SCHEDULE_DEBUG_INSN_P): Likewise.
11783         * sched-rgn.c (init_ready_list): Drop special treatment of
11784         boundary debug insns.
11785         * final.c (rest_of_clean_state): Clear notes' BB.
11786
11787 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11788
11789         * config/openbsd.opt (assert=): New Driver option.
11790
11791 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11792
11793         * config/i386/nto.opt: New.
11794         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11795
11796 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11797
11798         * config/i386/netware.opt: New.
11799         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11800
11801 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11802
11803         * config/interix.opt (posix): New Driver option.
11804
11805 2011-02-01  DJ Delorie  <dj@redhat.com>
11806
11807         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11808
11809         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11810         class for A0/A1.
11811
11812 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11813
11814         PR tree-optimization/47561
11815         * toplev.c (process_options): Print the Graphite flags.  Add
11816         flag_loop_flatten to the list of options requiring Graphite.
11817
11818 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11819
11820         * config/i386/cygming.opt (posix): New Driver option.
11821
11822 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11823
11824         * config/arm/vxworks.opt: New.
11825         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11826
11827 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11828
11829         * config/alpha/elf.opt: New.
11830         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11831         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11832
11833 2011-02-01  Richard Guenther  <rguenther@suse.de>
11834
11835         PR tree-optimization/47559
11836         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11837         store-motion on references that can throw.
11838
11839 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11840
11841         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11842         * tree-pass.h (TDF_CSELIB): New macro.
11843         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11844         cselib_lookup): Check for it rather than for TDF_DETAILS.
11845
11846 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11847
11848         PR driver/47547
11849         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11850         is HOST_BIT_BUCKET.
11851
11852         * opts.c (finish_options): Don't add x_aux_base_name if it is
11853         HOST_BIT_BUCKET.
11854
11855 2011-02-01  Richard Guenther  <rguenther@suse.de>
11856
11857         PR tree-optimization/47555
11858         Revert
11859         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11860
11861         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11862
11863 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11864
11865         PR gcc/46692
11866         * config/lm32/t-lm32: Add multilib for all CPU options.
11867
11868 2011-02-01  Richard Guenther  <rguenther@suse.de>
11869
11870         PR tree-optimization/47541
11871         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11872         sure to have a field at offset zero.
11873
11874 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11875
11876         * config/arc/arc.opt (EB, EL): New Driver options.
11877
11878 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11879
11880         * config/alpha/osf5.opt: New.
11881         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11882
11883 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11886
11887 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11888
11889         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11890         -floop-interchange.
11891         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11892         is an alias of -floop-interchange and that it requires the
11893         Graphite infrastructure.
11894         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11895         flag_loop_interchange based on the value of flag_tree_loop_linear.
11896
11897 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11898             Richard Guenther  <rguenther@suse.de>
11899
11900         PR tree-optimization/47538
11901         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11902         type instead of r1type, except for comparisons.  For right
11903         shifts and comparisons punt if there are mismatches in
11904         sizetype vs. non-sizetype types.
11905
11906 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11907
11908         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11909         avx_runtime.
11910
11911 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11912
11913         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11914         version number.
11915         * configure: Regenerate.
11916
11917 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11918
11919         * configure.ac (gcc_cv_ld_static_option): Define.
11920         (gcc_cv_ld_dynamic_option): Define.
11921         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11922         instead.
11923         (HAVE_LD_STATIC_DYNAMIC): Update message.
11924         (LD_STATIC_OPTION): Define.
11925         (LD_DYNAMIC_OPTION): Define.
11926         * configure: Regenerate.
11927         * config.in: Regenerate.
11928         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11929         HAVE_LD_STATIC_DYNAMIC]: Use them.
11930
11931 2011-01-31  Nick Clifton  <nickc@redhat.com>
11932
11933         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11934         registers inside interrupt handlers if the handler is not a leaf
11935         function.
11936
11937 2011-01-31  Nick Clifton  <nickc@redhat.com>
11938
11939         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11940         reg_renumber returning an INVALID_REGNUM.
11941
11942 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11943
11944         PR libgcj/44341
11945         * doc/install.texi: Document host options discarded when cross
11946         configuring target libraries.
11947
11948 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11949
11950         Reverted:
11951         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11952         PR debug/45136
11953         PR debug/45130
11954         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11955         debug insns.
11956         (no_real_insns_p, schedule_block, set_priorities): Drop special
11957         treatment of boundary debug insns.
11958         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11959         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11960         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11961         (BOUNDARY_DEBUG_INSN_P): Likewise.
11962         (SCHEDULE_DEBUG_INSN_P): Likewise.
11963         * sched-rgn.c (init_ready_list): Drop special treatment of
11964         boundary debug insns.
11965         * final.c (rest_of_clean-state): Clear notes' BB.
11966
11967 2011-01-31  Alan Modra  <amodra@gmail.com>
11968
11969         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11970         toc relative expressions as we do in print_operand_address.
11971
11972 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11973
11974         * doc/extend.texi: Follow spelling conventions.
11975         * doc/invoke.texi: Fix a typo.
11976
11977 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11978
11979         * config/hpux11.opt: New.
11980         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11981         ia64*-*-hpux*): Use hpux11.opt.
11982
11983 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11984
11985         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11986         to tmake_file.
11987
11988 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11989
11990         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11991         support sites.
11992
11993 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11994
11995         * doc/install.texi (Binaries): Remove outdated reference for
11996         Motorola 68HC11/68HC12 downloads.
11997
11998 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11999
12000         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12001         Drepper's paper.
12002
12003 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12004
12005         PR bootstrap/47147
12006         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12007         used by NetBSD.
12008
12009 2011-01-28  Ahmad Sharif  <asharif@google.com>
12010
12011         * value-prof.c (check_counter): Corrected error message.
12012
12013 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12014
12015         * config/arm/arm.c (arm_legitimize_reload_address): New.
12016         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12017         arm_legitimize_reload_address.
12018         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12019
12020 2011-01-28  Ian Lance Taylor  <iant@google.com>
12021
12022         * godump.c (go_define): Ignore macros whose definitions include
12023         two adjacent operands.
12024
12025 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12026
12027         PR target/42894
12028         * varasm.c (force_const_mem): Store copy of x in desc->constant
12029         instead of x itself.
12030         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12031         itself into REG_EQUAL note.
12032
12033 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12034
12035         * config/freebsd.opt (posix, rdynamic): New Driver options.
12036
12037 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12038
12039         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12040         -Bstatic/-Bdynamic.
12041         * configure: Regenerate.
12042
12043 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12044
12045         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12046         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12047
12048 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12049
12050         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12051         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12052         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12053         (s390_preferred_reload_class): Make static. Change return and
12054         'rclass' argument type to reg_class_t.
12055
12056 2011-01-27  Jan Hubicka  <jh@suse.cz>
12057
12058         PR middle-end/46949
12059         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12060         (process_function_and_variable_attributes): Check defined weakrefs.
12061
12062 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12063
12064         PR tree-optimization/47228
12065         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12066         build_ref_for_offset.
12067
12068 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12069
12070         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12071
12072 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12073
12074         PR rtl-optimization/46856
12075         * postreload.c (reload_combine_recognize_const_pattern): Do not
12076         separate cc0 setter and user on cc0 targets.
12077
12078 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12079
12080         PR c/43082
12081         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12082         passed a VOID_TYPE expression, immediately emit an error and
12083         return error_mark_node.
12084
12085 2011-01-26  Jeff Law  <law@redhat.com>
12086
12087         PR rtl-optimization/47464
12088         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12089         rather than may_trap_p as needed.
12090
12091 2011-01-26  DJ Delorie  <dj@redhat.com>
12092
12093         PR rtl-optimization/46878
12094         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12095         setter/user dependency as well.
12096
12097 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12098
12099         PR rtl-optimization/44469
12100         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12101         after removing trivially dead basic blocks.
12102
12103 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12104
12105         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12106         * config/frv/frv.h (LINK_SPEC): Likewise.
12107         * config/i386/netware.h (LINK_SPEC): Likewise.
12108         * config/m68k/linux.h (ASM_SPEC): Likewise.
12109         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12110         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12111         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12112         * config/sparc/linux.h (ASM_SPEC): Likewise.
12113         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12114         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12115
12116 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12119         * config/frv/frv.h (ASM_SPEC): Likewise.
12120         * config/m68k/linux.h (ASM_SPEC): Likewise.
12121         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12122         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12123         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12124         * config/sparc/linux.h (ASM_SPEC): Likewise.
12125         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12126         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12127
12128 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12129
12130         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12131         * config/frv/frv.h (LINK_SPEC): Likewise.
12132         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12133
12134 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12135
12136         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12137         * config/frv/frv.h (ASM_SPEC): Likewise.
12138         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12139         * config/m68k/linux.h (ASM_SPEC): Likewise.
12140         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12141         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12142         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12143         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12144         * config/sparc/linux.h (ASM_SPEC): Likewise.
12145         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12146         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12147         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12148
12149 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12150
12151         PR target/46997
12152         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12153         (*mux2): Ditto.
12154         (vec_extract_evenodd_help): Ditto.
12155         (vec_extract_evenv4hi): Ditto.
12156         (vec_extract_oddv4hi): Ditto.
12157         (vec_interleave_lowv2si): Ditto.
12158         (vec_interleave_highv2si): Ditto.
12159         (vec_extract_evenv2si): Ditto.
12160         (vec_extract_oddv2si: Ditto.
12161         (vec_pack_trunc_v2si): Ditto.
12162
12163 2011-01-22  Jan Hubicka  <jh@suse.cz>
12164
12165         PR target/47237
12166         * cgraph.h (cgraph_local_info): New field can_change_signature.
12167         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12168         signature can change.
12169         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12170         can change.
12171         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12172         (cgraph_function_versioning): We can not change signature of functions
12173         that don't allow that.
12174         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12175         (lto_input_node): Likewise.
12176         * ipa-inline.c (compute_inline_parameters): Compute
12177         local.can_change_signature.
12178         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12179         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12180         functions that can not change signature.
12181         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12182         init_cumulative_args): Do not use local calling conventions
12183         for functions that can not change signature.
12184
12185 2011-01-22  Jan Hubicka  <jh@suse.cz>
12186
12187         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12188
12189 2011-01-26  Richard Guenther  <rguenther@suse.de>
12190
12191         PR tree-optimization/47190
12192         * cgraphunit.c (process_common_attributes): New function.
12193         (process_function_and_variable_attributes): Use it.
12194
12195 2011-01-26  Richard Guenther  <rguenther@suse.de>
12196
12197         PR lto/47423
12198         * cgraphbuild.c (record_eh_tables): Record reference to personality
12199         function.
12200
12201 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12202
12203         PR debug/45454
12204         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12205         non-debug insns from moving up.
12206
12207 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12208
12209         PR target/40125
12210         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12211         t-dlldir{,-x} fragment for build and add it to tmake_file.
12212         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12213         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12214         * config/i386/t-dlldir: New file.
12215         (SHLIB_DLLDIR): Define.
12216         * config/i386/t-dlldir-x: New file.
12217         (SHLIB_DLLDIR): Define.
12218         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12219         (SHLIB_INSTALL): Use it.
12220
12221 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12222
12223         PR target/47246
12224         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12225         lower bound of the allowed Thumb-2 coprocessor load/store
12226         index range to -256. Add explaining comment.
12227
12228 2011-01-25  Ian Lance Taylor  <iant@google.com>
12229
12230         * godump.c (go_define): Improve lexing of macro expansion to only
12231         accept expressions which match Go spec.
12232
12233 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12234
12235         PR c++/43601
12236         * tree.c (handle_dll_attribute): Handle it.
12237         * doc/extend.texi (@item dllexport): Mention it.
12238         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12239
12240 2011-01-25  Ian Lance Taylor  <iant@google.com>
12241
12242         PR tree-optimization/26854
12243         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12244         (decl_jump_unsafe): Move higher in file, with no other change.
12245         (bind): Set has_jump_unsafe_decl if appropriate.
12246         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12247         (check_earlier_gotos): Likewise.
12248         (c_check_switch_jump_warnings): Likewise.
12249
12250 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12251
12252         * doc/invoke.texi (Warning Options): Add missing hyphen.
12253         (-fprofile-dir): Minor grammatical fixes.
12254         (-fbranch-probabilities): Likewise.
12255
12256 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12257
12258         PR debug/45136
12259         PR debug/45130
12260         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12261         debug insns.
12262         (no_real_insns_p, schedule_block, set_priorities): Drop special
12263         treatment of boundary debug insns.
12264         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12265         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12266         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12267         (BOUNDARY_DEBUG_INSN_P): Likewise.
12268         (SCHEDULE_DEBUG_INSN_P): Likewise.
12269         * sched-rgn.c (init_ready_list): Drop special treatment of
12270         boundary debug insns.
12271         * final.c (rest_of_clean-state): Clear notes' BB.
12272
12273 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12274
12275         * Makefile.in (LAMBDA_H): Removed.
12276         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12277         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12278         lambda-trans.o, and tree-loop-linear.o.
12279         (lto-symtab.o): Remove dependence on LAMBDA_H.
12280         (tree-loop-linear.o): Remove rule.
12281         (lambda-mat.o): Same.
12282         (lambda-trans.o): Same.
12283         (lambda-code.o): Same.
12284         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12285         (tree-vect-slp.o): Same.
12286         * hwint.h (gcd): Moved here.
12287         (least_common_multiple): Same.
12288         * lambda-code.c: Removed.
12289         * lambda-mat.c: Removed.
12290         * lambda-trans.c: Removed.
12291         * lambda.h: Removed.
12292         * tree-loop-linear.c: Removed.
12293         * lto-symtab.c: Do not include lambda.h.
12294         * omega.c (gcd): Removed.
12295         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12296         * tree-data-ref.c (print_lambda_vector): Moved here.
12297         (lambda_vector_copy): Same.
12298         (lambda_matrix_copy): Same.
12299         (lambda_matrix_id): Same.
12300         (lambda_vector_first_nz): Same.
12301         (lambda_matrix_row_add): Same.
12302         (lambda_matrix_row_exchange): Same.
12303         (lambda_vector_mult_const): Same.
12304         (lambda_vector_negate): Same.
12305         (lambda_matrix_row_negate): Same.
12306         (lambda_vector_equal): Same.
12307         (lambda_matrix_right_hermite): Same.
12308         * tree-data-ref.h: Do not include lambda.h.
12309         (lambda_vector): Moved here.
12310         (lambda_matrix): Same.
12311         (dependence_level): Same.
12312         (lambda_transform_legal_p): Removed declaration.
12313         (lambda_collect_parameters): Same.
12314         (lambda_compute_access_matrices): Same.
12315         (lambda_vector_gcd): Same.
12316         (lambda_vector_new): Same.
12317         (lambda_vector_clear): Same.
12318         (lambda_vector_lexico_pos): Same.
12319         (lambda_vector_zerop): Same.
12320         (lambda_matrix_new): Same.
12321         * tree-flow.h (least_common_multiple): Removed declaration.
12322         * tree-parloops.c (lambda_trans_matrix): Moved here.
12323         (LTM_MATRIX): Same.
12324         (LTM_ROWSIZE): Same.
12325         (LTM_COLSIZE): Same.
12326         (LTM_DENOMINATOR): Same.
12327         (lambda_trans_matrix_new): Same.
12328         (lambda_matrix_vector_mult): Same.
12329         (lambda_transform_legal_p): Same.
12330         * tree-pass.h (pass_linear_transform): Removed declaration.
12331         * tree-ssa-loop.c (tree_linear_transform): Removed.
12332         (gate_tree_linear_transform): Removed.
12333         (pass_linear_transform): Removed.
12334         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12335         flag_loop_interchange.
12336
12337 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12338
12339         PR tree-optimization/47265
12340         PR tree-optimization/47443
12341         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12342         if name still has some uses.
12343
12344 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12345
12346         PR tree-optimization/47382
12347         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12348         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12349
12350 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12351
12352         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12353         sjlj_except_unwind_info.
12354
12355 2011-01-25  Richard Guenther  <rguenther@suse.de>
12356
12357         PR tree-optimization/47426
12358         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12359         visible functions results escape.
12360
12361 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12362
12363         PR target/45701
12364         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12365         (arm_get_frame_offsets): Use it.
12366
12367 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12368             Jakub Jelinek  <jakub@redhat.com>
12369
12370         PR tree-optimization/47271
12371         * tree-if-conv.c (bb_postdominates_preds): New.
12372         (if_convertible_bb_p): Call bb_postdominates_preds.
12373         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12374         (predicate_scalar_phi): Call bb_postdominates_preds.
12375
12376 2011-01-25  Nick Clifton  <nickc@redhat.com>
12377
12378         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12379         * config/rx/rx.c (rx_function_value): Likewise.
12380         (rx_promote_function_mode): Likewise.
12381         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12382         in order to make it legitimate.
12383         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12384         make sure that the first operand is the same as the result register.
12385         (addsi3_unspec): Delete.
12386         (subdi3): Do not accept immediate operands.
12387         (subdi3_internal): Likewise.
12388
12389 2011-01-25  Jeff Law  <law@redhat.com>
12390
12391         PR rtl-optimization/37273
12392         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12393         handle them like argument loads from stack slots.  Do not double
12394         count memory for memory constants and argument loads from stack slots.
12395
12396 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12397
12398         PR tree-optimization/47427
12399         PR tree-optimization/47428
12400         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12401         coalesce if the new root var would be TREE_READONLY.
12402
12403 2011-01-25  Richard Guenther  <rguenther@suse.de>
12404
12405         PR middle-end/47414
12406         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12407         correct type for TBAA.
12408
12409 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12410
12411         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12412         (close_phi_written_to_memory): Call for_each_index with
12413         dr_indices_valid_in_loop.
12414
12415 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12416
12417         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12418         when it is initialized.
12419
12420 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12421
12422         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12423         call to graphite_find_data_references_in_stmt.
12424         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12425         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12426         call to graphite_find_data_references_in_stmt.
12427         (analyze_drs_in_stmts): Same.
12428         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12429         in which the scalar analysis of indices is performed.
12430         (create_data_ref): Same.  Update call to dr_analyze_indices.
12431         (find_data_references_in_stmt): Update call to create_data_ref.
12432         (graphite_find_data_references_in_stmt): Same.
12433         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12434         declaration.
12435         (create_data_ref): Same.
12436         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12437         call to create_data_ref.
12438
12439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12440
12441         * graphite-sese-to-poly.c (build_poly_scop): Move
12442         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12443
12444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12445
12446         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12447         VAR_DECL, PARM_DECL, and RESULT_DECL.
12448
12449 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12450
12451         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12452         in a reduction PBB.
12453         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12454         that have already been marked as PBB_IS_REDUCTION.
12455
12456 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12457
12458         * graphite-scop-detection.c (same_close_phi_node): New.
12459         (remove_duplicate_close_phi): New.
12460         (make_close_phi_nodes_unique): New.
12461         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12462
12463 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12464
12465         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12466         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12467         of both data references to be the same.
12468
12469 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12470
12471         * graphite-dependences.c (build_lexicographical_constraint): Remove
12472         the gdim parameter.
12473         (build_lexicographical_constraint): Adjust call to
12474         ppl_powerset_is_empty.
12475         (dependence_polyhedron): Same.
12476         (graphite_legal_transform_dr): Same.
12477         (graphite_carried_dependence_level_k): Same.
12478         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12479         parameter.
12480         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12481
12482 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12483
12484         * graphite-sese-to-poly.c
12485         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12486         (close_phi_written_to_memory): New.
12487         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12488         and unshare_expr.
12489
12490 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12491
12492         * doc/install.texi: Update the expected version number of PPL to 0.11.
12493         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12494         #if PPL_VERSION_MINOR < 11.
12495
12496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12497
12498         * graphite-dependences.c: Include graphite-cloog-util.h.
12499         (new_poly_ddr): Inlined into dependence_polyhedron.
12500         (free_poly_ddr): Moved close by new_poly_ddr.
12501         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12502         Early return NULL when ppl_powerset_is_empty returns true.
12503         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12504         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12505         (graphite_legal_transform_dr): Call new_poly_ddr.
12506         (graphite_carried_dependence_level_k): Same.
12507         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12508         (dot_transformed_deps_stmt_1): Removed.
12509         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12510         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12511         (dot_deps_1): Call dot_deps_2.
12512         * Makefile.in (graphite-dependences.o): Add missing dependence on
12513         graphite-cloog-util.h.
12514
12515 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12516
12517         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12518         (build_lexicographical_constraint): Same.
12519         (dependence_polyhedron_1): Same.
12520         (graphite_legal_transform_dr): Same.
12521         (graphite_carried_dependence_level_k): Same.
12522         * graphite-ppl.c (ppl_powerset_is_empty): New.
12523         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12524         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12525
12526 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12527
12528         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12529         the "a followed by b" relation and document it.
12530
12531 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12532
12533         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12534         iteration when the bag of constraints is empty.
12535
12536 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12537
12538         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12539
12540 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12541
12542         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12543         nest and two loop depths as parameters.
12544         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12545         lst_perfect_nestify.
12546
12547 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12548
12549         * graphite-dependences.c (print_pddr): Call
12550         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12551
12552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12553
12554         * graphite-ppl.c (debug_gmp_value): New.
12555         * graphite-ppl.h (debug_gmp_value): Declared.
12556
12557 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12558
12559         * doc/install.texi: Document availability of cloog-0.16.
12560
12561 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12562
12563         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12564         invalid postdominance info.
12565
12566 2011-01-24  Jan Hubicka  <jh@suse.cz>
12567
12568         PR c/21659
12569         * doc/extend.texi (weak pragma): Drop claim that it must
12570         appear before definition.
12571         * varasm.c (merge_weak, declare_weak): Only sanity check
12572         that DECL is not output at a time it is declared weak.
12573
12574 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12575
12576         * machmode.def: Fixed comments.
12577
12578 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12579
12580         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12581
12582 2011-01-24  Paul Koning  <ni1d@arrl.net>
12583
12584         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12585         WORDS_BIG_ENDIAN.
12586
12587 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12588
12589         PR target/46519
12590         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12591         (block_info): Add scanned and prev.
12592         (move_or_delete_vzeroupper_2): Return if the basic block
12593         has been scanned and the upper 128bit state is unchanged
12594         from the last scan.
12595         (move_or_delete_vzeroupper_1): Return true if the exit
12596         state is changed.
12597         (move_or_delete_vzeroupper): Visit basic blocks using the
12598         work-list based algorithm based on vt_find_locations in
12599         var-tracking.c.
12600
12601         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12602
12603 2011-01-24  Nick Clifton  <nickc@redhat.com>
12604
12605         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12606         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12607         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12608         then define __v850e1__.
12609         * doc/invoke.texi: Document -mv850es.
12610
12611 2011-01-24  Richard Henderson  <rth@redhat.com>
12612
12613         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12614         compound unordered comparisons.
12615         * config/rx/rx.c (rx_split_fp_compare): Remove.
12616         * config/rx/rx-protos.h: Update.
12617         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12618         (cbranchsf4): Don't call rx_split_fp_compare.
12619         (*cbranchsf4): Use rx_split_cbranch.
12620         (*cmpsf): Don't accept "i" constraint.
12621         (*conditional_branch): Only valid after reload.
12622         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12623
12624 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12625
12626         PR target/47385
12627         * config/rs6000/altivec.md (vector constant splitters): Add
12628         support for creating vector single precision constants if -mvsx is
12629         used and we would create the constant using Altivec primitives.
12630
12631 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12632             Richard Sandiford  <rdsandiford@googlemail.com>
12633
12634         PR rtl-optimization/47166
12635         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12636         mechanism for PRE_MODIFY and POST_MODIFY.
12637         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12638         reloadreg.
12639
12640 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12641
12642         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12643
12644 2011-01-22  Jan Hubicka  <jh@suse.cz>
12645
12646         PR lto/47333
12647         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12648
12649 2011-01-22  Jan Hubicka  <jh@suse.cz>
12650
12651         PR tree-optimization/43884
12652         PR lto/44334
12653         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12654         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12655
12656 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12657
12658         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12659         * config/s390/s390.c (s390_register_move_cost,
12660         s390_memory_move_cost): New.
12661         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12662
12663 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12664
12665         PR middle-end/47401
12666         * except.c (sjlj_assign_call_site_values): Move setting the
12667         crtl->uses_eh_lsda flag to ...
12668         (sjlj_mark_call_sites): ... here.
12669         (sjlj_emit_function_enter): Support NULL dispatch label.
12670         (sjlj_build_landing_pads): In a function with no landing pads
12671         that still has must-not-throw regions, generate code to register
12672         a personality function with empty LSDA.
12673
12674 2011-01-21  Richard Henderson  <rth@redhat.com>
12675
12676         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12677
12678         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12679
12680         * compare-elim.c: New file.
12681         * Makefile.in (OBJS-common): Add it.
12682         (compare-elim.o): New.
12683         * common.opt (fcompare-elim): New.
12684         * opts.c (default_options_table): Add OPT_fcompare_elim.
12685         * tree-pass.h (pass_compare_elim_after_reload): New.
12686         * passes.c (init_optimization_passes): Add it.
12687         * recog.h: Protect against re-inclusion.
12688         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12689         * doc/invoke.texi (-fcompare-elim): Document it.
12690         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12691         * doc/tm.texi: Rebuild.
12692
12693 2011-01-22  Nick Clifton  <nickc@redhat.com>
12694
12695         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12696         rx_split_fp_compare.
12697
12698 2011-01-22  Nick Clifton  <nickc@redhat.com>
12699
12700         * config/rx/rx.md (UNSPEC_CONST): New.
12701         (deallocate_and_return): Wrap the amount popped off the stack in
12702         an UNSPEC_CONST in order to stop it being rejected by
12703         -mmax-constant-size.
12704         (pop_and_return): Add a "(return)" rtx.
12705         (call): Drop the immediate operand.
12706         (call_internal): Likewise.
12707         (call_value): Likewise.
12708         (call_value_internal): Likewise.
12709         (sibcall_internal): Likewise.
12710         (sibcall_value_internal): Likewise.
12711         (sibcall): Likewise.  Generate an explicit call using
12712         sibcall_internal.
12713         (sibcall_value): Likewise.
12714         (mov<>): FAIL if a constant operand is not legitimate.
12715         (addsi3_unpsec): New pattern.
12716
12717         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12718         (ok_for_max_constant): New function.
12719         (gen_safe_add): New function.
12720         (rx_expand_prologue): Use gen_safe_add.
12721         (rx_expand_epilogue): Likewise.
12722         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12723         UNSPEC CONSTs.
12724
12725 2011-01-21  Jeff Law  <law@redhat.com>
12726
12727         PR tree-optimization/47053
12728         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12729         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12730         statements are deleted.
12731         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12732         is nonempty, then purge dead edges and cleanup the CFG.
12733
12734 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12735
12736         PR debug/47402
12737         Temporarily revert:
12738         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12739         PR debug/47106
12740         * tree-dfa.c (create_var_ann): Mark variable as used.
12741
12742 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12743
12744         PR middle-end/45566
12745         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12746         notes from other section in hot/cold partitioning even if
12747         last_action is -3.  Increment call_site_base.
12748
12749         PR rtl-optimization/47366
12750         * fwprop.c (forward_propagate_into): Return bool.  If
12751         any changes are made, -fnon-call-exceptions is used and
12752         REG_EH_REGION note is present, call purge_dead_edges
12753         and return true if it purged anything.
12754         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12755         any EH edges were purged.
12756
12757 2011-01-21  Jeff Law  <law@redhat.com>
12758
12759         PR rtl-optimization/41619
12760         * caller-save.c (setup_save_areas): Break out code to determine
12761         which hard regs are live across calls by examining the reload chains
12762         so that it is always used.
12763         Eliminate code which checked REG_N_CALLS_CROSSED.
12764
12765 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12766
12767         PR tree-optimization/47355
12768         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12769         NOP has non-debug uses beyond PHIs in new_bb.
12770
12771 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12772
12773         PR debug/47106
12774         * cfgexpand.c (account_used_vars_for_block): Only account vars
12775         that are annotated as used.
12776         (estimated_stack_frame_size): Don't set TREE_USED.
12777         * tree-dfa.c (create_var_ann): Mark variable as used.
12778
12779 2011-01-21  Richard Guenther  <rguenther@suse.de>
12780
12781         PR middle-end/47395
12782         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12783
12784 2011-01-21  Richard Guenther  <rguenther@suse.de>
12785
12786         PR tree-optimization/47365
12787         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12788         (vn_reference_lookup_pieces): Adjust.
12789         (vn_reference_lookup): Likewise.
12790         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12791         (vn_reference_lookup_3): Only look through kills if in
12792         VN_WALKREWRITE mode.
12793         (vn_reference_lookup_pieces): Adjust.
12794         (vn_reference_lookup): Likewise.
12795         (visit_reference_op_load): Likewise.
12796         (visit_reference_op_store): Likewise.
12797         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12798         (compute_avail): Likewise.
12799         (eliminate): Likewise.
12800
12801 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12802
12803         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12804         DECL_IGNORED_P non-reg vars if they are used.
12805
12806         PR tree-optimization/47391
12807         * varpool.c (const_value_known_p): Return false if
12808         decl is volatile.
12809
12810 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12811
12812         PR bootstrap/47215
12813         * config/i386/i386.c (ix86_local_alignment): Handle
12814         case for va_list_type_node is nil.
12815         (ix86_canonical_va_list_type): Likewise.
12816
12817 2011-01-21  Alan Modra  <amodra@gmail.com>
12818
12819         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12820         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12821
12822 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12823
12824         * config/arm/arm.md (define_attr type): Rename f_load
12825         and f_store to f_fpa_load and f_fpa_store. Update.
12826         (write_conflict): Deal with rename fallout.
12827         (*push_fp_multi): Likewise.
12828         * config/arm/fpa.md (f_load): Use f_fpa_load.
12829         (f_store): Use f_fpa_store.
12830         (*movsf_fpa): Likewise.
12831         (*movdf_fpa): Likewise.
12832         (*movxf_fpa): Likewise.
12833         (*thumb2_movsf_fpa): Likewise.
12834         (*thumb2_movdf_fpa): Likewise.
12835         (*thumb2_movxf_fpa): Likewise.
12836         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12837         f_loadd and f_stored.
12838         (*thumb2_movdi_vfp): Likewise.
12839         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12840         (*thumb2_movsi_vfp): Likewise.
12841         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12842         Use f_loads instead of f_load.
12843         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12844
12845 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12846
12847         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12848         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12849         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12850         (xtensa_mode_dependent_address_p): New function.
12851         (constantpool_address_p): Make static. Change return type to bool.
12852         Change argument type to const_rtx. Use CONST_INT_P predicate.
12853
12854 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12855
12856         PR debug/46583
12857         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12858
12859 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12860
12861         PR debug/47283
12862         * cfgexpand.c (expand_debug_expr): Instead of generating
12863         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12864         etc. handling.
12865
12866 2011-01-20  Richard Guenther  <rguenther@suse.de>
12867
12868         PR middle-end/47370
12869         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12870         the pointer operand of MEM_REFs.
12871
12872 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR tree-optimization/46130
12875         * ipa-split.c (consider_split): If return_bb contains non-virtual
12876         PHIs other than for retval or if split_function would not adjust it,
12877         refuse to split.
12878
12879 2011-01-20  Richard Guenther  <rguenther@suse.de>
12880
12881         PR tree-optimization/47167
12882         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12883         Revert previous change, only avoid enumeral type changes.
12884
12885 2011-01-19  Mike Stump  <mikestump@comcast.net>
12886
12887         * doc/tm.texi.in (BRANCH_COST): Englishify.
12888         * doc/tm.texi (BRANCH_COST): Likewise.
12889
12890 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12891
12892         PR c++/47291
12893         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12894         (gen_scheduled_generic_parms_dies): New functions.
12895         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12896         generation for the end of CU compilation.
12897         (dwarf2out_finish): Generate template parameters DIEs here.
12898
12899 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12900
12901         PR debug/46240
12902         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12903         debug bind stmt on merge edges.
12904
12905 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12906
12907         PR debug/47079
12908         PR debug/46724
12909         * function.c (instantiate_expr): Instantiate incoming rtl of
12910         implicit arguments, and recurse on VALUE_EXPRs.
12911         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12912         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12913
12914 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12915
12916         * c-parser.c (c_parser_for_statement): Initialize
12917         collection_expression.
12918
12919 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12920
12921         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12922
12923 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12924
12925         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12926         (LINK_SHLIB_SPEC): Don't use %(link_path).
12927         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12928
12929 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12930
12931         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12932         (NO_SHARED_LIB_SUPPORT): Remove.
12933         (LINK_SHLIB_SPEC): Remove one conditional definition.
12934
12935 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12936
12937         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12938         %{call_shared}.
12939         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12940         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12941         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12942         %{call_shared} and conditionals on these options not being passed.
12943         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12944         %{call_shared}.
12945
12946 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12947
12948         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12949         simplify.
12950
12951         * ipa-split.c: Spelling fixes.
12952
12953 2011-01-19  Richard Henderson  <rth@redhat.com>
12954
12955         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12956         (*mulsi3): Likewise.
12957
12958         * longlong.h [__mn10300__] (count_leading_zeros): New.
12959         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12960         [__mn10300__] (add_ssaaaa, subddmmss): New.
12961         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12962         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12963
12964 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12965
12966         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12967
12968 2011-01-19  Richard Henderson  <rth@redhat.com>
12969
12970         * config/mn10300/mn10300.md (addsi3_flags): New.
12971         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12972         (subsi3_flags, subc_internal, subdi3): New.
12973         (subdi3_internal, *subdi3_degenerate): New.
12974         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12975
12976         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12977         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12978         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12979         * config/mn10300/mn10300-protos.h: Update.
12980         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12981         (return_ret): Likewise.  Rename from return_internal_regs.
12982         (return_internal): Remove.
12983
12984         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12985         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12986         (mn10300_legitimate_constant_p): Likewise.
12987         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12988         (mn10300_frame_size): New.
12989         (mn10300_expand_prologue): Use it.
12990         (mn10300_expand_epilogue): Likewise.
12991         (mn10300_initial_offset): Likewise.
12992         * config/mn10300/mn10300-protos.h: Update.
12993         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12994         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12995         (prologue, epilogue, return_internal): Tidy output code.
12996         (mn10300_store_multiple_operation, return): Likewise.
12997         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12998         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12999         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13000         (load_pic, am33_load_pic): New.
13001         (mn10300_load_pic0, mn10300_load_pic1): New.
13002
13003         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13004         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13005         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13006         (cc_flags_for_mode, cc_flags_for_code): New.
13007         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13008         overflow flag is not valid.  Validate that the flags we need
13009         for the comparison are valid.
13010         (mn10300_output_cmp): Remove.
13011         (mn10300_output_add): New.
13012         (mn10300_select_cc_mode): Use cc_flags_for_code.
13013         (mn10300_split_cbranch): New.
13014         (mn10300_match_ccmode): New.
13015         (mn10300_split_and_operand_count): New.
13016         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13017         to the function.
13018         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13019         (addsi3): ... here.  Use mn10300_output_add.
13020         (*addsi3_flags): New.
13021         (*am33_subsi3, *mn10300_subsi3): Merge...
13022         (subsi3): ... here.  Use attribute isa.
13023         (*subsi3_flags): New.
13024         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13025         when possible.
13026         (*am33_andsi3, *mn10300_andsi3): Merge...
13027         (andsi3): ... here.
13028         (*andsi3_flags): New.
13029         (andsi3 splitters): New.
13030         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13031         (iorsi3): ... here.
13032         (*iorsi3_flags): New.
13033         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13034         (xorsi3): ... here.
13035         (*xorsi3_flags): New.
13036         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13037         (one_cmplsi2): ... here.
13038         (*one_cmplsi2_flags): New.
13039         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13040         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13041         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13042         use matching constraints to eliminate a self-comparison.
13043         (*integer_conditional_branch): Rename from integer_conditional_branch.
13044         Use int_mode_flags to match CC_REG.
13045         (*cbranchsi4_btst, *btstsi): New.
13046         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13047         mn10300_split_cbranch.
13048         (*am33_cmpsf): Rename from am33_cmpsf.
13049         (*float_conditional_branch): Rename from float_conditional_branch.
13050         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13051         (zero_extendqisi2): ... here.
13052         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13053         (zero_extendhisi2): ... here.
13054         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13055         (extendqisi2): ... here.
13056         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13057         (extendhisi2): ... here.
13058         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13059         (ashlsi3): ... here.
13060         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13061         (lshrsi3): ... here.
13062         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13063         (ashrsi3): ... here.
13064         (consecutive add peephole): Remove.
13065         * config/mn10300/predicates.md (label_ref_operand): New.
13066         (int_mode_flags): New.
13067         (CCZN_comparison_operator): New.
13068
13069         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13070         (throughput_42_latency_43): New reservation.
13071         (mulsidi3, umulsidi3): New expanders.
13072         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13073         the MDR register to allocation; separately allocate the low and
13074         high parts of the DImode result.
13075         (umulsidi3_internal): Similarly.
13076         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13077         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13078         (udivsi3, umodsi3): Remove.
13079         (udivmodsi4, divmodsi4): New expanders.
13080         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13081         (*divmodsi4): Simiarly.
13082         (ext_internal): New.
13083
13084         * config/mn10300/constraints.md ("z"): New constraint.
13085         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13086         (FIXED_REGISTERS): Don't fix MDR.
13087         (CALL_USED_REGSITERS): Reformat nicely.
13088         (REG_ALLOC_ORDER): Add MDR.
13089         (enum regclass): Add MDR_REGS.
13090         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13091         (IRA_COVER_CLASSES): Add MDR_REGS.
13092         (REGNO_REG_CLASS): Handle MDR_REG.
13093         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13094         (mn10300_register_move_cost): Likewise.
13095         * config/mn10300/mn10300.md (MDR_REG): New.
13096         (*movsi_internal): Handle moves to/from MDR_REGS.
13097
13098         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13099         POST_MODIFY.
13100         (mn10300_secondary_reload): Tidy combination reload classes.
13101         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13102         addresses for AM33.  Allow symbolic offsets for reg+imm.
13103         (mn10300_regno_in_class_p): New.
13104         (mn10300_legitimize_reload_address): New.
13105         * config/mn10300/mn10300.h (enum reg_class): Remove
13106         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13107         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13108         SP_OR_GENERAL_REGS.
13109         (REG_CLASS_NAMES): Update to match.
13110         (REG_CLASS_CONTENTS): Likewise.
13111         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13112         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13113         (REGNO_IN_RANGE_P): Remove.
13114         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13115         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13116         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13117         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13118         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13119         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13120         (REGNO_GENERAL_P): New.
13121         (HAVE_POST_MODIFY_DISP): New.
13122         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13123         (LEGITIMIZE_RELOAD_ADDRESS): New.
13124         * config/mn10300/mn10300-protos.h: Update.
13125
13126         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13127         DATA_REGS for AM33 stack-pointer destination.
13128         (mn10300_preferred_output_reload_class): Likewise.
13129         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13130         into a form appropriate for ...
13131         (TARGET_SECONDARY_RELOAD): New.
13132         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13133         * config/mn10300/mn10300-protos.h: Update.
13134         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13135         reload_insi; use the "A" constraint for the scratch; handle AM33
13136         moves of sp to non-address registers.
13137
13138         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13139         (*movqi_internal): ... here.
13140         (*am33_movhi, *mn10300_movhi): Merge into...
13141         (*movhi_internal): ... here.
13142         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13143         as the source/destination of moves from/to SP.
13144         (movsf): Only allow for AM33-2.
13145         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13146         any integer constant constraint.  Only allow for AM33-2.  Tidy
13147         all of the alternative outputs.
13148         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13149         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13150         for MN103.
13151         (udivsi3, umodsi3): New patterns for MN103 only.
13152
13153 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13154
13155         * doc/tm.texi.in: Spell out that a lack of register class unions
13156         can lead to ICEs.
13157         * doc/tm.texi: Regenerate.
13158
13159 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13160
13161         PR rtl-optimization/47337
13162         * dce.c (check_argument_store): New function.
13163         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13164
13165         PR tree-optimization/47290
13166         * tree-eh.c (infinite_empty_loop_p): New function.
13167         (cleanup_empty_eh): Use it.
13168
13169 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13170
13171         PR target/46997
13172         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13173         (a64_expand_widen_sum): Ditto.
13174         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13175         (vec_extract_evenodd_help): Ditto.
13176         (vec_extract_evenv4hi): Ditto.
13177         (vec_extract_oddv4hi): Ditto.
13178         (vec_extract_evenv2si): Ditto.
13179         (vec_extract_oddv2si): Ditto.
13180         (vec_extract_evenv2sf): Ditto.
13181         (vec_extract_oddv2sf): Ditto.
13182         (vec_pack_trunc_v4hi: Ditto.
13183         (vec_pack_trunc_v2si): Ditto.
13184         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13185         (vec_interleave_highv8qi): Ditto.
13186         (mix1_r): Ditto.
13187         (vec_extract_oddv8qi): Ditto.
13188         (vec_interleave_lowv4hi): Ditto.
13189         (vec_interleave_highv4hi): Ditto.
13190         (vec_interleave_lowv2si): Ditto.
13191         (vec_interleave_highv2si): Ditto.
13192
13193 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13194
13195         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13196         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13197         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13198         (pa_c_mode_for_suffix): New.
13199         (TARGET_EXPAND_BUILTIN): Define.
13200         (TARGET_C_MODE_FOR_SUFFIX): Define.
13201         (pa_builtins): Define.
13202         (pa_init_builtins): Register __float128 type and init new support
13203         builtins.
13204         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13205         * config/pa/quadlib.c (_U_Qfcopysign): New.
13206
13207 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13208
13209         PR middle-end/46894
13210         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13211         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13212         are defined.
13213
13214 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13215
13216         PR tree-optimization/47179
13217         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13218         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13219
13220 2011-01-18  Richard Guenther  <rguenther@suse.de>
13221
13222         PR rtl-optimization/47216
13223         * emit-rtl.c: Include tree-flow.h.
13224         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13225         of replicating it with different semantics.
13226         * Makefile.in (emit-rtl.o): Adjust.
13227
13228 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13229
13230         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13231         (cortex_a9_dp): Handle neon types correctly.
13232
13233 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13234
13235         PR rtl-optimization/47299
13236         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13237         subtarget.  Use normal multiplication if both operands are constants.
13238         * expmed.c (expand_widening_mult): Don't try to optimize constant
13239         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13240         before using it.
13241
13242 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13243
13244         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13245         spacing after 'e.g.', typos, comma, hyphenation.
13246
13247 2011-01-17  Richard Henderson  <rth@redhat.com>
13248
13249         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13250         (rx_restricted_mem_operand): New.
13251         (rx_shift_operand): Use register_operand.
13252         (rx_source_operand, rx_compare_operand): Likewise.
13253         * config/rx/rx.md (addsi3_flags): New expander.
13254         (adddi3): Rewrite as expander.
13255         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13256         (subsi3_flags): New expander.
13257         (subdi3): Rewrite as expander.
13258         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13259
13260         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13261         (rx_init_builtins): Remove sat builtin.
13262         (rx_expand_builtin): Likewise.
13263         * config/rx/rx.md (ssaddsi3): New.
13264         (*sat): Rename from sat.  Represent the CC_REG input.
13265
13266         * config/rx/predicates.md (rshift_operator): New.
13267         * config/rx/rx.c (rx_expand_insv): Remove.
13268         * config/rx/rx-protos.h: Update.
13269         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13270         operand to the canonical position.
13271         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13272         (*bitclr, *bitclr_in_memory): Similarly.
13273         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13274         (insv): Retain the zero_extract in the expansion.
13275
13276         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13277         (bswaphi2, bitinvert, revw): Likewise.
13278
13279         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13280         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13281         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13282         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13283         (bitset, bitset_in_memory): Likewise.
13284         (bitinvert, bitinvert_in_memory): Likewise.
13285         (bitclr, bitclr_in_memory): Likewise.
13286         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13287         (rx_strend, rx_cmpstrn): Likewise.
13288         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13289         (bitop peep2 patterns): Remove.
13290
13291         * config/rx/rx.c (rx_match_ccmode): New.
13292         * config/rx/rx-protos.h: Update.
13293         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13294         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13295         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13296         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13297         (fix_truncsfsi2, floatsisf2): Likewise.
13298         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13299         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13300         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13301         (*subsi3_flags, *xorsi3_flags): New.
13302
13303         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13304
13305         * config/rx/rx.c (rx_print_operand): Remove workaround for
13306         unsplit comparison operations.
13307
13308         * config/rx/rx.md (movsicc): Split after reload.
13309         (*movsicc): Merge *movsieq and *movsine via match_operator.
13310         (*stcc): New pattern.
13311
13312         * config/rx/rx.c (rx_float_compare_mode): Remove.
13313         * config/rx/rx.h (rx_float_compare_mode): Remove.
13314         * config/rx/rx.md (cstoresi4): Split after reload.
13315         (*sccc): New pattern.
13316
13317         * config/rx/predicates.md (label_ref_operand): New.
13318         (rx_z_comparison_operator): New.
13319         (rx_zs_comparison_operator): New.
13320         (rx_fp_comparison_operator): New.
13321         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13322         Validate that the flags are set properly for the comparison.
13323         (rx_gen_cond_branch_template): Remove.
13324         (rx_cc_modes_compatible): Remove.
13325         (mode_from_flags): New.
13326         (flags_from_code): Rename from flags_needed_for_conditional.
13327         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13328         (rx_select_cc_mode): Likewise.
13329         (rx_split_fp_compare): New.
13330         (rx_split_cbranch): New.
13331         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13332         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13333         (*cbranchsf4): Similarly.
13334         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13335         match_operator and rx_split_cbranch.
13336         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13337         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13338         (*cmpsi): Rename from cmpsi.
13339         (*tstsi): Rename from tstsi.
13340         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13341         (*conditional_branch): Rename from conditional_branch.
13342         (*reveresed_conditional_branch): Remove.
13343         (b<code>): Remove expander.
13344         * config/rx/rx-protos.h: Update.
13345
13346         * config/rx/rx.c (rx_compare_redundant): Remove.
13347         * config/rx/rx.md (cmpsi): Don't use it.
13348         * config/rx/rx-protos.h: Update.
13349
13350         * config/rx/rx-modes.def (CC_F): New mode.
13351         * config/rx/rx.c (rx_select_cc_mode): New.
13352         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13353         * config/rx/rx-protos.h: Update.
13354
13355 2011-01-17  Richard Henderson  <rth@redhat.com>
13356
13357         * except.c (dump_eh_tree): Fix stray ; after for statement.
13358
13359 2011-01-17  Richard Guenther  <rguenther@suse.de>
13360
13361         PR tree-optimization/47313
13362         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13363         handling before copying the body.  Properly deal with
13364         by-reference result in SSA form.
13365
13366 2011-01-17  Ian Lance Taylor  <iant@google.com>
13367
13368         PR target/47219
13369         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13370         (struct_value_alias_set): Don't define.
13371         (sparc_option_override): Don't set sparc_sr_alias_set and
13372         struct_value_alias_set.
13373         (save_or_restore_regs): Use gen_frame_mem rather than calling
13374         set_mem_alias_set.
13375         (sparc_struct_value_rtx): Likewise.
13376
13377 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13378
13379         PR target/47318
13380         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13381         (_mm_maskstore_pd): Likewise.
13382         (_mm_maskload_ps): Likewise.
13383         (_mm_maskstore_ps): Likewise.
13384         (_mm256_maskload_pd): Change mask to __m256i.
13385         (_mm256_maskstore_pd): Likewise.
13386         (_mm256_maskload_ps): Likewise.
13387         (_mm256_maskstore_ps): Likewise.
13388
13389         * config/i386/i386-builtin-types.def: Updated.
13390         (ix86_expand_special_args_builtin): Likewise.
13391
13392         * config/i386/i386.c (bdesc_special_args): Update
13393         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13394         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13395         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13396         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13397
13398         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13399         Use <avxpermvecmode> on mask register.
13400         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13401
13402 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13403             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13404             Eric Botcazou  <ebotcazou@adacore.com>
13405
13406         PR target/46655
13407         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13408         if <= USHRT_MAX in 32-bit mode.
13409
13410 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13411
13412         * doc/install.texi (Configuration, Specific): Wrap long
13413         lines in examples.  Allow line wrapping in long options
13414         and URLs where beneficial for PDF output.
13415
13416 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13417
13418         * config/mips/mips.c (mips_classify_symbol): Don't return
13419         SYMBOL_PC_RELATIVE for nonlocal labels.
13420
13421 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13422
13423         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13424
13425 2011-01-15  Jan Hubicka  <jh@suse.cz>
13426
13427         PR tree-optimization/47276
13428         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13429         declarations as needed.
13430
13431 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13432
13433         * common.opt (fdevirtualize): New flag.
13434         * doc/invoke.texi (Option Summary): Document it.
13435         * opts.c (default_options_table): Add devirtualize flag.
13436         * ipa-prop.c (detect_type_change): Return immediately if
13437         devirtualize flag is not set.
13438         (detect_type_change_ssa): Likewise.
13439         (compute_known_type_jump_func): Likewise.
13440         (ipa_analyze_virtual_call_uses): Likewise.
13441
13442 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13443
13444         PR tree-optimization/45934
13445         PR tree-optimization/46302
13446         * ipa-prop.c (type_change_info): New type.
13447         (stmt_may_be_vtbl_ptr_store): New function.
13448         (check_stmt_for_type_change): Likewise.
13449         (detect_type_change): Likewise.
13450         (detect_type_change_ssa): Likewise.
13451         (compute_complex_assign_jump_func): Check for dynamic type change.
13452         (compute_complex_ancestor_jump_func): Likewise.
13453         (compute_known_type_jump_func): Likewise.
13454         (compute_scalar_jump_functions): Likewise.
13455         (ipa_analyze_virtual_call_uses): Likewise.
13456         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13457
13458 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13459
13460         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13461         * config/i386/i386.opt (msse5): New Alias.
13462
13463 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13464
13465         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13466         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13467         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13468         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13469
13470 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13471
13472         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13473         -mcpu options.
13474         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13475         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13476         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13477         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13478         Likewise.
13479         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13480
13481 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13482
13483         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13484
13485 2011-01-14  Mike Stump  <mikestump@comcast.net>
13486
13487         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13488         * config/fr30/fr30.md: Likweise
13489         (movsi_push): Likewise.
13490         (movsi_pop): Likewise.
13491         (enter_func): Likewise.
13492         * config/moxie/moxie.md (movsi_push): Likewise.
13493         (movsi_pop): Likewise.
13494
13495 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13496
13497         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13498         %{no_archive} %{exact_version}.
13499         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13500         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13501         %{no_archive} %{exact_version}.
13502         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13503         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13504         * config/mips/vxworks.h: Likewise.
13505
13506 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13507
13508         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13509
13510 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13511
13512         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13513         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13514
13515 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13516
13517         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13518         -nodefaultlib.
13519
13520 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13521
13522         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13523         for mcpu not cpu.
13524         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13525         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13526         not cpu.
13527         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13528         Don't handle -shlib.
13529
13530 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13533         (CC1_SPEC): Don't handle -profile.
13534
13535 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13538         * config/mips/mips.h (CC1_SPEC): Likewise.
13539
13540 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13541
13542         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13543         * config/mips/mips.h (CC1_SPEC): Likewise.
13544
13545 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13546
13547         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13548         * config/m32r/linux.h (LINK_SPEC): Likewise.
13549         * config/mips/linux.h (LINK_SPEC): Likewise.
13550         * config/mips/linux64.h (LINK_SPEC): Likewise.
13551         * config/sparc/linux.h (LINK_SPEC): Likewise.
13552         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13553         LINK_SPEC): Likewise.
13554         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13555
13556 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13557
13558         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13559         %{version:-v}.
13560         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13561
13562 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13563
13564         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13565         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13566
13567 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13570
13571 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13572
13573         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13574         supports -Bstatic/-Bdynamic.
13575         * configure: Regenerate.
13576
13577 2011-01-14  Jan Hubicka  <jh@suse.cz>
13578             Jack Howarth  <howarth@bromo.med.uc.edu>
13579
13580         PR target/46037
13581         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13582         when checking debug_info_level. Test write_symbols instead of
13583         debug_hooks->var_location when setting flag_var_tracking_uninit.
13584
13585 2011-01-14  Richard Guenther  <rguenther@suse.de>
13586
13587         PR tree-optimization/47179
13588         * target.def (ref_may_alias_errno): New target hook.
13589         * targhooks.h (default_ref_may_alias_errno): Declare.
13590         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13591         (default_ref_may_alias_errno): New function.
13592         * target.h (struct ao_ref_s): Declare.
13593         * tree-ssa-alias.c: Include target.h.
13594         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13595         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13596         (targhooks.o): Likewise.
13597         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13598         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13599
13600 2011-01-14  Richard Guenther  <rguenther@suse.de>
13601
13602         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13603
13604 2011-01-14  Richard Guenther  <rguenther@suse.de>
13605
13606         PR tree-optimization/47280
13607         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13608         return CFG changes.
13609         (tree_ssa_forward_propagate_single_use_vars): Deal with
13610         CFG changes from associate_plusminus.
13611
13612 2011-01-14  Richard Guenther  <rguenther@suse.de>
13613
13614         PR middle-end/47281
13615         Revert
13616         2011-01-11  Richard Guenther  <rguenther@suse.de>
13617
13618         PR tree-optimization/46076
13619         * tree-ssa.c (useless_type_conversion_p): Conversions from
13620         unprototyped to empty argument list function types are useless.
13621
13622 2011-01-14  Richard Guenther  <rguenther@suse.de>
13623
13624         PR tree-optimization/47286
13625         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13626
13627 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13628
13629         PR middle-end/46823
13630         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13631
13632 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13633
13634         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13635         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13636         * config/xtensa/xtensa.c (xtensa_libcall_value,
13637         xtensa_function_value_regno_p): New functions.
13638         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13639
13640 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13641
13642         PR c++/47213
13643         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13644         PE specific hook.
13645         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13646         New function prototype.
13647         * config/i386/winnt.c (i386_pe_assemble_visibility):
13648         Warn only if attribute was specified by user.
13649
13650 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13651
13652         PR target/47251
13653         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13654         floating point.
13655         (floatunsdidf2_fcfidu): Ditto.
13656
13657 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13658
13659         * config/s390/s390.c (print_operand_address): Replace 'error' with
13660         'output_operand_lossage'.
13661         (print_operand): Likewise.
13662
13663 2011-01-13  Jeff Law  <law@redhat.com>
13664
13665         PR rtl-optimization/39077
13666         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13667         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13668         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13669         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13670         * gcse.c (prune_insertions_deletions): New function.
13671         (compute_pre_data): Use it.
13672
13673 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13674
13675         PR debug/PR46973
13676         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13677         static function.
13678         (prune_unused_types_mark): Use it.
13679
13680 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13681
13682         PR rtl-optimization/45352
13683         * sel-sched.c: Update copyright years.
13684         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13685         in the advancing loop when we have issued issue_rate insns.
13686
13687 2011-01-12  Richard Henderson  <rth@redhat.com>
13688
13689         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13690         (TARGET_MD_ASM_CLOBBERS): New.
13691
13692         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13693         (TARGET_DELEGITIMIZE_ADDRESS): New.
13694
13695         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13696         (clzsi2, *bsch): New patterns.
13697
13698         * config/mn10300/mn10300.md (INT): New mode iterator.
13699         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13700
13701         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13702         flag_split_wide_types.
13703
13704         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13705         (mn10300_trampoline_init): Rewrite without a template, an immediate
13706         load and a direct branch.
13707         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13708
13709 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13710
13711         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13712         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13713         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13714         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13715
13716 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13717
13718         PR debug/47209
13719         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13720         of type.
13721
13722 2011-01-12  Jan Hubicka  <jh@suse.cz>
13723
13724         PR driver/47244
13725         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13726         (PLUGIN_COND_CLOSE): New macro.
13727         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13728
13729 2011-01-12  Richard Guenther  <rguenther@suse.de>
13730
13731         PR lto/47259
13732         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13733         register variables in a MEM_REF.
13734
13735 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13738         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13739         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13740         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13741         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13742         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13743         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13744         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13745         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13746         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13747         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13748         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13749         * config/gnu-user.h: New.  Copied from linux.h.
13750         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13751         GNU_USER_TARGET_STARTFILE_SPEC.
13752         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13753         GNU_USER_TARGET_ENDFILE_SPEC.
13754         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13755         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13756         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13757         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13758         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13759         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13760         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13761         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13762         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13763         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13764         * config/arm/linux-eabi.h (CC1_SPEC): Use
13765         GNU_USER_TARGET_CC1_SPEC.
13766         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13767         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13768         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13769         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13770         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13771         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13772         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13773         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13774
13775 2011-01-12  Richard Guenther  <rguenther@suse.de>
13776
13777         PR other/46946
13778         * doc/invoke.texi (ffast-math): Document it is turned on
13779         with -Ofast.
13780
13781 2011-01-12  Jan Hubicka  <jh@suse.cz>
13782
13783         PR tree-optimization/47233
13784         * opts.c (common_handle_option): Disable ipa-reference with profile
13785         feedback.
13786
13787 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13788
13789         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13790         error message.
13791
13792 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13793
13794         * c-parser.c (c_lex_one_token): Updated and reindented some
13795         comments.  No changes in code.
13796
13797 2011-01-11  Ian Lance Taylor  <iant@google.com>
13798
13799         * godump.c (go_output_var): Don't output the variable if there is
13800         already a type with the same name.
13801
13802 2011-01-11  Ian Lance Taylor  <iant@google.com>
13803
13804         * godump.c (go_format_type): Don't generate float80.
13805
13806 2011-01-11  Richard Henderson  <rth@redhat.com>
13807
13808         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13809         declaration.  Rewrite for both speed and size.
13810         (mn10300_address_cost_1): Remove.
13811         (mn10300_register_move_cost): New.
13812         (mn10300_memory_move_cost): New.
13813         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13814         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13815         extensions, shifts, BSWAP, CLZ.
13816         (mn10300_wide_const_load_uses_clr): Remove.
13817         (TARGET_REGISTER_MOVE_COST): New.
13818         (TARGET_MEMORY_MOVE_COST): New.
13819         * config/mn10300/mn10300-protos.h: Update.
13820         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13821
13822         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13823         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13824         * config/mn10300/mn10300-protos.h: Update.
13825         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13826         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13827         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13828         (*test_int_bitfield, *test_byte_bitfield): Remove.
13829         (*bit_test, *subreg_bit_test): Remove.
13830         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13831
13832         * config/mn10300/constraints.md ("c"): Rename from "A".
13833         ("A", "D"): New constraint letters.
13834         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13835         (fmssf4, fnmasf4, fnmssf4): Likewise.
13836
13837         * config/mn10300/mn10300.md (isa): New attribute.
13838         (enabled): New attribute.
13839
13840         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13841         (abssf2, negsf2): Define only for hardware fp.
13842         (sqrtsf2): Reformat.
13843         (addsf3, subsf3, mulsf3): Merge expander and insn.
13844
13845         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13846         (DEBUGGER_AUTO_OFFSET): Remove.
13847         (DEBUGGER_ARG_OFFSET): Remove.
13848
13849         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13850         Emit register stores with the same offsets as the hardware.
13851         (mn10300_store_multiple_operation): Don't check that the register
13852         save offsets are monotonic.
13853         * config/mn10300/mn10300-protos.h: Update.
13854
13855         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13856
13857         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13858         in terms of the value on the stack, not the MDR register.
13859
13860 2011-01-11  Jan Hubicka  <jh@suse.cz>
13861
13862         PR lto/45721
13863         PR lto/45375
13864         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13865         (symbol_alias_set_destroy, symbol_alias_set_contains,
13866         propagate_aliases_backward): Declare.
13867         * lto-streamer-out.c (struct sets): New sturcture.
13868         (trivally_defined_alias): New function.
13869         (output_alias_pair_p): Rewrite.
13870         (output_unreferenced_globals): Fix output of alias pairs.
13871         (produce_symtab): Likewise.
13872         * ipa.c (function_and_variable_visibility): Set weak alias destination
13873         as needed in lto.
13874         * varasm.c (symbol_alias_set_t): Remove.
13875         (symbol_alias_set_destroy): Export.
13876         (propagate_aliases_forward, propagate_aliases_backward): New functions
13877         based on ...
13878         (compute_visible_aliases): ... this one; remove.
13879         (trivially_visible_alias): New
13880         (trivially_defined_alias): New.
13881         (remove_unreachable_alias_pairs): Rewrite.
13882         (finish_aliases_1): Reorganize code checking if alias is defined.
13883         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13884         in LTO mode.
13885
13886 2011-01-11  Richard Guenther  <rguenther@suse.de>
13887
13888         PR tree-optimization/46076
13889         * tree-ssa.c (useless_type_conversion_p): Conversions from
13890         unprototyped to empty argument list function types are useless.
13891
13892 2011-01-11  Richard Guenther  <rguenther@suse.de>
13893
13894         PR middle-end/45235
13895         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13896         volatile MEMs as MEM_READONLY_P.
13897
13898 2011-01-11  Richard Guenther  <rguenther@suse.de>
13899
13900         PR tree-optimization/47239
13901         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13902
13903 2011-01-11  Jeff Law  <law@redhat.com>
13904
13905         PR tree-optimization/47086
13906         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13907         IVs from statements that might throw.
13908
13909 2011-01-10  Jan Hubicka  <jh@suse.cz>
13910
13911         PR lto/45375
13912         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13913
13914 2011-01-10  Jan Hubicka  <jh@suse.cz>
13915
13916         PR lto/45375
13917         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13918         when correcting profile.
13919
13920 2011-01-10  Jan Hubicka  <jh@suse.cz>
13921
13922         PR lto/46083
13923         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13924         DECL_FINI_PRIORITY.
13925         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13926         Restore DECL_FINI_PRIORITY.
13927
13928 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13929
13930         * doc/gimple.texi: Fix quoting of multi-word return values in
13931         @deftypefn statements.  Ensure presence of return value.  Wrap
13932         overlong @deftypefn lines.
13933         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13934         descriptions of removed functions.
13935         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13936         of multi-word return value in @deftypefn statement.
13937
13938 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13939
13940         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13941         (Conditional Expressions, Logical Operators)
13942         (Statement and operand traversals): Do not indent smallexample
13943         code.  Fix duplicate function argument in example.
13944
13945 2011-01-10  Jeff Law  <law@redhat.com>
13946
13947         PR tree-optimization/47141
13948         * ipa-split.c (split_function): Handle case where we are
13949         returning a value and the return block has a virtual operand phi.
13950
13951 2011-01-10  Jan Hubicka  <jh@suse.cz>
13952
13953         PR tree-optimization/47234
13954         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13955         (pass_feedback_split_functions): Declare.
13956         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13957         tree-profile.
13958         * ipa-split.c (gate_split_functions): Update comments; disable
13959         split-functions for profile_arc_flag and branch_probabilities.
13960         (gate_feedback_split_functions): New function.
13961         (execute_feedback_split_functions): New function.
13962         (pass_feedback_split_functions): New global var.
13963
13964 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13965
13966         PR lto/46760
13967         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13968         calling gimple_call_set_cannot_inline.
13969
13970 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13971
13972         * config/darwin-sections.def: Remove unused section.
13973
13974 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13975
13976         PR c++/47218
13977         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13978
13979 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13980
13981         PR objc/47232
13982         * c-parser.c (c_parser_declaration_or_fndef): Improved
13983         error message.
13984
13985 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13986
13987         * config/i386/winnt.c (i386_pe_start_function): Make sure
13988         to switch back to function's section.
13989
13990 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13991
13992         PR gcc/46902
13993         PR testsuite/46912
13994         * plugin.c: Move include of dlfcn.h from here...
13995         * system.h: ... to here.
13996
13997 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13998
13999         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14000         file name.
14001         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14002         two extra empty pages in PDF output.
14003
14004 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14005
14006         PR objc/47078
14007         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14008         for error recovery purposes behave as if it was not specified so
14009         that the default type is usd.
14010
14011 2011-01-07  Jan Hubicka  <jh@suse.cz>
14012
14013         PR tree-optmization/46469
14014         * ipa.c (function_and_variable_visibility): Clear needed flags on
14015         nodes with external decls; handle weakrefs merging correctly.
14016
14017 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14018
14019         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14020         not false.
14021
14022 2011-01-07  Jan Hubicka  <jh@suse.cz>
14023
14024         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14025         and no longer claim that gold is required for linker plugin.
14026         * configure: Regenerate.
14027         * gcc.c (PLUGIN_COND): New macro.
14028         (LINK_COMMAND_SPEC): Use it.
14029         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14030         * config.in (HAVE_LTO_PLUGIN): New.
14031         * configure.ac (--with-lto-plugin): New parameter; autodetect
14032         HAVE_LTO_PLUGIN.
14033
14034 2011-01-07  Jan Hubicka  <jh@suse.cz>
14035
14036         PR tree-optimization/46367
14037         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14038         when we can update original.
14039         (cgraph_mark_inline_edge): Sanity check.
14040         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14041
14042 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14043
14044         * config/spu/spu.h (ASM_COMMENT_START): Define.
14045
14046 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14047
14048         PR driver/42445
14049         * gcc.c (%>S): New.
14050         (SWITCH_KEEP_FOR_GCC): Likewise.
14051         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14052         (do_spec_1): Handle "%>".
14053
14054         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14055
14056 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14057
14058         PR target/47201
14059         * config/i386/i386.c (ix86_delegitimize_address): If
14060         simplify_gen_subreg fails, return orig_x.
14061
14062         PR bootstrap/47187
14063         * value-prof.c (gimple_stringop_fixed_value): Handle
14064         lhs of the call properly.
14065
14066 2011-01-07  Jan Hubicka  <jh@suse.cz>
14067
14068         PR lto/45375
14069         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14070
14071 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14072
14073         * target.def (function_switched_text_sections): New hook.
14074         * doc/tm.texi: Regenerated.
14075         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14076         * final.c (default_function_switched_text_sections): New.
14077         (final_scan_insn): Call function_switched_text_sections when a
14078         mid-function section change occurs.
14079         * output.h (default_function_switched_text_sections): Declare.
14080         * config/darwin-protos.h (darwin_function_switched_text_sections):
14081         Likewise.
14082         * config/darwin.c (darwin_function_switched_text_sections): New.
14083         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14084
14085 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14086
14087         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14088         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14089         the secondary code fragment when outputting for DWARF == 2.
14090
14091 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14092
14093         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14094         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14095         Remove.
14096         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14097         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14098
14099 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14100
14101         PR debug/46704
14102         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14103         when it is not empty.
14104
14105 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14106
14107         Bobcat Enablement
14108         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14109         (case ${target}): Add btver1.
14110         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14111         -march=native recognize btver1 processors.
14112         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14113         btver1 def_and_undef
14114         * config/i386/i386.c (struct processor_costs btver1_cost): New
14115         btver1 cost table.
14116         (m_BTVER1): New definition.
14117         (m_AMD_MULTIPLE): Includes m_BTVER1.
14118         (initial_ix86_tune_features): Add btver1 tune.
14119         (processor_target_table): Add btver1 entry.
14120         (static const char *const cpu_names): Add btver1 entry.
14121         (software_prefetching_beneficial_p): Add btver1.
14122         (ix86_option_override_internal): Add btver1 instruction sets.
14123         (ix86_issue_rate): Add btver1.
14124         (ix86_adjust_cost): Add btver1.
14125         * config/i386/i386.h (TARGET_BTVER1): New definition.
14126         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14127         (enum processor_type): Add PROCESSOR_BTVER1.
14128         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14129
14130 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14131
14132         PR target/43309
14133         * config/i386/i386.c (legitimize_tls_address)
14134         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14135         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14136         (tls_initial_exec_64_sun): New pattern.
14137
14138 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14139
14140         * doc/invoke.texi (Overall Options): Improve wording and markup
14141         of the description of -wrapper.
14142
14143 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14144
14145         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14146         rdynamic, threads): New Driver options.
14147
14148 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14149
14150         PR target/38118
14151         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14152         if coming from .tdata.
14153         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14154
14155 2011-01-06  Jan Hubicka  <jh@suse.cz>
14156
14157         PR lto/47188
14158         * collect2.c (main): Do not enable LTOmode when plugin is active.
14159
14160 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14161
14162         PR other/45915
14163         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14164         --version output if supported.
14165         * configure: Regenerate.
14166
14167 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14168
14169         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14170         Driver options.
14171
14172 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14173
14174         PR c/47150
14175         * c-convert.c (convert): When converting a complex expression
14176         other than COMPLEX_EXPR to a different complex type, ensure
14177         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14178         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14179         when converting COMPLEX_TYPE.
14180
14181 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14182
14183         PR tree-optimization/47139
14184         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14185         only the last reduction value is used outside the loop.  Update
14186         documentation.
14187
14188 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14189
14190         * config/rtems.opt: New.
14191         * config.gcc (*-*-rtems*): Use rtems.opt.
14192
14193 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14194
14195         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14196         processors do not support 3DNow instructions.
14197
14198 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14199
14200         * config/spu/spu.c (spu_option_override): Set parameter
14201         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14202
14203 2011-01-05  Jan Hubicka  <jh@suse.cz>
14204
14205         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14206         at the command line.
14207
14208 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14209
14210         PR lto/47162
14211         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14212         deltas on streamed outgoing edges.
14213         (output_node_opt_summary): Output info for outgoing edges only when
14214         the node is in new parameter set.
14215         (output_cgraph_opt_summary): New parameter set, passed to the two
14216         aforementioned functions.  Update its forward declaration and its
14217         callee too.
14218
14219 2011-01-05  Tom Tromey  <tromey@redhat.com>
14220
14221         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14222         operator to c_finish_omp_atomic.
14223         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14224         (build_unary_op): Update.
14225         (build_modify_expr): Update.
14226         (build_asm_expr): Update.
14227
14228 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14229
14230         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14231         newly inserted insns.
14232         (pad_bb): Likewise.
14233         (spu_emit_branch_hint): Likewise.
14234         (insert_hbrp_for_ilb_runout): Likewise.
14235         (spu_machine_dependent_reorg): Call df_finish_pass after
14236         schedule_insns returns.
14237
14238 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14239
14240         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14241
14242 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14243
14244         PR tree-optimization/47005
14245         * tree-sra.c (struct access): Add 'non_addressable' bit.
14246         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14247         (decide_one_param_reduction): Return 0 if the parameter is passed by
14248         reference and one of the accesses in the group is non_addressable.
14249
14250 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14251
14252         PR tree-optimization/47056
14253         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14254         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14255         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14256
14257 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14258
14259         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14260         initializer.  Skip view conversions from aggregate types.
14261
14262 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14263
14264         PR bootstrap/47055
14265         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14266
14267 2011-01-04  Philipp Thomas  <pth@suse.de>
14268
14269         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14270         obvious typo.
14271
14272 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14273
14274         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14275         on empty epilogue sequences.
14276
14277 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14278
14279         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14280         non-static): New Driver options.
14281
14282 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14283
14284         PR driver/47137
14285         * gcc.c (default_compilers[]): Set combinable field to 0
14286         for all assembly languages.
14287
14288 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14289
14290         * config/mips/loongson3a.md: New file.
14291         * config/mips/mips.md: Include loongson3a.md.
14292         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14293         TUNE_LOONGSON_3A.
14294
14295 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14296
14297         PR middle-end/47017
14298         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14299         instead of convert_memory_address_addr_space on the base expression.
14300
14301 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14302
14303         * config/spu/spu.c (spu_option_override): Update error text
14304         for bad -march= / -mtune= values.
14305
14306 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14307
14308         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14309         if branch-hint optimization will be performed.
14310
14311 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14312
14313         PR tree-optimization/47148
14314         * ipa-split.c (split_function): Convert arguments to
14315         DECL_ARG_TYPE if possible.
14316
14317         PR tree-optimization/47155
14318         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14319         when computing uns.
14320
14321         PR rtl-optimization/47157
14322         * combine.c (try_combine): If undobuf.other_insn becomes
14323         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14324         and set *new_direct_jump_p too.
14325
14326 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14327
14328         PR tree-optimization/47021
14329         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14330
14331 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14332
14333         * gcc.c (process_command): Update copyright notice dates.
14334         * gcov.c (print_version): Likewise.
14335         * gcov-dump.c (print_version): Likewise.
14336         * mips-tfile.c (main): Likewise.
14337         * mips-tdump.c (main): Likewise.
14338
14339 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14340
14341         PR tree-optimization/46801
14342         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14343         aggregate fields start at byte boundary instead of the bit-field flag.
14344
14345 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14346
14347         PR driver/47137
14348         * gcc.c (main): Revert revision 168407.
14349
14350 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14351
14352         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14353
14354 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14355
14356         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14357         vector optab to expand vector/scalar shift, update gimple to vector.
14358
14359 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14360
14361         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14362         a thunk.
14363
14364 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14365
14366         PR tree-optimization/46984
14367         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14368         HOST_WIDE_INT.
14369         (cgraph_create_indirect_edge): Fixed line length.
14370         (cgraph_indirect_call_info): Declare.
14371         (cgraph_make_edge_direct) Update declaration.
14372         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14373         (cgraph_create_indirect_edge): Use it.
14374         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14375         callees.
14376         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14377         the new thunk_delta representation.
14378         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14379         HOST_WIDE_INT.
14380         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14381         (ipa_read_indirect_edge_info): Likewise.
14382         * lto-cgraph.c (output_edge_opt_summary): New function.
14383         (output_node_opt_summary): Call it on all outgoing edges.
14384         (input_edge_opt_summary): New function.
14385         (input_node_opt_summary): Call it on all outgoing edges.
14386
14387 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14388
14389         PR driver/47137
14390         * gcc.c (main): Don't check have_o when settting combine_inputs.
14391
14392 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14393
14394         * regrename.c: Add general comment describing the pass.
14395         (struct du_head): Remove 'length' field.
14396         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14397         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14398         Force renaming to the preferred class (if any) in the first pass and do
14399         not consider registers that belong to it in the second pass.
14400         (create_new_chain): Do not set 'length' field.
14401         (scan_rtx_reg): Likewise.
14402
14403 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14404
14405         PR tree-optimization/47140
14406         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14407         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14408         to bit_value_binop.
14409
14410         PR rtl-optimization/47028
14411         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14412         parm_birth_insn instead of at the beginning of first bb.
14413
14414 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14415
14416         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14417         Remove the word "see" before "@pxref".
14418         * doc/rtl.texi: Remove the word "see" before "@pxref".
14419
14420 2011-01-01  Jan Hubicka  <jh@suse.cz>
14421
14422         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14423         memory.
14424
14425 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14426
14427         PR target/38662
14428         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14429
14430 \f
14431 Copyright (C) 2011 Free Software Foundation, Inc.
14432
14433 Copying and distribution of this file, with or without modification,
14434 are permitted in any medium without royalty provided the copyright
14435 notice and this notice are preserved.