OSDN Git Service

2011-05-13 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-13  Martin Jambor  <mjambor@suse.cz>
2
3         * ipa-prop.c (ipa_cst_from_jfunc): New function.
4         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6         (evaluate_conditions_for_ipcp_clone): Removed.
7         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
10
11 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12
13         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15         lieu of MAY_HAVE_DEBUG_STMTS.
16         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17         debug statements if !MAY_HAVE_DEBUG_STMTS.
18
19 2011-05-13  Martin Thuresson  <martint@google.com>
20
21         PR gcov-profile/47793
22         * libgcov.c (gcov_exit): Support relative profile paths.
23         * doc/invoke.texi (-fprofile-dir): Update for above change.
24
25 2011-05-13  Richard Guenther  <rguenther@suse.de>
26
27         * gimple.c (gimple_canonical_types_compatible_p): Do not use
28         type-pair caching, do not compare hashes.
29
30 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
31
32         PR middle-end/48965
33         * tree-cfg.c (edge_to_cases_cleanup): Return true.
34         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
35
36 2011-05-13  Kai Tietz  <ktietz@redhat.com>
37
38         * gimplify.c (gimplify_expr): Make sure operand is boolified.
39         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
40         compatible type for TRUTH_NOT_EXPR.
41
42 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
43
44         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
45         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
46         can_create_pseudo_p ().
47
48 2011-05-13  Richard Guenther  <rguenther@suse.de>
49
50         PR lto/48978
51         * gimple.c (iterative_hash_gimple_type): Revert change in
52         pointer target and function result and argument hashing.
53
54 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
55
56         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
57         (*movxf_internal_nointeger): Ditto.
58         (*movdf_internal_rex64): Ditto.
59         (*movdf_internal): Ditto.
60         (*movdf_internal_nointeger): Ditto.
61         (*movsf_internal): Ditto.
62         (sincos splitters): Use can_create_pseudo ().
63
64 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
65
66         * config/i386/i386-opts.h: New.
67         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
68         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
69         ix86_section_threshold): Remove.
70         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
71         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
72         OPT_mbranch_cost_.
73         (ix86_option_override_internal): Don't decode strings for options
74         other than -march=, -mtune= and -mfpmath=.  Don't allow for
75         __attribute__ uses in remaining diagnostics for options with
76         string arguments.  Don't check for integer arguments being negative.
77         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
78         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
79         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
80         ix86_branch_cost, ix86_section_threshold): Remove.
81         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
82         HeaderInclude.
83         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
84         but not Var.
85         (masm=): Use Enum and Init.
86         (asm_dialect): New Enum and EnumValue entries.
87         (mbranch-cost=): Use UInteger.
88         (mlarge-data-threshold=): Use UInteger and Init.
89         (mcmodel=): Use Enum and Init.
90         (cmodel): New Enum and EnumValue entries.
91         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
92         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
93         mregparm=): Use UInteger.
94         (mstringop-strategy=): Use Enum and Init.
95         (stringop_alg): New Enum and EnumValue entries.
96         (mtls-dialect=): Use Enum and Init.
97         (tls_dialect): New Enum and EnumValue entries.
98         (mabi=): Use Enum and Init.
99         (calling_abi): New Enum and EnumValue entries.
100         (mveclibabi=): Use Enum and Init.
101         (ix86_veclibabi): New Enum and EnumValue entries.
102
103 2011-05-13  Nick Clifton  <nickc@redhat.com>
104
105         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
106         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
107
108 2011-05-13  Kai Tietz  <ktietz@redhat.com>
109
110         PR middle-end/48984
111         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
112         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
113         (gimple_boolify): Check for cast for boolean_type_node instead for
114         BOOLEAN_TYPE.
115
116 2011-05-13  Richard Guenther  <rguenther@suse.de>
117
118         PR tree-optimization/48172
119         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
120         multiplying by number of iterations for equal step.
121         (vect_create_cond_for_alias_checks): Likewise.
122
123 2011-05-13  Andreas Schwab  <schwab@redhat.com>
124
125         * configure.ac: Use AS_HELP_STRING throughout.
126         * configure: Regenerate.
127
128 >>>>>>> .r173734
129 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
130
131         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
132         (ix86_emit_restore_regs_using_mov): Likewise.
133         (ix86_emit_restore_sse_regs_using_mov): Likewise.
134
135 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
136
137         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
138         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
139         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
140         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
141         RTX_OK_FOR_OLO10_P): ...here.
142         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
143         SYMBOLIC_CONST.
144
145 2011-05-12  Kai Tietz  <ktietz@redhat.com>
146
147         * gimplify.c (gimple_boolify): Re-boolify expression
148         arguments even if expression type is of kind BOOLEAN_TYPE.
149         (gimplify_boolean_expr): Removed.
150         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
151         and XOR. Additional take care that we keep expression's type.
152         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
153         of TRUTH_AND|OR|XOR_EXPR.
154
155 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
156
157         PR tree-optimization/48975
158         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
159         on all bbs here and free and clear ifc_bbs at the end.
160
161 2011-05-12  Richard Guenther  <rguenther@suse.de>
162
163         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
164         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
165         until after simple checks.
166         (gimple_types_compatible_p): Likewise.
167         (iterative_hash_gimple_type): Always hash pointer targets
168         and function return and argument types.
169         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
170         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
171         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
172         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
173         completely in the simple compare section.
174         (gimple_register_canonical_type): Query the cache again after
175         registering.
176
177 2011-05-12  Richard Guenther  <rguenther@suse.de>
178
179         PR tree-optimization/48172
180         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
181         the number of iterations from the segment size calculation.
182         (vect_create_cond_for_alias_checks): Adjust.
183
184 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
185
186         PR debug/48967
187         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
188         if validate_subreg fails.
189
190 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
191
192         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
193         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
194         early.
195
196 2011-05-12  DJ Delorie  <dj@redhat.com>
197
198         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
199         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
200         created builtin into rx_builtins array.
201         (rx_builtin_decl): New function.
202         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
203
204 2011-05-12  DJ Delorie  <dj@redhat.com>
205             Nick Clifton  <nickc@redhat.com>
206
207         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
208         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
209         (rx_is_legitimate_address): Add pre-decrement and post-increment
210         addressing in HImode and QImode.  Fix test for out of range
211         REG+INT addressing.
212         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
213         (rx_align_for_label): Test label before extracting its usage count.
214         (rx_adjust_insn_lengths): Fix selection of insn codes.
215         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
216
217 2011-05-11  Jason Merrill  <jason@redhat.com>
218
219         * tree.c (type_hash_canon): Use struct tree_type_non_common.
220
221 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
222
223         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
224         reindent the subsequent block.
225
226 2011-05-11  Satoru Takabayashi  <satorux@google.com>
227             Paul Pluzhnikov  <ppluzhnikov@google.com>
228
229         * doc/install.texi (Configuration): Document --with-linker-hash-style.
230         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
231         * config.in: Add LINKER_HASH_STYLE.
232         * configure.ac: Add --with-linker-hash-style.
233         * configure: Regenerate.
234
235 2011-05-11  Richard Guenther  <rguenther@suse.de>
236
237         PR middle-end/48964
238         * gimple.c (iterative_hash_canonical_type): Fix typo.
239
240 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
241
242         * config/i386/i386.c (legitimize_tls_address)
243         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
244         expanders directly for TARGET_GNU2_TLS.  Determine pic and
245         __tls_get_addr symbol reference here.  Update call to
246         gen_tls_global_dynamic_{32,64} for added arguments.
247         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
248         expanders directly for TARGET_GNU2_TLS.  Determine
249         __tls_get_addr symbol reference here.  Update call to
250         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
251         unique UNSPEC REG_EQUIV to libcall block.
252         (ix86_tls_get_addr): Declare static.
253         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
254         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
255         Do not determine pic and __tls_get_addr symbol reference here. Do not
256         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
257         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
258         (tls_global_dynamic_64): Add operand 2.  Do not determine
259         __tls_get_addr symbol reference here.  Do not call
260         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
261         (tls_local_dynamic_base64): Ditto for operand 1.
262
263 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
264
265         * function.c (expand_function_start): Initialize stack_check_probe_note
266         only if the generic stack checking mechanism is used.
267
268 2011-05-11  Richard Guenther  <rguenther@suse.de>
269
270         PR tree-optimization/15256
271         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
272         (A & B) | C, combine (A op CST1) op CST2.
273         (tree_ssa_forward_propagate_single_use_vars): Only bother to
274         visit assigns that have uses.
275
276 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
277
278         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
279         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
280         (unpack_ts_type_common_value_fields): ...this.  Update comment.
281         (unpack_value_fields): Adjust for renaming.
282         (lto_input_ts_type_tree_pointers): Split into...
283         (lto_input_ts_type_common_tree_pointer): ...this and...
284         (lto_input_ts_type_non_common_tree_pointers): ...this.
285         (lto_input_tree_pointers): Adjust for above split.
286         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
287         (pack_ts_type_common_value_fields): ...this.  Update comment.
288         (lto_output_ts_type_tree_pointers): Split into...
289         (lto_output_ts_type_common_tree_pointers): ...this and...
290         (lto_output_ts_type_non_common_tree_pointers): ...this.
291         (lto_output_tree_pointers): Adjust for above split.
292         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
293         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
294         * stor-layout.c (vector_type_mode): Adjust location of mode field.
295         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
296         Define.
297         (struct tree_type): Split into...
298         (struct tree_type_common: ...this and...
299         (struct tree_type_with_lang_specific): ...this and...
300         (struct tree_type_non_common): ...this.  Adjust accessor macros
301         accordingly.
302         (TYPE_VALUES_RAW): Define.
303         (union tree_node): Update for above changes.
304         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
305         TS_TYPE_NON_COMMON.
306         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
307         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
308         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
309         * treestructu.def (TS_TYPE): Remove.
310         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
311         Define.
312
313 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
314
315         PR debug/48159
316         * tree-ssa.c (reset_debug_uses): New function.
317         * tree-flow.h (reset_debug_uses): New prototype.
318         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
319         * tree-loop-distribution.c (generate_loops_for_partition): Call
320         reset_debug_uses on the stmts that will be removed.  Keep around
321         all debug stmts, don't count them as bits in partition bitmap.
322         (generate_builtin): Don't count debug stmts or labels as bits in
323         partition bitmap.
324
325 2011-05-11  Richard Guenther  <rguenther@suse.de>
326
327         * gimple.c (gimple_type_hash_1): Merge with ...
328         (gimple_type_hash): ... this.
329         (gtc_visit): Remove mode parameter and simplify accordingly.
330         (gimple_types_compatible_p_1): Likewise.
331         (gimple_types_compatible_p): Likewise.
332         (iterative_hash_gimple_type): Likewise.
333         (visit): Likewise.
334         (gimple_type_eq): Adjust.
335
336 2011-05-11  Revital Eres  <revital.eres@linaro.org>
337
338         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
339         enters the branch create an anti edge in the opposite direction
340         to prevent the creation of reg-moves.
341         * modulo-sched.c: Adjust comment to reflect the fact we are
342         scheduling closing branch.
343         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
344         (stage_count): New field in struct partial_schedule.
345         (calculate_stage_count): New function.
346         (normalize_sched_times): Rename to reset_sched_times and handle
347         incrementing the sched time of the nodes by a constant value
348         passed as parameter.
349         (duplicate_insns_of_cycles): Skip closing branch.
350         (sms_schedule_by_order): Schedule closing branch.
351         (ps_insn_find_column): Handle closing branch.
352         (sms_schedule): Call reset_sched_times and adjust the code to
353         support scheduling of the closing branch.
354         (ps_insert_empty_row): Update calls to normalize_sched_times
355         and rotate_partial_schedule functions.
356
357 2011-05-11  Richard Guenther  <rguenther@suse.de>
358
359         PR middle-end/48953
360         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
361
362 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
363
364         * opts.c (finish_options): Move warning settings from process_options.
365         * toplev.c (process_options): Move warning settings to finish_options.
366
367 2011-05-11  Richard Guenther  <rguenther@suse.de>
368
369         PR tree-optimization/18041
370         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
371         (simplify_bitwise_binary): ... this.  Handle operand conversions
372         by applying them to the result instead.
373         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
374
375 2011-05-11  Richard Guenther  <rguenther@suse.de>
376
377         * gimple.c (gimple_canonical_types_compatible_p): Split out
378         from gimple_types_compatible_p and friends.  Do not recurse
379         to pointed-to types.
380         (gimple_canonical_type_eq): Use it.
381         (iterative_hash_canonical_type): Split out from
382         iterative_hash_gimple_type and friends.  Do not recurse
383         to pointed-to types.
384         (gimple_canonical_type_hash): Use it, allocate the hash here.
385
386 2011-05-11  Revital Eres  <revital.eres@linaro.org>
387
388         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
389         recognizing doloop.
390
391 2011-05-11  Revital Eres  <revital.eres@linaro.org>
392
393         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
394         instead of PREV_INSN.
395
396 2011-05-11  Revital Eres  <revital.eres@linaro.org>
397
398         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
399         * loop-doloop.c (doloop_condition_get): Likewise.
400         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
401         (doloop_end): New.
402         * config/arm/arm.md (*addsi3_compare0): Remove "*".
403
404 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
405
406         * tree.def (CASE_LABEL_EXPR): Add an operand.
407         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
408
409 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
410
411         * c-decl.c (c_override_global_bindings_to_false): Remove.
412         (global_bindings_p): Don't check
413         c_override_global_bindings_to_false.
414         * c-tree.h (c_override_global_bindings_to_false): Remove.
415         * c-typeck.c (composite_type): Don't set
416         c_override_global_bindings_to_false.
417
418 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
419
420         PR target/48857, 48495
421         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
422         (VSX_MODE): Ditto.
423         (VSX_MOVE_MODE): Ditto.
424         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
425         VSX vector types.  Add V2DImode.
426         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
427         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
428         (MODES_TIEABLE_P): Ditto.
429
430         * config/rs6000/rs6000.c (rs6000_emit_move): Use
431         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
432         VSX_VECTOR_MODE.
433         (init_cumulative_args): Ditto.
434         (rs6000_function_arg_boundary): Ditto.
435         (rs6000_function_arg_advance_1): Ditto.
436         (rs6000_function_arg): Ditto.
437         (rs6000_function_ok_for_sibcall): Ditto.
438         (emit_frame_save): Ditto.
439         (rs6000_function_value): Ditto.
440         (rs6000_libcall_value): Ditto.
441
442 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
443
444         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
445         i386/darwin-lib.h to $libgcc_tm_file.
446         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
447
448 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
449
450         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
451
452 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
453
454         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
455         * config/rs6000/rs6000-tables.opt: New file (generated).
456         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
457         rs6000/rs6000-tables.opt to extra_options.
458         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
459         * config/rs6000/rs6000.c (rs6000_select): Remove.
460         (processor_target_table): Move contents to rs6000-cpus.def.
461         (darwin_rs6000_override_options): Check
462         global_options_set.x_rs6000_cpu_index instead of
463         rs6000_select[1].string.
464         (rs6000_option_override_internal): Likewise.
465         (rs6000_handle_option): Don't assert that global structures are in
466         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
467         (rs6000_default_cpu): New variable.
468         (rs6000_file_start): Set it instead of local default_cpu.  Check
469         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
470         global_options_set.x_rs6000_tune_index instead of rs6000_select.
471         (rs6000_darwin_file_start): Check rs6000_default_cpu and
472         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
473         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
474         rs6000_select): Remove.
475         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
476         Remove.
477         (mcpu=, mtune=): Use Var, Init, Enum and Save.
478         * config/rs6000/t-rs6000
479         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
480         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
481         global_options_set.x_rs6000_cpu_index instead of
482         rs6000_select[1].string.
483         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
484         global_options_set.x_rs6000_cpu_index instead of
485         rs6000_select[1].string.
486
487 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
488
489         * config.gcc (libgcc_tm_file): Define instead of including files
490         from ../../libgcc/config/ in tm_file.
491         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
492         * configure: Regenerate.
493         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
494         libgcc_tm.h, cs-libgcc_tm.h): New.
495         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
496         (clean): Remove libgcc_tm.h.
497         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
498         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
499         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
500
501 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
502
503         PR target/48896
504         * config/avr/avr.c (avr_ret_register): Return unsigned int
505         instead of int.
506         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
507         it to avr_libcall_value.
508         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
509         expand_expr.
510         (avr_expand_binop_builtin): Ditto.
511         (avr_expand_unop_builtin): Ditto.
512
513 2011-05-10  DJ Delorie  <dj@redhat.com>
514
515         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
516         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
517         * config/rx/rx.c (rx_align_for_label): Add label and
518         uses_threshold parameters.  Do not align when the label is not
519         used enough.
520         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
521
522 2011-05-10  Richard Guenther  <rguenther@suse.de>
523
524         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
525         a series of conversions and apply foldings similar to what
526         fold-const does.
527         (tree_ssa_forward_propagate_single_use_vars): Call it.
528
529 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
530
531         PR tree-optimization/48611
532         PR tree-optimization/48794
533         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
534         referenced from RESX or EH_DISPATCH arguments.
535
536         PR debug/48928
537         * dfp.c (decimal_to_decnumber): Handle conversion from
538         dconst{1,2,m1,half}.
539
540 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
541
542         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
543         for !flag_prefer_avx128.
544         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
545
546 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
547
548         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
549         (fold_ternary_loc): Use expr_location_or.
550
551 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
552
553         PR debug/48853
554         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
555         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
556         Pmode and mem_mode is not VOIDmode.
557
558 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
559
560         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
561         TYPE_QUAL_RESTRICT): Convert to enum.
562
563 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
564
565         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
566         (const_pow2_1_to_8_operand): Ditto.
567         (const_pow2_1_to_128_operand): Ditto.
568         (const_pow2_1_to_32768_operand): Ditto.
569         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
570         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
571         in insn constraint to check integer value of operand 3.
572         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
573
574         (PINSR_MODE): New mode iterator.
575         (sse2p4_1): New mode attribute.
576         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
577         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
578         iterator.  Use const_int_operand instead of
579         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
580         exact_log2 in insn constraint to check integer value of operand 3.
581
582 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
583
584         * config/i386/sse.md (blendbits): Remove mode attribute.
585         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
586         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
587         Check integer value of operand 3 in insn constraint.
588
589 2011-05-09  Richard Guenther  <rguenther@suse.de>
590
591         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
592         for diagnostics.
593         (lto_symtab_merge): Likewise.  Do not register types here.
594         (lto_symtab_merge_decls_2): Likewise.
595         (lto_symtab_merge_decls_1): Likewise.
596         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
597         * gimple.c (enum gtc_mode): Declare.
598         (gimple_types_compatible_p): Make static.
599
600 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
601
602         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
603         temporary register to match Pmode.
604
605 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
606
607         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
608         and *vec_concatv4si_1_avx.
609
610 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
611
612         PR rtl-optimization/48927
613         * ira-conflicts.c (commutative_constraint_p): Use
614         recog_data.alternative_enabled_p to disable alternatives where
615         "enabled" attribute is false.
616         (get_dup_num): Ditto.
617         * ira-lives.c (single_reg_class): Ditto.
618         (ira_implicitly_set_insn_hard_regs): Ditto.
619
620 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
621
622         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
623         (dataflow_set_preserve_mem_locs): Likewise.
624
625 2011-05-09  Philipp Thomas  <pth@suse.de>
626
627         * config/mep/mep.c (mep_validate_vliw): Syntax description
628         should not be translated.
629
630 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
631
632         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
633         * config/mips/mips-tables.opt: New file (generated).
634         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
635         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
636         MIPS_ARCH_OPTION_NATIVE): Define.
637         * config/mips/mips.c (mips_cpu_info_table): Move contents to
638         mips-cpus.def.
639         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
640         mips_parse_cpu): Remove.
641         (mips_cpu_info_from_opt, mips_default_arch): New.
642         (mips_handle_option): Don't assert that global structures are in
643         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
644         (mips_option_override): Use new variables and functions to set
645         state of these options.  Use strcmp to check for individual CPU names.
646         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
647         definition.
648         * config/mips/mips.opt (march=): Use ToLower and Enum.
649         (mips): Use ToLower, Enum and Var.
650         (mtune=): Use ToLower and Enum.
651         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
652
653 2011-05-08  Jan Hubicka  <jh@suse.cz>
654
655         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
656         Arrange type pairs to be UID ordered.
657         (gimple_lookup_type_leader): Make inline.
658
659 2011-05-09  Nick Clifton  <nickc@redhat.com>
660
661         PR target/48899
662         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
663         PROCESSOR_DEFAULT.
664
665         PR target/48897
666         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
667         variable 's'.
668
669 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
670
671         * combine.c (simplify_comparison): Abstract out parts into...
672         (simplify_compare_const): ... new function.
673         (try_combine): Generalize parallel arithmetic/compare combining
674         to call simplify_compare_const() and CANONICALIZE_COMPARE().
675
676 2011-05-08  Jan Hubicka  <jh@suse.cz>
677
678         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
679         (cgraph_create_virtual_clone): Call hooks once virtual clone
680         is finished.
681         * cgraph.h (cgraph_clone_node): Update prototype.
682         * ipa-cp.c (ipcp_estimate_growth): Use
683         estimate_ipcp_clone_size_and_time.
684         * ipa-inline-transform.c (clone_inlined_nodes): Update.
685         * lto-cgraph.c (input_node): Update.
686         * ipa-inline.c (recursive_inlining): Update.
687         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
688         (evaluate_conditions_for_known_args): Break out from ...
689         (evaluate_conditions_for_edge): ... here.
690         (evaluate_conditions_for_ipcp_clone): New function.
691         (inline_node_duplication_hook): Update clone summary based
692         on parameter map.
693         (estimate_callee_size_and_time): Rename to ...
694         (estimate_node_size_and_time): take NODE instead of EDGE;
695         take POSSIBLE_TRUTHS as argument.
696         (estimate_callee_size_and_time): Update.
697         (estimate_ipcp_clone_size_and_time): New function.
698         (do_estimate_edge_time): Update.
699
700 2011-05-08  Richard Guenther  <rguenther@suse.de>
701
702         PR middle-end/48908
703         PR middle-end/48905
704         * expmed.c (expand_shift_1): Compute adjusted constant shift
705         amount manually.
706
707 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
708
709         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
710
711 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
712
713         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
714
715 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
716
717         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
718
719 2011-05-07  Jan Hubicka  <jh@suse.cz>
720
721         * ipa-inline-transform.c (inline_call): Account when program size
722         decreases.
723         * ipa-inline.c (relative_time_benefit): New function.
724         (edge_badness): Reorganize to be power 2 based; fix thinko when
725         computing badness for negative growth; update comments to match
726         reality; better dumps.
727
728 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
729
730         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
731         type to bool and adjust comment.
732         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
733         (fold_mathfn_compare): Remove calls to global_bindings_p.
734         (fold_inf_compare): Likewise.
735         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
736         * c-tree.h (global_bindings_p): Adjust prototype.
737         * c-decl.c (global_bindings_p): Return bool and simplify.
738
739 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
740
741         PR tree-optimization/48837
742         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
743         when accumulator transformation is performed.
744
745 2011-05-06  Jan Hubicka  <jh@suse.cz>
746
747         * i386.h (ix86_tune_indices): Add
748         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
749         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
750         * i386.c (initial_ix86_tune_features): Add
751         X86_SOFTARE_PREFETCHING_BENEFICIAL.
752         (software_prefetching_beneficial_p): Remove predicate.
753         (ix86_option_override_internal): Use new macro.
754
755 2011-05-06  Jan Hubicka  <jh@suse.cz>
756
757         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
758
759 2011-05-06  Jan Hubicka  <jh@suse.cz>
760
761         * cgraph.c (cgraph_add_thunk): Create real function node instead
762         of alias node; finalize it and mark needed/reachale; arrange visibility
763         to be right and add it into the corresponding same comdat group list.
764         (dump_cgraph_node): Dump thunks.
765         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
766         cgraph_function_with_gimple_body_p,
767         cgraph_first_function_with_gimple_body,
768         cgraph_next_function_with_gimple_body): New functions.
769         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
770         New macros.
771         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
772         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
773         * cgraphunit.c (cgraph_finalize_function): Only look into possible
774         devirtualization when optimizing.
775         (verify_cgraph_node): Verify thunks.
776         (cgraph_analyze_function): Analyze thunks.
777         (cgraph_mark_functions_to_output): Output thunks only in combination
778         with function they are assigned to.
779         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
780         alias into normal node.
781         (assemble_thunks): New functoin.
782         (cgraph_expand_function): Use it.
783         * lto-cgraph.c (lto_output_node): Stream thunks.
784         (input_overwrite_node): Stream in thunks.
785         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
786         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
787         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
788         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
789         (inline_analyze_function): Do not care about thunk jump functions.
790         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
791         * ipa-prop.c (ipa_prop_write_jump_functions): Use
792         cgraph_function_with_gimple_body_p.
793         * passes.c (do_per_function_toporder): Use
794         cgraph_function_with_gimple_body_p.
795         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
796         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
797         (function_called_by_processed_nodes_p): Likewise.
798
799 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
800
801         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
802         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
803         entries.
804         (mabi=): Replace with separate entries for mabi=altivec,
805         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
806         mabi=ieeelongdouble and mabi=ibmlongdouble.
807         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
808         check for -mabi=spe without SPE ABI support here.
809         (rs6000_handle_option): Replace OPT_mabi_ handling with
810         OPT_mabi_altivec and OPT_mabi_spe handling.
811
812 2011-05-06  Cary Coutant  <ccoutant@google.com>
813
814         * dwarf2out.c (contains_subprogram_definition): New function.
815         (should_move_die_to_comdat): Call it.
816
817 2011-05-06  Jeff Law  <law@redhat.com>
818
819         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
820         remove_ctrl_stmt_and_useless_edges.
821         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
822         (fixup_template_block, thread_single_edge): Likewise.
823         (mark_threaded_blocks): Use THREAD_TARGET.
824
825 2011-05-06  Alan Modra  <amodra@gmail.com>
826
827         PR target/48900
828         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
829         const0_rtx as the arg to the dummy __tls_get_addr libcall.
830
831 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
832
833         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
834         constraint modifier to "r".
835
836 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
837
838         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
839         fall through for OPT_mcmodel_.
840
841 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
842
843         * config/s390/s390.c (s390_asm_trampoline_template): Comment
844         instruction sizes.
845         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
846
847 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
848
849         PR target/47930
850         * config/arm/arm.opt (marm): Document it.
851         (mthumb): Reject negative variant.
852
853 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
854
855         PR target/48898
856         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
857         Fix typo in "ccvt" variable name.
858
859 2011-05-06  Tristan Gingold  <gingold@adacore.com>
860
861         PR target/48895
862         * config/vms/vms-ar.c (main): Remove cwd variable.
863
864 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
865
866         PR debug/48902
867         * var-tracking.c (prepare_call_arguments): Move else before #endif.
868
869 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
870
871         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
872         * gimplify.c (gimplify_switch_expr): Likewise.
873         * omp-low.c (expand_omp_sections): Likewise.
874         * tree-eh.c (lower_try_finally_switch): Likewise.
875         (lower_eh_dispatch): Likewise.
876         * tree.h (build_case_label): Declare.
877         * tree.c (build_case_label): Define.
878
879 2011-05-05  Jason Merrill  <jason@redhat.com>
880
881         PR c++/40975
882         * tree-inline.c (copy_tree_r): Use copy_statement_list.
883         (copy_statement_list): Don't recurse.
884         * stor-layout.c (copy_self_referential_tree_r): Don't allow
885         STATEMENT_LIST.
886
887 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
888
889         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
890         through from -mfpu= handling.
891         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
892
893 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
894
895         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
896         POST_MODIFY.
897
898 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
899
900         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
901         for 11.31.
902         (hppa[12]*-*-hpux11*): Ditto.
903         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
904         * config/ia64/hpux-unix2003.h: New.
905         * config/pa/pa-hpux1131.opt: New.
906         * config/pa/pa-hpux1131.h: New.
907         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
908         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
909         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
910
911 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
912
913         PR debug/48853
914         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
915         instead of mode as 3rd argument to recursive call.
916         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
917         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
918         VOIDmode.
919         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
920         don't give up if mode is Pmode and mem_mode is not VOIDmode.
921         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
922         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
923
924 2011-05-05  Julian Brown  <julian@codesourcery.com>
925
926         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
927         parenthesis in D-register case.
928
929 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
930
931         * opt-functions.awk (var_type_struct): Handle Enum options.
932         * optc-gen.awk: Don't check range of variables of character type.
933         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
934         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
935         rs6000_sdata_name, rs6000_explicit_options): Remove.
936         (rs6000_option_override_internal): Check for -malign-power here.
937         Use global_options_set instead of rs6000_explicit_options.
938         (rs6000_parse_fpu_option): Remove.
939         (rs6000_handle_option): Access variables via opts and opts_set
940         pointers.  Use error_at and warning_at.  Add fall-through
941         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
942         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
943         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
944         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
945         here.  Don't use rs6000_parse_fpu_option.
946         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
947         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
948         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
949         (mrecip=): Use Var.
950         (mspe): Use Var and Save.
951         (mtraceback=): Use Enum and Var.
952         (rs6000_traceback_type): New Enum and EnumValue entries.
953         (mfloat-gprs=): Use Enum, Var and Save.
954         (rs6000_float_gprs): New Enum and EnumValue entries.
955         (mlong-double-): use Var and Save.
956         (msched-costly-dep=, minsert-sched-nops=): Use Var.
957         (malign-): Use Enum and Var.
958         (rs6000_alignment_flags): New Enum and EnumValue entries.
959         (mfpu=): Use Enum.
960         (fpu_type_t): New Enum and EnumValue entries.
961         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
962         global_options_set instead of rs6000_explicit_options.
963         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
964         global_options_set instead of rs6000_explicit_options.
965         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
966         global_options_set instead of rs6000_explicit_options.
967         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
968         global_options_set instead of rs6000_explicit_options.
969         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
970         global_options_set instead of rs6000_explicit_options.
971         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
972         global_options_set instead of rs6000_explicit_options.
973         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
974         definition.
975         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
976         global_options_set instead of rs6000_explicit_options.
977         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
978         (rs6000_cmodel): New Enum and EnumValue entries.
979         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
980         global_options_set instead of rs6000_explicit_options.
981         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
982         (mtls-size=): Use Enum and Var.
983         (rs6000_tls_size): New Enum and EnumValue entries.
984
985 2011-05-05  Michael Matz  <matz@suse.de>
986
987         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
988         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
989         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
990         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
991         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
992         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
993         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
994         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
995         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
996         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
997         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
998         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
999         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1000         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1001         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1002         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1003
1004 2011-05-05  Richard Guenther  <rguenther@suse.de>
1005
1006         * expmed.c (expand_variable_shift): Rename to ...
1007         (expand_shift_1): ... this.  Take an expanded shift amount.
1008         For rotates recurse directly not building trees for the shift amount.
1009         (expand_variable_shift): Wrap around expand_shift_1.
1010         (expand_shift): Adjust.
1011
1012 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1013
1014         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1015
1016 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1017
1018         * tree.h (get_pending_sizes): Remove prototype.
1019         (put_pending_size): Likewise.
1020         (put_pending_sizes): Likewise.
1021         * stor-layout.c (pending_sizes): Delete.
1022         (get_pending_sizes): Likewise.
1023         (put_pending_size): Likewise.
1024         (put_pending_sizes): Likewise.
1025         (variable_size): Do not call put_pending_size and tidy up.
1026         * function.h (struct function): Remove dont_save_pending_sizes_p.
1027         * lto-streamer-in.c (input_function): Do not stream it.
1028         * lto-streamer-out.c (output_function): Likewise.
1029         * tree-inline.c (initialize_cfun): Do not copy it.
1030         * c-decl.c (store_parm_decls): Do not set it.
1031         * omp-low.c (create_task_copyfn): Likewise.
1032         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1033
1034 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1035
1036         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1037         conditions.
1038         (*movdf_internal): Ditto.
1039         (*movdf_internal_nointeger): Ditto.
1040         (*movsf_internal): Ditto.
1041
1042 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1043
1044         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1045         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1046         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1047         (c_variable_size): Remove.
1048         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1049         call put_pending_sizes.
1050         (get_parm_info): Add parameter expr.  Use it to set
1051         arg_info->pending_sizes.
1052         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1053         get_pending_sizes.
1054         * c-parser.c (c_parser_parms_declarator): Update call to
1055         c_parser_parms_list_declarator.
1056         (c_parser_parms_list_declarator): Take parameter expr.  Update
1057         call to push_parm_decl.  Update recursive call.  Don't call
1058         get_pending_sizes.  Update calls to get_parm_info.
1059         (c_parser_objc_method_definition): Update calls to
1060         c_parser_objc_method_decl and objc_start_method_definition.
1061         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1062         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1063         grokparm.
1064         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1065         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1066         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1067
1068 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1069
1070         PR pch/45979
1071         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1072         __ARM_EABI__ hosts.
1073
1074 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1075
1076         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1077         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1078         (spu_output_mi_thunk): New function.
1079
1080 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1081
1082         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1083         targetm.asm_out.print_operand.
1084         * config/sol2.c: Include target.h.
1085
1086 2011-05-04  Jan Hubicka  <jh@suse.cz>
1087
1088         * ipa-inline.c (reset_edge_caches): New function.
1089         (update_caller_keys): Add check_inlinablity_for; do not
1090         reset edge caches; remove now unnecesary loop.
1091         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1092         (update_all_callee_keys): Likewise.
1093         (inline_small_functions): Sanity check cache; update code
1094         recomputing it.
1095
1096 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1097
1098         PR rtl-optimization/47612
1099         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1100         as the last insn of the sequence to be moved.
1101
1102 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1103
1104         PR fortran/48864
1105         * doc/invoke.texi (Ofast): Document that it
1106         enables Fortran's -fno-protect-parens.
1107
1108 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1109
1110         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1111
1112 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1113
1114         * stor-layout.c (variable_size): Do not issue errors.
1115
1116 2011-05-04  Richard Guenther  <rguenther@suse.de>
1117
1118         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1119         for array-ref indices.
1120         (tree_coverage_counter_addr): Likewise.
1121         (build_fn_info_type): Use size_int for index types.
1122         (build_gcov_info): Likewise.
1123
1124 2011-05-04  Richard Guenther  <rguenther@suse.de>
1125
1126         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1127         to build_int_cst.
1128         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1129         for constructor indices.
1130         (push_init_level): Likewise.
1131
1132 2011-05-04  Richard Guenther  <rguenther@suse.de>
1133
1134         * explow.c (promote_mode): Move variable declarations before code.
1135
1136 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1137
1138         * tree.h (build_function_type_array): Declare.
1139         (build_varargs_function_type_array): Declare.
1140         (build_function_type_vec, build_varargs_function_type_vec): Define.
1141         * tree.c (build_function_type_array_1): New function.
1142         (build_function_type_array): New function.
1143         (build_varargs_function_type_array): New function.
1144
1145 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1146
1147         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1148         before setting STMT_VINFO_TYPE.
1149
1150 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1151
1152         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1153         instead of spu_pass_by_reference.
1154
1155 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1156
1157         * calls.c (emit_library_call_value_1): Invoke
1158         promote_function_mode hook on libcall arguments.
1159         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1160         argument being NULL.
1161         * targhooks.c (default_promote_function_mode): Lisewise.
1162         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1163         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1164
1165         * doc/tm.texi: Document that TYPE argument might be NULL.
1166
1167 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1168
1169         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1170
1171 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1172
1173         From Bernd Schmidt
1174         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1175
1176 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1177
1178         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1179         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1180         Move ...
1181         * mips-tfile.c: ... here.
1182         Don't include coretypes.h, tm.h, filenames.h.
1183         (saber_stop): Remove definition and all calls.
1184         [__SABER__]: Remove.
1185         (__LINE__): Remove default.
1186         (Size_t, Ptrdiff_t): Remove definitions.
1187         Replace by size_t, ptrdiff_t.
1188         [!MIPS_DEBUGGING_INFO]: Remove.
1189         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1190         (progname): Add const.
1191         (STATIC): Remove.
1192         Replace all uses by static.
1193         (ALIGN_SYMTABLE_OFFSET): Remove default.
1194         * mips-tdump.c: Don't include coretypes.h, tm.h.
1195         Remove !MIPS_IS_STAB guard.
1196         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1197         $(TM_H), filenames.h dependencies.
1198         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1199
1200 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1201
1202         From Jie Zhang
1203         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1204         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1205
1206 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1207
1208         From Bernd Schmidt
1209         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1210         account and save/restore RETS.
1211         (PROFILE_BEFORE_PROLOGUE): Define.
1212         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1213         the push insn to use predecrement.
1214
1215 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1216
1217         From Jie Zhang
1218         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1219
1220 2011-05-04  Nick Clifton  <nickc@redhat.com>
1221
1222         * config/mn10300/mn10300.c: Include cfgloop.h.
1223         (DUMP): New macro.
1224         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1225         Lcc or a FLcc insn into the instruction stream.
1226         (mn10300_block_contains_call): New function.  Returns true if the
1227         given basic block contains a CALL insn.
1228         (mn10300_loop_contains_call_insn): New function.  Returns true if
1229         the given loop contains a CALL insn.
1230         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1231         to use the SETLB and Lcc or FLcc insns.
1232         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1233         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1234         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1235         disable the SETLB optimization.
1236         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1237         __SETLB__ or __NO_SETLB__.
1238         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1239         (movsf_internal): Handle MDR register.
1240         (cmpsi): Make visible.
1241         (setlb): New pattern.
1242         (Lcc): New pattern.
1243         (FLcc): New pattern.
1244
1245 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1246
1247         PR target/48860
1248         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1249         for reg<->xmm moves.
1250         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1251         (vec_concatv2di_rex64_sse): Ditto.
1252         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1253         (*vec_extractv2di_1_rex64): Ditto.
1254
1255         Revert:
1256         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1257
1258         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1259         reg<->xmm moves.
1260         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1261
1262 2011-05-04  Richard Guenther  <rguenther@suse.de>
1263
1264         * tree.h (int_const_binop): Remove notrunc argument.
1265         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1266         create integer constants that are properly truncated.
1267         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1268         (const_binop): Remove zero notrunc argument to int_const_binop.
1269         (size_binop_loc): Likewise.
1270         (fold_div_compare): Likewise.
1271         (maybe_canonicalize_comparison_1): Likewise.
1272         (fold_comparison): Likewise.
1273         (fold_binary_loc): Likewise.
1274         (multiple_of_p): Likewise.
1275         * expr.c (store_constructor): Likewise.
1276         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1277         (maybe_fold_stmt_addition): Likewise.
1278         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1279         * stor-layout.c (layout_type): Likewise.
1280         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1281         * tree-sra.c (build_ref_for_offset): Likewise.
1282         (build_user_friendly_ref_for_offset): Likewise.
1283         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1284         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1285         * tree-ssa-loop-niter.c (inverse): Likewise.
1286         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1287         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1288         * tree-switch-conversion.c (check_range): Likewise.
1289         (build_constructors): Likewise.
1290         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1291         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1292         (extract_range_from_assert): Likewise.
1293         (vrp_int_const_binop): Likewise.
1294         (extract_range_from_binary_expr): Likewise.
1295         (extract_range_from_unary_expr): Likewise.
1296         (check_array_ref): Likewise.
1297         (find_case_label_range): Likewise.
1298         (simplify_div_or_mod_using_ranges): Likewise.
1299         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1300         comparing case labels for merging.
1301
1302 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1303
1304         * dwarf2out.c (debug_str_hash_forced): Removed.
1305         (gen_label_for_indirect_string): Removed.
1306         (get_debug_string_label): Removed.
1307         (AT_string_form): Generate label directly.
1308         (output_indirect_string): Test indirect_string_node for
1309         DW_FORM_strp instead of checking label and refcount.
1310         (prune_indirect_string): Removed.
1311         (prune_unused_types): Don't check debug_str_hash_forced or
1312         call prune_indirect_string.
1313
1314 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1315
1316         PR other/48093
1317         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1318
1319 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1320
1321         PR debug/47994
1322         PR debug/47919
1323         * combine.c (try_combine): Skip debug insns at m_split tests.
1324
1325 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1326
1327         PR42288
1328         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1329         when info_section_emitted.
1330
1331 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1332
1333         * config/mips/mips-opts.h: New.
1334         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1335         to mips-opts.h.
1336         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1337         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1338         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1339         via opts pointer.
1340         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1341         mips-opts.h.
1342         (mips_abi, mips_code_readable): Don't declare.
1343         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1344         (mabi=): Use Enum and Var.
1345         (mips_abi): New Enum and EnumValue entries.
1346         (mcode-readable=): Use Enum and Var.
1347         (mips_code_readable_setting): New Enum and EnumValue entries.
1348         (mr10k-cache-barrier=): Use Enum and Var.
1349         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1350
1351 2011-05-03  Jan Hubicka  <jh@suse.cz>
1352
1353         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1354         replace hash by pointer map.
1355         (cgraph_node_set_element_def, cgraph_node_set_element,
1356         const_cgraph_node_set_element, varpool_node_set_element_def,
1357         varpool_node_set_element, const_varpool_node_set_element): Remove.
1358         (free_cgraph_node_set, free_varpool_node_set): New function.
1359         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1360         * tree-emutls.c: Free varpool node set.
1361         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1362         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1363         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1364         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1365         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1366         Move here from ipa.c; implement using pointer_map
1367         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1368         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1369         debug_cgraph_node_set, varpool_node_set_new,
1370         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1371         dump_varpool_node_set, debug_varpool_node_set):
1372         Move to ipa-uitls.c.
1373         * passes.c (ipa_write_summaries): Update.
1374
1375 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1376
1377         From Mike Frysinger:
1378         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1379         bf542/bf544/bf547/bf548/bf549.
1380
1381 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1382
1383         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1384
1385 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1386
1387         From Bernd Schmidt:
1388         * config/bfin/bfin.md (MOVCC): New mode_macro.
1389         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1390         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1391         comments from generated assembly.
1392
1393 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1394
1395         From Bernd Schmidt
1396         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1397         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1398         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1399         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1400         * config/bfin/lib1funcs.asm (___muldi3): New function.
1401
1402 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1403
1404         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1405         build_function_type_list instead of build_function_type.
1406         Rearrange initialization of `args' to do so.
1407
1408 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1409
1410         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1411         instead of build_function_type.
1412
1413 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1414
1415         * config/rs6000/rs6000.c (spe_init_builtins): Call
1416         build_function_type_list instead of build_function_type.
1417         (paired_init_builtins, altivec_init_builtins): Likewise.
1418         (builtin_function_type): Likewise.
1419
1420 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1421
1422         * config/sh/sh.c (sh_media_init_builtins): Call
1423         build_function_type_list instead of build_function_type.
1424
1425 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1426
1427         * config/sparc/sparc.c (sparc_file_end): Call
1428         build_function_type_list instead of build_function_type.
1429
1430 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1431
1432         * config/alpha/alpha.c (alpha_init_builtins): Call
1433         build_function_type_list instead of build_function_type.
1434
1435 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1436
1437         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1438         build_function_type_list instead of build_function_type.
1439
1440 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1441
1442         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1443         build_function_type_list instead of build_function_type.
1444         Delete `endlink' variable.
1445
1446 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1447
1448         * config/avr/avr.c (avr_init_builtins): Call
1449         build_function_type_list instead of build_function_type.
1450
1451 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1452
1453         * config/picochip/picochip.c (picochip_init_builtins): Call
1454         build_function_type_list instead of build_function_type.
1455         Delete `endlink' variable.
1456
1457 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1458
1459         * config/bfin/bfin.c (bfin_init_builtins): Call
1460         build_function_type_list instead of build_function_type.
1461
1462 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1463
1464         From Bernd Schmidt
1465         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1466         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1467
1468 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1469
1470         From Jie Zhang:
1471         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1472         libbffastfp overrides libgcc when -mfast-fp.
1473
1474 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1475
1476         Originally from Bernd Schmidt
1477         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1478         * config/bfin/bfin.c (override_options): Test it and error if
1479         TARGET_FDPIC.
1480
1481 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1482
1483         Originally From Bernd Schmidt
1484         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1485         FD-PIC.
1486
1487 2011-05-03  Jeff Law  <law@redhat.com>
1488
1489         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1490         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1491         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1492         than accessing AUX field directly.  Free the AUX field before
1493         clearing it.
1494         (thread_block, thread_through_loop_header): Likewise.
1495         (thread_single_edge, mark_threaded_blocks): Likewise.
1496         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1497         (register_jump_thread): Do not attempt to thread to a NULL edge.
1498
1499 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1500
1501         * function.c (init_function_start): Call decide_function_section.
1502         * varasm.c (decide_function_section): New function.
1503         (assemble_start_function): When not using
1504         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1505         or first_function_block_is_cold.
1506         * rtl.h (decide_function_section): Declare.
1507
1508 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1509             Jakub Jelinek  <jakub@redhat.com>
1510
1511         PR target/48774
1512         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1513         only succeed if req_mode is the same as set_mode.
1514
1515 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1516
1517         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1518         * genemit.c (gen_exp): Handle RETURN.
1519         * emit-rtl.c (verify_rtx_sharing): Likewise.
1520         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1521         * rtl.c (copy_rtx): RETURN is shared.
1522         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1523         (ret_rtx): New.
1524         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1525         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1526         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1527         * config/cris/cris.c (cris_expand_return): Likewise.
1528         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1529         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1530         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1531         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1532         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1533         Likewise.
1534         * config/v850/v850.c (expand_epilogue): Likewise.
1535         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1536         * config/arm/arm.md (epilogue): Likewise.
1537         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1538         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1539         variable to ret_reg.
1540
1541 2011-05-03  Richard Guenther  <rguenther@suse.de>
1542
1543         PR lto/48846
1544         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1545         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1546         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1547
1548 2011-05-03  Richard Guenther  <rguenther@suse.de>
1549
1550         * c-decl.c (grokdeclarator): Instead of looking at
1551         TREE_OVERFLOW check if the constant fits in the index type.
1552
1553 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1554
1555         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1556         (vec_store_lanes<mode><mode>): Likewise.
1557
1558 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1559
1560         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1561         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1562         convert_optab_index values.
1563         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1564         * genopinit.c (optabs): Initialize the new optabs.
1565         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1566         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1567         (expand_STORE_LANES): New functions.
1568         * tree.h (build_array_type_nelts): Declare.
1569         * tree.c (build_array_type_nelts): New function.
1570         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1571         (vect_model_load_cost): Likewise.
1572         (vect_store_lanes_supported, vect_load_lanes_supported)
1573         (vect_record_strided_load_vectors): Declare.
1574         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1575         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1576         (vect_transform_strided_load): Split out statement recording into...
1577         (vect_record_strided_load_vectors): ...this new function.
1578         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1579         (write_vector_array, create_array_ref): New functions.
1580         (vect_model_store_cost): Add store_lanes_p argument.
1581         (vect_model_load_cost): Add load_lanes_p argument.
1582         (vectorizable_store): Try to use store-lanes functions for
1583         interleaved stores.
1584         (vectorizable_load): Likewise load-lanes and loads.
1585         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1586         to vect_model_store_cost.
1587         (vect_build_slp_tree): Likewise vect_model_load_cost.
1588
1589 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1590
1591         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1592         * hooks.c (hook_bool_mode_uhwi_false): New function.
1593         * target.def (array_mode_supported_p): New hook.
1594         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1595         * doc/tm.texi: Regenerate.
1596         * stor-layout.c (mode_for_array): New function.
1597         (layout_type): Use it.
1598         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1599         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1600
1601 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1602
1603         PR target/48723
1604         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1605         for -fstack-check if the size to allocate is negative.
1606
1607 2011-05-02  Lawrence Crowl  <crowl@google.com>
1608
1609         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1610         (timevar_cond_start): New for starting a timer only when it is not
1611         already running.
1612         (timevar_cond_stop): New for stopping a timer when it was not already
1613         running.
1614
1615         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1616         (timevar_cond_start): New as above.
1617         (timevar_cond_stop): New as above.
1618
1619         * timevar.def: Add start/stop timers for compiler phases,
1620         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1621         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1622         and TV_PHASE_FINALIZE.
1623         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1624         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1625         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1626         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1627         Make unused TV_OVERLOAD into a start/stop timer.
1628
1629         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1630         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1631         to indicate that they are start/stop timers.
1632
1633         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1634         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1635         Move initialization to do_compile.
1636         (do_compile): Add initialization from above.
1637         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1638
1639         * c-decl.c (c_write_global_declarations): Add start/stop of
1640         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1641
1642         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1643         or TV_PARSE_INLINE, as appropriate.
1644         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1645         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1646
1647 2011-05-02  Jason Merrill  <jason@redhat.com>
1648
1649         PR c++/40975
1650         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1651
1652 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1653
1654         PR c/35445
1655         * c-decl.c (finish_decl): Only create a composite if the types are
1656         compatible.
1657
1658 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1659
1660         * config/fr30/fr30-protos.h (Mmode): Don't define.
1661         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1662         definition where used.
1663         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1664         define.  Expand definitions where used.
1665         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1666         Expand definitions where used.
1667         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1668         rx_function_arg, rx_function_arg_advance,
1669         rx_function_arg_boundary): Expand definitions of those macros.
1670         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1671         definition where used.
1672
1673 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1674
1675         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1676         reg<->xmm moves.
1677         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1678         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1679         with *movv2sf_internal_rex64_avx.
1680         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1681         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1682         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1683         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1684         "vex" in "prefix" attribute calculation.
1685         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1686
1687 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1688
1689         PR target/47951
1690         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1691         inputs match the output.
1692
1693 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1694
1695         PR target/47955
1696         * config/m68k/m68k.c (m68k_expand_prologue): Set
1697         current_function_static_stack_size.
1698
1699 2011-05-02   Jan Hubicka  <jh@suse.cz>
1700
1701         * lto-streamer.c (lto_streamer_cache_insert_1,
1702         lto_streamer_cache_lookup, lto_streamer_cache_create,
1703         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1704         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1705
1706 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1709         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1710         config/m68k/t-opts: New files.
1711         * config/m68k/m68k-tables.opt: New file (generated).
1712         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1713         extra_options and m68k/t-opts to tmake_file.
1714         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1715         (all_isas): Initialize using m68k-isas.def.
1716         (all_microarchs): Initialize using m68k-microarchs.def.
1717         (m68k_find_selection): Remove.
1718         (m68k_handle_option): Don't assert that global structures are in
1719         use.  Use error_at.  Access variables via opts pointer.  Don't
1720         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1721         directly for -m68020-40 and -m68020-60.
1722         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1723         m68k_tune_entry here.
1724         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1725         to m68k-opts.h.
1726         (m68k_library_id_string): Remove declaration.
1727         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1728         (m68k_library_id_string): New Variable.
1729         (march=, mcpu=, mtune=): Use Enum and Var.
1730
1731 2011-05-02  Richard Guenther  <rguenther@suse.de>
1732
1733         * varasm.c (output_constructor_regular_field): Compute zero-based
1734         index with double-ints.  Make sure to ICE instead of producing
1735         wrong code.
1736         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1737         in asserts.  Properly use a signed type.
1738
1739 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1740
1741         * config/i386/sse.md (V): New mode iterator.
1742         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1743         TARGET_SSE2.
1744         (V_256): Rename from AVX256MODE.
1745         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1746         condition to all users.
1747         (VF1): Ditto.
1748         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1749         condition to all users.
1750         (VF_128): Make V4SF mode unconditional.
1751         (VF_256): Rename from AVX256MODEF2P.
1752         (VI4F_128): Rename from SSEMODE4S.
1753         (VI8F_128): Rename from SSEMODE2D.
1754         (VI4F_256): Rename from AVX256MODE8P.
1755         (VI8F_256): Rename from AVX256MODE4P.
1756         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1757         (ssescalarmodesuffix): Remove SF and DF modes.
1758         (SSEMODE124): Remove.
1759         (SSEMODE1248): Ditto.
1760         (SSEMODEF2P): Ditto.
1761         (AVXMODEF2P): Ditto.
1762         (AVXMODEFDP): Ditto.
1763         (AVXMODEFSP): Ditto.
1764         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1765         unconditional.
1766         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1767         unconditional.
1768         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1769         xop_pcmov_<mode>256.  Use V mode iterator.
1770
1771         Adjust RTX patterns globally for renamed mode attributes.
1772
1773 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1774
1775         * haifa-sched.c (sched_emit_insn): Emit insn before first
1776         non-scheduled insn.  Inform back-end about new insn.  Add
1777         new insn to scheduled_insns list.
1778
1779 2011-05-02  Richard Guenther  <rguenther@suse.de>
1780
1781         PR tree-optimization/48822
1782         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1783         (process_scc): Indicate which iteration we start.
1784
1785 2011-05-02  Jan Hubicka  <jh@suse.cz>
1786
1787         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1788         (lto_section_overrun): New.
1789         * lto-section-out.c (append_block): Rename to ...
1790         (lto_append_block): ... this one; export.
1791         (lto_output_1_stream): Move lto lto-streamer.h
1792         (lto_output_data_stream): Update.
1793         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1794         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1795         functions.
1796
1797 2011-05-02  Richard Guenther  <rguenther@suse.de>
1798
1799         * tree.c (tree_code_counts): New global array.
1800         (record_node_allocation_statistics): Count individual tree codes.
1801         (dump_tree_statistics): Dump individual code stats.
1802
1803 2011-05-01  Jan Hubicka  <jh@suse.cz>
1804
1805         * ipa-inline.c (caller_growth_limits): Fix thinko when
1806         looking for largest stack frame.
1807         * ipa-inline.h (dump_inline_summary): Declare.
1808         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1809         on stack usage.
1810         (dump_inline_summary): Export.
1811         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1812
1813 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1814
1815         * reginfo.c (memory_move_cost): Change rclass argument type form
1816         'enum reg_class' to reg_class_t.
1817         * reload.h (memory_move_cost): Update prototype.
1818         * postreload.c reload_cse_simplify_set): Change type dclass var to
1819         reg_class_t.
1820         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1821         Update prototype.
1822         (ira_allocate_and_set_costs): Change aclass argument type form
1823         'enum reg_class' to reg_class_t.
1824         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1825         Change aclass argument type to reg_class_t.
1826         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1827         to reg_class_t.
1828         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1829         memory_move_cost call.
1830
1831         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1832         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1833         Change type tmp var to reg_class_t.
1834
1835 2011-04-30  Jan Hubicka  <jh@suse.cz>
1836
1837         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1838         inlining into function with flatten attribute.
1839         (want_inline_small_function_p): Be more realistic about inlining
1840         cold calls where callee size grows.
1841
1842 2011-04-30  Jan Hubicka  <jh@suse.cz>
1843
1844         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1845         flags.
1846
1847 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1848
1849         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1850         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1851         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1852         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1853         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1854         (print_operand): Rename to...
1855         (sparc_print_operand): ...this. Make static. Adjust
1856         sparc_print_operand function call.
1857         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1858         functions.
1859
1860 2011-04-30  Jan Hubicka  <jh@suse.cz>
1861
1862         PR middle-end/48752
1863         * ipa-inline.c (early_inliner): Disable when doing late
1864         addition of function.
1865
1866 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1867
1868         * dwarf2out.c (get_address_mode): New inline.
1869         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1870         if not dwarf_strict emit
1871         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1872         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1873         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1874         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1875         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1876         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1877         mem_loc_descriptor callers.
1878         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1879         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1880         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1881         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1882         (base_types): New variable.
1883         (get_base_type_offset, calc_base_type_die_sizes,
1884         base_type_for_mode, mark_base_types, base_type_cmp,
1885         move_marked_base_types): New functions.
1886         (calc_die_sizes): Assert that die_offset is 0 or equal to
1887         next_die_offset.
1888         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1889         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1890         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1891         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1892         (gen_subprogram_die): Don't give up on call site parameters
1893         with non-integral or large integral modes.  Adjust
1894         mem_loc_descriptor callers.
1895         (prune_unused_types): Call prune_unused_types_mark on base_types
1896         vector entries.
1897         (resolve_addr): Call mark_base_types.
1898         (dwarf2out_finish): Call move_marked_base_types.
1899
1900         PR tree-optimization/48809
1901         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1902         type.
1903         (gen_inbound_check): Don't compute index_expr - range_min in utype
1904         again, instead reuse SSA_NAME initialized in build_arrays.
1905         Remove two useless gsi_for_stmt calls.
1906
1907 2011-04-29  Jeff Law  <law@redhat.com>
1908
1909         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1910
1911 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1912
1913         * cgraph.h (cgraph_postorder): Remove declaration.
1914         * ipa-utils.h (ipa_free_postorder_info): Declare.
1915         (ipa_reverse_postorder): Likewise.
1916         * cgraphunit.c: Include ipa-utils.h.
1917         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1918         * ipa-inline.c: Include ipa-utils.h.
1919         (ipa_inline): Update call to ipa_reverse_postorder.
1920         * ipa-pure-const.c (propagate_pure_const): Update call to
1921         ipa_reduced_postorder and ipa_print_order.  Call
1922         ipa_free_postorder_info to clean up.
1923         (propagate_nothrow): Likewise.
1924         * ipa-reference.c (propagate): Removed a useless call to
1925         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1926         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1927         * ipa.c: Include ipa-utils.h.
1928         (ipa_profile): Update call to ipa_reverse_postorder.
1929         (cgraph_postorder): Moved to...
1930         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1931         (ipa_utils_print_order): Renamed to ipa_print_order.
1932         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1933         comments.
1934         (ipa_free_postorder_info): New function.
1935         * passes.c: Include ipa-utils.h.
1936         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1937         (ipa_write_summaries): Likewise.
1938         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1939         (cgraphunit.o): Likewise.
1940         (ipa.o): Likewise.
1941         (ipa-inline.o): Likewise.
1942
1943 2011-04-29  Jan Hubicka  <jh@suse.cz>
1944
1945         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1946         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1947         * ipa-inline.h (clause_t): Turn into unsigned int.
1948         * ipa-inline-analysis.c (add_clause): Do more simplification.
1949         (and_predicates): Shortcut more cases.
1950         (predicates_equal_p): Move forward; check that clauses are properly
1951         ordered.
1952         (or_predicates): Shortcut more cases.
1953         (edge_execution_predicate): Rewrite as...
1954         (set_cond_stmt_execution_predicate): ... this function; handle
1955         __builtin_constant_p.
1956         (set_switch_stmt_execution_predicate): New .
1957         (compute_bb_predicates): New.
1958         (will_be_nonconstant_predicate): Update TODO.
1959         (estimate_function_body_sizes): Use compute_bb_predicates
1960         and free them later, always try to estimate if stmt is constant.
1961         (estimate_time_after_inlining, estimate_size_after_inlining):
1962         Gracefully handle optimized out edges.
1963         (read_predicate): Fix off by one error.
1964
1965 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1966
1967         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1968
1969 2011-04-27  Xinliang David Li  <davidxl@google.com>
1970
1971         * tree-profile.c (init_ic_make_global_vars): Set
1972         tls attribute on ic vars.
1973         * coverage.c (coverage_end_function): Initialize
1974         function_list with zero.
1975
1976 2011-04-29  Richard Guenther  <rguenther@suse.de>
1977
1978         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1979         for the type of the result.
1980         (fold_builtin_isascii): Likewise.
1981         (fold_builtin_toascii): Use integer_type_node where appropriate.
1982         (fold_builtin_logb): Likewise.
1983         (fold_builtin_frexp): Likewise.
1984         (fold_builtin_strstr): Likewise.
1985         (fold_builtin_strpbrk): Likewise.
1986         (fold_builtin_fputs): Likewise.
1987         (fold_builtin_sprintf): Likewise.
1988         (fold_builtin_snprintf): Likewise.
1989         (fold_builtin_printf): Likewise.
1990         (do_mpfr_remquo): Use a proper type for the assigned constant.
1991         (do_mpfr_lgamma_r): Likewise.
1992         * dwarf2out.c (resolve_one_addr): Use size_int.
1993         * except.c (init_eh): Likewise.
1994         (assign_filter_values): Use integer_type_node for filter values.
1995         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1996         indices.
1997         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1998         for EH region numbers.
1999         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2000         for the shift amount.
2001
2002 2011-04-29  Richard Guenther  <rguenther@suse.de>
2003
2004         * expr.h (expand_shift): Rename to ...
2005         (expand_variable_shift): ... this.
2006         (expand_shift): Take a constant shift amount.
2007         * expmed.c (expand_shift): Rename to ...
2008         (expand_variable_shift): ... this.
2009         (expand_shift): New wrapper around expand_variable_shift.
2010         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2011         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2012         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2013         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2014         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2015         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2016         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2017         emit_store_flag_1, emit_store_flag): Likewise.
2018         * builtins.c (expand_builtin_signbit): Likewise.
2019         * calls.c (load_register_parameters): Likewise.
2020         * function.c (assign_parm_setup_block): Likewise.
2021         * lower-subreg.c (resolve_shift_zext): Likewise.
2022         * optabs.c (widen_bswap, expand_abs_nojump,
2023         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2024         * spu/spu.c (spu_expand_extv): Likewise.
2025         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2026
2027 2011-04-29  Richard Guenther  <rguenther@suse.de>
2028
2029         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2030         for the remapped region number.
2031         * predict.c (build_predict_expr): Use integer_type_node for the
2032         predict kind.
2033         * fold-const.c (fold_binary_loc): Use integer_type_node for
2034         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2035
2036 2011-04-29  Michael Matz  <matz@suse.de>
2037
2038         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2039         other trees that just builtins.
2040         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2041
2042 2011-04-29  Richard Guenther  <rguenther@suse.de>
2043
2044         * tree-nested.c (get_trampoline_type): Use size_int.
2045         (get_nl_goto_field): Likewise.
2046         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2047         for all indexes.
2048         (lower_eh_constructs_2): Likewise.
2049         (lower_resx): Likewise.
2050         (lower_eh_dispatch): Likewise.
2051         * tree-mudflap.c (mf_build_string): Use size_int.
2052         (mudflap_register_call): Use integer_type_node for the flag.
2053         (mudflap_enqueue_constant): Use size_int.
2054         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2055         instead of rebuilding it.
2056
2057 2011-04-29  Richard Guenther  <rguenther@suse.de>
2058
2059         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2060         Handle OBJ_TYPE_REF.
2061         (find_func_aliases_for_call): Use it more consistently.
2062
2063 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2064
2065         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2066         (rank_for_schedule): Use it.
2067         (schedule_block): Set it.
2068
2069 2011-04-28  David Li  <davidxl@google.com>
2070
2071         * tree.c (crc32_string): Use crc32_byte.
2072         (crc32_byte): New function.
2073         * tree.h (crc32_byte): New function.
2074         * gcov.c (read_graph_file): Handle new cfg_cksum.
2075         (read_count_file): Ditto.
2076         * profile.c (instrument_values): Ditto.
2077         (get_exec_counts): Ditto.
2078         (read_profile_edge_counts): Ditto.
2079         (compute_branch_probabilities): Ditto.
2080         (compute_value_histograms): Ditto.
2081         (branch_prob): Ditto.
2082         (end_branch_prob): Ditto.
2083         * coverage.c (read_counts_file): Ditto.
2084         (get_coverage_counts): Ditto.
2085         (tree_coverage_counter_addr): Ditto.
2086         (coverage_checksum_string): Ditto.
2087         (coverage_begin_output): Ditto.
2088         (coverage_end_function): Ditto.
2089         (build_fn_info_type): Ditto.
2090         (build_fn_info_value): Ditto.
2091         * libgcov.c (gcov_exit): Ditto.
2092         * gcov-dump.c (tag_function): Ditto.
2093         (compute_checksum): Remove.
2094
2095 2011-04-29  Alan Modra  <amodra@gmail.com>
2096
2097         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2098         unspec plus offset.  Tidy macho code.
2099
2100 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2101
2102         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2103         node instead of a decl.  Update all callers.
2104         * cgraph.h: Update declaration.
2105
2106 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2107
2108         PR tree-optimization/48765
2109         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2110         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2111         to indicate if loop aware SLP is being used.  Scan the statements
2112         and update the vectorization factor according to the type of
2113         vectorization before statement analysis.
2114         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2115         pass it to vect_analyze_loop_operations.
2116         (vectorizable_reduction): Set number of copies to 1 in case of pure
2117         SLP statement.
2118         * tree-vect-stmts.c (vectorizable_conversion,
2119         vectorizable_assignment, vectorizable_shift,
2120         vectorizable_operation, vectorizable_type_demotion,
2121         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2122         Likewise.
2123         (vectorizable_condition): Move the check that it is not SLP
2124         vectorization before the number of copies check.
2125         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2126         to vectorize the loop using SLP.
2127
2128 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2129
2130         PR middle-end/48597
2131         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2132         inline asm.
2133
2134 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2135
2136         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2137         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2138         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2139         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2140         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2141         linux*.h headers.
2142         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2143         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2144         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2145         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2146         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2147         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2148         REG_NAME.
2149         * config/i386/linux.h (REG_NAME): Don't define.
2150         * config/i386/linux64.h (REG_NAME): Don't define.
2151         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2152         Undefine before defining.
2153
2154 2011-04-28  Jan Hubicka  <jh@suse.cz>
2155
2156         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2157         nonconstant_names array.
2158         (estimate_function_body_sizes): Build nonconstant_names array; handle
2159         BUILT_IN_CONSTANT_P.
2160
2161 2011-04-28  Richard Guenther  <rguenther@suse.de>
2162
2163         PR bootstrap/48804
2164         Revert
2165         2011-04-28  Richard Guenther  <rguenther@suse.de>
2166
2167         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2168         as late as possible.
2169
2170 2011-04-28  Richard Guenther  <rguenther@suse.de>
2171
2172         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2173         (debug_constraint): Do it here.
2174         (dump_constraints): And here.
2175         (rewrite_constraints): And here.
2176         (dump_constraint_edge): Remove.
2177         (dump_constraint_graph): Rewrite to produce DOT output.
2178         (solve_constraints): Build succ graph as late as possible.
2179         Dump constraint graphs before and after solving.
2180
2181 2011-04-28  Richard Guenther  <rguenther@suse.de>
2182
2183         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2184         New function split out from ...
2185         (find_func_aliases): ... here.  Call it.
2186         (find_func_aliases_for_call): Likewise.
2187
2188 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2189
2190         * internal-fn.h (internal_fn_name_array): Declare.
2191         (internal_fn_flags_array): Likewise.
2192
2193 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2194
2195         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2196         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2197         Move from sse.md.
2198         (ssemodefsuffix): Remove.
2199         (ssevecmodesuffix): New mode attribute.
2200         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2201         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2202         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2203         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2204         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2205         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2206         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2207         ssemodesuffix mode attribute.
2208         (float splitters): Use ssevecmodesuffix mode attribute.
2209         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2210         (sseinsmode): Rename from avxvecmode.
2211         (avxsizesuffix): Rename from avxmodesuffix.
2212         (sseintvecmode): Rename from avxpermvecmode.
2213         (ssedoublevecmode): Rename from ssedoublesizemode.
2214         (ssehalfvecmode): Rename from avxhalfvecmode.
2215         (ssescalarmode): Rename from avxscalarmode.
2216         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2217         templates for ssemodesuffix mode attribute.
2218         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2219         mode attribute.
2220
2221         Adjust RTX patterns globally for renamed mode attributes.
2222
2223 2011-04-27  Jan Hubcika  <jh@suse.cz>
2224
2225         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2226         * ipa-inline-analysis.c: Include alloc-pool.h.
2227         (edge_predicate_pool): New.
2228         (trye_predicate_p): New function
2229         (false_predicate_p): New function.
2230         (add_clause): Sanity check that false clauses are "optimized";
2231         never add clauses to predicate that is already known to be false.
2232         (and_predicate): Use flase_predicate_p.
2233         (evaulate_predicate): Rename to ...
2234         (evaluate_predicate): ... this one; update all callers; assert
2235         that false is not listed among possible truths.
2236         (dump_predicate): Use true_predicate_p.
2237         (account_size_time): Use false_predicate_p.
2238         (evaulate_conditions_for_edge): Rename to ...
2239         (evaluate_conditions_for_edge) ... this one.
2240         (edge_set_predicate): New function.
2241         (inline_edge_duplication_hook): Duplicate edge predicates.
2242         (inline_edge_removal_hook): Free edge predicates.
2243         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2244         (dump_inline_summary): Update.
2245         (estimate_function_body_sizes): Set edge predicates.
2246         (estimate_calls_size_and_time): Handle predicates.
2247         (estimate_callee_size_and_time): Update.
2248         (remap_predicate): Add toplev_predicate; update comment.
2249         (remap_edge_predicates): New function.
2250         (inline_merge_summary): Compute toplev predicate; update.
2251         (read_predicate): New function.
2252         (read_inline_edge_summary): Use it.
2253         (inline_read_section): Likewise.
2254         (write_predicate): New function.
2255         (write_inline_edge_summary): Use it.
2256         (inline_write_summary): Likewise.
2257         (inline_free_summary): Free alloc pool and edge summary vec.
2258
2259 2011-04-27  Richard Guenther  <rguenther@suse.de>
2260
2261         * tree-ssa-structalias.c (changed_count): Remove.
2262         (changed): Use a bitmap.
2263         (unify_nodes): Adjust.
2264         (do_sd_constraint): Likewise.
2265         (do_ds_constraint): Likewise.
2266         (do_complex_constraint): Likewise.
2267         (solve_graph): Likewise.
2268
2269 2011-04-27  Jan Hubicka  <jh@suse.cz>
2270
2271         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2272
2273 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2274
2275         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2276         (avx_vperm2f128_*_operand): Ditto.
2277         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2278         Use avx_vpermilp_parallel in insn condition.
2279         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2280         Use avx_vperm2f128_parallel in insn condition.
2281
2282 2011-04-27  Richard Guenther  <rguenther@suse.de>
2283
2284         * Makefile.in (tree-ssa-structalias.o): Remove
2285         gt-tree-ssa-structalias.h dependency.
2286         (GTFILES): Remove tree-ssa-structalias.c.
2287         * tree.c (allocate_decl_uid): New function.
2288         (make_node_stat): Use it.
2289         (copy_node_stat): Likewise.
2290         * tree.h (allocate_decl_uid): Declare.
2291         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2292         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2293         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2294         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2295         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2296         (struct heapvar_map): Likewise.
2297         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2298         heapvar_insert): Likewise.
2299         (make_heapvar_for): Rename to ...
2300         (make_heapvar): ... this.  Simplify.
2301         (fake_var_decl_obstack): New global var.
2302         (build_fake_var_decl): New function.
2303         (make_constraint_from_heapvar): Adjust.
2304         (handle_lhs_call): Likewise.
2305         (create_function_info_for): Likewise.
2306         (intra_create_variable_infos): Likewise.
2307         (init_alias_vars): Allocate fake_var_decl_obstack.
2308         (init_alias_heapvars, delete_alias_heapvars): Remove.
2309         (compute_points_to_sets): Do not call init_alias_heapvars.
2310         (ipa_pta_execute): Likewise.
2311         (delete_points_to_sets): Free fake_var_decl_obstack.
2312
2313 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2314
2315         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2316         (si_from_UTItype, si_to_UTItype): New functions.
2317         (__udivmodti4): Use them to implement type-punning.
2318         * config/spu/multi3.c (union qword_TItype): New data type.
2319         (si_from_TItype, si_to_TItype): New functions.
2320         (__multi3): Use them to implement type-punning.
2321
2322 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2323
2324         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2325
2326 2011-04-27  Jan Hubicka  <jh@suse.cz>
2327
2328         * ipa-prop.c (function_insertion_hook_holder): New holder.
2329         (ipa_add_new_function): New function.
2330         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2331         Register/deregister holder.
2332
2333 2011-04-27  Richard Guenther  <rguenther@suse.de>
2334
2335         PR tree-optimization/48772
2336         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2337
2338 2011-04-27  Richard Guenther  <rguenther@suse.de>
2339
2340         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2341         TARGET_MEM_REF handling.
2342
2343 2011-04-27  Nick Clifton  <nickc@redhat.com>
2344
2345         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2346         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2347         (REG_CLASS_NAMES): Likewise.
2348         (REG_CLASS_CONTENTS): Likewise.
2349         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2350         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2351         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2352         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2353         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2354         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2355         duplicate register classes.
2356         (frv_class_likely_spilled_p): Likewise.
2357         (frv_register_move_cost): Likewise.
2358
2359         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2360         end of the regno_reg_class array.
2361
2362 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2363
2364         PR c/48742
2365         * c-typeck.c (build_binary_op): Don't wrap arguments if
2366         int_operands is true.
2367
2368 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2369
2370         PR target/48767
2371         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2372         targetm.calls.must_pass_in_stack for void type.
2373
2374 2011-04-26  Jan Hubicka  <jh@suse.cz>
2375
2376         * cgraphbuild.c (build_cgraph_edges): Update call
2377         of cgraph_create_edge and cgraph_create_indirect_edge.
2378         * cgraph.c (cgraph_create_edge_including_clones,
2379         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2380         cgraph_update_edges_for_call_stmt_node): Do not take nest
2381         argument; do not initialize call_stmt_size/time.
2382         (dump_cgraph_node): Do not dump nest.
2383         (cgraph_clone_edge): Do not take loop_nest argument;
2384         do not propagate it; do not clone call_stmt_size/time.
2385         (cgraph_clone_node): Likewise.
2386         (cgraph_create_virtual_clone): Update.
2387         * cgraph.h (struct cgraph_edge): Remove
2388         call_stmt_size/call_stmt_time/loop_nest.
2389         (cgraph_create_edge, cgraph_create_indirect_edge,
2390         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2391         prototype.
2392         * tree-emutls.c (gen_emutls_addr): Update.
2393         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2394         loop_nest; handle indirect calls, too.
2395         (clone_inlined_nodes): Do not care about updating inline summaries.
2396         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2397         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2398         stream call_stmt_size/call_stmt_time/loop_nest.
2399         * ipa-inline.c (edge_badness): Update.
2400         (ipa_inline): dump summaries after inlining.
2401         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2402         New.
2403         (inline_edge_summary): New function.
2404         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2405         (inline_edge_removal_hook): Handle edge summaries.
2406         (inline_edge_duplication_hook): New hook.
2407         (inline_summary_alloc): Alloc hooks.
2408         (initialize_growth_caches): Do not register removal hooks.
2409         (free_growth_caches); Do not free removal hook.
2410         (dump_inline_edge_summary): New function.
2411         (dump_inline_summary): Use it.
2412         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2413         (inline_update_callee_summaries): New function.
2414         (inline_merge_summary): Use it.
2415         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2416         (read_inline_edge_summary): New function.
2417         (inline_read_section): Use it.
2418         (write_inline_edge_summary): New function.
2419         (inline_write_summary): Use it.
2420         (inline_free_summary): Free edge new holders.
2421         * tree-inline.c (copy_bb): Update.
2422
2423 2011-04-26  Jason Merrill  <jason@redhat.com>
2424
2425         * tree-eh.c (lower_try_finally_switch): Create the label along with
2426         the CASE_LABEL_EXPR.
2427
2428 2011-04-26  David S. Miller  <davem@davemloft.net>
2429             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2430
2431         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2432         * configure: Regenerate.
2433
2434 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2435
2436         PR target/48258
2437         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2438         reduction.
2439         (VEC_reduc): New code iterator and splitters for vector reduction.
2440         (VEC_reduc_name): Ditto.
2441         (VEC_reduc_rtx): Ditto.
2442         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2443         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2444
2445         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2446         support for extracting SF on VSX.
2447
2448         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2449         generating xscvspdp.
2450         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2451         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2452         double add, minimum, maximum vector reduction.
2453         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2454         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2455         optimize double vector reduction.
2456         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2457
2458 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2459
2460         * config/fr30/fr30.h (inhibit_libc): Don't define.
2461         * config/m32r/m32r-protos.h: Correct comment.
2462         * config/v850/v850.h (GHS_default_section_names,
2463         GHS_current_section_names): Use tree, not union tree_node *.
2464
2465 2011-04-26  Xinliang David Li  <davidxl@google.com>
2466
2467         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2468         * c-family/c-opts.c (c_common_handle_option): Set
2469         warn_maybe_uninitialized.
2470         * opts.c (common_handle_option): Ditto.
2471         * common.opt:  New option.
2472         * tree-ssa.c (warn_uninit): Add one more parameter.
2473         (warn_uninitialized_var): Pass warning code.
2474         * tree-flow.h: Interface change.
2475
2476
2477 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2478
2479         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2480         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2481         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2482
2483 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2484
2485         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2486         * config/mips/mips.opt (mmips-tfile): Remove.
2487
2488         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2489         mips-tdump reference to ...
2490         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2491         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2492         reference by Tru64 UNIX.
2493
2494 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2495
2496         PR debug/48768
2497         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2498         is error_mark_node, set value to NULL.
2499
2500         PR tree-optimization/48734
2501         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2502         if return value from maybe_fold_*_comparsions isn't something
2503         the code is prepared to handle.
2504
2505 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2506
2507         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2508         mode check.
2509         (ext_QIreg_nomode_operands): Remove.
2510         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2511         (*andsi_1): Ditto.
2512         (*andhi_1): Ditto.
2513
2514 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2515
2516         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2517
2518 2011-04-26  Richard Guenther  <rguenther@suse.de>
2519
2520         * c-typeck.c (build_unary_op): Do not expand array-refs via
2521         pointer arithmetic.  Only adjust qualifiers for function types.
2522
2523 2011-04-26  Richard Guenther  <rguenther@suse.de>
2524
2525         PR middle-end/48694
2526         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2527         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2528         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2529         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2530
2531 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2532
2533         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2534         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2535         * doc/extend.texi: Document __underlying_type.
2536
2537 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2538
2539         * config/rs6000/titan.md (automata_option "progress"): Remove.
2540
2541 2011-04-25  Jeff Law  <law@redhat.com>
2542
2543         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2544
2545 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2546
2547         * system.h (ENUM_BITFIELD): Remove.
2548
2549 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2550             Eric Botcazou  <ebotcazou@adacore.com>
2551
2552         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2553         for STORE_FLAG_VALUE==-1 case.
2554
2555 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2556
2557         PR target/43804
2558         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2559         LEGITIMATE_PIC_OPERAND_P.
2560
2561 2011-04-24  Jan Hubicka  <jh@suse.cz>
2562
2563         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2564         WPA hack.
2565         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2566         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2567         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2568         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2569         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2570         Sanity check predicate length.
2571         (remap_predicate): Likewise; sanity check jump functions.
2572         (inline_read_section, inline_write_summary): Sanity check
2573         predicate length.
2574
2575 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2576
2577         PR other/48748
2578         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2579         __is_literal_type, and __is_trivial; update throughout about
2580         possibly cv-qualified void types.
2581
2582 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2583
2584         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2585         testsuite and make it version agnostic.
2586
2587 2011-04-22  Jan Hubicka  <jh@suse.cz>
2588
2589         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2590
2591 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2592
2593         PR c/48685
2594         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2595         to VOID_TYPE even around MODIFY_EXPR.
2596
2597 2011-04-22  Mike Stump  <mikestump@comcast.net>
2598
2599         * gensupport.c (read_md_rtx): Fix typo in comment.
2600         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2601         comment.
2602
2603 2011-04-22  Jan Hubicka  <jh@suse.cz>
2604
2605         * gengtype.c (open_base_files): Add ipa-inline.h include.
2606         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2607         ipa-prop.c; update all uses.
2608         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2609         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2610         merge summary of inlined function into former caller.
2611         * ipa-inline.c (max_benefit): Remove.
2612         (edge_badness): Compensate for removal of benefits.
2613         (update_caller_keys): Use
2614         reset_node_growth_cache/reset_edge_growth_cache.
2615         (update_callee_keys): Likewise.
2616         (update_all_callee_keys): Likewise.
2617         (inline_small_functions): Do not collect max_benefit; do not reset
2618         estimated_growth; call free_growth_caches and initialize_growth_caches.
2619         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2620         struct size_time_entry): New structures.
2621         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2622         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2623         and estimated_growth.
2624         (edge_growth_cache_entry): New structure.
2625         (node_growth_cache, edge_growth_cache): New global vars.
2626         (estimate_growth): Turn into inline.
2627         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2628         initialize_growth_caches, free_growth_caches): Declare.
2629         (estimate_edge_growth): Rewrite.
2630         (estimate_edge_time): Implement as inline cache lookup.
2631         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2632         functions.
2633         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2634         (NUM_CONDITIONS): New constant.
2635         (predicate_conditions): New enum.
2636         (IS_NOT_CONSTANT): New constant.
2637         (edge_removal_hook_holder): New var.
2638         (node_growth_cache, edge_growth_cache): New global vars.
2639         (true_predicate, single_cond_predicate, false_predicate,
2640         not_inlined_predicate, add_condition, add_clause, and_predicates,
2641         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2642         dump_clause, dump_predicate, account_size_time,
2643         evaulate_conditions_for_edge): New functions.
2644         (inline_summary_alloc): Move to heap.
2645         (inline_node_removal_hook): Clear condition and entry vectors.
2646         (inline_edge_removal_hook): New function.
2647         (initialize_growth_caches, free_growth_caches): New function.
2648         (dump_inline_summary): Update.
2649         (edge_execution_predicate): New function.
2650         (will_be_nonconstant_predicate): New function.
2651         (estimate_function_body_sizes): Compute BB and constantness predicates.
2652         (compute_inline_parameters): Do not clear estimated_growth.
2653         (estimate_edge_size_and_time): New function.
2654         (estimate_calls_size_and_time): New function.
2655         (estimate_callee_size_and_time): New function.
2656         (remap_predicate): New function.
2657         (inline_merge_summary): New function.
2658         (do_estimate_edge_time): New function based on...
2659         (estimate_edge_time): ... this one.
2660         (do_estimate_edge_growth): New function.
2661         (do_estimate_growth): New function based on....
2662         (estimate_growth): ... this one.
2663         (inline_analyze_function): Analyze after deciding on jump functions.
2664         (inline_read_section): New function.
2665         (inline_read_summary): Use it.
2666         (inline_write_summary): Write all the new data.
2667         * ipa-prop.c (ipa_get_param_decl_index): Export.
2668         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2669         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2670         Declare.
2671         (ipa_get_lattice): Move here from ipa-cp.c
2672         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2673         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2674         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2675         cgraph_edge_inlinable_p): Remove.
2676         * cgraphunit.c: Include ipainline.h
2677         (cgraph_process_new_functions): Update call of
2678         compute_inline_parameters.
2679
2680 2011-04-22  Richard Guenther  <rguenther@suse.de>
2681
2682         * tree.c (build_int_cst): Properly create canonicalized integer
2683         constants.
2684         (build_int_cst_type): Remove scary comments.
2685
2686 2011-04-22  Xinliang David Li  <davidxl@google.com>
2687
2688         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2689         by default when -Wno-error is not specified.
2690         * opts-global.c (decode_options): Remove call to
2691         control_warning_options.
2692
2693 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2694
2695         PR tree-optimization/48717
2696         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2697         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2698
2699 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2700
2701         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2702         definition where used.
2703
2704 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2705
2706         PR c/48716
2707         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2708         TREE_STATIC variables declared inside of some OpenMP construct.
2709
2710 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2711
2712         PR middle-end/48585
2713         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2714
2715 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2716
2717         PR c/36750
2718         * c-typeck.c (pop_init_level): Do not warn about initializing
2719         with ` = {0}'.
2720
2721 2011-04-22  Alan Modra  <amodra@gmail.com>
2722
2723         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2724         when returning call_cookie.
2725         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2726         pointers, to functions with no more vector args than the current
2727         function, and some non-local calls for ABI_V4.
2728         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2729         sibcall_nonlocal_aix64): Combine to ..
2730         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2731         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2732         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2733         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2734         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2735         operand.
2736         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2737         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2738         sibcall_value_symbolic_64): Delete.
2739
2740 2011-04-21  Xinliang David Li  <davidxl@google.com>
2741
2742         * cgraph.h: Remove pid.
2743         * cgraph.c: Remove pid.
2744         * value-prof.c (init_node_map): New function.
2745         (del_node_map): New function.
2746         (find_func_by_funcdef_no): New function.
2747         (gimple_ic_transform): Call new function.
2748         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2749         * function.c (get_last_funcdef_no): New function.
2750         * function.h (get_last_funcdef_no): New function.
2751         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2752         to libgcov function.
2753         (tree-profiling): Call node map init and delete function.
2754
2755 2011-04-21  Ian Lance Taylor  <iant@google.com>
2756
2757         * godump.c (go_format_type): Use exported Go name for anonymous
2758         field name.
2759
2760 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2761
2762         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2763         Call builtin_function_type_list instead of builtin_function_type.
2764         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2765
2766 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2767
2768         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2769         build_function_type_list instead of build_function_type.
2770         Delete variable `endlink'.
2771
2772 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2773
2774         * config/s390/s390.c (s390_init_builtins): Call
2775         build_function_type_list instead of build_function_type.
2776
2777 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2778
2779         * config/ia64/ia64.c (ia64_init_builtins): Call
2780         build_function_type_list instead of builtin_function_type.
2781
2782 2011-04-21  Easwaran Raman  <eraman@google.com>
2783
2784         * cfgexpand.c (stack_var): Remove OFFSET...
2785         (add_stack_var): ...and its reference here...
2786         (expand_stack_vars): ...and here.
2787         (stack_var_cmp): Sort by descending order of size.
2788         (partition_stack_vars): Change heuristic.
2789         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2790         (dump_stack_var_partition): Add newline after each partition.
2791
2792 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2793             Jeff Law  <law@redhat.com>
2794
2795         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2796         * gengtype.c (matching_file_name_substitute): Likewise.
2797
2798 2011-04-21  Richard Guenther  <rguenther@suse.de>
2799
2800         PR lto/48703
2801         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2802
2803 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2804
2805         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2806
2807 2011-04-21  Richard Guenther  <rguenther@suse.de>
2808
2809         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2810         file name.
2811
2812 2011-04-21  Richard Guenther  <rguenther@suse.de>
2813
2814         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2815         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2816         Use DECL_P, not SSA_VAR_P.
2817         (ptr_derefs_may_alias_p): Likewise.
2818         (ptr_deref_may_alias_ref_p_1): Likewise.
2819         (decl_refs_may_alias_p): Likewise.
2820         (refs_may_alias_p_1): Likewise.
2821         (ref_maybe_used_by_call_p_1): Likewise.
2822         (call_may_clobber_ref_p_1): Likewise.
2823         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2824         are either MEM_REF or TARGET_MEM_REF.
2825         (indirect_refs_may_alias_p): Likewise.
2826         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2827         for MEM_EXPR of indirect calls.
2828
2829 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2830
2831         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2832         (dst_file_info_struct): Remove flen field.
2833         (lookup_filename): Remove code that set flen field.
2834
2835 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2836
2837         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2838
2839 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2840
2841         PR target/48708
2842         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2843         vec_extract and vec_concat for non-SSE4_1 targets.
2844
2845 2011-04-21  Richard Guenther  <rguenther@suse.de>
2846
2847         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2848         return statements.
2849
2850 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2851
2852         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2853         undefine.
2854         (FILE): Don't undefine.
2855
2856 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2857
2858         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2859         struct rtx_def *.
2860         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2861         struct rtx_def *.
2862         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2863         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2864         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2865         rtx_def *.
2866         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2867         definitions where used.
2868         * config/microblaze/microblaze.h (struct microblaze_args): Use
2869         rtx, not struct rtx_def *.
2870         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2871         rtx_def *.
2872         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2873         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2874         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2875         not struct rtx_def *.
2876         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2877         struct rtx_def *.
2878         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2879         rtx_def *.
2880         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2881
2882 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2883
2884         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2885         operand_equal_p to compare DR_BASE_ADDRESSes.
2886         (vect_check_interleaving): Likewise.
2887
2888 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2889
2890         PR target/46329
2891         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2892         for all Neon struct constants.
2893
2894 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2895
2896         * target.def (legitimate_constant_p): New hook.
2897         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2898         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2899         * doc/tm.texi: Regenerate.
2900         * hooks.h (hook_bool_mode_rtx_true): Declare.
2901         * hooks.c (hook_bool_mode_rtx_true): Define.
2902         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2903         * calls.c (precompute_register_parameters): Replace uses of
2904         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2905         (emit_library_call_value_1): Likewise.
2906         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2907         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2908         * ira-costs.c (scan_one_insn): Likewise.
2909         * recog.c (general_operand, immediate_operand): Likewise.
2910         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2911         * reload1.c (init_eliminable_invariants): Likewise.
2912
2913         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2914         mode argument.
2915         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2916         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2917         argument.
2918         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2919         * config/alpha/predicates.md (input_operand): Update call to
2920         alpha_legitimate_constant_p.
2921
2922         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2923         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2924         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2925         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2926         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2927         (arm_legitimate_constant_p): New functions.
2928         (arm_cannot_force_const_mem): Make static.
2929
2930         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2931
2932         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2933         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2934         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2935         instead of bfin_legitimate_constant_p.
2936         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2937         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2938
2939         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2940
2941         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2942
2943         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2944         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2945         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2946         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2947
2948         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2949         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2950         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2951
2952         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2953         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2954         * config/i386/i386.c (legitimate_constant_p): Rename to...
2955         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2956         argument.
2957         (ix86_cannot_force_const_mem): Update accordingly.
2958         (ix86_legitimate_address_p): Likewise.
2959         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2960         * config/i386/i386.md: Update commentary.
2961
2962         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2963         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2964         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2965         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2966
2967         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2968
2969         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2970         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2971         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2972         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2973
2974         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2975         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2976         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2977
2978         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2979         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2980         (m32r_legitimate_constant_p): New function.
2981
2982         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2983         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2984         LEGITIMATE_CONSTANT_P.
2985         (LEGITIMATE_CONSTANT_P): Delete.
2986         * config/m68k/m68k.c (m68k_expand_prologue): Call
2987         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2988         (m68k_legitimate_constant_p): New function.
2989         * config/m68k/m68k.md: Update comments.
2990
2991         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2992         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2993         (mcore_legitimate_constant_p): New function.
2994
2995         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2996         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2997         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2998         Add a mode argument.
2999         (mep_legitimate_address): Update accordingly.
3000         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3001
3002         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3003         Delete.
3004         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3005         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3006         static.  Check OP's mode for VOIDmode.
3007         (microblaze_legitimate_constant_p): New function.
3008         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3009
3010         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3011         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3012         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3013         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3014         * config/mips/predicates.md: Update comments.
3015
3016         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3017         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3018         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3019         (mmix_legitimate_constant_p): Make static, return a bool, and take
3020         a mode argument.
3021         (mmix_print_operand_address): Update accordingly.
3022
3023         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3024         Delete.
3025         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3026         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3027         static.  Add a mode argument.
3028         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3029
3030         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3031
3032         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3033         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3034         (pa_legitimate_constant_p): New function.
3035
3036         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3037
3038         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3039         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3040         (pdp11_legitimate_constant_p): New function.
3041
3042         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3043         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3044         (rs6000_legitimate_constant_p): New function.
3045
3046         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3047         (rx_legitimate_constant_p): ...this.
3048         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3049         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3050         (rx_legitimate_constant_p): ...this.
3051         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3052         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3053
3054         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3055         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3056         * config/s390/s390.c (legitimate_constant_p): Rename to...
3057         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3058         and add a mode argument.
3059         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3060
3061         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3062
3063         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3064         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3065         (sh_legitimate_constant_p): New function.
3066
3067         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3068         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3069         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3070         (legitimate_constant_p): Rename to...
3071         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3072         argument.
3073         (constant_address_p): Update accordingly.
3074
3075         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3076         argument and return a bool.
3077         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3078         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3079         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3080         (spu_rtx_costs): Update accordingly.
3081         * config/spu/predicates.md (vec_imm_operand): Likewise.
3082
3083         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3084
3085         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3086         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3087         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3088
3089         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3090         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3091         * config/vax/vax.c (legitimate_constant_p): Likewise.
3092
3093         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3094         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3095         (xtensa_legitimate_constant_p): New function.
3096
3097 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3098
3099         * target.def (cannot_force_const_mem): Add a mode argument.
3100         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3101         * doc/tm.texi: Regenerate.
3102         * hooks.h (hook_bool_mode_rtx_false): Declare.
3103         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3104         (hook_bool_mode_const_rtx_true): Likewise.
3105         (hook_bool_mode_rtx_false): New function.
3106         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3107         to be non-VOID.  Update call to cannot_force_const_mem.
3108         (find_reloads): Update accordingly.
3109         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3110         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3111         argument.
3112         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3113         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3114         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3115         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3116         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3117         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3118         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3119         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3120         (m68k_cannot_force_const_mem): ...this new function.
3121         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3122         argument.
3123         (mips_const_insns, mips_legitimize_const_move): Update calls.
3124         (mips_secondary_reload_class): Likewise.
3125         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3126         (pa_cannot_force_const_mem): ...this new function.
3127         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3128         (rs6000_cannot_force_const_mem): ...this new function.
3129         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3130         argument.
3131         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3132         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3133         to...
3134         (xtensa_cannot_force_const_mem): ...this new function.
3135
3136 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3137
3138         * config/mips/mips.c (mips16_build_function_stub): Call
3139         build_function_type_list instead of build_function_type.
3140         (mips16_build_call_stub): Likewise.
3141
3142 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3143
3144         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3145         instead of build_function_type.
3146
3147 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3148
3149         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3150         instead of build_function_type.
3151
3152 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3153
3154         PR target/48678
3155         * config/i386/i386.md (insv): Change operand 0 constraint to
3156         "register_operand".  Change operand 1 and 2 constraint to
3157         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3158         * config/i386/sse.md (sse4_1_pinsrb): Export.
3159         (sse2_pinsrw): Ditto.
3160         (sse4_1_pinsrd): Ditto.
3161         (sse4_1_pinsrq): Ditto.
3162         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3163         * config/i386/i386.c (ix86_expand_pinsr): New.
3164
3165 2011-04-20  Easwaran Raman  <eraman@google.com>
3166
3167         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3168         containing union type only with -fstrict-aliasing.
3169
3170 2011-04-20  Jim Meyering  <meyering@redhat.com>
3171
3172         Remove useless if-before-free tests.
3173         * calls.c (expand_call, save_area): Likewise.
3174         * cfgcleanup.c (try_forward_edges): Likewise.
3175         * collect2.c (collect_execute): Likewise.
3176         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3177         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3178         * coverage.c (coverage_checksum_string): Likewise.
3179         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3180         * cselib.c (cselib_init): Likewise.
3181         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3182         (df_set_clean_cfg): Likewise.
3183         * function.c (free_after_compilation): Likewise.
3184         * gcc.c (do_spec_1, main): Likewise.
3185         * gcov.c (create_file_names): Likewise.
3186         * gensupport.c (identify_predicable_attribute): Likewise.
3187         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3188         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3189         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3190         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3191         * ipa-pure-const.c (local_pure_const): Likewise.
3192         * ipa-reference.c (propagate): Likewise.
3193         * ira-costs.c (free_ira_costs): Likewise.
3194         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3195         * matrix-reorg.c (mat_free): Likewise.
3196         * prefix.c (get_key_value): Likewise.
3197         * profile.c (compute_value_histograms): Likewise.
3198         * reload1.c (free_reg_equiv): Likewise.
3199         * sched-deps.c (free_deps): Likewise.
3200         * sel-sched-ir.c (fence_clear): Likewise.
3201         * sese.c (set_rename, if_region_set_false_region): Likewise.
3202         * tree-data-ref.c (free_rdg): Likewise.
3203         * tree-eh.c (lower_try_finally): Likewise.
3204         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3205         * tree-ssa-live.c (delete_var_map): Likewise.
3206         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3207         * tree-ssa-pre.c (phi_trans_add): Likewise.
3208
3209 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3210
3211         PR tree-optimization/48611
3212         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3213         beyond ERT_MUST_NOT_THROW region.
3214
3215 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3216
3217         * config/mips/mips.opt (mfix-24k): New.
3218         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3219         * config/mips/mips.md (length): Increase by 4 for stores if
3220         fixing 24K errata.
3221         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3222         all noreorder if fixing 24K errata.
3223         * doc/invoke.texi: Document mfix-24k.
3224
3225 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3226
3227         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3228         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3229
3230 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3231
3232         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3233         (const_ok_for_op): ... to here.
3234
3235 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3236
3237         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3238         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3239
3240 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3241
3242         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3243
3244 2011-04-20  Richard Guenther  <rguenther@suse.de>
3245
3246         PR tree-optimization/47892
3247         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3248         are if-convertible.
3249
3250 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3251
3252         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3253
3254 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3255
3256         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3257
3258 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3259
3260         PR target/18145
3261
3262         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3263         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3264         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3265         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3266         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3267
3268         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3269         New prototype.
3270
3271         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3272         (avr_asm_named_section, avr_asm_output_aligned_common,
3273         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3274         New functions to update...
3275         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3276         (avr_asm_init_sections): Overwrite section callbacks for
3277         data_section, bss_section.
3278         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3279         from here to...
3280         (avr_file_end): ...here.
3281
3282 2011-04-20  Richard Guenther  <rguenther@suse.de>
3283
3284         PR middle-end/48695
3285         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3286         objects and types here.  Adjust for their offset before comparing.
3287
3288 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3289
3290         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3291         statement per copy.
3292
3293 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3294
3295         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3296         (GIMPLE_H): Include $(INTERNAL_FN_H).
3297         (OBJS-common): Add internal-fn.o.
3298         (internal-fn.o): New rule.
3299         * internal-fn.def: New file.
3300         * internal-fn.h: Likewise.
3301         * internal-fn.c: Likewise.
3302         * gimple.h: Include internal-fn.h.
3303         (GF_CALL_INTERNAL): New gf_mask.
3304         (gimple_statement_call): Put fntype into a union with a new
3305         internal_fn field.
3306         (gimple_build_call_internal): Declare.
3307         (gimple_build_call_internal_vec): Likewise.
3308         (gimple_call_same_target_p): Likewise.
3309         (gimple_call_internal_p): New function.
3310         (gimple_call_internal_fn): Likewise.
3311         (gimple_call_fntype): Return null for internal calls.
3312         (gimple_call_set_fntype): Assert that the function is not internal.
3313         (gimple_call_set_fn): Likewise.
3314         (gimple_call_set_fndecl): Likewise.
3315         (gimple_call_set_internal_fn): New function.
3316         (gimple_call_addr_fndecl): Handle null functions.
3317         (gimple_call_return_type): Likewise null types.
3318         * gimple.c (gimple_build_call_internal_1): New function.
3319         (gimple_build_call_internal): Likewise.
3320         (gimple_build_call_internal_vec): Likewise.
3321         (gimple_call_same_target_p): Likewise.
3322         (gimple_call_flags): Handle calls to internal functions.
3323         (gimple_call_fnspec): New function.
3324         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3325         (gimple_has_side_effects): Handle null functions.
3326         (gimple_rhs_has_side_effects): Likewise.
3327         (gimple_call_copy_skip_args): Handle calls to internal functions.
3328         * cfgexpand.c (expand_call_stmt): Likewise.
3329         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3330         * gimple-fold.c (gimple_fold_call): Handle null functions.
3331         (gimple_fold_stmt_to_constant_1): Don't fold
3332         calls to internal functions.
3333         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3334         functions.
3335         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3336         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3337         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3338         (do_warn_unused_result): Likewise.
3339         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3340         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3341         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3342         the target of a call.
3343         (initialize_hash_element): Update accordingly.
3344         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3345         (iterative_hash_hashable_expr): Handle calls to internal functions.
3346         (print_expr_hash_elt): Likewise.
3347         * tree-ssa-pre.c (can_value_number_call): Likewise.
3348         (eliminate): Handle null functions.
3349         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3350         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3351         (find_func_aliases): Likewise.
3352         * value-prof.c (gimple_ic_transform): Likewise.
3353         (gimple_indirect_call_to_profile): Likewise.
3354         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3355         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3356
3357 2011-04-19  Jan Hubicka  <jh@suse.cz>
3358
3359         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3360         * ipa-inline.c (inline_small_functions): Compute summaries first,
3361         populate heap later.
3362
3363 2011-04-19  Jan Hubicka  <jh@suse.cz>
3364
3365         * cgraph.h (save_inline_function_body): Remove.
3366         * ipa-inline-transform.c: New file, broke out of...
3367         * ipa-inline.c: ... this one; Update toplevel comment.
3368         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3369         make global.
3370         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3371         (cgraph_mark_inline_edge): Rename to inline_call; move to
3372         ipa-inline-transform.c.
3373         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3374         move to ipa-inline-transform.c
3375         (recursive_inlining, inline_small_functions, flatten_function,
3376         ipa_inline, inline_always_inline_functions,
3377         early_inline_small_functions): Update.
3378         (inline_transform): Move to ipa-inline-transform.c.
3379         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3380         Declare.
3381         * Makefile.in (ipa-inline-transform.o): New file.
3382         * cgraphunit.c (save_inline_function_body): Move to
3383         ipa-inline-transform.c
3384
3385 2011-04-19  DJ Delorie  <dj@redhat.com>
3386
3387         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3388         registers if we already know there aren't any.
3389         (m32c_emit_epilogue): Don't emit a barrier here.
3390         (m32c_emit_eh_epilogue): Likewise.
3391         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3392         operands at expand time.
3393         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3394         int" wchar type.
3395         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3396         duplicates.  Provide aliases instead.
3397         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3398         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3399         the compiler.
3400
3401 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3402
3403         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3404         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3405         (general_or_i64_p, sparc_register_move_cost): New function.
3406
3407 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3410         Add lynx, mipssde.  Sort table.
3411
3412 2011-04-19  Xinliang David Li  <davidxl@google.com>
3413
3414         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3415         not negative.
3416
3417 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3418
3419         PR target/48678
3420         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3421         is a SUBREG with non-MODE_INT mode inside of it.
3422
3423 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3424
3425         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3426         also according to actual contants.
3427         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3428         (gimple_fold_call): Use it.
3429         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3430
3431 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3432
3433         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3434         non-pointer assignments.
3435
3436 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3437
3438         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3439         account anc_offset and otr_type from the indirect edge info.
3440         * ipa-prop.c (get_ancestor_addr_info): New function.
3441         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3442         get_ancestor_addr_info, call it.
3443         (ipa_note_param_call): Do not initialize information about polymorphic
3444         calls, return the indirect call graph edge.  Remove the last
3445         parameter, adjust all callers.
3446         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3447         parameters.  Initialize polymorphic information in the indirect edge.
3448
3449 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3450
3451         PR lto/48148
3452         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3453         the types if they have different enumeration identifiers.
3454
3455 2011-04-19  Jan Hubicka  <jh@suse.cz>
3456
3457         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3458         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3459         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3460         (optimize_function_for_size_p) ... here.
3461
3462 2011-04-19  Richard Guenther  <rguenther@suse.de>
3463
3464         PR lto/48207
3465         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3466         langhook.
3467
3468 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3469
3470         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3471         if DECL_NO_INLINE_WARNING_P is set on the function.
3472
3473 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3474
3475         PR fortran/47976
3476         * reload1.c (inc_for_reload): Return void. All callers changed.
3477         (emit_input_reload_insns): Don't try to delete previous output
3478         reloads to a register, or record spill_reg_store for autoincs.
3479
3480 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3481
3482         * gengtype.h: Updated copyright year.
3483         (struct input_file_st): Add inpisplugin field.
3484         (type_fileloc): New function.
3485         * gengtype.c
3486         (write_typed_struct_alloc_def): Add gcc_assert.
3487         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3488         (write_typed_alloc_defns): Don't output for plugin files.
3489         (input_file_by_name): Clear inpisplugin field.
3490         (main): Set inpisplugin field for plugin files.
3491
3492 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3493
3494         * gengtype-state.c (string_eq): New.
3495         (read_state): Use string_eq instead of strcmp when creating the
3496         state_ident_tab.
3497
3498 2011-04-19  Wei Guozhi  <carrot@google.com>
3499
3500         PR target/47855
3501         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3502         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3503         linkage.
3504         * config/arm/constraints.md (Uu): New constraint.
3505         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3506
3507 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3508
3509         * config.gcc (-*-*-*vms): Added.
3510         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3511         definitions moved.
3512         * config/vms/vms-ld.c: New file.
3513         * config/vms/vms-ar.c: New file.
3514         * config/vms/t-vmsnative: New file.
3515
3516 2011-04-18  Xinliang David Li  <davidxl@google.com>
3517
3518         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3519
3520 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3521
3522         PR middle-end/48661
3523         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3524         if TREE_TYPE (v) is non-NULL.
3525
3526         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3527         gimple_get_virt_mehtod_for_binfo.
3528         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3529         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3530         callers.
3531         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3532
3533 2011-04-18  Michael Matz  <matz@suse.de>
3534             Steve Ellcey  <sje@cup.hp.com>
3535
3536         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3537         use its mode as source mode if it isn't VOIDmode.
3538
3539 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3540
3541         * doc/passes.texi: Fill crossref nodes.
3542
3543 2011-04-18  Jim Meyering  <meyering@redhat.com>
3544
3545         Fix doubled-word typos in comments and strings
3546         * config/alpha/vms-unwind.h: s/for for/for/
3547         * config/arm/unwind-arm.h: Likewise.
3548         * config/microblaze/microblaze.c: Likewise.
3549         * config/sh/constraints.md: s/in in/in/
3550         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3551
3552 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3553
3554         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3555         (AVX_FLOAT_MODE_P): Ditto.
3556         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3557         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3558         (AVX_VEC_FLOAT_MODE_P): Ditto.
3559         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3560         (UNSPEC_MASKSTORE): Ditto.
3561         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3562         Merge from <sse>_movmsk<ssemodesuffix> and
3563         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3564         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3565         iterator.
3566         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3567         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3568         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3569
3570 2011-04-18  Jan Hubicka  <jh@suse.cz>
3571
3572         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3573
3574         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3575         (want_inline_function_called_once_p): Break out the logic from
3576         ipa_inline.
3577         (edge_badness): Ensure that profile is not misupdated.
3578         (lookup_recursive_calls): Prioritize by call frequencies.
3579         (inline_small_functions): Move program size estimates here;
3580         actually process whole queue even when unit growth has been
3581         met. (to properly compute inline_failed reasons and for the
3582         case unit size decrease.) Revisit comments on recursive inlining.
3583         (ipa_inline): Remove unit summary code; first inline hot calls
3584         of functions called once, cold calls next.
3585         (order, nnodes): Remove unused variables.
3586         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3587         (GTFILES): Remove ipa-inline.c
3588         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3589
3590 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3591
3592         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3593
3594 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3595             Richard Earnshaw  <rearnsha@arm.com>
3596
3597         * arm.c (neon_builtin_type_bits): Remove.
3598         (typedef enum neon_builtin_mode): New.
3599         (T_MAX): Don't define.
3600         (typedef enum neon_builtin_datum): Remove bits, codes[],
3601         num_vars and base_fcode.  Add mode, code and fcode.
3602         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3603         VAR10): Change accordingly.
3604         (neon_builtin_data[]): Change accordingly
3605         (arm_init_neon_builtins): Change accordingly.
3606         (neon_builtin_compare): Remove.
3607         (locate_neon_builtin_icode): Remove.
3608         (arm_expand_neon_builtin): Change accordingly.
3609
3610         * arm.h (enum arm_builtins): Move to ...
3611         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3612
3613         * arm.c (arm_builtin_decl): Declare.
3614         (TARGET_BUILTIN_DECL): Define.
3615         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3616         (arm_builtin_decls[]): New.
3617         (arm_init_neon_builtins): Store builtin declarations in
3618         arm_builtin_decls[].
3619         (arm_init_tls_builtins): Likewise.
3620         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3621         (arm_builtin_decl): New.
3622
3623 2011-04-18  Richard Guenther  <rguenther@suse.de>
3624
3625         * tree.c (upper_bound_in_type): Build properly canonicalized
3626         INTEGER_CSTs.
3627         (lower_bound_in_type): Likewise.
3628
3629 2011-04-18  Richard Guenther  <rguenther@suse.de>
3630
3631         * gimple.h (gimple_call_addr_fndecl): New function.
3632         (gimple_call_fndecl): Use it.
3633         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3634         for direct calls.
3635         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3636         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3637
3638 2011-04-18  Richard Guenther  <rguenther@suse.de>
3639
3640         PR middle-end/48650
3641         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3642
3643 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3644
3645         PR lto/48492
3646         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3647         DECL_IN_CONSTANT_POOL without RTL.
3648
3649 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3650             Ira Rosen  <ira.rosen@linaro.org>
3651
3652         PR target/48252
3653         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3654         to match neon_vzip/vuzp/vtrn_internal.
3655         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3656         outputs explicitly dependent on both inputs.
3657         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3658
3659 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3660
3661         PR tree-optimization/48616
3662         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3663         whether the shift is by scalar or vector based on whether all SLP
3664         scalar stmts have the same rhs.
3665
3666 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3667
3668         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3669         memory operands.
3670
3671 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3672
3673         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3674         registers.
3675
3676 2011-04-17  Jan Hubicka  <jh@suse.cz>
3677
3678         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3679         * cgrpahunit.c (cgraph_finalize_function): Do not set
3680         finalized_by_frontend.
3681         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3682         finalized_by_frontend.
3683
3684 2011-04-17  Jan Hubicka  <jh@suse.cz>
3685
3686         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3687         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3688         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3689         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3690         method.
3691         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3692         gimple-fold.c
3693         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3694
3695 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3696
3697         PR lto/48538
3698         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3699         is non-null before accessing it.
3700         (input_cgraph): Remove trailing spaces.
3701
3702 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3703
3704         * params.def (sms-min-sc): New param flag.
3705         * modulo-sched.c (sms_schedule): Use it.
3706         * doc/invoke.texi (sms-min-sc): Document it.
3707
3708 2011-04-17  Jan Hubicka  <jh@suse.cz>
3709
3710         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3711         present, also set gimple_call_set_cannot_inline.
3712         * ipa-inline.c: Update toplevel comment.
3713         (MAX_TIME): Remove.
3714         (cgraph_clone_inlined_nodes): Fix linebreaks.
3715         (cgraph_check_inline_limits): Restructure to ...
3716         (caller_growth_limits): ... this one; be more tolerant
3717         on growth in nested inline chains; add explanatory comment;
3718         fix stack accounting thinko introduced by previous patch.
3719         (cgraph_default_inline_p): Remove.
3720         (report_inline_failed_reason): New function.
3721         (can_inline_edge_p): New function.
3722         (can_early_inline_edge_p): New function.
3723         (leaf_node_p): Move upwards in file.
3724         (want_early_inline_function_p): New function.
3725         (want_inline_small_function_p): New function.
3726         (want_inline_self_recursive_call_p): New function.
3727         (cgraph_edge_badness): Rename to ...
3728         (edge_badness) ... this one; fix linebreaks.
3729         (update_edge_key): Update call of edge_baddness; add
3730         detailed dump about queue updates.
3731         (update_caller_keys): Use can_inline_edge_p and
3732         want_inline_small_function_p.
3733         (cgraph_decide_recursive_inlining): Rename to...
3734         (recursive_inlining): Use can_inline_edge_p and
3735         want_inline_self_recursive_call_p; simplify and remove no longer
3736         valid FIXME.
3737         (cgraph_set_inline_failed): Remove.
3738         (add_new_edges_to_heap): Use can_inline_edge_p and
3739         want_inline_small_function_p.
3740         (cgraph_decide_inlining_of_small_functions): Rename to ...
3741         (inline_small_functions): ... this one; cleanup; use
3742         can/want predicates; cleanup debug ouput; work edges till fibheap
3743         is exhausted and do not stop once unit growth is reached; remove
3744         later loop processing remaining edges.
3745         (cgraph_flatten): Rename to ...
3746         (flatten_function): ... this one; use can_inline_edge_p
3747         and can_early_inline_edge_p predicates.
3748         (cgraph_decide_inlining): Rename to ...
3749         (ipa_inline): ... this one; remove unreachable nodes before
3750         inlining functions called once; simplify the pass.
3751         (cgraph_perform_always_inlining): Rename to ...
3752         (inline_always_inline_functions): ... this one; use
3753         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3754         (cgraph_decide_inlining_incrementally): Rename to ...
3755         (early_inline_small_functions): ... this one; simplify
3756         using new predicates; cleanup; make dumps prettier.
3757         (cgraph_early_inlining): Rename to ...
3758         (early_inliner): newer inline regular functions into always-inlines;
3759         fix updating of call stmt summaries.
3760         (pass_early_inline): Update for new names.
3761         (inline_transform): Fix formating.
3762         (gate_cgraph_decide_inlining): Rename to ...
3763         (pass_ipa_inline): ... this one.
3764         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3765         * ipa-inline-analysis.c (dump_inline_summary): Update.
3766         (compute_inline_parameters): Do not compute disregard_inline_limits;
3767         look for mismatching arguments.
3768         (estimate_growth): Fix handlig of non-trivial self recursion.
3769         (inline_read_summary): Do not read info->disregard_inline_limits.
3770         (inline_write_summary): Do not write info->disregard_inline_limits.
3771         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3772         and move all checks into can_inline_edge_p predicate; re-enable code
3773         comparing optimization levels.
3774         (expand_call_inline): Do not test inline_forbidden_into_p.
3775         * Makefile.in (ipa-inline.o): Update arguments.
3776
3777 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3778
3779         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3780
3781 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3782
3783         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3784
3785 2011-04-17  Michael Matz  <matz@suse.de>
3786
3787         PR tree-optimization/48622
3788         PR lto/48645
3789         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3790         in same order as they're written.
3791
3792 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3793
3794         * config/pa/predicates.md: Reorganize and simplify predicates.
3795         Eliminate duplicate code checks.
3796         (arith_operand): Rename to arith14_operand
3797         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3798         * config/pa/pa.md: Use renamed operands.
3799         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3800         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3801         arith11_operand, adddi3_operand, indexed_memory_operand,
3802         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3803         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3804         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3805         move_dest_operand, move_src_operand, prefetch_cc_operand,
3806         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3807         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3808         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3809         div_operand, int5_operand, movb_comparison_operator,
3810         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3811         arith_double_operand, ireg_operand, lhs_lshift_operand,
3812         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3813         integer_store_memory_operand): Likewise.
3814         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3815         (integer_store_memory_operand, read_only_operand,
3816         function_label_operand, borx_reg_operand,
3817         non_hard_reg_operand): Likewise.
3818         (eq_neq_comparison_operator): Delete unused operator.
3819         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3820         function_label_operand.
3821         (emit_move_sequence): Likewise.
3822
3823 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3824
3825         * config/i386/sse.md (sseunpackmode): New mode attribute.
3826         (ssepackmode): Ditto.
3827         (vec_pack_trunc_<mode>): Macroize expander from
3828         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3829         (vec_unpacks_lo_<mode>): Macroize expander from
3830         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3831         (vec_unpacks_hi_<mode>): Macroize expander from
3832         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3833         (vec_unpacku_lo_<mode>): Macroize expander from
3834         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3835         (vec_unpacku_hi_<mode>): Macroize expander from
3836         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3837         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3838         ix86_expand_sse4_unpack.
3839         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3840
3841 2011-04-16  Jan Hubicka  <jh@suse.cz>
3842
3843         * cgraphbuild.c: Include ipa-inline.h.
3844         (reset_inline_failed): Use initialize_inline_failed.
3845         * cgraph.c: Include ipa-inline.h.
3846         (cgraph_create_node_1): Do not initialize estimated_growth.
3847         (initialize_inline_failed): More to ipa-inline-analysis.c
3848         (dump_cgraph_node): Do not dump inline flags.
3849         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3850         and disregard_inline_limits flags.
3851         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3852         time, size, estimated_growth.
3853         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3854         Update.
3855         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3856         DECL_DISREGARD_INLINE_LIMITS.
3857         (cgraph_analyze_function): Do not initialize
3858         node->local.disregard_inline_limits.
3859         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3860         inlinable, versionable and disregard_inline_limits.
3861         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3862         cgraph_check_inline_limits, cgraph_default_inline_p,
3863         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3864         add_new_edges_to_heap): Update.
3865         (cgraph_decide_inlining_of_small_function): Update; set
3866         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3867         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3868         cgraph_decide_inlining_incrementally): Update.
3869         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3870         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3871         time, size and estimated_growth parameters.
3872         (estimate_edge_growth): Update.
3873         (initialize_inline_failed): Declare.
3874         * ipa-split.c: Include ipa-inline.h
3875         (execute_split_functions): Update.
3876         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3877         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3878         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3879         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3880         estimated_growth to INT_MIN.
3881         (inline_node_duplication_hook): Likewise.
3882         (dump_inline_summary): Dump new fields.
3883         (compute_inline_parameters): Update.
3884         (estimate_edge_time, estimate_time_after_inlining,
3885         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3886         inline_write_summary):
3887         (initialize_inline_failed): Move here from cgraph.c.
3888         * tree-sra.c: Include ipa-inline.h.
3889         (ipa_sra_preliminary_function_checks): Update.
3890         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3891         ipa-inline.h.
3892
3893 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3894
3895         * config/i386/sse.md (V16): New mode iterator.
3896         (VI1, VI8): Ditto.
3897         (AVXMODEQI, AVXMODEDI): Remove.
3898         (sse2, sse3): New mode attribute.
3899         (mov<mode>): Use V16 mode iterator.
3900         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3901         (push<mode>1): Use V16 mode iterator.
3902         (movmisalign<mode>): Ditto.
3903         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3904         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3905         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3906         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3907         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3908         avx_movdqu<avxmodesuffix>.
3909         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3910         *avx_movdqu<avxmodesuffix>.
3911         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3912         avx_lddqu<avxmodesuffix>.
3913         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3914         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3915         avx_movnt<AVXMODEDI:mode>.
3916         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3917         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3918
3919 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3920
3921         PR target/48629
3922         * haifa-sched.c (prune_ready_list, schedule_block): Use
3923         sched_pressure_p rather than flag_sched_pressure.
3924
3925 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3926
3927         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3928         cgraph_get_node instead of cgraph_get_create_node.
3929
3930 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3931
3932         * cfgexpand.c (expand_debug_expr): Use
3933         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3934
3935 2011-04-15  Michael Matz  <matz@suse.de>
3936
3937         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3938         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3939         * function.c (gimplify_parameters): Ditto.
3940         * gimplify.c (gimplify_vla_decl): Ditto.
3941
3942         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3943         (gimple_call_set_alloca_for_var): New inline function.
3944         (gimple_call_alloca_for_var_p): Ditto.
3945         * gimple.c (gimple_build_call_from_tree): Remember
3946         CALL_ALLOCA_FOR_VAR_P state.
3947         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3948
3949         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3950         calls if they were for VLA objects.
3951
3952 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3953
3954         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3955         of ADR_EXPRs.
3956
3957 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3958
3959         PR middle-end/48601
3960         * tree-emutls.c (lower_emutls_function_body): Call
3961         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3962         result is non-NULL.
3963
3964 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3965
3966         * c-decl.c (detect_field_duplicates): Call
3967         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3968
3969 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3970
3971         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3972         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3973         * ipa-pure-const.c (check_stmt): Call it.
3974         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3975
3976 2011-04-15  Richard Guenther  <rguenther@suse.de>
3977
3978         PR tree-optimization/48290
3979         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3980         Properly decide inhibiting propagation based on the valueized
3981         operand.  Do loop-closed SSA form preserving here ...
3982         (init_copy_prop): ... not here.
3983
3984 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3985
3986         PR target/48612
3987         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3988         (*ieee_smax<mode>3): Likewise.
3989
3990 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3991
3992         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3993         Replace match_operand with match_dup for the third operand in
3994         these expanders.
3995
3996 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3997
3998         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3999         to track processing of conditionals.  Update all callers.
4000         (try_combine, simplify_if_then_else): Update.
4001
4002 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4003
4004         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4005         -fsched-pressure.
4006
4007 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4008
4009         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4010         instead of match_operand for operand 3.
4011
4012 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4013
4014         * recog.h (insn_operand_data): Add an "allows_mem" field.
4015         * genoutput.c (output_operand_data): Initialize it.
4016         * optabs.c (maybe_legitimize_operand_same_code): New function.
4017         (maybe_legitimize_operand): Use it when matching the original
4018         op->value.
4019
4020 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4021
4022         * gimplify.c: Fix issues in comments throughout.
4023         (voidify_wrapper_expr): Fix long line.
4024         (build_stack_save_restore): Likewise.
4025         (gimplify_loop_expr): Likewise.
4026         (gimplify_compound_lval): Likewise.
4027         (gimplify_init_ctor_eval): Likewise.
4028         (gimplify_modify_expr_rhs): Likewise.
4029         (omp_notice_threadprivate_variable): Likewise.
4030
4031 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4032
4033         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4034         original one if this is not a builtin function.
4035
4036 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4037
4038         PR target/48605
4039         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4040         offset it as needed based on top 2 bits in operands[3], change
4041         MEM mode to SFmode and mask those 2 bits away from operands[3].
4042
4043 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4044
4045         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4046         change from objc_declare_protocols() to objc_declare_protocol().
4047
4048 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         * config/i386/sse.md (sse4_1): New mode attribute.
4051         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4052         avx_blend<ssemodesuffix><avxmodesuffix> and
4053         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4054         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4055         avx_blendv<ssemodesuffix><avxmodesuffix> and
4056         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4057         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4058         avx_dp<ssemodesuffix><avxmodesuffix> and
4059         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4060         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4061         (sse4_1_packusdw): Merge with *avx_packusdw.
4062         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4063         (sse4_1_pblendw): Merge with *avx_pblendw.
4064         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4065         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4066         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4067         VF mode iterator.
4068         (sse4_1_round<ssescalarmodesuffix>): Merge with
4069         *avx_round<ssescalarmodesuffix>.
4070         (aesenc): Merge with *avx_aesenc.
4071         (aesenclast): Merge with *avx_aesenclast.
4072         (aesdec): Merge with *avx_aesdec.
4073         (aesdeclast): Merge with *avx_aesdeclast.
4074         (pclmulqdq): Merge with *pclmulqdq.
4075         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4076         New predicate.
4077         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4078
4079 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         PR middle-end/48608
4082         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4083         (align_local_variable): This.  Update DECL_ALIGN.
4084         (add_stack_var): Updated.
4085         (expand_one_stack_var): Likewise.
4086
4087 2011-04-14  Richard Guenther  <rguenther@suse.de>
4088
4089         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4090         Remove.
4091         (dse_initialize_block_local_data, dse_leave_block,
4092         record_voperand_set, get_stmt_uid): Likewise.
4093         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4094         (dse_optimize_stmt): Remove voperand set handling code.
4095         Simplify and improve to handle any kind of killing stmt.
4096         (dse_record_phi): Remove.
4097         (dse_enter_block): Simplify.
4098         (tree_ssa_dse): Likewise.
4099         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4100
4101 2011-04-14  Jan Hubicka  <jh@suse.cz>
4102
4103         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4104         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4105         (cgraph_local_info): Remove inline_summary.
4106         * ipa-cp.c: Include ipa-inline.h.
4107         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4108         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4109         accesor.
4110         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4111         (input_overwrite_node): Do not set inline summary.
4112         (input_node): Do not stream inline summary.
4113         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4114         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4115         growth; we do not have inline parameters computed for that anyway.
4116         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4117         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4118         (inline_summary_t): New type and VECtor.
4119         (debug_inline_summary, dump_inline_summaries): Declare.
4120         (inline_summary): Use VOCtor.
4121         (estimate_edge_growth): Kill hack computing call stmt size directly.
4122         * lto-section-in.c (lto_section_name): Add inline section.
4123         * ipa-inline-analysis.c: Include lto-streamer.h
4124         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4125         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4126         (inline_summary_vec): Define.
4127         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4128         dump_inline_summaries): New functions.
4129         (estimate_function_body_sizes): Properly compute size/time of outgoing
4130         calls.
4131         (compute_inline_parameters): Alloc inline_summary; do not compute
4132         size/time of incomming calls.
4133         (estimate_edge_time): Avoid missing time summary hack.
4134         (inline_read_summary): Read inline summary info.
4135         (inline_write_summary): Write inline summary info.
4136         (inline_free_summary): Free all hooks and inline summary vector.
4137         * lto-streamer.h: Add LTO_section_inline_summary section.
4138         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4139         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4140
4141 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4142
4143         * tree-vectorizer.h (vect_strided_store_supported): Add a
4144         HOST_WIDE_INT argument.
4145         (vect_strided_load_supported): Likewise.
4146         (vect_permute_store_chain): Return void.
4147         (vect_transform_strided_load): Likewise.
4148         (vect_permute_load_chain): Delete.
4149         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4150         count argument.  Check that the count is a power of two.
4151         (vect_strided_load_supported): Likewise.
4152         (vect_permute_store_chain): Return void.  Update after above changes.
4153         Assert that the access is supported.
4154         (vect_permute_load_chain): Likewise.
4155         (vect_transform_strided_load): Return void.
4156         * tree-vect-stmts.c (vectorizable_store): Update calls after
4157         above interface changes.
4158         (vectorizable_load): Likewise.
4159         (vect_analyze_stmt): Don't check for strided powers of two here.
4160
4161 2011-04-14  Richard Guenther  <rguenther@suse.de>
4162
4163         PR tree-optimization/48590
4164         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4165         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4166         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4167         BUILT_IN_STACK_SAVE.
4168         * tree-ssa-dce.c (propagate_necessity): Handle
4169         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4170
4171 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4172
4173         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4174         objc_declare_class.
4175
4176 2011-04-14  Richard Guenther  <rguenther@suse.de>
4177
4178         * tree.h (get_object_alignment_1): Declare.
4179         * builtins.c (get_object_alignment_1): Split out worker from ...
4180         (get_object_alignment): ... here.
4181         * fold-const.c (get_pointer_modulus_and_residue): Use
4182         get_object_alignment_1.
4183
4184 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4185
4186         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4187         type parameter.
4188         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4189         parameter.  Generalise code to handle arrays as well as vectors.
4190         (vect_setup_realignment): Update accordingly.
4191         * tree-vect-stmts.c (vectorizable_store): Likewise.
4192         (vectorizable_load): Likewise.
4193
4194 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4195
4196         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4197         within the per-copy loop.
4198
4199 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4200
4201         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4202         in the dump file.
4203
4204 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4205
4206         * doc/options.texi (Negative): Explicitly mention that the
4207         Negative chain must be circular.
4208
4209 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4210
4211         * function.h (block_chainon): Declare.
4212         * function.c (block_chainon): Define.
4213
4214 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4215             Eric Weddington  <eric.weddington@atmel.com>
4216             Georg-Johann Lay <avr@gjlay.de>
4217
4218         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4219         New Includes
4220         (avr_init_builtins, avr_expand_builtin,
4221         avr_expand_delay_cycles, avr_expand_unop_builtin,
4222         avr_expand_binop_builtin ): New functions.
4223         (avr_builtin_id): New enum
4224         (struct avr_builtin_description): New struct
4225         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4226         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4227
4228         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4229         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4230         UNSPECV_DELAY_CYCLES): new enumeration values
4231         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4232         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4233         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4234         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4235         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4236         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4237         "fmulsu"): New insns
4238
4239         * config/avr/avr-c.c: fix line endings
4240         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4241         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4242         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4243         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4244         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4245
4246         * doc/extend.texi (AVR Built-in Functions): New node
4247         (Target Builtins): Add documentation of AVR
4248         built-in functions.
4249
4250 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4251
4252         PR target/44643
4253         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4254         alone. Error if non-const data has attribute progmem.
4255
4256 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4257
4258         * tree.h (struct tree_constructor): Include tree_typed instead of
4259         tree_common.
4260         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4261         TS_TYPED instead of TS_COMMON.
4262
4263 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4264
4265         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4266         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4267         (sse2_psadbw): Merge with *avx_psadbw.
4268         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4269         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4270         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4271         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4272         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4273         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4274         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4275         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4276         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4277         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4278         (ssse3_palignrti): Merge with *avx_palignrti.
4279
4280 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4281
4282         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4283         * tree-ssanames.c (fini_ssanames): VEC_free it.
4284         (make_ssa_name_fn): Update for VECness of free_ssanames.
4285         (release_ssa_name, release_dead_ssa_names): Likewise.
4286         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4287         tree_common.
4288         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4289         TS_TYPED instead of TS_COMMON.
4290
4291 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4292
4293         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4294         statistics_counter_event.
4295         * tree-ssa-copyrename.c (stats): Define.
4296         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4297         statistics_counter_event.
4298         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4299         (bswap_stats, widen_mul_stats): Define.
4300         (insert_reciprocals): Increment rdivs_inserted.
4301         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4302         rfuncs_inserted.  Add calls to statistics_counter_event.
4303         (execute_cse_sincos_1): Increment inserted.
4304         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4305         statistics_counter_event.
4306         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4307         of bswap_stats.  Add calls to statistics_counter_event.
4308         (convert_mult_to_widen): Increment widen_mults_inserted.
4309         (convert_plusminus_to_widen): Increment maccs_inserted.
4310         (convert_mult_to_fma): Increment fmas_inserted.
4311         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4312         calls to statistics_counter_event.
4313
4314 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4315
4316         PR rtl-optimization/48455
4317         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4318         `temp_costs->mem_cost'.
4319
4320 2011-04-13  Jan Hubicka  <jh@suse.cz>
4321
4322         * ipa-inline.h: New file.
4323         * ipa-inline-analysis.c: New file. Broken out of ...
4324         * ipa-inline.c: ... this file; update toplevel comment;
4325         include ipa-inline.h
4326         (inline_summary): Move to ipa-inline.h
4327         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4328         ipa-inline-analysis.c.
4329         (cgraph_estimate_time_after_inlining): Rename to
4330         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4331         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4332         to estimate_edge_growth.
4333         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4334         rename to estimate_size_after_inlining.
4335         (cgraph_mark_inline_edge): Update for new naming convention.
4336         (cgraph_check_inline_limits): Likewise.
4337         (cgraph_edge_badness): Likewise.
4338         (cgraph_decide_recursive_inlining): Likewise.
4339         (cgraph_decide_inlining_of_small_functions): Likewise.
4340         (cgraph_decide_inlining_incrementally): Likewise.
4341         (cgraph_estimate_growth): Rename to estimate_growth; move to
4342         ipa-inline-analysis.c.
4343         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4344         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4345         (compute_inline_parameters): Likewise.
4346         (compute_inline_parameters_for_current): Likewise.
4347         (pass_inline_parameters): Likewise.
4348         (inline_indirect_intraprocedural_analysis): Likewise.
4349         (analyze_function): Rename to inline_analyze_function; likewise.
4350         (add_new_function): Move to ipa-inline-analysis.c.
4351         (inline_generate_summary): Likewise.
4352         (inline_read_summary): Likewise.
4353         (inline_write_summary): Likewise.
4354         * Makefile.in (ipa-inline-analysis.c): New file.
4355
4356 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4357
4358         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4359         * configure: Regenerate.
4360
4361 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4362
4363         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4364         instead of tree_common.
4365         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4366         Likewise.
4367         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4368         TS_TYPED rather than TS_COMMON.
4369         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4370
4371 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4372
4373         PR target/45263
4374         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4375         r20 around calls of __tablejump_elpm__
4376
4377 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4378
4379         PR middle-end/48591
4380         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4381         NULL.
4382         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4383
4384 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4385
4386         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4387         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4388         (cfi_vec): New typedef.
4389         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4390         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4391         (cie_cfi_vec): New static variable.
4392         (cie_cfi_head): Delete.
4393         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4394         declaration changed. Use vector rather than list operations.
4395         (new_cfi): Don't initialize the dw_cfi_next field.
4396         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4397         rather than list operations.
4398         (lookup_cfa): Use vector rather than list operations.
4399         (output_cfis): New argument upto. Accept a cfi_vec rather than
4400         a dw_cfi_ref list head as argument. All callers changed.
4401         Iterate over the vector using upto as a maximum index.
4402         (output_all_cfis): New static function.
4403         (output_fde): Use vector rather than list operations. Use the
4404         new upto argument for output_cfis rather than manipulating a
4405         list.
4406         (dwarf2out_begin_prologue): Change initializations to match
4407         new struct members.
4408         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4409         from the vector length rather than searching for the end of a list.
4410         Use output_all_cfis.
4411         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4412
4413 2011-04-13  Nick Clifton  <nickc@redhat.com>
4414
4415         * config/rx/rx.md (movmemsi): Do not use this pattern when
4416         volatile pointers are involved.
4417
4418 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4419
4420         * config/i386/sse.md (pinsrbits): Remove.
4421         (sse2_packsswb): Merge with *avx_packsswb.
4422         (sse2_packssdw): Merge with *avx_packssdw.
4423         (sse2_packuswb): Merge with *avx_packuswb.
4424         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4425         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4426         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4427         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4428         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4429         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4430         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4431         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4432         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4433         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4434         (sse2_loadld): Merge with *avx_loadld.
4435         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4436         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4437         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4438         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4439         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4440
4441 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4442
4443         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4444         calling TREE_CHAIN.
4445         * print-tree.c (print_node): Likewise.
4446         * tree-inline.c (copy_tree_r): Likewise.
4447         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4448         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4449         instead of TS_COMMON.
4450         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4451         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4452         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4453         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4454         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4455         ...and these...
4456         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4457         * tree.h: ...here.
4458         (TREE_CHAIN): Check for a TS_COMMON structure.
4459         (TREE_TYPE): Check for a TS_TYPED structure.
4460
4461 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4462
4463         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4464         cgraph_get_create_node instead of cgraph_node.
4465
4466 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4467
4468         * c-parser.c (c_parser_initelt): Updated call to
4469         objc_build_message_expr.
4470         (c_parser_postfix_expression): Likewise.
4471
4472 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4473
4474         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4475         MASK_MS_BITFIELD_LAYOUT bit.
4476
4477 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4478
4479         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4480         assert it is always true.
4481         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4482         moves.
4483
4484 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4485
4486         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4487         compiling Objective-C to be more efficient.
4488
4489 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4490
4491         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4492         argv_copied.
4493
4494 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4495
4496         * recog.h, genoutput.c, optabs.c: Revert last patch.
4497
4498 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4499
4500         PR target/48090
4501         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4502
4503 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4504
4505         * recog.h (insn_operand_data): Add an "allows_mem" field.
4506         * genoutput.c (output_operand_data): Initialize it.
4507         * optabs.c (maybe_legitimize_operand_same_code): New function.
4508         (maybe_legitimize_operand): Use it when matching the original
4509         op->value.
4510
4511 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4512
4513         * genpreds.c (process_define_predicate): Move most processing
4514         to gensupport.c.  Continue to validate the expression.
4515         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4516         (process_define_predicate): Move processing to gensupport.c.
4517         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4518         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4519         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4520         argument.
4521         (valid_predicate_name_p): New function, split out from old
4522         genpreds.c:process_define_predicate.
4523         (process_define_predicate): New function, combining code from
4524         old genpreds.c and genrecog.c functions.
4525         (process_rtx): Call it for DEFINE_PREDICATE and
4526         DEFINE_SPECIAL_PREDICATE.
4527
4528 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4529
4530         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4531         size of a '%A' memory reference.
4532         (T_DREG, T_QREG): New neon_builtin_type_bits.
4533         (arm_init_neon_builtins): Assert that the load and store operands
4534         are neon_struct_operands.
4535         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4536         (NEON_ARG_MEMORY): New builtin_arg.
4537         (neon_dereference_pointer): New function.
4538         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4539         Handle NEON_ARG_MEMORY.
4540         (arm_expand_neon_builtin): Update after above interface changes.
4541         Use NEON_ARG_MEMORY for loads and stores.
4542         * config/arm/predicates.md (neon_struct_operand): New predicate.
4543         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4544         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4545         (V_four_elem): Tweak formatting.
4546         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4547         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4548         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4549         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4550         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4551         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4552         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4553         Use %A in the output template.
4554         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4555         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4556         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4557         the width of the memory access.  Remove post-increment.
4558         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4559
4560 2011-04-12  Nick Clifton  <nickc@redhat.com>
4561
4562         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4563         instruction for interrupt handlers if the target is the basic V850
4564         architecture.
4565         (expand_epilogue): Likewise.
4566
4567 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4568
4569         PR rtl-optimization/48549
4570         * combine.c (propagate_for_debug): Also stop after BB_END of
4571         this_basic_block.  Process LAST and just stop processing after it.
4572         (combine_instructions): If last_combined_insn has been deleted,
4573         set last_combined_insn to its PREV_INSN.
4574
4575 2011-04-12  Richard Guenther  <rguenther@suse.de>
4576
4577         PR tree-optimization/46076
4578         * gimple.h (struct gimple_statement_call): Add fntype field.
4579         (gimple_call_fntype): Adjust.
4580         (gimple_call_set_fntype): New function.
4581         * gimple.c (gimple_build_call_1): Set the call function type.
4582         * gimplify.c (gimplify_call_expr): Preserve the function
4583         type the frontend used for the call.
4584         (gimplify_modify_expr): Likewise.
4585         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4586         function type.
4587         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4588         function type.
4589         * tree-ssa.c (useless_type_conversion_p): Function pointer
4590         conversions are useless.
4591
4592 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4593
4594         * cgraph.h (cgraph_node): Remove function declaration.
4595         (cgraph_create_node): Declare.
4596         (cgraph_get_create_node): Likewise.
4597         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4598         Updated all callers.
4599         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4600         the decl does not already exist.  Call cgraph_get_create_node instead
4601         of cgraph_node.
4602         (cgraph_get_create_node): New function.
4603         (cgraph_same_body_alias): Update comment.
4604         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4605         assert it does not return NULL.
4606         (cgraph_update_edges_for_call_stmt): Likewise.
4607         (cgraph_clone_edge): Likewise.
4608         (cgraph_create_virtual_clone): Likewise.
4609         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4610         instead of cgraph_node.
4611         (cgraph_add_new_function): Call cgraph_create_node or
4612         cgraph_get_create_node instead of cgraph_node.
4613         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4614         instead of cgraph_node.
4615         (record_eh_tables): Likewise.
4616         (mark_address): Likewise.
4617         (mark_load): Likewise.
4618         (build_cgraph_edges): Call cgraph_get_create_node instead
4619         of cgraph_node.
4620         (rebuild_cgraph_edges): Likewise.
4621         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4622         instead of cgraph_node.
4623         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4624         cgraph_node.
4625         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4626         cgraph_create_node instead of cgraph_node.
4627         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4628         of cgraph_node.
4629         * lto-cgraph.c (input_node): Likewise.
4630         * lto-streamer-in.c (input_function): Likewise.
4631         * varasm.c (mark_decl_referenced): Likewise.
4632         (assemble_alias): Likewise.
4633
4634 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4635
4636         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4637         instead of cgraph_node and assert it does not return NULL.
4638         * lto-streamer-in.c (lto_read_body): Likewise.
4639         * omp-low.c (new_omp_context): Likewise.
4640         (create_task_copyfn): Likewise.
4641         * tree-emutls.c (lower_emutls_function_body): Likewise.
4642         * matrix-reorg.c (transform_allocation_sites): Likewise.
4643
4644 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4645
4646         PR c/48552
4647         * c-typeck.c (build_asm_expr): Error out on attempts to use
4648         void type outputs or inputs for constraints that allow reg or
4649         don't allow memory.
4650
4651 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4652             Richard Earnshaw  <rearnsha@arm.com>
4653
4654         PR target/48250
4655         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4656         to use sign-magnitude offsets. Reject unsupported unaligned
4657         cases. Add detailed description in comments.
4658         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4659         condition from TARGET_32BIT to TARGET_ARM.
4660
4661 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4662
4663         * tree.h (struct typed_tree): New.
4664         (struct tree_common): Include it instead of tree_base.
4665         (TREE_TYPE): Update for new location of type field.
4666         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4667         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4668         (union tree_node): Add typed field.
4669         * treestruct.def (TS_TYPED): New.
4670         * lto-streamer.c (check_handled_ts_structures): Handle it.
4671         * tree.c (MARK_TS_TYPED): New macro.
4672         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4673
4674 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4675
4676         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4677         (force_nonfallthru): Do not alter the loop nest if no basic block
4678         was created.
4679
4680 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4681
4682         * config/i386/sse.md (VI): New mode iterator.
4683         (SSEMODEI): Remove.
4684         (AVX256MODEI): Ditto.
4685         (AVXMODEF4P): Ditto.
4686         (avxvecpsmode): Ditto.
4687         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4688         (sse2_andnot<mode>3): New expander.
4689         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4690         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4691         (<any_logic:code><mode>3): Use VI mode iterator.
4692         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4693         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4694         (*andnottf3): Handle AVX three-operand constraints.
4695         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4696
4697 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4698             Robert Millan  <rmh@gnu.org>
4699
4700         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4701         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4702         GNU_USER_DYNAMIC_LINKER64): Define.
4703         (REG_NAME): Don't undefine.
4704         (MD_UNWIND_SUPPORT): Undefine.
4705         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4706         (REG_NAME): Don't undefine.
4707         (MD_UNWIND_SUPPORT): Undefine.
4708         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4709
4710 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4711
4712         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4713         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4714
4715 2011-04-11  Xinliang David Li  <davidxl@google.com>
4716
4717         * value-profile.c (check_ic_target): New function.
4718         (gimple_ic_transform): Sanity check indirect call target.
4719         * gimple-low.c (gimple_check_call_args): Interface change.
4720         (gimple_check_call_matching_types): New function.
4721         * tree-inline.c (tree_can_inline_p): Call new function.
4722
4723 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4724
4725         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4726         tree-pretty-print.h & realmpfr.h.
4727
4728 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4729
4730         PR middle-end/48464
4731         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4732         (setup_allocno_and_important_classes): Ditto.
4733
4734 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4735
4736         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4737         GNU_USER_DYNAMIC_LINKER.
4738         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4740         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4741         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4742         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4743         GNU_USER_TARGET_OS_CPP_BUILTINS.
4744         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4745         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4746         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4747         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4748         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4749         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4750         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4751         GNU_USER_TARGET_OS_CPP_BUILTINS.
4752         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4753         GNU_USER_DYNAMIC_LINKER.
4754         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4755         GNU_USER_TARGET_OS_CPP_BUILTINS.
4756         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4757         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4758         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4759         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4760         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4761         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4762         GNU_USER_DYNAMIC_LINKER64): Remove.
4763         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4764         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4765         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4766         GNU_USER_DYNAMIC_LINKER.
4767         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4768         GNU_USER_TARGET_OS_CPP_BUILTINS.
4769         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4770         GNU_USER_TARGET_OS_CPP_BUILTINS.
4771         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4772         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4773         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4774         GNU_USER_TARGET_OS_CPP_BUILTINS.
4775         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4776         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4777         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4778         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4779         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4780         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4781         GNU_USER_DYNAMIC_LINKER.
4782         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4783         GNU_USER_TARGET_OS_CPP_BUILTINS.
4784         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4785         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4786         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4787         GNU_USER_DYNAMIC_LINKER.
4788         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4789         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4790         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4791         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4792         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4793         GNU_USER_DYNAMIC_LINKER.
4794         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4795         GNU_USER_DYNAMIC_LINKERN32.
4796         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4797         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4798         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4799         GNU_USER_DYNAMIC_LINKER32.
4800         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4801         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4802         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4803         GNU_USER_DYNAMIC_LINKER.
4804         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4805         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4806         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4807         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4808         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4809         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4810         GNU_USER_DYNAMIC_LINKER32.
4811         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4812         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4813         GNU_USER_DYNAMIC_LINKER.
4814         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4815         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4816         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4817         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4818         GNU_USER_DYNAMIC_LINKER64.
4819         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4820         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4821         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4822         GNU_USER_DYNAMIC_LINKER.
4823         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4824         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4825         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4826         GNU_USER_DYNAMIC_LINKER.
4827         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4828         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4829         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4830         GNU_USER_DYNAMIC_LINKER32.
4831         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4832         GNU_USER_DYNAMIC_LINKER64.
4833         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4834         GNU_USER_DYNAMIC_LINKER64.
4835         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4836         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4837         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4838         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4839         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4840
4841 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4842
4843         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4844         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4845         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4846         GNU_USER_DYNAMIC_LINKER.
4847         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4848         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4849         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4850         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4851         GNU_USER_DYNAMIC_LINKER64.
4852         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4853         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4854         GNU_USER_LINK_EMULATION.
4855         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4856         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4857         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4858         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4859         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4860         CPP_SPEC, CC1_SPEC): Remove.
4861         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4862         (GNU_USER_DYNAMIC_LINKER): Define.
4863         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4864         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4865         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4866         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4867         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4868         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4869         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4870         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4871         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4872         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4873         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4874         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4875         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4876         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4877         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4878         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4879         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4880         GNU_USER_DYNAMIC_LINKER.
4881         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4882         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4883         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4884         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4885         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4886         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4887         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4888         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4889         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4890         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4891
4892 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4893
4894         PR target/9601
4895         PR target/11772
4896         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4897         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4898         comment.
4899         (ix86_is_msabi_thiscall): Removed.
4900         (ix86_is_type_thiscall): Likewise.
4901         (ix86_get_callcvt): New function.
4902         (ix86_comp_type_attributes): Simplify check.
4903         (ix86_function_regparm): Use ix86_get_callcvt for calling
4904         convention attribute checks.
4905         (ix86_return_pops_args): Likewise.
4906         (ix86_static_chain): Likewise.
4907         (x86_this_parameter): Likewise.
4908         (x86_output_mi_thunk): Likewise.
4909         (ix86_function_type_abi): Optimize check for types without attributes.
4910         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4911         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4912         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4913         by flag-values.
4914         (IX86_BASE_CALLCVT): Helper macro.
4915         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4916         Use ix86_get_callcvt for calling convention attribute checks and avoid
4917         symbol-decoration for stdcall in TARGET_RTD case.
4918         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4919         Likewise.
4920         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4921         for declaration.
4922
4923 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4924
4925         * config/i386/sse.md (VI_128): New mode iterator.
4926         (VI12_128): Rename from SSEMODE12.
4927         (VI14_128): Rename from SSEMODE14.
4928         (VI124_128): New mode iterator.
4929         (VI24_128): Rename from SSEMODE248.
4930         (VI248_128): Rename from SSEMODE248.
4931         (SSEMODE124C8): Remove.
4932         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4933         (*sse2_<plusminus_insn><mode>3): Merge with
4934         *avx_<plusminus_insn><mode>3.
4935         (*mulv8hi3): Merge with *avx_mulv8hi3.
4936         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4937         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4938         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4939         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4940         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4941         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4942         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4943         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4944         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4945         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4946         (*<smaxmin:code>v8hi3): Ditto.
4947         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4948         (*<smaxmin:code>v16qi3): Ditto.
4949         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4950         (*sse2_eq<mode>3): Ditto.
4951         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4952         (*sse2_gt<mode>3): Ditto.
4953         (vcondv2di): Split out of vcond<mode>.
4954         (vconduv2di): Split out of vcondu<mode>.
4955
4956 2011-04-11  Richard Guenther  <rguenther@suse.de>
4957
4958         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4959         before calling tree_low_cst.
4960
4961 2011-04-11  Richard Guenther  <rguenther@suse.de>
4962
4963         * stor-layout.c (layout_type): Compute all array index size operations
4964         in the original type.
4965         (initialize_sizetypes): Add comment.
4966         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4967
4968 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4971
4972 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4973
4974         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4975         of cgraph_node, handle NULL return value.
4976         (cgraph_global_info): Likewise.
4977         (cgraph_rtl_info): Likewise.
4978         * tree-inline.c (estimate_num_insns): Likewise.
4979         * gimplify.c (unshare_body): Likewise.
4980         (unvisit_body): Likewise.
4981         (gimplify_body): Likewise.
4982         * predict.c (optimize_function_for_size_p): Likewise.
4983         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4984         (call_may_clobber_ref_p_1): Likewise.
4985         * varasm.c (function_section_1): Likewise.
4986         (assemble_start_function): Likewise.
4987
4988 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4989
4990         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4991         of cgraph_node.
4992         * final.c (rest_of_clean_state): Likewise.
4993         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4994         * passes.c (pass_init_dump_file): Likewise.
4995         (execute_all_ipa_transforms): Likewise.
4996         (function_called_by_processed_nodes_p): Likewise.
4997         * predict.c (maybe_hot_frequency_p): Likewise.
4998         (probably_never_executed_bb_p): Likewise.
4999         (compute_function_frequency): Likewise.
5000         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5001         (unnest_nesting_tree_1): Likewise.
5002         (lower_nested_functions): Likewise.
5003         * tree-optimize.c (execute_fixup_cfg): Likewise.
5004         (tree_rest_of_compilation): Likewise.
5005         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5006         * tree-sra.c (ipa_early_sra): Likewise.
5007         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5008         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5009         * ipa.c (record_cdtor_fn): Likewise.
5010         * ipa-inline.c (cgraph_early_inlining): Likewise.
5011         (compute_inline_parameters_for_current): Likewise.
5012         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5013         * ipa-pure-const.c (local_pure_const): Likewise.
5014         * ipa-split.c (split_function): Likewise.
5015         (execute_split_functions): Likewise.
5016         * cgraphbuild.c (build_cgraph_edges): Likewise.
5017         (rebuild_cgraph_edges): Likewise.
5018         (cgraph_rebuild_references): Likewise.
5019         (remove_cgraph_callee_edges): Likewise.
5020         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5021         (verify_cgraph_node): Likewise.
5022         (cgraph_analyze_functions): Likewise.
5023         (cgraph_preserve_function_body_p): Likewise.
5024         (save_inline_function_body): Likewise.
5025         (save_inline_function_body): Likewise.
5026         * tree-inline.c (copy_bb): Likewise.
5027         (optimize_inline_calls): Likewise.
5028
5029 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5030
5031         PR tree-optimization/48195
5032         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5033         ipa_check_create_edge_args.
5034         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5035         ipa_check_create_edge_args.
5036         * ipa-inline.c (inline_generate_summary): Do not call
5037         ipa_check_create_node_params and ipa_check_create_edge_args.
5038         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5039         ipa_check_create_edge_args.
5040
5041 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5042
5043         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5044         instead of loop.
5045         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5046         * function.c (record_hard_reg_sets): Likewise.
5047         * ira.c (compute_regs_asm_clobbered): Likewise.
5048         * sched-deps.c (sched_analyze_1): Likewise.
5049         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5050
5051 2011-04-09  Xinliang David Li  <davidxl@google.com>
5052
5053         PR tree-optimization/PR48484
5054         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5055         has_valid_pred lazily
5056
5057 2011-04-09  Duncan Sands  <baldrick@free.fr>
5058
5059         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5060
5061 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5062
5063         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5064         cost of I0 to zero at the end, if any.
5065
5066 2011-04-08  Xinliang David Li  <davidxl@google.com>
5067
5068         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5069         to insane profile data.
5070
5071 2011-04-08  Xinliang David Li  <davidxl@google.com>
5072
5073         * ipa-cp.c (ipcp_update_profiling): Correct
5074          negative scale factor due to insane profile data.
5075
5076 2011-04-08  Xinliang David Li  <davidxl@google.com>
5077
5078         * final.c (dump_basic_block_info): New function.
5079         (final): Dump basic block.
5080         (final_scan_insn): Remove old dump.
5081
5082 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5083
5084         PR target/47829
5085         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5086         crtbegin/crtend.
5087
5088 2011-04-08  Michael Matz  <matz@suse.de>
5089
5090         PR middle-end/48389
5091         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5092         functions.
5093         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5094         * rtl.h (rebuild_jump_labels_chain): Declare.
5095         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5096         insns inserted on edges.
5097
5098 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5099
5100         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5101         * config/arm/arm-arches.def: New.
5102         * config/arm/arm-opts.h: New.
5103         * config/arm/genopt.sh: New.
5104         * config/arm/arm-tables.opt: New (generated).
5105         * config/arm/arm.c (arm_handle_option, arm_target_help,
5106         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5107         (all_architectures): Get most table contents from arm-arches.def.
5108         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5109         arm_selected_tune here.
5110         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5111         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5112         (march=, mcpu=, mtune=): Use Enum and Var.
5113         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5114         (arm.o): Update dependencies.
5115
5116 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5117
5118         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5119         of header_file.
5120         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5121         (write_typed_alloc_defns): Likewise.
5122         (main): Calls write_typed_alloc_defns with output_header.
5123
5124 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5125
5126         PR inline-asm/48435
5127         * ira-color.c (setup_profitable_hard_regs): Add comments.
5128         Don't take prohibited hard regs into account.
5129         (setup_conflict_profitable_regs): Rename to
5130         get_conflict_profitable_regs.
5131         (check_hard_reg_p): Check prohibited hard regs.
5132
5133 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5134
5135         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5136         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5137         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5138
5139 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5140
5141         PR target/48366
5142         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5143         move from floating point to shift amount register.
5144         (emit_move_sequence): Remove secondary reload support for floating
5145         point to shift amount amount register copies.
5146         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5147         amount register copies.
5148         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5149         register, return false if mode isn't a scalar integer mode.
5150         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5151
5152 2011-04-08  Richard Guenther  <rguenther@suse.de>
5153
5154         * gimple.c (gimple_call_flags): Remove kludge.
5155
5156 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5157
5158         * sel-sched.c (sel_region_init): Move call to
5159         sel_setup_region_sched_flags after setup_current_loop_nest.
5160
5161 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5162
5163         PR rtl-optimization/48272
5164         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5165         init_insn_reg_pressure_info.  Adjust a caller.
5166         * sched-int.h (init_insn_reg_pressure_info): Declare.
5167         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5168         when sched-pressure is enabled.
5169
5170 2011-04-08  Richard Guenther  <rguenther@suse.de>
5171
5172         * gimple.c (gimple_set_modified): Do not queue calls to
5173         MODIFIED_NORETURN_CALLS here ...
5174         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5175
5176 2011-04-08  Richard Guenther  <rguenther@suse.de>
5177
5178         PR lto/48467
5179         * toplev.c (lang_dependent_init): Do not open asm_out_file
5180         in WPA mode, nor perform debug machinery initialization.
5181         (finalize): Do not unlink asm_out_file in WPA mode.
5182
5183 2011-04-08  Richard Guenther  <rguenther@suse.de>
5184
5185         * gimple.h (gimple_call_fntype): New function.
5186         (gimple_call_return_type): Use it.
5187         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5188         * gimple-low.c (gimple_check_call_args): Likewise.
5189         * gimple.c (gimple_call_flags): Likewise.
5190         (gimple_call_arg_flags): Likewise.
5191         (gimple_call_return_flags): Likewise.
5192         * tree-cfg.c (verify_gimple_call): Likewise.
5193         (do_warn_unused_result): Likewise.
5194         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5195         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5196
5197 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5198
5199         PR rtl-optimization/48235
5200         * sel-sched.c (code_motion_process_successors): Recompute the last
5201         insn in basic block if control flow changed.
5202         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5203         Update condition for ilist_remove.
5204
5205 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5206
5207         PR rtl-optimization/48302
5208         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5209         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5210         it to record added preheader blocks.
5211         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5212         on to sel_add_loop_preheaders.
5213         (sel_region_init): Move call to setup_current_loop_nest after
5214         sel_init_bbs.
5215
5216 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5217
5218         PR target/48273
5219         * cfgloop.h (loop_has_exit_edges): New helper.
5220         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5221         non-clonable.
5222         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5223         that have no exit edges.
5224
5225 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5226
5227         PR rtl-optimization/48442
5228         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5229         all callers.  Adjust assert.
5230
5231 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5232
5233         PR tree-optimization/48377
5234         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5235         is_packed to true even for types with smaller TYPE_ALIGN than
5236         TYPE_SIZE.
5237
5238 2011-04-08  Richard Guenther  <rguenther@suse.de>
5239
5240         PR bootstrap/48513
5241         * doc/tm.texi: Re-generate.
5242
5243 2011-04-08  Wei Guozhi  <carrot@google.com>
5244
5245         PR target/47855
5246         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5247         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5248         * config/arm/arm.md (*push_multi): Change the length computation to
5249         call a C function.
5250
5251 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5252
5253         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5254         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5255         * doc/tm.texi: Regenerate.
5256         * system.h (ASM_OUTPUT_BSS): Poison.
5257         * varasm.c (asm_output_bss): Remove function.
5258         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5259
5260         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5261         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5262         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5263         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5264         Likewise.
5265         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5266         Likewise.
5267         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5268         Likewise.
5269         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5270
5271 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5272
5273         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5274         EnumValue lines.
5275
5276 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5277
5278         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5279         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5280         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5281         OPT_mcpu32.
5282         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5283         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5284         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5285         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5286         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5287         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5288         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5289         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5290         options.  Don't map other m68k options manually.  Don't handle
5291         old-style options as canonical.
5292         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5293         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5294
5295 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5296
5297         * basic-block.h (force_nonfallthru): Move to...
5298         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5299         (force_nonfallthru): ...here.
5300         * cfghooks.c (force_nonfallthru): New function.
5301         * cfgrtl.c (force_nonfallthru): Rename into...
5302         (rtl_force_nonfallthru): ...this.
5303         (commit_one_edge_insertion): Do not set AUX field.
5304         (commit_edge_insertions): Do not discover new basic blocks.
5305         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5306         (cfg_layout_rtl_cfg_hooks): Likewise.
5307         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5308         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5309         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5310
5311 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5312
5313         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5314         Remove macros.
5315
5316 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5317
5318         * config/i386/sse.md: Update copyright year.
5319         (avxcvtvecmode): Remove.
5320         (sse_movhlps): Merge with *avx_movhlps.
5321         (sse_movlhps): Merge with *avx_movlhps.
5322         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5323         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5324         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5325         (sse_loadhps): Merge with *avx_loadhps.
5326         (sse_storelps): Merge with *avx_storelps.
5327         (sse_loadlps): Merge with *avx_loadlps.
5328         (sse_movss): Merge with *avx_movss.
5329         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5330         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5331         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5332         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5333         (vec_set<mode>_0): Ditto.
5334         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5335         (sse4_1_insertps): Merge with *avx_insertps.
5336         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5337         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5338         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5339         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5340         (sse2_storehpd): Merge with *avx_storehpd.
5341         (sse2_loadhpd): Merge with *avx_loadhpd.
5342         (sse2_loadlpd): Merge with *avx_loadlpd.
5343         (sse2_movsd): Merge with *avx_movsd.
5344         (*vec_concatv2df): Merge with *vec_concatv2df.
5345
5346 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5347
5348         PR debug/48343
5349         * combine.c (combine_instructions): Add last_combined_insn,
5350         update it if insn is after it, pass it to all try_combine calls.
5351         (try_combine): Add last_combined_insn parameter, pass it instead of
5352         i3 to propagate_for_debug.
5353
5354 2011-04-07  Nick Clifton  <nickc@redhat.com>
5355
5356         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5357         to handle MDR <-> data register transfers.
5358         (movhi_internal): Likewise.
5359
5360 2011-04-07  Alan Modra  <amodra@gmail.com>
5361
5362         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5363         previous stack info.
5364
5365 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5366
5367         PR target/43920
5368         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5369         flow_find_cross_jump.  Swap variables to implement backward replacement.
5370         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5371
5372 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5373
5374         PR target/43920
5375         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5376         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5377         and bb2.
5378         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5379         src1 or src2.  Redirect edges to the last basic block.  Update
5380         frequency and count on multiple basic blocks in case of fallthru.
5381
5382 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5383
5384         PR target/43920
5385         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5386         function.
5387         (old_insns_match_p): Change return type.  Replace return false/true
5388         with return dir_none/dir_both.  Use can_replace_by.
5389         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5390         direction from dir_p.  Register replacement direction in dir, last_dir
5391         and afterlast_dir.  Handle new return type of old_insns_match_p using
5392         merge_dir.  Return replacement direction in dir_p.
5393         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5394         return type of old_insns_match_p.
5395         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5396         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5397         flow_find_cross_jump.
5398         * basic-block.h (enum replace_direction): New type.
5399         (flow_find_cross_jump): Add parameter to declaration.
5400
5401 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5402
5403         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5404         (AVXMODEDCVTPS2DQ): Ditto.
5405         (VEC_FLOAT_MODE): Ditto.
5406         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5407         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5408         (<any_logic:code><mode>3): Use VF mode iterator.
5409         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5410         Use VF mode iterator.
5411         (copysign<mode>3): Use VF mode iterator.
5412         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5413         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5414         (*<any_logic:code><MODEF:mode>3): Merge with
5415         *avx_<any_logic:code><MODEF:mode>3.
5416         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5417         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5418         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5419         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5420         (sse2_cvtdq2ps): Use %v modifier.
5421         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5422         (avx_cvtps2dq<avxmodesuffix>): Remove.
5423         (sse2_cvtps2dq): Use %v modifier.
5424         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5425         (avx_cvttps2dq<avxmodesuffix>): Remove.
5426         (sse2_cvttps2dq): Use %v modifier.
5427         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5428         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5429         (sse2_cvtsd2siq): Fix insn template.
5430         (sse2_cvtsd2siq_2): Ditto.
5431         (sse2_cvttsd2siq): Ditto.
5432         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5433         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5434
5435 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5436
5437         * gcov-io.c: Use GCC Runtime Library Exception.
5438
5439 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5440
5441         PR debug/48466
5442         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5443         as base_reg whatever register reg has been eliminated to, instead
5444         of hardcoding STACK_POINTER_REGNUM.
5445
5446 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5447
5448         * doc/tm.texi.in: Document C target hooks as separate from general
5449         target hooks.
5450         * doc/tm.texi: Regenerate.
5451         * genhooks.c (struct hook_desc): Add docname field.
5452         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5453         docname field.
5454         (hook_array): Include c-target.def.
5455         (emit_documentation): Use docname field in output.
5456         (emit_init_macros): Take docname argument.  Only emit definitions
5457         for hooks matching docname.
5458         (main): Expect additional arguments in all cases.  Pass argument
5459         to emit_init_macros.
5460         * target.def: Move initial macro definitions and comments to
5461         target-hooks-macros.h.
5462         (gcc_targetcm): Move to c-family/c-target.def.
5463         * target.h (targetcm): Move declaration to c-family/c-target.h.
5464         * targhooks.c (default_handle_c_option): Move to
5465         c-family/c-opts.c.
5466         * targhooks.h (default_handle_c_option): Move declaration to
5467         c-family/c-common.h.
5468         * target-hooks-macros.h: New file.
5469         * config.gcc (target_has_targetcm): Define and use to add to
5470         c_target_objs and cxx_target_objs.
5471         * config/default-c.c: New file.
5472         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5473         of target.h and target-def.h.
5474         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5475         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5476         darwin_check_cfstring_format_arg): Make static.
5477         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5478         TARGET_STRING_OBJECT_REF_TYPE_P,
5479         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5480         * config/darwin-protos.h (darwin_objc_construct_string,
5481         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5482         declare.
5483         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5484         TARGET_STRING_OBJECT_REF_TYPE_P,
5485         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5486         * config/t-darwin (darwin-c.o): Update dependencies.
5487         * system.h (TARGET_HAS_TARGETCM): Poison.
5488         * Makefile.in (TARGET_H): Update.
5489         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5490         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5491         (default-c.o): New target.
5492         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5493         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5494         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5495         c-target.def.
5496         (build/genhooks.o): Update dependencies.
5497
5498 2011-04-06  Richard Guenther  <rguenther@suse.de>
5499
5500         * ipa-inline.c (enum inlining_mode): Remove.
5501         (cgraph_flatten): Use some other token.
5502         (cgraph_edge_early_inlinable_p): New function, split out from ...
5503         (cgraph_perform_always_inlining): New function, split out from ...
5504         (cgraph_decide_inlining_incrementally): ... here.
5505         (cgraph_mark_inline_edge): Adjust.
5506         (cgraph_early_inlining): Re-structure.
5507         (pass_early_inline): Require SSA form.
5508
5509 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5510             Julian Brown  <julian@codesourcery.com>
5511             Mark Shinwell  <shinwell@codesourcery.com>
5512
5513         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5514         LO_REGS only for Thumb-1.
5515         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5516         be used in short instructions when optimising for size on Thumb-2.
5517
5518 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5519
5520         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5521         associated with user returns to be preserved.
5522
5523 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5524
5525         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5526         symbol_queue_size, DBXOUT_DECR_NESTING,
5527         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5528         if XCOFF_DEBUGGING_INFO.
5529
5530 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5531
5532         * config/i386/i386.md (attribute isa): New.
5533         (attribute enabled): New.
5534         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5535         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5536         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5537         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5538         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5539         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5540         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5541         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5542
5543         * config/i386/sse.md (VF): New mode iterator.
5544         (VF1): Ditto.
5545         (VF2): Ditto.
5546         (VF_128): Ditto.
5547         (SSEMODEF4): Remove.
5548         (attribute sse): Handle V8SF and V4DF modes.
5549         (<absneg:code><mode>2): Use VF mode iterator.
5550         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5551         mode iterator.
5552         (<plusminus_insn><mode>3): Use VF mode iterator.
5553         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5554         Use VF mode iterator.
5555         (<sse>_vm<plusminus_insn><mode>3): Merge with
5556         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5557         (mul<mode>3): Use VF mode iterator.
5558         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5559         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5560         mode iterator.
5561         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5562         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5563         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5564         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5565         mode iterator.
5566         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5567         Use VF1 mode iterator.
5568         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5569         (sqrt<VF2:mode>2): New expander.
5570         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5571         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5572         and sqrtv2df2.  Use VF mode iterator.
5573         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5574         mode iterator.
5575         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5576         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5577         Use VF1 mode iterator.
5578         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5579         (<smaxmin:code><mode>3): Use VF mode iterator.
5580         (*<smaxmin:code><mode>3_finite): Merge with
5581         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5582         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5583         (<sse>_vm<smaxmin:code><mode>2): Merge with
5584         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5585         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5586         mode iterator.
5587         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5588         mode iterator.
5589         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5590         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5591         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5592         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5593         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5594         VF mode iterator.
5595         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5596         Use VF_128 mode iterator.
5597         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5598         mode iterator.
5599         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5600         VF_128 mode iterator.
5601         (vcond<mode>): Use VF mode iterator.
5602         * config/i386/predicates.md (sse_comparison_operator): Merge with
5603         avx_comparison_float_operator.  Do not declare as special_predicate.
5604         * config/i386/i386.c (struct builtin_description): Update for renamed
5605         compare patterns.
5606         (ix86_expand_args_builtin): Ditto.
5607         (ix86_expand_sse_compare_mask): Ditto.
5608
5609 2011-04-06  Richard Guenther  <rguenther@suse.de>
5610
5611         * tree-inline.c (estimate_num_insns): For calls simply account
5612         for all passed arguments and a used return value.
5613
5614 2011-04-06  Richard Guenther  <rguenther@suse.de>
5615
5616         PR tree-optimization/47663
5617         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5618         call_stmt_time fields.
5619         (cgraph_edge_inlinable_p): Declare.
5620         (cgraph_edge_recursive_p): New inline function.
5621         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5622         (cgraph_clone_edge): Copy it.
5623         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5624         Account for call stmt time.
5625         (cgraph_estimate_time_after_inlining): Take edge argument.
5626         (cgraph_estimate_edge_growth): Account call stmt size.
5627         (cgraph_estimate_size_after_inlining): Take edge argument.
5628         (cgraph_mark_inline_edge): Adjust.
5629         (cgraph_check_inline_limits): Likewise.
5630         (cgraph_recursive_inlining_p): Remove.
5631         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5632         (cgraph_decide_recursive_inlining): Take edge argument and
5633         adjust.
5634         (cgraph_decide_inlining_of_small_functions): Do not avoid
5635         diags for recursive inlining here.
5636         (cgraph_flatten): Adjust.
5637         (cgraph_decide_inlining_incrementally): Likewise.
5638         (estimate_function_body_sizes): Remove call cost handling.
5639         (compute_inline_parameters): Initialize caller edge call costs.
5640         (cgraph_estimate_edge_growth): New function.
5641         (cgraph_estimate_growth): Use it.
5642         (cgraph_edge_badness): Likewise.
5643         (cgraph_check_inline_limits): Take an edge argument.
5644         (cgraph_decide_inlining_of_small_functions): Adjust.
5645         (cgraph_decide_inlining): Likewise.
5646         * tree-inline.c (estimate_num_insns): Only account for call
5647         return value if it is used.
5648         (expand_call_inline): Avoid diagnostics on recursive inline
5649         functions here.
5650         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5651         (input_edge): Input edge call costs.
5652
5653 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5654
5655         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5656
5657 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5658
5659         * doc/invoke.texi (Spec Files): Fix typo.
5660
5661 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5662
5663         * profile.c (branch_prob): Move declaration of local variable.  Remove
5664         obsolete ??? comment.  Expand the location explicitly instead of using
5665         the LOCATION_FILE and LOCATION_LINE macros.
5666
5667 2011-04-06  Wei Guozhi  <carrot@google.com>
5668
5669         PR target/47855
5670         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5671         (arm_cond_branch): Likewise.
5672         (arm_cond_branch_reversed): Likewise.
5673         (arm_jump): Likewise.
5674         (push_multi): Likewise.
5675         * config/arm/constraints.md (Py): New constraint.
5676
5677 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5678
5679         PR bootstrap/48471
5680         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5681         Move these...
5682         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5683         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5684         #ifdef DBX_DEBUGGING_INFO.
5685
5686 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5687
5688         PR bootstrap/48403
5689         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5690         if old and new states differ.
5691
5692 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5693
5694         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5695         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5696         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5697         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5698         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5699         mcfv4e): Use Alias.
5700         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5701         ColdFire options to -mcpu= options.
5702
5703 2011-04-05  Jeff Law  <law@redhat.com>
5704
5705         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5706         check if BB is a successor of LOOP->header and return
5707         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5708
5709 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5710
5711         * cprop.c (struct reg_use): Remove.
5712         (reg_use_table): Make an array of RTX.
5713         (find_used_regs, constprop_register, local_cprop_pass,
5714         bypass_block): Simplify users of reg_use_table.
5715         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5716         on one of the uses found by find_used_regs.
5717
5718 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5719
5720         PR bootstrap/48469
5721         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5722         declaration.
5723
5724 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5725
5726         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5727         as an rtx.
5728         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5729
5730 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5731
5732         PR middle-end/48441
5733         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5734
5735 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5736
5737         * combine.c: Include obstack.h.
5738         (struct insn_link): Define.
5739         (uid_log_links): Adjust type.
5740         (FOR_EACH_LOG_LINK): New macro.
5741         (insn_link_obstack): Declare.
5742         (alloc_insn_link): Define.
5743         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5744         type of link variables.
5745         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5746         (try_combine, record_promoted_values, distribute_notes): Likewise.
5747         (distribute_links): Likewise.  Tweak prototype.
5748         (clear_log_links): Delete.
5749         (adjust_for_new_dest): Call alloc_insn_link.
5750         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5751
5752 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5753
5754         * gcse.c (modify_mem_list): Convert to an array of VECs.
5755         (canon_modify_mem_list, compute_transp): Tweak formatting.
5756         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5757         (load_killed_in_block_p): Likewise.
5758         (record_last_mem_set_info): Likewise.
5759         (clear_modify_mem_tables): Likewise.
5760
5761 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5762
5763         PR middle-end/48461
5764         * function.c (emit_use_return_register_into_block): Only define if
5765         HAVE_return.
5766
5767 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5768
5769         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5770
5771 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5772
5773         * config/rx/rx-opts.h: New.
5774         * config/rx/rx.c (rx_cpu_type): Remove.
5775         (rx_handle_option): Don't assert that global structures are in
5776         use.  Access variables via opts pointer.  Defer most handling of
5777         OPT_mint_register_.  Use error_at.
5778         (rx_option_override): Handle deferred OPT_mint_register_ here.
5779         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5780         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5781         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5782         (rx_cpu_types): New Enum and EnumValue entries.
5783         (mint-register=): Use Defer and use Var accordingly.
5784
5785 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5786
5787         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5788         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5789         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5790         Move these...
5791         (debug_free_queue, debug_nesting, symbol_queue_index):
5792         ...and these...
5793         * dbxout.c: ...to here.  Make static.
5794
5795 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5796
5797         * gcse.c (modify_pair): Define.  Define a VEC of it.
5798         (canon_modify_mem_list): Convert to an array of VECs.
5799         (free_insn_expr_list_list): Delete.
5800         (clear_modify_mem_tables): Call VEC_free instead.
5801         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5802         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5803         (canon_list_insert, compute_transp): Likewise.
5804
5805 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5806
5807         PR target/43920
5808         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5809         for size.
5810
5811 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5812
5813         PR target/43920
5814         * function.c (emit_use_return_register_into_block): New function.
5815         (thread_prologue_and_epilogue_insns): Use
5816         emit_use_return_register_into_block.
5817
5818 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5819
5820         PR target/43920
5821         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5822         insn.
5823
5824 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5825
5826         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5827
5828 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5829
5830         * config/arm/arm.md (define_constants for unspec): Replace with
5831         define_c_enum.
5832         (define_constants for unspecv): Replace with define_c_enum.
5833         * config/arm/neon.md (define_constants for unspec): Replace with
5834         define_c_enum.
5835
5836 2011-04-04  Richard Henderson  <rth@redhat.com>
5837
5838         PR bootstrap/48400
5839         * dwarf2out.c (output_line_info): Always emit line info from
5840         at least one section.
5841         (dwarf2out_init): Create text_section_line_info here ...
5842         (set_cur_line_info_table): ... not here.
5843
5844 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5845
5846         PR target/48380
5847         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5848         not called.
5849
5850         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5851
5852 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5853
5854         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5855         (expr_equiv_p): Remove.
5856         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5857         (hash_scan_set): Update call to insert_set_in_table.
5858         (dump_hash_table): Dump <dest, src> pair.
5859         (lookup_set): Simplify.  Lookup <dest, src> pair.
5860         (compute_transp): Remove, fold heavily simplified code into...
5861         (compute_local_properties): ...here.  Expect COMP and TRANSP
5862         unconditionally.
5863         (find_avail_set): Take set directly from struct expr.
5864         (find_bypass-set): Likewise.
5865         (bypass_block): Likewise.
5866         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5867
5868         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5869         checks on form of COND from find_implicit_sets to here.
5870         (find_implicit_sets): Cleanup control flow. Split critical edges
5871         if it exposes implicit sets.  Allocate/resize implicit_sets as
5872         necessary.
5873         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5874         changed something.  Run df_analyze after find_implicit_sets if any
5875         edges were split.  Do not allocate implicit_sets here.
5876
5877         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5878         (gcse_obstack): Renamed to cprop_obstack.
5879         (GNEW, GNEWVEC, GNEWVAR): Remove.
5880         (gmalloc): Remove.
5881         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5882         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5883         (gcse_alloc): Likewise, and rename to cprop_alloc.
5884         (alloc_gcse_men, free_gcse_mem): Remove.
5885         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5886         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5887         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5888
5889         * cprop.c (oprs_not_set_p): Remove.
5890         (mark_set, mark_clobber): Remove.
5891         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5892         (reg_not_set_p): New function.
5893         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5894         (cprop_insn): Likewise.
5895         (cprop_jump): Use FOR_EACH_EDGE.
5896
5897 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5898
5899         PR bootstrap/48403
5900         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5901         (rank_for_schedule): Use scheduled_insns vector instead of
5902         last_scheduled_insn.
5903         (ok_for_early_queue_removal): Likewise.
5904         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5905         we have a dbg_cnt.
5906         (choose_ready): Likewise.
5907         (commit_schedule): Use VEC_iterate.
5908         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5909         a dbg_cnt, use it and ensure the first insn is in the ready list.
5910         (haifa_sched_init): Allocate scheduled_insns.
5911         (sched_extend_ready_list): Don't allocate it; reserve space.
5912         (haifa_sched_finish): Free it.
5913
5914 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5915
5916         * optc-gen.awk: Always remove type from Variable entry before
5917         recording in var_seen.
5918
5919 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5920
5921         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5922         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5923         call to tidy_fallthru_edges.
5924
5925 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5926
5927         * doc/options.texi (ToLower): Document.
5928         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5929         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5930         * opts.h (cl_option): Add cl_tolower field.
5931         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5932         arguments with lowercase strings.
5933         * config/rx/rx.opt (mcpu=): Add ToLower.
5934         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5935         argument.
5936
5937 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5938
5939         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5940
5941 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5942
5943         * config/vax/vax.c: Include reload.h.
5944
5945 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5946
5947         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5948         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5949         (sparc_preferred_reload_class): New function.
5950
5951 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5952
5953         PR debug/48401
5954         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5955         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5956
5957 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5958
5959         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5960         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5961
5962 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5963
5964         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5965         (ASM_OUTPUT_ALIGNED_BSS): Define.
5966
5967 2011-04-03  Michael Matz  <matz@suse.de>
5968
5969         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5970         and next_slot members.
5971         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5972         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5973         (lto_streamer_cache_append): Declare.
5974         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5975         unsigned index, remove offset parameter, ensure that we append
5976         or update existing entries.
5977         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5978         parameter, update next_slot for append.
5979         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5980         parameter.
5981         (lto_streamer_cache_insert_at): Likewise.
5982         (lto_streamer_cache_append): New function.
5983         (lto_streamer_cache_lookup): Use unsigned index.
5984         (lto_streamer_cache_get): Likewise.
5985         (lto_record_common_node): Don't test tree_node_can_be_shared.
5986         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5987         (lto_streamer_cache_delete): Don't free offsets member.
5988         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5989         (lto_output_string_with_length): Use lto_output_data_stream.
5990         (lto_output_tree_header): Remove ix parameter, don't write it.
5991         (lto_output_builtin_tree): Likewise.
5992         (lto_write_tree): Adjust callers to above, don't track and write
5993         offset, write unsigned index.
5994         (output_unreferenced_globals): Don't emit all global vars.
5995         (write_global_references): Use unsigned indices.
5996         (lto_output_decl_state_refs): Likewise.
5997         (write_symbol): Likewise.
5998         * lto-streamer-in.c (lto_input_chain): Move earlier.
5999         (input_function): Use unsigned index.
6000         (input_alias_pairs): Don't read and then ignore all global vars.
6001         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6002         don't pass it back, use lto_streamer_cache_append.
6003         (lto_register_var_decl_in_symtab): Use unsigned index.
6004         (lto_register_function_decl_in_symtab): Likewise.
6005         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6006         index.
6007         (lto_get_builtin_tree): Don't read index, use
6008         lto_streamer_cache_append.
6009         (lto_read_tree): Adjust call to lto_materialize_tree.
6010
6011         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6012         don't use function calls in arguments to MIN.
6013
6014         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6015         twice.
6016
6017         * gimple.c (gimple_type_leader_entry): Mark deletable.
6018
6019 2011-04-03  Alan Modra  <amodra@gmail.com>
6020
6021         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6022
6023 2011-04-03  Michael Matz  <matz@suse.de>
6024
6025         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6026         an integer.
6027         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6028
6029 2011-04-03  Michael Matz  <matz@suse.de>
6030
6031         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6032         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6033         without function context.
6034         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6035         current_function_decl and cfun.
6036
6037 2011-04-03  Michael Matz  <matz@suse.de>
6038
6039         * tree.c (decl_init_priority_insert): Don't create entry for
6040         default priority.
6041         (decl_fini_priority_insert): Ditto.
6042         (fields_compatible_p, find_compatible_field): Remove.
6043         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6044         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6045
6046 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6047
6048         * combine.c (try_combine): Remove useless local variable.
6049
6050 2011-04-03  Richard Guenther  <rguenther@suse.de>
6051             Ira Rosen  <ira.rosen@linaro.org>
6052
6053         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6054         non-variable offsets and compare the remaining bases of the two
6055         accesses instead of looking for exact same data-ref.
6056
6057 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6058
6059         PR target/48416
6060         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6061
6062         * i386.c (ix86_is_msabi_thiscall): New helper function.
6063         (ix86_is_type_thiscall): New helper function.
6064         (ix86_comp_type_attributes): Handle thiscall for method-functions
6065         special.
6066         (init_cumulative_args): Likewise.
6067         (find_drap_reg): Likewise.
6068         (ix86_static_chain): Likewise.
6069         (x86_this_parameter): Likewise.
6070         (x86_output_mi_thunk): Likewise.
6071
6072 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6073             Nicolas Setton  <setton@adacore.com>
6074             Eric Botcazou  <ebotcazou@adacore.com>
6075
6076         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6077         (add_gnat_descriptive_type_attribute): New function.
6078         (gen_array_type_die): Call it.
6079         (gen_enumeration_type_die): Likewise.
6080         (gen_struct_or_union_type_die): Likewise.
6081         (modified_type_die): Likewise.
6082         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6083         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6084         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6085
6086 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6087
6088         PR bootstrap/48148
6089         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6090         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6091
6092         Revert:
6093         2011-03-17  Richard Guenther  <rguenther@suse.de>
6094
6095         PR bootstrap/48148
6096         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6097         origin for decls in other ltrans units.
6098         (input_varpool_node): Likewise.
6099
6100 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6101
6102         PR middle-end/48335
6103         * expr.c (expand_assignment): Handle all possibilities
6104         if TO_RTX is CONCAT.
6105         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6106         (store_split_bit_field): If SUBREG_REG (op0) or
6107         op0 itself has smaller mode than word, return it
6108         for offset 0 and const0_rtx for out-of-bounds stores.
6109         If word is const0_rtx, skip it.
6110
6111 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6112
6113         * config/h8300/h8300.c (print_operand_address): Rename to...
6114         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6115         Call h8300_print_operand and h8300_print_operand_address instead of
6116         print_operand and print_operand_address. Declare.
6117         (print_operand): Renake to...
6118         (h8300_print_operand): ...this. Make static. Adjust comments.
6119         Call h8300_print_operand instead of print_operand. Declare.
6120         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6121         (h8300_register_move_cost): Likewise.
6122         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6123         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6124         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6125         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6126         * config/h8300/h8300-protos.h (print_operand): Delete.
6127         (print_operand_address): Delete.
6128
6129 2011-04-01  Richard Henderson  <rth@redhat.com>
6130
6131         PR 48400
6132         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6133         in strict mode before dwarf4.  Re-order tests to early out
6134         before switching sections.
6135
6136 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6137
6138         * config/h8300/constraints.md: New file.
6139         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6140         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6141         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6142         * config/h8300/predicates.md (bit_operand): Likewise.
6143         (incdec_operand): Use satisfies_constraint_M and
6144         satisfies_constraint_O.  Don't use C code block.
6145         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6146         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6147         (compute_mov_length): Use satisfies_constraint_G.
6148         (fix_bit_operand): Use satisfies_constraint_U.
6149         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6150         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6151         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6152         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6153         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6154         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6155         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6156         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6157         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6158         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6159         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6160         (EXTRA_MEMORY_CONSTRAINT): Delete.
6161
6162 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6163             Michael Meissner  <meissner@linux.vnet.ibm.com>
6164
6165         PR target/48262
6166         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6167         operands, as per the specifications.
6168
6169         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6170         (vec_extract_evenv4sf): Ditto.
6171         (vec_extract_evenv8hi): Ditto.
6172         (vec_extract_evenv16qi): Ditto.
6173         (vec_extract_oddv4si): Ditto.
6174
6175 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6176
6177         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6178         high_pc attribute if the CU has no associated code. Only output
6179         DW_AT_entry_pc for CU if not generating strict dwarf and
6180         dwarf_version < 4.
6181
6182 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6183
6184         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6185         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6186         out of ...
6187         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6188         * final.c (final_start_function): Call the new function rather
6189         than using a NULL argument for dwarf2out_frame_debug.
6190
6191         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6192         that contains the prologue.
6193
6194         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6195         changed.  Print it in debugging output.
6196
6197         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6198
6199         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6200         Split most of the code into...
6201         (begin_move_insn): ... here.  New function.
6202         (ebb_sched_info): Add a pointer to it.
6203         * haifa-sched.c (scheduled_insns): New static variable.
6204         (sched_extend_ready_list): Allocate it.
6205         (schedule_block): Use it to record the order of scheduled insns.
6206         Perform RTL changes to move insns only after all scheduling
6207         decisions have been made.
6208         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6209         begin_move_insn field.
6210         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6211         * sched-int.h (struct haifa_sched_info): Remove second argument
6212         from begin_schedule_ready hook.  Add new member begin_move_insn.
6213         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6214         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6215
6216         * haifa-sched.c (prune_ready_list): New function, broken out of
6217         schedule_block.
6218         (schedule_block): Use it.
6219
6220 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6221
6222         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6223
6224 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6225
6226         * config.gcc (*-*-mingw*): Allow as option the
6227         posix threading model.
6228         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6229         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6230         definition.
6231         (CPP_SPEC): Add pthread/no-pthread handling.
6232         (LIB_SPEC): Likewise.
6233         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6234         (LIB_SPEC): Likewise.
6235         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6236         flag to pass -pthread option for shared libgcc build.
6237         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6238         for shared libgcc build.
6239         * config/i386/t-mingw-pthread: New file.
6240         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6241         New define to enable use of library pthread by default.
6242         * config/i386/mingw.opt (pthread): New driver option.
6243         (no-pthread): New driver option.
6244         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6245         * config/i386/mingw-w64.opt: Likewise.
6246
6247 2011-04-01  Gary Funck <gary@intrepid.com>
6248
6249         * c-decl.c (grokdeclarator): Fix formatting.
6250
6251 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6252
6253         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6254         instead of n_operands.
6255         (set_storage_via_setmem): Likewise.
6256         * optabs.c (maybe_gen_insn): Likewise.
6257         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6258         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6259         (mips_expand_builtin_direct): Likewise.
6260         * config/spu/spu.c (expand_builtin_args): Likewise.
6261
6262 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6263
6264         * recog.h (insn_data_d): Add n_generator_args.
6265         * genoutput.c (data): Likewise.
6266         (output_insn_data): Print it.
6267         (max_opno, num_dups): Delete.
6268         (scan_operands): Just fill in "d->operand[...]".
6269         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6270
6271 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6272
6273         * gensupport.h (pattern_stats): New structure.
6274         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6275         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6276         (max_operand_1, max_operand_vec): Delete.
6277         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6278
6279 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6280
6281         * emit-rtl.c (emit_pattern_after_setloc): New function.
6282         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6283         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6284         (emit_pattern_after): New function.
6285         (emit_insn_after, emit_jump_insn_after): Call it.
6286         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6287         (emit_pattern_before_setloc): New function.
6288         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6289         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6290         Likewise.
6291         (emit_pattern_before): New function.
6292         (emit_insn_before, emit_jump_insn_before): Call it.
6293         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6294
6295 2011-03-31  Richard Henderson  <rth@redhat.com>
6296
6297         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6298         (dw_separate_line_info_entry): Remove.
6299         (enum dw_line_info_opcode): New.
6300         (dw_line_info_entry): Use it.
6301         (dw_line_info_table, dw_line_info_table_p): New.
6302         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6303         (line_info_table, line_info_label_num): Remove.
6304         (line_info_table_in_use): Remove.
6305         (separate_line_info_table): Remove.
6306         (separate_line_info_table_allocated): Remove.
6307         (separate_line_info_table_in_use): Remove.
6308         (LINE_INFO_TABLE_INCREMENT): Remove.
6309         (line_info_label_num): New.
6310         (cur_line_info_table): New.
6311         (text_section_line_info, cold_text_section_line_info): New.
6312         (separate_line_info): New.
6313         (SEPARATE_LINE_CODE_LABEL): Remove.
6314         (print_dwarf_line_table): Remove.
6315         (debug_dwarf): Don't dump it.
6316         (output_one_line_info_table): New.
6317         (output_line_info): Use it.
6318         (new_line_info_table): New.
6319         (set_cur_line_info_table): New.
6320         (dwarf2out_switch_text_section): Use it.
6321         (dwarf2out_begin_function): Likewise.
6322         (push_dw_line_info_entry): New.
6323         (dwarf2out_source_line): Rewrite for new line info tables.
6324         (dwarf2out_init): Remove dead initailizations.
6325
6326 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6327
6328         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6329         various flags.
6330         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6331         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6332         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6333         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6334         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6335         * opt-functions.awk (flag_init, switch_bit_fields): New.
6336         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6337         generate CL_MISSING_OK or CL_SAVE.
6338         * optc-gen.awk: Update to generate bit-field output as well as
6339         flags field.
6340         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6341         bit-field instead of CL_REJECT_DRIVER flag.
6342         * opts-common.c (generate_canonical_option,
6343         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6344         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6345         instead of CL_REJECT_NEGATIVE flag.
6346         * toplev.c (print_switch_values): Use cl_report bit-field instead
6347         of CL_REPORT flag.
6348
6349 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6350
6351         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6352         a zero minimum index only if it is redundant.
6353
6354 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6355
6356         PR rtl-optimization/48381
6357         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6358         instead of ira_class_hard_reg_index for calculating conflicting
6359         hard registers.
6360
6361 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6362
6363         * cprop.c: Clean up hash table building.
6364         (reg_avail_info): Remove.
6365         (oprs_available_p): Remove.
6366         (record_last_reg_set_info): Remove.
6367         (record_last_set_info): Remove.
6368         (reg_available_p): New function.
6369         (gcse_constant_p): Do not treat unfolded conditions as constants.
6370         (make_set_regs_unavailable): New function.
6371         (hash_scan_set): Simplify with new reg_available_p.
6372         (compute_hash_table_work): Traverse insns stream only once.
6373         Do not compute reg_avail_info. Traverse insns in reverse order.
6374         Record implicit sets after recording explicit sets from the block.
6375
6376 2011-03-31  Michael Matz  <matz@suse.de>
6377
6378         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6379
6380 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6381
6382         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6383         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6384         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6385         (h8300_mode_dependent_address_p): New function.
6386         (h8300_get_index): Make static.
6387
6388 2011-03-31  Jeff Law  <law@redhat.com>
6389
6390         * reload1.c (elimination_effects): Fix typo in recent change.
6391
6392         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6393         typo potentially leading to null pointer dereference.
6394
6395         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6396         (setup_save_areas): Corresponding changes to avoid useless
6397         assignments.
6398
6399         * jump.c (reversed_comparison_code_parts): Avoid successive return
6400         statements when REVERSE_CONDITION is defined.
6401
6402         * expr.c (expand_assignment): Avoid useless assignments.
6403         (expand_expr_real_1): Likewise.
6404         (expand_expr_real_2): Avoid useless statements.
6405
6406         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6407
6408         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6409
6410         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6411         statements.
6412
6413         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6414
6415 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6416
6417         PR target/47109
6418         * doc/tm.texi.in (TARGET_VERSION): Remove.
6419         * doc/tm.texi: Regenerate.
6420         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6421         * collect2.c (main): Don't use TARGET_VERSION.
6422         * mips-tdump.c (main): Don't use TARGET_VERSION.
6423         * mips-tfile.c (main): Don't use TARGET_VERSION.
6424         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6425         * config/rs6000/vxworksae.h: Remove.
6426         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6427         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6428         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6429         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6430         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6431         * config/arm/arm.h (TARGET_VERSION): Remove.
6432         * config/arm/coff.h (TARGET_VERSION): Remove.
6433         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6434         * config/arm/elf.h (TARGET_VERSION): Remove.
6435         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6436         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6437         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6438         * config/arm/pe.h (TARGET_VERSION): Remove.
6439         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6440         * config/arm/semi.h (TARGET_VERSION): Remove.
6441         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6442         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6443         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6444         * config/avr/avr.h (TARGET_VERSION): Remove.
6445         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6446         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6447         * config/frv/frv.h (TARGET_VERSION): Remove.
6448         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6449         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6450         * config/i386/darwin.h (TARGET_VERSION): Remove.
6451         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6452         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6453         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6454         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6455         * config/i386/gnu.h (TARGET_VERSION): Remove.
6456         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6457         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6458         * config/i386/linux.h (TARGET_VERSION): Remove.
6459         * config/i386/linux64.h (TARGET_VERSION): Remove.
6460         * config/i386/lynx.h (TARGET_VERSION): Remove.
6461         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6462         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6463         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6464         * config/i386/netware.h (TARGET_VERSION): Remove.
6465         * config/i386/nto.h (TARGET_VERSION): Remove.
6466         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6467         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6468         * config/ia64/elf.h (TARGET_VERSION): Remove.
6469         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6470         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6471         * config/ia64/linux.h (TARGET_VERSION): Remove.
6472         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6473         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6474         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6475         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6476         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6477         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6478         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6479         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6480         * config/m68k/linux.h (TARGET_VERSION): Remove.
6481         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6482         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6483         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6484         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6485         * config/mep/mep.h (TARGET_VERSION): Remove.
6486         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6487         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6488         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6489         * config/mips/linux.h (TARGET_VERSION): Remove.
6490         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6491         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6492         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6493         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6494         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6495         * config/pa/pa.h (TARGET_VERSION): Remove.
6496         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6497         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6498         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6499         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6500         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6501         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6502         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6503         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6504         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6505         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6506         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6507         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6508         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6509         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6510         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6511         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6512         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6513         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6514         * config/s390/linux.h (TARGET_VERSION): Remove.
6515         * config/s390/s390.h (TARGET_VERSION): Remove.
6516         * config/s390/tpf.h (TARGET_VERSION): Remove.
6517         * config/score/score.h (TARGET_VERSION): Remove.
6518         * config/sh/linux.h (TARGET_VERSION): Remove.
6519         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6520         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6521         * config/sh/sh.h (TARGET_VERSION): Remove.
6522         * config/sh/sh64.h (TARGET_VERSION): Remove.
6523         * config/sh/superh.h (TARGET_VERSION): Remove.
6524         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6525         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6526         * config/sparc/linux.h (TARGET_VERSION): Remove.
6527         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6528         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6529         TARGET_NAME32, TARGET_NAME): Remove.
6530         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6531         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6532         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6533         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6534         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6535         * config/spu/spu.h (TARGET_VERSION): Remove.
6536         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6537         * config/v850/v850.h (TARGET_VERSION): Remove.
6538         * config/vax/linux.h (TARGET_VERSION): Remove.
6539         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6540         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6541         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6542
6543 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6544
6545         PR target/48142
6546         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6547         frame-related from frame-unrelated adjustments to the stack pointer.
6548
6549 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6550
6551         * common.opt (fdebug-types-section): Move earlier.
6552         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6553
6554 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6555
6556         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6557         var.
6558
6559 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6560
6561         * tree.h (CASE_CHAIN): Define.
6562         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6563         (gimple_redirect_edge_and_branch): Likewise.
6564
6565 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6566
6567         PR middle-end/48367
6568         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6569         calculation.
6570
6571 2011-03-30  Jeff Law  <law@redhat.com>
6572
6573         * PR bootstrap/48371
6574         * reload1.c (reload): Fix botch in last change.
6575
6576         * reload.h (struct reload): Fix typo introduced in last change.
6577
6578 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6579
6580         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6581         Undocumented.  Remove help text.
6582         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6583         -mhard-float.
6584
6585 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6586
6587         * doc/options.texi (NegativeAlias): Document.
6588         (Alias): Mention NegativeAlias.
6589         * opt-functions.awk: Handle NegativeAlias.
6590         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6591         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6592         * opts.h (CL_NEGATIVE_ALIAS): Define.
6593         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6594         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6595         OPT_mspe_.
6596         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6597         Alias entries.
6598         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6599         mno-spe and mno-isel instead of mspe=no and -misel=no.
6600
6601 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6602
6603         * common.opt (fdebug-types-section): New flag.
6604         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6605         * dwarf2out.c (use_debug_types): New define.
6606         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6607         (print_die): Guard output of type unit signatures using
6608         use_debug_types.
6609         (build_abbrev_table): Replace assert of dwarf_version >= 4
6610         with assert on use_debug_types.
6611         (size_of_die): Likewise.
6612         (unmark_dies): Likewise.
6613         (value_format): Decide AT_ref_external form on use_debug_types.
6614         (output_die): Replace dwarf_version version check guard with
6615         use_debug_types where appropriate.
6616         (modified_type_die): Likewise.
6617         (gen_reference_type_die): Likewise.
6618         (dwarf2out_start_source_file): Likewise.
6619         (dwarf2out_end_source_file): Likewise.
6620         (prune_unused_types_walk_attribs): Likewise.
6621         (dwarf2out_finish): Likewise.
6622
6623 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6624
6625         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6626
6627 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6628
6629         PR rtl-optimization/48332
6630         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6631         mode of input operand N and modeN to its actual mode.
6632
6633 2011-03-30  Jeff Law  <law@redhat.com>
6634
6635         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6636         define accessor macro.
6637         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6638         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6639         (reg_equiv_init): Likewise.
6640         (reg_equivs_size): New variable.
6641         (reg_equiv_init_size): Remove.
6642         (allocate_initial_values): Move prototype to here from....
6643         * integrate.h (allocate_initial_values): Remove prototype.
6644         * integrate.c: Include reload.h.
6645         (allocate_initial_values): Corresponding changes.
6646         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6647         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6648         (update_equiv_regs): Corresponding changes.
6649         (ira): Corresponding changes.
6650         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6651         (push_secondary_reload): Corresponding changes.
6652         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6653         (make_memloc, find_reloads_address): Corresponding changes.
6654         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6655         (find_reloads_address_1): Corresponding changes.
6656         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6657         (refers_to_regno_for_reload_p): Corresponding changes.
6658         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6659         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6660         * reload1.c: Include ggc.h.
6661         (grow_reg_equivs): New function.
6662         (replace_pseudos_in, reload): Corresponding changes.
6663         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6664         (eliminate_regs_1, elimination_effects): Corresponding changes.
6665         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6666         (delete_output_reload): Likewise.
6667         * caller-save.c (mark_referenced_regs): Corresponding changes.
6668         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6669         * frv/predicates.md (frv_load_operand): Corresponding changes.
6670         * microblaze/microblaze.c (double_memory_operand): Corresponding
6671         changes.
6672         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6673         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6674         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6675         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6676         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6677         changes.
6678         * pa/pa.c (emit_move_sequence): Corresponding changes.
6679         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6680
6681 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6682
6683         PR target/47551
6684         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6685         structure modes.  Don't check neon_vector_mem_operand for
6686         vector or structure modes.
6687
6688 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6689             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6690
6691         PR target/43590
6692         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6693         operand 1 and reshuffle the operands to match.
6694         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6695
6696 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6697
6698         PR driver/48208
6699         * config/c.opt (F): Added 'Driver' to -F option.
6700
6701         PR driver/48260
6702         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6703           handler function.
6704         * config/darwin.opt: Added '-arch' option.
6705
6706 2011-03-30  Nick Clifton  <nickc@redhat.com>
6707
6708         * config/rx/rx.md: Add peepholes and patterns to combine
6709         extending loads and simple arithmetic instructions.
6710         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6711         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6712         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6713         modes to use pre-decrement and post-increment addressing.
6714         (rx_is_restricted_memory_address): Add range checking of REG+INT
6715         addresses.
6716         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6717         (rx_memory_move_cost): Adjust cost of stores.
6718         (rx_adjust_insn_length): New function.
6719
6720 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6721
6722         PR c/48305
6723         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6724         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6725         matching arg00/arg01 types.
6726
6727 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6728
6729         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6730         last_location to UNKNOWN_LOCATION.
6731
6732 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6733
6734         PR target/48349
6735         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6736         FLOAT_SSE_REGS.
6737
6738 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6739             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6740
6741         PR bootstrap/48337
6742         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6743         Init(PROCESSOR_V7).
6744         (sparc_cpu): Likewise.
6745         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6746         PROCESSOR_V7.
6747
6748 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6749
6750         PR target/48336
6751         PR middle-end/48342
6752         PR rtl-optimization/48345
6753         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6754         hard regs for given mode from profitable regs when doing secondary
6755         allocation.
6756
6757 2011-03-29  Jeff Law  <law@redhat.com>
6758
6759         PR bootstrap/48327
6760         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6761         do_not_duplicate field.
6762         (lookup_redirection_data): Corresponding changes.
6763         (create_duplicates): Always create a template block.
6764         (redirect_edges): Remove code which reused the original block
6765         when it was going to become unreachable code.
6766         (thread_block): Don't set do_not_duplicate field.
6767
6768 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6769
6770         * lto-opts.c (register_user_option_p, lto_register_user_option):
6771         Make type argument unsigned.
6772         * lto-streamer.h (lto_register_user_option): Make type argument
6773         unsigned.
6774         * opth-gen.awk: Make CL_* macros unsigned.
6775         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6776         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6777         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6778         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6779         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6780         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6781         (find_opt): Make lang_mask argument unsigned.
6782
6783 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6784
6785         PR rtl-optimization/48331
6786         PR rtl-optimization/48334
6787         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6788         for any used algorithm.
6789
6790 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6791
6792         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6793         to parent_max.
6794
6795 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6796
6797         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6798         (alpha_option_override): Don't set alpha_sr_alias_set.
6799         (emit_frame_store_1): Use gen_frame_mem rather than calling
6800         set_mem_alias_set.
6801         (alpha_expand_epilogue): Ditto.
6802
6803 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6804
6805         PR tree-optimization/48290
6806         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6807         vectorization, check that relevant phis in the basic block after
6808         the inner loop are really inner loop's exit phis.
6809
6810 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6811
6812         PR debug/48190
6813         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6814         (cached_dw_loc_list_def): New structure.
6815         (cached_dw_loc_list): New typedef.
6816         (cached_dw_loc_list_table): New variable.
6817         (cached_dw_loc_list_table_hash): New function.
6818         (cached_dw_loc_list_table_eq): Likewise.
6819         (add_location_or_const_value_attribute): Take a bool cache_p.
6820         Cache the list when the parameter is true.
6821         (gen_formal_parameter_die): Update caller.
6822         (gen_variable_die): Likewise.
6823         (dwarf2out_finish): Likewise.
6824         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6825         while generating debug info for the decl.
6826         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6827         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6828         (resolve_addr): Cache the result of resolving a chain of
6829         location lists.
6830
6831 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6832
6833         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6834         conflict object hard regset nodes have intersecting hard reg sets.
6835
6836         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6837         after regstat_init_n_sets_and_refs.
6838
6839         * ira.c: Add more comments at the top.
6840         (setup_stack_reg_pressure_class, setup_pressure_classes):
6841         Add comments how we compute the register pressure classes.
6842         (setup_allocno_and_important_classes): Add more comments.
6843         (setup_class_translate_array, reorder_important_classes)
6844         (setup_reg_class_relations): Add comments.
6845
6846         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6847         start of the file.
6848
6849         * ira-color.c: Add 2011 to the Copyright line.
6850         (assign_hard_reg):  Add more comments.
6851         (improve_allocation): Ditto.
6852
6853         * ira-costs.c: Add 2011 to the Copyright line.
6854         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6855         comments.
6856         (setup_regno_cost_classes_by_mode): Ditto.
6857
6858         Initial patches from ira-improv branch:
6859
6860         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6861
6862         * ira-build.c (ira_create_object): Remove initialization of
6863         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6864         (ira_create_allocno): Remove initialization of
6865         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6866         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6867         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6868         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6869         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6870         Initialize ALLOCNO_ADD_DATA.
6871         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6872         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6873         ALLOCNO_REG.
6874         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6875         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6876
6877         * ira.c (ira_reallocate): Remove.
6878         (setup_pressure_classes): Call
6879         ira_init_register_move_cost_if_necessary.  Use
6880         ira_register_move_cost instead of ira_get_register_move_cost.
6881         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6882         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6883
6884         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6885         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6886         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6887         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6888         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6889         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6890         Fix formatting.
6891         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6892         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6893         (struct allocno_color_data): New.
6894         (allocno_color_data_t): New typedef.
6895         (allocno_color_data): New definition.
6896         (ALLOCNO_COLOR_DATA): New macro.
6897         (struct object_color_data): New.
6898         (object_color_data_t): New typedef.
6899         (object_color_data): New definition.
6900         (OBJECT_COLOR_DATA): New macro.
6901         (update_copy_costs, calculate_allocno_spill_cost): Call
6902         ira_init_register_move_cost_if_necessary.  Use
6903         ira_register_move_cost instead of ira_get_register_move_cost.
6904         (move_spill_restore, update_curr_costs): Ditto.
6905         (allocno_spill_priority): Make it inline.
6906         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6907         (struct coalesce_data, coalesce_data_t): New.
6908         (allocno_coalesce_data): New definition.
6909         (ALLOCNO_COALESCE_DATA): New macro.
6910         (merge_allocnos, coalesced_allocno_conflict_p): Use
6911         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6912         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6913         (coalesce_allocnos): Ditto.
6914         (setup_coalesced_allocno_costs_and_nums): Ditto.
6915         (collect_spilled_coalesced_allocnos): Ditto.
6916         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6917         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6918         (coalesce_spill_slots): Ditto.
6919         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6920         free allocno_coalesce_data.
6921
6922         * ira-conflicts.c: Fix formatting.
6923         (process_regs_for_copy): Call
6924         ira_init_register_move_cost_if_necessary.  Use
6925         ira_register_move_cost instead of ira_get_register_move_cost.
6926         (build_object_conflicts): Optimize.
6927
6928         * ira-costs.c (record_reg_classes): Optimize.  Call
6929         ira_init_register_move_cost_if_necessary.  Use
6930         ira_register_move_cost, ira_may_move_in_cost, and
6931         ira_may_move_out_cost instead of ira_get_register_move_cost and
6932         ira_get_may_move_cost.
6933         (record_address_regs): Ditto.
6934         (scan_one_insn): Optimize.
6935         (find_costs_and_classes): Optimize.
6936         (process_bb_node_for_hard_reg_moves): Call
6937         ira_init_register_move_cost_if_necessary.  Use
6938         ira_register_move_cost instead of ira_get_register_move_cost.
6939
6940         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6941         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6942         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6943         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6944         definitions.
6945         (ira_initiate_emit_data, ira_finish_emit_data)
6946         (create_new_allocno): New functions.
6947         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6948         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6949         Use ira_register_move_cost instead of ira_get_register_move_cost.
6950
6951         * ira-int.h: Fix some comments.
6952         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6953         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6954         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6955         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6956         add_data.
6957         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6958         bitfield after mode.  Make hard_regno a short int.  Make
6959         hard_regno short.  Remove first_coalesced_allocno and
6960         next_coalesced_allocno.  Move mem_optimized_dest_p,
6961         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6962         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6963         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6964         temp, colorable_p.  Add new member add_data.
6965         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6966         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6967         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6968         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6969         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6970         (ALLOCNO_ADD_DATA): New macro.
6971         (ira_emit_data_t): New typedef.
6972         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6973         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6974         from struct ira_allocno.
6975         (ALLOCNO_EMIT_DATA): New macro.
6976         (ira_allocno_emit_data, allocno_emit_reg): New.
6977         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6978         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6979         (OBJECT_ADD_DATA): New macro.
6980         (ira_reallocate): Remove.
6981         (ira_initiate_emit_data, ira_finish_emit_data): New.
6982         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6983         (ira_init_register_move_cost_if_necessary): New.
6984         (ira_object_conflict_iter_next): Merge into
6985         ira_object_conflict_iter_cond.
6986         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6987
6988         * ira-live.c (process_single_reg_class_operands): Call
6989         ira_init_register_move_cost_if_necessary.  Use
6990         ira_register_move_cost instead of ira_get_register_move_cost.
6991
6992         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6993
6994         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6995
6996         * ira-costs.c: Fix formatting.
6997         (cost_classes, cost_classes_num): Remove.
6998         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6999         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7000         (cost_classes_del, cost_classes_htab): New.
7001         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7002         (initiate_regno_cost_classes, setup_cost_classes): New.
7003         (setup_regno_cost_classes_by_aclass): New.
7004         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7005         (record_reg_classes): Use regno_cost_classes instead of
7006         cost_classes.  Move checking opposite operand up.
7007         (record_address_regs): Use regno_cost_classes
7008         instead of cost_classes.
7009         (scan_one_insn): Ditto.  Use always general register.
7010         (print_allocno_costs): Use regno_cost_classes instead of
7011         cost_classes.
7012         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7013         (find_costs_and_classes): Set up cost classes for each registers.
7014         Use also their mode for this.  Use regno_cost_classes instead of
7015         cost_classes.
7016         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7017         cost_classes.
7018         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7019         (ira_costs, ira_set_pseudo_classes): Call
7020         initiate_regno_cost_classes and finish_regno_cost_classes.
7021
7022         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7023
7024         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7025
7026         * target.def (ira_cover_classes): Remove.
7027
7028         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7029
7030         * doc/tm.texi.in: Ditto.
7031
7032         * ira-conflicts.c: Remove mentioning cover classes from the file.
7033         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7034         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7035
7036         * targhooks.c (default_ira_cover_classes): Remove.
7037
7038         * targhooks.h (default_ira_cover_classes): Ditto.
7039
7040         * haifa-sched.c: Remove mentioning cover classes from the file.
7041         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7042         ira_pressure_classes and ira_pressure_classes_num instead of
7043         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7044         sched_regno_pressure_class instead of sched_regno_cover_class.
7045         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7046         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7047
7048         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7049         classes from the file.
7050         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7051         (struct object_hard_regs, struct object_hard_regs_node): New.
7052         (struct ira_object): New members profitable_hard_regs,
7053         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7054         (struct ira_allocno): Rename cover_class to aclass.  Rename
7055         cover_class_cost and updated_cover_class_cost to class_cost and
7056         updated_class_cost.  Remove splay_removed_p and
7057         left_conflict_size.  Add new members colorable_p.
7058         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7059         (ALLOCNO_COLORABLE_P): New macro.
7060         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7061         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7062         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7063         (OBJECT_...): Rename parameter C to O.
7064         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7065         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7066         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7067         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7068         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7069         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7070         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7071         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7072         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7073         x_ira_reg_class_subunion.
7074         (ira_max_memory_move_cost, ira_max_register_move_cost)
7075         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7076         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7077         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7078         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7079         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7080         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7081         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7082         (ira_tune_allocno_costs_and_cover_classes): Rename to
7083         ira_tune_allocno_costs.
7084         (ira_debug_hard_regs_forest): New.
7085         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7086         (ira_object_conflict_iter_next): Fix comments.
7087         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7088         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7089         cover_class to aclass.
7090         (ira_allocate_and_accumulate_costs): Ditto.
7091         (ira_allocate_and_set_or_copy_costs): Ditto.
7092
7093         * opts.c (decode_options): Remove ira_cover_class check.
7094
7095         * ira-color.c: Remove mentioning cover classes from the file.  Use
7096         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7097         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7098         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7099         (splay-tree.h): Remove include.
7100         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7101         before copy_freq_compare_func.
7102         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7103         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7104         New definitions.
7105         (hard_regs_roots, hard_regs_node_vec): Ditto.
7106         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7107         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7108         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7109         (create_new_object_hard_regs_node): Ditto.
7110         (add_new_object_hard_regs_node_to_forest): Ditto.
7111         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7112         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7113         Ditto.
7114         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7115         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7116         (remove_unused_object_hard_regs_nodes): Ditto.
7117         (enumerate_object_hard_regs_nodes): Ditto.
7118         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7119         (object_hard_regs_subnode_t): Ditto.
7120         (struct object_hard_regs_subnode): Ditto.
7121         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7122         (setup_object_hard_regs_subnode_index): Ditto.
7123         (get_object_hard_regs_subnodes_num): Ditto.
7124         (form_object_hard_regs_nodes_forest): Ditto.
7125         (finish_object_hard_regs_nodes_tree): Ditto.
7126         (finish_object_hard_regs_nodes_forest): Ditto.
7127         (allocnos_have_intersected_live_ranges_p): Rename to
7128         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7129         (pseudos_have_intersected_live_ranges_p): Rename to
7130         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7131         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7132         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7133         (update_copy_costs): Remove assert.  Skip cost update if the hard
7134         reg does not belong the class.
7135         (assign_hard_reg): Process only profitable hard regs.
7136         (uncolorable_allocnos_num): Make it scalar.
7137         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7138         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7139         and ira_reg_class_max_nregs.
7140         (bucket_allocno_compare_func): Check frequency first.
7141         (sort_bucket): Add compare function as a parameter.
7142         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7143         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7144         (push_allocno_to_stack): Rewrite for checking new allocno
7145         colorability.
7146         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7147         (push_only_colorable): Pass new parameter to sort_bucket.
7148         (push_allocno_to_spill): Remove.
7149         (allocno_spill_priority_compare): Make it inline and rewrite.
7150         (splay_tree_allocate, splay_tree_free): Remove.
7151         (allocno_spill_sort_compare): New function.
7152         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7153         build and use splay tree.  Choose first allocno in uncolorable
7154         allocno bucket to spill.  Remove setting spill cost.
7155         (all_conflicting_hard_regs): Remove.
7156         (setup_allocno_available_regs_num): Check only profitable hard
7157         regs.  Print info about hard regs nodes.
7158         (setup_allocno_left_conflicts_size): Remove.
7159         (put_allocno_into_bucket): Don't call
7160         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7161         (improve_allocation): New.
7162         (color_allocnos): Call setup_profitable_hard_regs,
7163         form_object_hard_regs_nodes_forest, improve_allocation,
7164         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7165         (print_loop_title): Use pressure classes.
7166         (color_allocnso): Ditto.
7167         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7168         and allocnos_for_spilling.
7169         (ira_sort_regnos_for_alter_reg): Don't setup members
7170         {first,next}_coalesced_allocno.
7171         (color): Remove allocating and freeing removed_splay_allocno_vec.
7172         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7173         prohibited_class_mode_regs.
7174
7175         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7176         formatting.
7177         (update_allocno_pressure_excess_length): Use pressure classes.
7178         (inc_register_pressure, dec_register_pressure): Check for pressure
7179         class.
7180         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7181         pressure class.  Use ira_reg_class_nregs instead of
7182         ira_reg_class_max_nregs.
7183         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7184         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7185         (single_reg_class): Use ira_reg_class_nregs instead of
7186         ira_reg_class_max_nregs.
7187         (process_bb_node_lives): Use pressure classes.
7188
7189         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7190         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7191         (change_loop): Use pressure classes.
7192         (modify_move_list): Call ira_set_allocno_class instead of
7193         ira_set_allocno_cover_class.
7194
7195         * ira-build.c: Remove mentioning cover classes from the file.  Use
7196         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7197         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7198         ALLOCNO_UPDATED_CLASS_COST instead of
7199         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7200         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7201         (ira_create_allocno): Remove initialization of
7202         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7203         ALLOCNO_COLORABLE_P.
7204         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7205         Update conflict regs for the objects.
7206         (create_cap_allocno): Remove assert.  Don't propagate
7207         ALLOCNO_AVAILABLE_REGS_NUM.
7208         (ira_free_allocno_costs): New function.
7209         (finish_allocno): Change a part of code into call of
7210         ira_free_allocno_costs.
7211         (low_pressure_loop_node_p): Use pressure classes.
7212         (object_range_compare_func): Don't compare classes.
7213         (setup_min_max_conflict_allocno_ids): Ditto.
7214
7215         * loop-invariant.c: Remove mentioning cover classes from the file.
7216         Use ira_pressure_classes and ira_pressure_classes_num instead of
7217         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7218         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7219         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7220         Use reg_allocno_class instead of reg_cover_class.
7221         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7222         STACK_REG_COVER_CLASS.
7223         (get_regno_cover_class): Rename to get_regno_pressure_class.
7224         (move_loop_invariants): Initialize and finalize regstat.
7225
7226         * ira.c: Remove mentioning cover classes from the file.  Add
7227         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7228         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7229         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7230         setup_class_subset_and_memory_move_costs.
7231         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7232         (setup_cover_and_important_classes): Rename to
7233         setup_allocno_and_important_classes.
7234         (setup_class_translate_array): New.
7235         (setup_class_translate): Call it for allocno and pressure classes.
7236         (cover_class_order): Rename to allocno_class_order.
7237         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7238         of ira_class_translate.
7239         (reorder_important_classes): Set up ira_important_class_nums.
7240         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7241         (print_class_cover): Rename to print_classes.  Add parameter.
7242         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7243         Print pressure classes too.
7244         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7245         setup_reg_subclasses.
7246         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7247         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7248         (setup_prohibited_class_mode_regs): Use
7249         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7250         (clarify_prohibited_class_mode_regs): New function.
7251         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7252         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7253         (ira_init_once): Initialize them.
7254         (free_register_move_costs): Process them.
7255         (ira_init): Move calls of find_reg_classes and
7256         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7257         Call clarify_prohibited_class_mode_regs.
7258         (ira_no_alloc_reg): Remove.
7259         (too_high_register_pressure_p): Use pressure classes.
7260
7261         * sched-deps.c: Remove mentioning cover classes from the file.
7262         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7263         ira_pressure_classes and ira_pressure_classes_num instead of
7264         ira_reg_class_cover_size and ira_reg_class_cover.
7265         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7266         sched_regno_pressure_class instead of sched_regno_cover_class.
7267         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7268         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7269
7270         * ira.h: Add 2010 to Copyright.
7271         (ira_no_alloc_reg): Remove external.
7272         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7273         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7274         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7275         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7276         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7277         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7278         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7279         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7280         x_ira_no_alloc_regs.
7281         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7282         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7283         ira_allocno_classes_num and ira_allocno_classes.
7284         (ira_class_translate): Rename to ira_allocno_class_translate.
7285         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7286         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7287         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7288         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7289         (ira_no_alloc_regs): New.
7290
7291         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7292         classes from the file.  Use ALLOCNO_CLASS instead of
7293         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7294         ALLOCNO_COVER_CLASS_COST.
7295         (regno_cover_class): Rename to regno_aclass.
7296         (record_reg_classes): Use ira_reg_class_subunion instead of
7297         ira_reg_class_union.
7298         (record_address_regs): Check overflow.
7299         (scan_one_insn): Ditto.
7300         (print_allocno_costs): Print total mem cost fore regional allocation.
7301         (print_pseudo_costs): Use REG_N_REFS.
7302         (find_costs_and_classes): Use classes intersected with them on the
7303         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7304         ira_reg_class_union.  Use ira_allocno_class_translate and
7305         regno_aclass instead of ira_class_translate and regno_cover_class.
7306         Modify code for finding regno_aclass.  Setup preferred classes for
7307         the next pass.
7308         (setup_allocno_cover_class_and_costs): Rename to
7309         setup_allocno_class_and_costs.  Use regno_aclass instead of
7310         regno_cover_class.  Use ira_set_allocno_class instead of
7311         ira_set_allocno_cover_class.
7312         (init_costs, finish_costs): Use regno_aclass instead of
7313         regno_cover_class.
7314         (ira_costs): Use setup_allocno_class_and_costs instead of
7315         setup_allocno_cover_class_and_costs.
7316         (ira_tune_allocno_costs_and_cover_classes): Rename to
7317         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7318         by processing objects.  Use ira_reg_class_max_nregs instead of
7319         ira_reg_class_nregs.
7320
7321         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7322
7323         * sched-int.h: Remove mentioning cover classes from the file.
7324         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7325
7326         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7327         classes from the file.
7328         (struct reg_pref): Rename coverclass into allocnoclass.
7329         (reg_cover_class): Rename to reg_allocno_class.
7330
7331         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7332
7333         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7334
7335         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7336
7337         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7338
7339         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7340
7341         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7342
7343         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7344
7345         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7346
7347         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7348
7349         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7350
7351         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7352         (i386_ira_cover_classes): Ditto.
7353
7354         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7355
7356         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7357
7358         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7359
7360         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7361
7362         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7363
7364         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7365
7366         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7367         (mips_ira_cover_classes): Ditto.
7368
7369         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7370
7371         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7372
7373         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7374
7375         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7376
7377         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7378
7379         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7380         (IRA_COVER_CLASSES_VSX): Ditto.
7381
7382         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7383         (rs6000_ira_cover_classes): Ditto.
7384
7385         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7386
7387         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7388
7389         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7390
7391         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7392
7393         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7394
7395         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7396
7397         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7398
7399         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7400
7401         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7402
7403         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7404
7405 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7406
7407         PR debug/48253
7408         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7409         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7410         dw_fde_unlikely_section_end_label, cold_in_std_section,
7411         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7412         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7413         fields.
7414         (output_fde): Use dw_fde_second_{begin,end} if second is
7415         true, otherwise dw_fde_{begin,end}.
7416         (output_call_frame_info): Test dw_fde_second_begin != NULL
7417         instead of dw_fde_switched_sections.
7418         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7419         fields, initialize new fields.  Initialize in_std_section
7420         unconditionally from the first partition.
7421         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7422         dw_fde_second_begin is non-NULL.
7423         (dwarf2out_switch_text_section): Stop initializing removed
7424         dw_fde_struct fields, initialize new fields, initialize
7425         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7426         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7427         (struct var_loc_list_def): Add last_before_switch field.
7428         (arange_table, arange_table_allocated, arange_table_in_use,
7429         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7430         (size_of_aranges): Count !in_std_section and !second_in_std_section
7431         hunks in fdes, instead of looking at arange_table_in_use.
7432         (output_aranges): Add aranges_length argument, don't call
7433         size_of_aranges here.  Instead of using aranges_table*
7434         emit ranges for fdes when !in_std_section resp.
7435         !second_in_std_section.
7436         (dw_loc_list): Break ranges crossing section switch.
7437         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7438         use dw_fde_second_end instead of dw_fde_end as end of last range.
7439         (gen_subprogram_die): Don't call add_arange.  Use
7440         dw_fde_{begin,end} for first partition and if switched
7441         section dw_fde_second_{begin,end} for the second.
7442         (var_location_switch_text_section_1,
7443         var_location_switch_text_section): New functions.
7444         (dwarf2out_begin_function): Initialize cold_text_section even
7445         when function_section () isn't text_section.
7446         (prune_unused_types): Don't walk arange_table.
7447         (dwarf2out_finish): Don't needlessly test
7448         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7449         If info_section_emitted, call size_of_aranges and if it indicates
7450         non-empty .debug_aranges, call output_aranges with the computed
7451         size.  Stop using removed dw_fde_struct fields, use
7452         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7453         for second.
7454
7455         PR debug/48203
7456         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7457         create ENTRY_VALUE if incoming or address of incoming's MEM
7458         is a hard REG.
7459         * dwarf2out.c (mem_loc_descriptor): Don't emit
7460         DW_OP_GNU_entry_value of DW_OP_fbreg.
7461         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7462         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7463         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7464         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7465         ENTRY_VALUE_EXPs.
7466         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7467         is a REG_P or MEM_P with REG_P address, compute hash directly
7468         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7469         (preserve_only_constants): Don't clear VALUES forwaring
7470         ENTRY_VALUE to some other VALUE.
7471
7472 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7473
7474         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7475         instead of GEN_INT.
7476
7477 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7478
7479         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7480         block before expanding the statement.
7481         (expand_gimple_stmt_1): Likewise.  Set them here...
7482         (expand_gimple_stmt): ...and not here.  Tidy.
7483         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7484         unknown.
7485
7486 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7487
7488         * Makefile.in: New rule for cprop.o.
7489         * gcse.c: Move constant/copy propagation to cprop.c.
7490         (compute_local_properties): Only handle expression tables.
7491         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7492         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7493         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7494         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7495         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7496         compute_cprop_data, find_used_regs, try_replace_reg,
7497         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7498         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7499         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7500         find_bypass_set, reg_killed_on_edge, bypass_block,
7501         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7502         execute_rtl_cprop, pass_rtl_cprop): Move to...
7503         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7504         moved from gcse.c to here with minor cleanups in duplicated code.
7505
7506 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7507
7508         * config/i386/i386.c (flag_opts): Fix a typo in
7509         -mavx256-split-unaligned-store.
7510
7511 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7512
7513         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7514         LIBCALL_VALUE): Remove macros.
7515         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7516         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7517         (h8300_function_value, h8300_libcall_value,
7518         h8300_function_value_regno_p): New functions.
7519
7520 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7521
7522         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7523
7524 2011-03-28  Jeff Law  <law@redhat.com>
7525
7526         * tree-ssa-threadupdate.c (redirect_edges): Call
7527         create_edge_and_update_destination_phis as needed.
7528         (create_edge_and_update_destination_phis): Accept new BB argument.
7529         All callers updated.
7530         (thread_block): Do not update the profile when threading around
7531         intermediate blocks.
7532         (thread_single_edge): Likewise.
7533         (determine_bb_domination_status): If BB is not a successor of the
7534         loop header, return NONDOMINATING.
7535         (register_jump_thread): Note when we register a jump thread around
7536         an intermediate block.
7537         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7538         (thread_across_edge): Use it.
7539
7540 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7541
7542         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7543         when for_return is 2.
7544
7545 2011-03-28  Jeff Law  <law@redhat.com>
7546
7547         * var-tracking.c (canonicalize_values_mark): Delete unused
7548         lhs assignment.
7549         (canonicalize_values_star, set_variable_part): Likewise.
7550         (clobber_variable_part, delete_variable_part): Likewise.
7551
7552 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7553
7554         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7555
7556 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7557
7558         * tree-inline.c (expand_call_inline): Do not check that destination
7559         node is analyzed.
7560         (optimize_inline_calls): Assert that destination node is analyzed.
7561         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7562         not call tree_lowering_passes.
7563         * cgraph.h (cgraph_analyze_function): Declare.
7564         * cgraphunit.c (cgraph_analyze_function): Make public.
7565
7566 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7567
7568         * config/sparc/sparc-opts.h: New.
7569         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7570         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7571         (sparc_option_override): Store processor_type enumeration rather
7572         than string in cpu_default.  Remove name and enumeration from
7573         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7574         without using sparc_select.  Use target_flags_explicit instead of
7575         fpu_option_set.
7576         * config/sparc/sparc.h (enum processor_type): Move to
7577         sparc-opts.h.
7578         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7579         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7580         HeaderInclude entry.
7581         (mcpu=, mtune=): Use Var and Enum.
7582         (sparc_processor_type): New Enum and EnumValue entries.
7583
7584 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7585             Iain Sandoe  <iains@gcc.gnu.org>
7586
7587         PR target/48245
7588         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7589
7590 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7591
7592         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7593         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7594         Insert new statements at it in lieu of STMT.
7595         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7596         * tree-vect-stmts.c (vectorizable_store): Likewise.
7597         (vectorizable_load): Likewise.
7598
7599 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7600
7601         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7602         (divtf3): Ditto.
7603         (multf3): Ditto.
7604         (subtf3): Ditto.
7605
7606 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7607
7608         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7609         unaligned 256bit load/store.
7610         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7611         (*avx_movdqu<avxmodesuffix>): Likewise.
7612
7613 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7614
7615         PR target/48288
7616         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7617         * config/pa/pa.md (iordi3): Use new predicate in expander.
7618         (iorsi3): Likewise.
7619
7620 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7621
7622         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7623         FUNCTION_VALUE_REGNO_P): Remove macros.
7624         * config/mips/mips-protos.h (mips_function_value): Remove.
7625         * config/mips/mips.c (mips_function_value): Rename to...
7626         (mips_function_value_1): ... this. Make static.  Handle receiving
7627         the function type in 'fn_decl_or_type' argument.
7628         (mips_function_value, mips_libcall_value,
7629         mips_function_value_regno_p): New function.
7630         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7631         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7632
7633 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7634
7635         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7636         and -mavx256-split-unaligned-store.
7637         (ix86_option_override_internal): Split 32-byte AVX unaligned
7638         load/store by default.
7639         (ix86_avx256_split_vector_move_misalign): New.
7640         (ix86_expand_vector_move_misalign): Use it.
7641
7642         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7643         -mavx256-split-unaligned-store.
7644
7645         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7646         256bit load/store.  Generate unaligned store on misaligned memory
7647         operand.
7648         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7649         256bit load/store.
7650         (*avx_movdqu<avxmodesuffix>): Likewise.
7651
7652         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7653         -mavx256-split-unaligned-store.
7654
7655 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7656
7657         PR target/38598
7658         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7659         Update commentary.
7660
7661 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7662
7663         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7664         opno arguments with an expand_operand.  Use create_input_operand.
7665         (mips_prepare_builtin_target): Delete.
7666         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7667         functions.
7668         (mips_expand_builtin_direct): Use create_output_operand and
7669         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7670         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7671         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7672
7673 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7674
7675         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7676         function.
7677         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7678
7679 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7680
7681         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7682         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7683         basic blocks and call commit_edge_insertions directly.
7684         (fixup_abnormal_edges): Move from here to...
7685         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7686         on the edges and return whether some have actually been inserted.
7687         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7688         compensation code.
7689
7690 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7691
7692         PR rtl-optimization/48144
7693         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7694         (merge_expr_data): ... here.
7695         (av_set_intersect): Rename to av_set_code_motion_filter.
7696         Update all callers.  Call merge_history_vect when an expression
7697         is found in both sets.
7698         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7699
7700 2011-03-26  Alan Modra  <amodra@gmail.com>
7701
7702         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7703         cmodel medium addresses.
7704         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7705         64-bit gpr loads and stores.
7706         (rs6000_secondary_reload_ppc64): New function.
7707         * config/rs6000/rs6000-protos.h: Declare it.
7708         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7709
7710 2011-03-26  Alan Modra  <amodra@gmail.com>
7711
7712         PR target/47487
7713         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7714         GNU Go in traceback table.
7715
7716 2011-03-25  Richard Henderson  <rth@redhat.com>
7717
7718         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7719         if there are exactly 6 operands.
7720         (set_storage_via_setmem): Similarly.
7721
7722 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7723
7724         * collect2.c (write_c_file_stat): Handle backslash
7725         as right-hand directory separator.
7726         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7727         checking just for slash.
7728         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7729         instead of checking for trailing slash.
7730         * gcc.c (record_temp_file): Use filename_cmp instead
7731         of strcmp.
7732         (do_spec_1): Likewise.
7733         (replace_outfile_spec_function): Likewise.
7734         (is_directory): Use filename_ncmp instead of strncmp.
7735         (print_multilib_info): Likewise.
7736         * gcov.c (find_source): Use filename_cmp instead
7737         instead of strcmp.
7738         (make_gcov_file_name): Fix order of slash/backslash
7739         checks.
7740         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7741         (add_standard_paths): Likewise.
7742         * mips-tfile.c (saber_stop): Handle backslash.
7743         * prefix.c (update_path): Use filename_ncmp instead of
7744         strncmp.
7745         * profile.c (output_location): Use filename_cmp instead
7746         of strcmp.
7747         * read-md.c (handle_toplevel_file): Handle backslash.
7748         * tlink.c (frob_extension):  Likewise.
7749         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7750         strcmp.
7751         * tree-dump.c (dequeue_and_dump): Handle backslash.
7752         * tree.c (get_file_function_name): Likewise.
7753         * gengtype.c (read_input_list): Likewise.
7754         (get_file_realbasename): Likewise.
7755         (get_output_file_with_visibility): Use filename_cmp
7756         instead of strcmp.
7757
7758 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7759
7760         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7761         case to VFPv1.
7762
7763 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7764
7765         * fold-const.c (expr_location_or): New function.
7766         (fold_truth_not_expr): Call it.
7767
7768 2011-03-25  Jeff Law  <law@redhat.com>
7769
7770         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7771         va_end.
7772         * c-family/c-common.c (def_fn_type): Likewise.
7773         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7774         * emit-rtl.c (gen_rtvec): Likewise.
7775         * lto/lto-lang.c (def_fn_type): Likewise.
7776
7777 2011-03-25  Richard Guenther  <rguenther@suse.de>
7778
7779         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7780         also generate copies.
7781         (fini_copy_prop): Handle constant values properly.
7782
7783 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7784
7785         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7786         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7787         (hash_loc_operands, compare_loc_operands): Handle
7788         DW_OP_GNU_entry_value.
7789
7790 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7791
7792         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7793         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7794         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7795         comment and use macro TARGET_64BIT_MS_ABI instead.
7796         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7797         and change default behavior for 32-bit MS_ABI.
7798         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7799         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7800         32-bit, too.
7801         (ix86_cfun_abi): Likewise.
7802         (ix86_maybe_switch_abi): Adjust comment.
7803         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7804         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7805         instead of checking for SYSV_ABI.
7806         (ix86_nsaved_sseregs): Likewise.
7807         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7808         to 16 bytes.
7809         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7810         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7811         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7812         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7813         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7814
7815 2011-03-25  Richard Guenther  <rguenther@suse.de>
7816
7817         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7818         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7819         (verify_gimple): Remove.
7820         * tree-cfg.c (verify_gimple_call): Merge verification
7821         from verify_stmts.
7822         (verify_gimple_phi): Merge verification from verify_stmts.
7823         (verify_gimple_label): New function.
7824         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7825         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7826         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7827         (verify_stmts): Rename to verify_gimple_in_cfg.
7828         (verify_gimple_in_cfg): New function.
7829         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7830         * tree-ssa.c (verify_ssa): Likewise.
7831         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7832
7833 2011-03-25  Richard Guenther  <rguenther@suse.de>
7834
7835         * passes.c (init_optimization_passes): Add FRE pass after
7836         early SRA.
7837
7838 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7839             Andrew Stubbs  <ams@codesourcery.com>
7840
7841         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7842         for Cortex-A8.
7843         (arm_movdi_vfp_cortexa8): New pattern.
7844         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7845         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7846         instructions when tuning for Cortex-A8.  Set attribute "arch".
7847         * config/arm/arm.md: Move include arm-tune.md up a bit.
7848         (define_attr "arch"): Add "onlya8" and "nota8" values.
7849         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7850
7851 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7852
7853         PR bootstrap/48282
7854         Revert:
7855         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7856
7857         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7858         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7859         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7860         * passes.c (init_optimization_passes): Move
7861         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7862
7863 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7864
7865         * c-typeck.c (comptypes_internal): Replace target
7866         hook call of comp_type_attributes by version in tree.c file.
7867         * gimple.c (gimple_types_compatible_p_1): Likewise.
7868         * tree-ssa.c (useless_type_conversion_p): Likewise.
7869         * tree.c (build_type_attribute_qual_variant): Likewise.
7870         (attribute_value_equal): New static helper function.
7871         (comp_type_attributes): New function.
7872         (merge_attributes): Use attribute_value_equal for comparison.
7873         (attribute_list_contained): Likewise.
7874         * tree.h (comp_type_attributes): New prototype.
7875
7876 2011-03-25  Richard Guenther  <rguenther@suse.de>
7877
7878         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7879         of complex types at -O0.
7880         (verify_gimple_assign_binary): Likewise.
7881         (verify_gimple_assign_ternary): Likewise.
7882
7883 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7884
7885         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7886         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7887
7888 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7889
7890         PR debug/48041
7891         * dwarf2out.c (output_abbrev_section): Only write table when
7892         abbrev_die_table_in_use > 1.
7893
7894 2011-02-24  Richard Henderson  <rth@redhat.com>
7895
7896         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7897         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7898         (alpha_expand_unaligned_load_words): Use extql.
7899         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7900         (emit_insxl): Handle all modes for consistency.
7901
7902 2011-02-24  Richard Henderson  <rth@redhat.com>
7903
7904         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7905         (alpha_expand_unaligned_load): Likewise.
7906         (alpha_expand_unaligned_store): Likewise.
7907         (alpha_expand_unaligned_load_words): Likewise.
7908         (alpha_expand_unaligned_store_words): Likewise.
7909         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7910         (alpha_split_lock_test_and_set_12): Likewise.
7911         (print_operand, alpha_fold_builtin_extxx): Likewise.
7912         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7913         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7914         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7915         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7916         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7917         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7918         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7919         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7920         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7921         (extwl, extll, extql): Similarly.
7922         (inswh, inslh, insqh): Similarly.
7923         (mskbl, mskwl, mskll, mskql): Similarly.
7924         (mskwh, msklh, mskqh): Similarly.
7925
7926 2011-02-24  Richard Henderson  <rth@redhat.com>
7927
7928         * config/alpha/alpha.md (attribute isa): Add er, ner.
7929         (attribute enabled): Handle them.
7930         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7931
7932 2011-02-24  Richard Henderson  <rth@redhat.com>
7933
7934         * config/alpha/alpha.md (attribute isa): Add vms.
7935         (attribute enabled): Handle it.
7936         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7937         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7938         (*movtf): Rename from *movtf_internal for consistency.
7939         (*movsi): Merge with *movsi_nt_vms.
7940         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7941         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7942         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7943         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7944
7945 2011-02-24  Richard Henderson  <rth@redhat.com>
7946
7947         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7948         (extendqisi2, extendhisi2): Likewise.
7949         (extendqidi2): Simplify BWX/non-BWX expansions.
7950         (extendhidi2): Similarly.
7951
7952 2011-02-24  Richard Henderson  <rth@redhat.com>
7953
7954         * config/alpha/alpha.md (attribute isa): New.
7955         (attribute enabled): New.
7956         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7957         (zero_extendqisi2, zero_extendqidi2): Similarly.
7958         (zero_extendhisi2, zero_extendhidi2): Similarly.
7959         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7960
7961 2011-02-24  Richard Henderson  <rth@redhat.com>
7962
7963         * config/alpha/predicates.md (input_operand): Revert last change;
7964         update comment to mention 32-bit VMS rather than Windows.
7965
7966 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7967
7968         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7969         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7970         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7971         * passes.c (init_optimization_passes): Move
7972         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7973
7974 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7975
7976         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7977
7978 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7979
7980         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7981         correctly.
7982
7983 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7984
7985         PR debug/48204
7986         * simplify-rtx.c (simplify_const_unary_operation): Call
7987         real_convert when changing mode class with FLOAT_EXTEND.
7988
7989 2011-03-24  Nick Clifton  <nickc@redhat.com>
7990
7991         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7992         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7993         * config/rx/rx.c (rx_option_override): Set align_jumps,
7994         align_loops and align_labels if not set by the user.
7995         (rx_align_for_label): New function.
7996         (rx_max_skip_for_label): New function.
7997         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7998         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7999         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8000         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8001         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8002
8003 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8004
8005         PR rtl-optimization/48263
8006         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8007         and original commutative_p handling.  Use maybe_gen_insn.
8008
8009 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8010
8011         * reload.c (find_reloads_subreg_address): Add address_reloaded
8012         parameter and return true there if the full address has been
8013         reloaded.
8014         (find_reloads_toplev): Pass address_reloaded flag.
8015         (find_reloads_address_1): Don't use address_reloaded parameter.
8016
8017 2011-03-24  Jeff Law  <law@redhat.com>
8018
8019         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8020         unused variable "ann".
8021         (remove_unused_locals): Likewise.
8022
8023         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8024         statement.
8025
8026         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8027         after it is freed.
8028
8029 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8030
8031         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8032         for invalid symbolic addresses.
8033         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8034         larl operands.
8035
8036 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8037
8038         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8039         the argument in calls to fold_truth_not_expr.
8040
8041 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8042
8043         * tree.c (record_node_allocation_statistics): New function.
8044         (make_node_stat, copy_node_stat, build_string): Call it.
8045         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8046         (build1_stat, build_omp_clause): Likewise.
8047
8048 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8049
8050         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8051         last commit.
8052
8053 2011-03-24  Richard Guenther  <rguenther@suse.de>
8054
8055         PR tree-optimization/48271
8056         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8057         blocks that still exist.
8058
8059 2011-03-24  Richard Guenther  <rguenther@suse.de>
8060
8061         PR tree-optimization/48270
8062         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8063         not free datarefs before ddrs.
8064
8065 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8066
8067         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8068         from the address built for a reference with variable offset.
8069
8070 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8071
8072         PR target/48237
8073         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8074         alternatives that can be handled with movq or movabsq insn.
8075         (*movdf_internal): Disable for !TARGET_64BIT.
8076         (*movdf_internal_nointeger): Ditto.
8077         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8078
8079 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8080
8081         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8082         (FUNCTION_ARG_ADVANCE): Likewise.
8083         * tm.texi.in: Change references to them to hook references.
8084         * tm.texi: Regenerate.
8085         * targhooks.c (default_function_arg): Eliminate check for target macro.
8086         (default_function_incoming_arg): Likewise.
8087         (default_function_arg_advance): Likewise.
8088         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8089         (function_arg_advance): Likewise.
8090         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8091
8092 2011-03-24  Richard Guenther  <rguenther@suse.de>
8093
8094         PR middle-end/48269
8095         * tree-object-size.c (addr_object_size): Do not double-account
8096         for MEM_REF offsets.
8097
8098 2011-03-24  Diego Novillo  <dnovillo@google.com>
8099
8100         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8101         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8102         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8103         Update all users.
8104         (lto_input_string): Rename from input_string.  Make extern.
8105         Update all users.
8106         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8107         output_string_with_length.
8108         Output 0 to indicate a non-NULL string.  Update all callers to
8109         not emit 0.
8110         (lto_output_string): Rename from output_string.  Make extern.
8111         Update all users.
8112         (lto_output_decl_state_streams): Make extern.
8113         (lto_output_decl_state_refs): Make extern.
8114         * lto-streamer.h (lto_input_string): Declare.
8115         (lto_input_data_block): Declare.
8116         (lto_output_string): Declare.
8117         (lto_output_string_with_length): Declare.
8118         (lto_output_decl_state_streams): Declare.
8119         (lto_output_decl_state_refs): Declare.
8120
8121 2011-03-24  Richard Guenther  <rguenther@suse.de>
8122
8123         PR tree-optimization/46562
8124         * tree.c (build_invariant_address): New function.
8125         * tree.h (build_invariant_address): Declare.
8126         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8127         a renamed function moved ...
8128         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8129         Take valueization callback parameter.
8130         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8131         * gimple-fold.h: New file.
8132         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8133         (ccp_fold, fold_const_aggregate_ref,
8134         fold_ctor_reference, fold_nonarray_ctor_reference,
8135         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8136         get_base_constructor): Move ...
8137         * gimple-fold.c: ... here.
8138         (gimple_fold_stmt_to_constant_1): New function
8139         split out from ccp_fold.  Take a valueization callback parameter.
8140         Valueize all operands.
8141         (gimple_fold_stmt_to_constant): New wrapper function.
8142         (fold_const_aggregate_ref_1): New function split out from
8143         fold_const_aggregate_ref.  Take a valueization callback parameter.
8144         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8145         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8146         invariant POINTER_PLUS_EXPRs to invariant form.
8147         (vn_valueize): New function.
8148         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8149         * tree-vrp.c (vrp_valueize): New function.
8150         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8151         to fold statements to constants.
8152         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8153         function declarations.
8154         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8155         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8156
8157 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8158
8159         * config/h8300/predicates.md (jump_address_operand): Fix register
8160         mode check.
8161
8162 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8163
8164         * doc/invoke.texi (max-stores-to-sink): Document.
8165         * params.h (MAX_STORES_TO_SINK): Define.
8166         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8167         if either vectorization or if-conversion is disabled.
8168         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8169         tree-vect-data-refs.c vect_equal_offsets.
8170         (dr_equal_offsets_p): New function.
8171         (find_data_references_in_bb): Remove static.
8172         * tree-data-ref.h (find_data_references_in_bb): Declare.
8173         (dr_equal_offsets_p): Likewise.
8174         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8175         (vect_drs_dependent_in_basic_block): Update calls to
8176         vect_equal_offsets.
8177         (vect_check_interleaving): Likewise.
8178         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8179         (cond_if_else_store_replacement): Rename to...
8180         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8181         documentation.
8182         (cond_if_else_store_replacement): New function.
8183         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8184         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8185
8186 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8187
8188         PR target/46934
8189         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8190         to subtract lower bound instead of GEN_INT().
8191
8192 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8193
8194         PR other/48179
8195         PR other/48221
8196         PR other/48234
8197         * doc/extend.texi (Alignment): Move section to match order in TOC.
8198         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8199         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8200
8201 2011-03-23  Jeff Law  <law@redhat.com>
8202
8203         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8204         before removing the edge.
8205
8206         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8207         it may have been freed by redirect_branch_edge or
8208         redirect_edge_succ_nodup.
8209
8210 2011-03-23  Richard Guenther  <rguenther@suse.de>
8211
8212         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8213         (check_va_list_escapes): Likewise.
8214         (check_all_va_list_escapes): Likewise.
8215
8216 2011-03-23  Richard Guenther  <rguenther@suse.de>
8217
8218         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8219         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8220         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8221         (alias.o): Likewise.
8222         (ipa-type-escape.o): Remove.
8223         (ipa-struct-reorg.o): Likewise.
8224         (GTFILES): Remove ipa-struct-reorg.c.
8225         * alias.c: Do not include ipa-type-escape.h.
8226         * tree-ssa-alias.c: Likewise.
8227         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8228         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8229         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8230         and ipa-type-escape passes.
8231         * tree-pass.h (pass_ipa_type_escape): Remove.
8232         (pass_ipa_struct_reorg): Likewise.
8233         * ipa-struct-reorg.h: Remove.
8234         * ipa-struct-reorg.c: Likewise.
8235         * ipa-type-escape.h: Likewise.
8236         * ipa-type-escape.c: Likewise.
8237         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8238         (--param struct-reorg-cold-struct-ratio): Likewise.
8239         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8240         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8241         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8242
8243 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8244
8245         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8246         cpu attribute value.
8247         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8248         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8249         * config/s390/s390.c (processor_flags_table): New constant array.
8250         (s390_handle_arch_option): Remove.
8251         (s390_handle_option): Remove s390_handle_arch_option invocations
8252         and OPT_mwarn_framesize_ handling.
8253         (s390_option_override): Remove s390_handle_arch_option invocation.
8254         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8255         warnings.
8256         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8257         * config/s390/s390.opt (s390_tune, s390_arch)
8258         (march=): Replace s390_arch_option enum and values with
8259         processor_type.  Set variable name to s390_arch.  Set
8260         initialization value.
8261         (mtune=): Replace s390_arch_option with processor_type.  Set
8262         variable name to s390_tune.  Set initialization value.
8263
8264 2011-03-23  Julian Brown  <julian@codesourcery.com>
8265
8266         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8267         accesses which are not naturally aligned.
8268
8269 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8270
8271         PR target/47553
8272         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8273
8274 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8275
8276         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8277         parameter from "int" to "enum insn_code".
8278         (expand_operand_type): New enum.
8279         (expand_operand): New structure.
8280         (create_expand_operand): New function.
8281         (create_fixed_operand, create_output_operand): Likewise
8282         (create_input_operand, create_convert_operand_to): Likewise.
8283         (create_convert_operand_from, create_address_operand): Likewise.
8284         (create_integer_operand): Likewise.
8285         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8286         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8287         (expand_insn, expand_jump_insn): Likewise.
8288         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8289         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8290         (expand_movstr, expand_builtin___clear_cache): Likewise.
8291         (expand_builtin_lock_release): Likewise.
8292         * explow.c (allocate_dynamic_stack_space): Likewise.
8293         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8294         and use the default handling in that case.
8295         * expmed.c (check_predicate_volatile_ok): Delete.
8296         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8297         (emit_cstore): Likewise.
8298         * expr.c (emit_block_move_via_movmem): Likewise.
8299         (set_storage_via_setmem, expand_assignment): Likewise.
8300         (emit_storent_insn, try_casesi): Likewise.
8301         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8302         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8303         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8304         (expand_twoval_unop, expand_twoval_binop): Likewise.
8305         (expand_unop_direct, emit_indirect_jump): Likewise.
8306         (emit_conditional_move, vector_compare_rtx): Likewise.
8307         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8308         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8309         (expand_sync_lock_test_and_set): Likewise.
8310         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8311         (emit_unop_insn): Likewise.
8312         (expand_copysign_absneg): Change icode to an insn_code.
8313         (create_convert_operand_from_type): New function.
8314         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8315         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8316         (expand_insn, expand_jump_insn): Likewise.
8317         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8318         than const_int_operand for operand 2.
8319
8320 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8321
8322         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8323         if possible.
8324
8325 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8326
8327         * emit-rtl.c (emit_pattern_before_noloc): New function.
8328         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8329         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8330         (emit_pattern_after_noloc): New function.
8331         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8332         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8333
8334 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8335
8336         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8337         (__ffsDI2): Likewise.
8338
8339 2011-03-22  Richard Henderson  <rth@redhat.com>
8340
8341         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8342         of !TARGET_ABI_OPEN_VMS.
8343         (alpha_trampoline_init, alpha_start_function): Likewise.
8344         (alpha_expand_epilogue, alpha_file_start): Likewise.
8345         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8346         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8347         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8348         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8349         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8350
8351 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8352
8353         * config/s390/s390-opts.h: New.
8354         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8355         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8356         s390_stack_guard): Remove.
8357         (s390_handle_arch_option): Return void.  Take enum
8358         s390_arch_option value instead of string and searching array.
8359         (s390_handle_option): Don't assert that global structures are in
8360         use.  Access variables via opts pointer.  Use error_at.  Don't use
8361         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8362         s390_handle_arch_option.
8363         (s390_option_override): Update call to s390_handle_arch_option.
8364         (s390_emit_prologue): Use %d format for s390_stack_size in
8365         diagnostic.  Use %wd for HOST_WIDE_INT.
8366         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8367         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8368         * config/s390/s390.opt (config/s390/s390-opts.h): New
8369         HeaderInclude entry.
8370         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8371         s390_arch_flags, s390_warn_framesize): New Variable entries.
8372         (s390_arch_option): New Enum and EnumValue entries.
8373         (march=): Use Enum instead of Var.
8374         (mstack-guard=, mstack-size=): Use UInteger and Var.
8375         (mtune=): Use Enum.
8376
8377 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8378
8379         * config/score/score.c (score_handle_option): Don't assert that
8380         global structures are in use.  Access target_flags via opts
8381         pointer.  Use value of -march= option to determine target_flags
8382         settings.
8383         * config/score/score.opt (march=): Use Enum.
8384         (score_arch): New Enum and EnumValue entries.
8385
8386 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8387
8388         * config/mep/mep.c (option_mtiny_specified): Remove.
8389         (mep_option_override): Move register handling for -mivc2 from
8390         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8391         instead of option_mtiny_specified.
8392         (mep_handle_option): Access target_flags via opts pointer.  Don't
8393         assert that global structures are in use.  Defer part of -mivc2
8394         handling and move it to mep_option_override.
8395         * config/mep/mep.opt (IVC2): New Mask entry.
8396         (mivc2): Use Var and Defer instead of Mask.
8397
8398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8399
8400         * config/v850/v850-opts.h: New.
8401         * config/v850/v850.c (small_memory): Replace with
8402         small_memory_physical_max array.  Make that array static const.
8403         (v850_handle_memory_option): Take integer value of argument.  Take
8404         gcc_options pointer, option text and location.  Return void.
8405         Update for changes to small memory structures.
8406         (v850_handle_option): Access target_flags via opts pointer.  Don't
8407         assert that global structures are in use.  Update calls to
8408         v850_handle_memory_option.
8409         (v850_encode_data_area): Update references to small memory settings.
8410         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8411         (enum small_memory_type): Move to v850-opts.h.
8412         * config/v850/v850.opt (config/v850/v850-opts.h): New
8413         HeaderInclude entry.
8414         (small_memory_max): New Variable entry.
8415         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8416         (mtda, mzda): Likewise.
8417
8418 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8419
8420         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8421         pointer.  Don't assert that global structures are in use.
8422
8423 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8424
8425         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8426         via opts pointer.  Don't assert that global structures are in use.
8427
8428 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8429
8430         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8431         (munix=93): Use Var.
8432         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8433         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8434         * config/pa/pa-opts.h: New.
8435         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8436         (pa_handle_option): Don't assert that global structures are in
8437         use.  Access target_flags via opts pointer.  Don't handle
8438         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8439         OPT_munix_98 here.
8440         (pa_option_override): Handle deferred OPT_mfixed_range_.
8441
8442 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8443
8444         * config/mn10300/mn10300-opts.h: New.
8445         * config/mn10300/mn10300.c (mn10300_processor,
8446         mn10300_tune_string): Remove.
8447         (mn10300_handle_option): Don't assert that global structures are
8448         in use.  Access mn10300_processor via opts pointer.  Don't handle
8449         OPT_mtune_ here.
8450         * config/mn10300/mn10300.h (enum processor_type): Move to
8451         mn10300-opts.h.
8452         (mn10300_processor): Remove.
8453         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8454         HeaderInclude entry.
8455         (mn10300_processor): New Variable entry.
8456         (mtune=): Use Var.
8457
8458 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8459
8460         * config/microblaze/microblaze.c: Don't include opts.h.
8461         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8462         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8463         (mno-clearbss): Use Var and Warn.
8464
8465 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8466
8467         * config/m32r/m32r-opts.h: New.
8468         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8469         (m32r_handle_option): Don't assert that global structures are in
8470         use.  Access target_flags and m32r_cache_flush_func via opts
8471         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8472         OPT_mno_flush_trap here.
8473         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8474         include of m32r-opts.h.
8475         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8476         HeaderInclude entry.
8477         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8478         (mmodel=): Use Enum and Var.
8479         (m32r_model): New Enum and EnumValue entries.
8480         (mno-flush-trap): Use Var.
8481         (msdata=): Use Enum and Var.
8482         (m32r_sdata): New Enum and EnumValue entries.
8483
8484 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8485
8486         * config/m32c/m32c.c: Don't include opts.h.
8487         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8488         m32c_handle_option): Remove.
8489         (m32c_option_override): Check global_options_set.x_target_memregs
8490         instead of target_memregs_set.
8491         * config/m32c/m32c.h (target_memregs): Remove.
8492         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8493         variable.
8494
8495 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8496
8497         * config/iq2000/iq2000-opts.h: New.
8498         * config/iq2000/iq2000.c: Don't include opts.h.
8499         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8500         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8501         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8502         HeaderInclude entry.
8503         (iq2000_tune): New Variable entry.
8504         (march=): Add comment.  Use Enum.
8505         (iq2000_arch): New Enum and EnumValue entries.
8506         (mcpu=): Use Enum and Var.
8507         (iq2000_tune): New Enum and EnumValue entries.
8508
8509 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8510
8511         * config/ia64/ia64-opts.h: New.
8512         * config/ia64/ia64.c (ia64_tune): Remove.
8513         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8514         here.  Use error_at.
8515         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8516         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8517         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8518         HeaderInclude entry.
8519         (ia64_tune): New Variable entry.
8520         (mfixed-range=): Use Defer and Var.
8521         (mtune=): Use Enum and Var.
8522         (ia64_tune): New Enum and EnumValue entries.
8523
8524 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8525
8526         * config/frv/frv-opts.h: New.
8527         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8528         frv-opts.h.
8529         (frv_cpu_type): Remove.
8530         * config/frv/frv.c: Don't include opts.h.
8531         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8532         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8533         (frv_cpu_type): New Variable entry.
8534         (frv_cpu): New Enum and EnumValue entries.
8535
8536 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8537
8538         * config/cris/cris.c (cris_handle_option): Access target_flags via
8539         opts pointer.  Don't assert that global structures are in use.
8540         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8541         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8542
8543 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8544
8545         * config/bfin/bfin-opts.h: New.
8546         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8547         bfin_si_revision, bfin_workarounds): Remove.
8548         (bfin_cpus): Make static const.
8549         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8550         not bfin_lib_id_given.
8551         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8552         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8553         pointer. Use error_at.  Don't assert that global structures are in use.
8554         * config/bfin/bfin.h: Include bfin-opts.h.
8555         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8556         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8557         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8558         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8559         entries.
8560
8561 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8562
8563         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8564         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8565         or -msoft-float here.
8566         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8567         -msoft-float and -mhard-float.
8568         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8569         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8570         msoft-float.
8571         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8572         -msoft-float.
8573         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8574         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8575         not mhard-float.
8576         (LIBGCC_SPEC): Don't handle -msoft-float.
8577         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8578         -mhard-float.
8579         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8580         msoft-float.
8581         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8582         -mfloat-abi=*, not -msoft-float and -mhard-float.
8583         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8584         -msoft-float.
8585         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8586         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8587         mhard-float and msoft-float.
8588         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8589         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8590         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8591         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8592         mhard-float.
8593         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8594         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8595         msoft-float.
8596         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8597         not mhard-float.
8598         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8599         not msoft-float.
8600
8601 2011-03-22  Richard Henderson  <rth@redhat.com>
8602
8603         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8604         TARGET_ABI_WINDOWS_NT.
8605         (alpha_output_function_end_prologue): Likewise.
8606         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8607         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8608         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8609         (trap, *movsi_nt_vms): Likewise.
8610         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8611         (*tablejump_osf_nt_internal): Remove.
8612         * config/alpha/predicates.md (input_operand): Only test Pmode.
8613
8614 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8615
8616         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8617         via opts pointer.  Use error_at.  Don't assert that global
8618         structures are in use.
8619
8620 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8621
8622         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8623         (ix86_handle_option): Access ix86_isa_flags and
8624         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8625         global structures are in use.
8626         (ix86_function_specific_save, ix86_function_specific_restore):
8627         Update ix86_isa_flags_explicit field name.
8628         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8629         (ix86_isa_flags_explicit): Rename TargetSave entry to
8630         x_ix86_isa_flags_explicit.
8631
8632 2011-03-22  Richard Henderson  <rth@redhat.com>
8633
8634         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8635         (alpha_option_override, direct_return): Likewise.
8636         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8637         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8638         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8639         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8640         (alpha_expand_epilogue, alpha_end_function): Likewise.
8641         (alpha_init_libfuncs): Likewise.
8642         (struct machine_function): Remove unicosmk members.
8643         (print_operand) ['t']: Remove.
8644         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8645         unicosmk_output_module_name, unicosmk_output_common,
8646         current_section_align, unicosmk_output_text_section_asm_op,
8647         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8648         unicosmk_section_type_flags, unicosmk_unique_section,
8649         unicosmk_asm_named_section, unicosmk_insert_attributes,
8650         unicosmk_output_align, unicosmk_defer_case_vector,
8651         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8652         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8653         unicosmk_output_ssib, unicosmk_add_call_info_word,
8654         unicosmk_extern_head, unicosmk_output_default_externs,
8655         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8656         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8657         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8658         * config/alpha/alpha-protos.h: Update.
8659         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8660         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8661         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8662         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8663         (*mulsi_se, mulvsi3): Likewise.
8664         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8665         (*divmodsi_internal, call, call_value, realign): Likewise.
8666         (moddi3, umoddi3): Likewise; remove duplicate expander.
8667         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8668         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8669         (*movdi_nofix): Remove r/U alternative.
8670         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8671         * config/alpha/constraints.md ("U"): Remove.
8672         * config/alpha/predicates.md (call_operand"): Don't test
8673         TARGET_ABI_UNICOSMK.
8674
8675 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8676
8677         * target.def (handle_option): Take gcc_options and
8678         cl_decoded_option pointers and location_t.
8679         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8680         * doc/tm.texi: Regenerate.
8681         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8682         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8683         * lto-opts.c (lto_reissue_options): Generate option structure for
8684         targetm.handle_option call.
8685         * opts.c (target_handle_option): Update call to
8686         targetm.handle_option.  Remove assertions about values now passed
8687         down to hook.
8688         * targhooks.c (default_target_handle_option): New.
8689         * targhooks.h (default_target_handle_option): Declare.
8690         * config/alpha/alpha.c: Include opts.h.
8691         (alpha_handle_option): Update to new hook interface.
8692         * config/arm/arm.c: Include opts.h.
8693         (arm_handle_option): Update to new hook interface.
8694         * config/arm/t-arm (arm.o): Update dependencies.
8695         * config/bfin/bfin.c: Include opts.h.
8696         (bfin_handle_option): Update to new hook interface.
8697         * config/cris/cris.c: Include opts.h.
8698         (cris_handle_option): Update to new hook interface.
8699         * config/frv/frv.c: Include opts.h.
8700         (frv_handle_option): Update to new hook interface.
8701         * config/i386/i386.c: Include opts.h.
8702         (ix86_handle_option): Update to new hook interface.
8703         (ix86_valid_target_attribute_inner_p): Generate option structure
8704         for call to ix86_handle_option.
8705         * config/i386/t-i386 (i386.o): Update dependencies.
8706         * config/ia64/ia64.c: Include opts.h.
8707         (ia64_handle_option): Update to new hook interface.
8708         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8709         * config/iq2000/iq2000.c: Include opts.h.
8710         (iq2000_handle_option): Update to new hook interface.
8711         * config/m32c/m32c.c: Include opts.h.
8712         (m32c_handle_option): Update to new hook interface.
8713         * config/m32r/m32r.c: Include opts.h.
8714         (m32r_handle_option): Update to new hook interface.
8715         * config/m68k/m68k.c: Include opts.h.
8716         (m68k_handle_option): Update to new hook interface.
8717         * config/mep/mep.c: Include opts.h.
8718         (mep_handle_option): Update to new hook interface.
8719         * config/microblaze/microblaze.c: Include opts.h.
8720         (microblaze_handle_option): Update to new hook interface.
8721         * config/mips/mips.c: Include opts.h.
8722         (mips_handle_option): Update to new hook interface.
8723         * config/mn10300/mn10300.c: Include opts.h.
8724         (mn10300_handle_option): Update to new hook interface.
8725         * config/pa/pa.c: Include opts.h.
8726         (pa_handle_option): Update to new hook interface.
8727         * config/pdp11/pdp11.c: Include opts.h.
8728         (pdp11_handle_option): Update to new hook interface.
8729         * config/rs6000/rs6000.c: Include opts.h.
8730         (rs6000_handle_option): Update to new hook interface.
8731         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8732         * config/rx/rx.c: Include opts.h.
8733         (rx_handle_option): Update to new hook interface.
8734         * config/s390/s390.c: Include opts.h.
8735         (s390_handle_option): Update to new hook interface.
8736         * config/score/score.c: Include opts.h.
8737         (score_handle_option): Update to new hook interface.
8738         * config/sh/sh.c: Include opts.h.
8739         (sh_handle_option): Update to new hook interface.
8740         * config/sparc/sparc.c: Include opts.h.
8741         (sparc_handle_option): Update to new hook interface.
8742         * config/v850/v850.c: Include opts.h.
8743         (v850_handle_option): Update to new hook interface.
8744
8745 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8746
8747         * gcc.c (driver_unknown_option_callback): Only permit and save
8748         unknown -Wno- options.
8749         (driver_wrong_lang_callback): Save options directly instead of via
8750         driver_unknown_option_callback.
8751
8752 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8753
8754         * combine.c (simplify_set): Try harder to find the best CC mode when
8755         simplifying a nested COMPARE on the RHS.
8756
8757 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8758
8759         * config/alpha/gnu.h: Remove.
8760         * config/arc: Remove directory.
8761         * config/arm/netbsd.h: Remove.
8762         * config/arm/t-pe: Remove.
8763         * config/crx: Remove directory.
8764         * config/i386/netbsd.h: Remove.
8765         * config/m68hc11: Remove directory.
8766         * config/m68k/uclinux-oldabi.h: Remove.
8767         * config/mcore/mcore-pe.h: Remove.
8768         * config/mcore/t-mcore-pe: Remove.
8769         * config/netbsd-aout.h: Remove.
8770         * config/rs6000/gnu.h: Remove.
8771         * config/sh/sh-symbian.h: Remove.
8772         * config/sh/symbian-base.c: Remove.
8773         * config/sh/symbian-c.c: Remove.
8774         * config/sh/symbian-cxx.c: Remove.
8775         * config/sh/symbian-post.h: Remove.
8776         * config/sh/symbian-pre.h: Remove.
8777         * config/sh/t-symbian: Remove.
8778         * config/svr3.h: Remove.
8779         * config/vax/netbsd.h: Remove.
8780         * config.build: Don't handle i[34567]86-*-pe.
8781         * config.gcc: Remove handling of deprecations for most deprecated
8782         targets.
8783         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8784         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8785         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8786         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8787         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8788         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8789         Remove cases.
8790         * config.host: Don't handle i[34567]86-*-pe.
8791         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8792         (ASM_SPEC32): Don't handle -mcall-gnu.
8793         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8794         -mcall-gnu.
8795         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8796         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8797         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8798         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8799         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8800         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8801         conditional on SYMBIAN.
8802         * configure.ac: Don't handle powerpc*-*-gnu*.
8803         * configure: Regenerate.
8804         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8805         * doc/install-old.texi (m6811, m6812): Don't mention.
8806         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8807         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8808         (m68k-uclinuxoldabi): Don't mention.
8809         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8810         Remove.
8811         (-mcall-gnu): Remove.
8812         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8813         families): Remove constraint documentation.
8814
8815 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8816
8817         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8818         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8819         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8820
8821 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8822
8823         PR target/48226
8824         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8825         vector when peeking at the next token for vector, don't expand the
8826         keywords.
8827
8828 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8829
8830         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8831         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8832         * config/avr/avr.c (init_cumulative_args)
8833         (avr_function_arg_advance): Use it.
8834         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8835         sibcall epilogues.
8836         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8837         (avr_function_ok_for_sibcall): ...this new function.
8838         (avr_lookup_function_attribute1): New static Function.
8839         (avr_naked_function_p, interrupt_function_p)
8840         (signal_function_p, avr_OS_task_function_p)
8841         (avr_OS_main_function_p): Use it.
8842         * config/avr/avr.md ("sibcall", "sibcall_value")
8843         ("sibcall_epilogue"): New expander.
8844         ("*call_insn", "*call_value_insn"): New insn.
8845         ("call_insn", "call_value_insn"): Remove
8846         ("call", "call_value", "epilogue"): Change expander to handle
8847         sibling calls.
8848
8849 2011-03-21  Nick Clifton  <nickc@redhat.com>
8850
8851         * doc/invoke.texi (Overall Options): Move closing brace to end of
8852         options list.
8853         (Optimization Options): Add missing @gol.
8854         (Directory Options): Likewise.
8855         (i386 and x86-64 Options): Likewise.
8856         (RS6000 and PowerPC Options): Likewise.
8857         (i386 and x86-64 Windows Options): Likewise.
8858         (V850 Options): Add text missing from descriptions.
8859
8860 2011-03-22  Richard Henderson  <rth@redhat.com>
8861
8862         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8863         (avr_incoming_return_addr_rtx): New.
8864         (emit_push_byte): New.
8865         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8866         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8867         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8868         (emit_pop_byte): New.
8869         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8870         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8871         (INCOMING_RETURN_ADDR_RTX): New.
8872         (INCOMING_FRAME_SP_OFFSET): New.
8873         (ARG_POINTER_CFA_OFFSET): New.
8874         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8875         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8876         (pophi): Remove.
8877
8878         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8879
8880 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8881
8882         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8883         (FUNCTION_ARG_ADVANCE): Likewise.
8884         * tm.texi.in: Change references to them to hook references.
8885         * tm.texi: Regenerate.
8886         * targhooks.c (default_function_arg): Eliminate check for target
8887         macro.
8888         (default_function_incoming_arg): Likewise.
8889         (default_function_arg_advance): Likewise.
8890         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8891         (function_arg_advance): Likewise.
8892         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8893
8894 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8895
8896         * tree.c (build_call_1): New function.
8897         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8898
8899 2011-03-22  Richard Guenther  <rguenther@suse.de>
8900
8901         PR tree-optimization/48228
8902         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8903         for single-arg PHIs.
8904
8905 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8906
8907         PR rtl-optimization/48143
8908         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8909         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8910         sse2_cvtps2pd): Likewise.
8911
8912 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8913
8914         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8915
8916 2011-03-22  Richard Guenther  <rguenther@suse.de>
8917
8918         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8919         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8920         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8921         and REALIGN_LOAD_EXPR.
8922         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8923         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8924         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8925         DOT_PROD_EXPR case ...
8926         (expand_expr_real_2): ... here.
8927         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8928         and REALIGN_LOAD_EXPR.
8929         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8930         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8931         (vect_create_epilog_for_reduction): Likewise.
8932         (vectorizable_reduction): Likewise.
8933         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8934         * tree-vect-stmts.c (vectorizable_load): Likewise.
8935
8936 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8937
8938         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8939
8940 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8941
8942         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8943         handling for PLTOFF/GOTOFF.
8944
8945 2011-03-22  Nick Clifton  <nickc@redhat.com>
8946
8947         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8948         trailing backslash from the end of the macro definition.
8949
8950 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8951
8952         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8953         and PLT unspecs.
8954
8955 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8956
8957         * expr.h (prepare_operand): Move to...
8958         * optabs.h (prepare_operand): ...here and change the insn code
8959         parameter from "int" to "enum insn_code".
8960         (insn_operand_matches): Declare.
8961         * expr.c (init_expr_target): Use insn_operand_matches.
8962         (compress_float_constant): Likewise.
8963         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8964         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8965         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8966         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8967         Likewise.
8968         (gen_cond_trap): Likewise.
8969         (prepare_operand): Likewise.  Change icode to an insn_code.
8970         (insn_operand_matches): New function.
8971         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8972         * reload1.c (gen_reload): Likewise.
8973         * targhooks.c (default_secondary_reload): Likewise.
8974
8975 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8976
8977         * config/alpha/alpha.md (unspec): New define_c_enum.
8978         (unspecv): Ditto.
8979
8980 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8981
8982         PR debug/48214
8983         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8984         between a call and its CALL_ARG_LOCATION note.
8985
8986 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8987
8988         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8989
8990 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8991
8992         PR c/42544
8993         PR c/48197
8994         * c-common.c (shorten_compare): If primopN is first sign-extended
8995         to opN and then zero-extended to result type, set primopN to opN.
8996
8997 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8998
8999         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9000         for barrier handlers.
9001
9002 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9003
9004         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9005         UNSPEC constants to be in the unspec enumeration, and redefine
9006         all UNSPECV constants to be in the unspecv enumeration, so that
9007         dumps print which unspec/unspec_volatile this is.
9008         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9009         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9010         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9011         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9012         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9013
9014         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9015         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9016         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9017         * config/rs6000/sync.md (isync, lwsync): Ditto.
9018
9019 2011-03-21  Richard Guenther  <rguenther@suse.de>
9020
9021         * params.def (lto-min-partition): Fix typo.
9022
9023 2011-03-21  Richard Guenther  <rguenther@suse.de>
9024
9025         PR c/47939
9026         * c-decl.c (grokdeclarator): Drop to the main variant only
9027         for array types.  Drop flag_gen_aux_info check.
9028
9029 2011-03-21  Richard Guenther  <rguenther@suse.de>
9030
9031         PR translation/47911
9032         * params.def (lto-partitions): Fix typo.
9033         (lto-min-partition): Fix wording.
9034
9035 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9036
9037         * config/rs6000/t-freebsd: Remove duplication from file.
9038
9039 2011-03-21  Richard Guenther  <rguenther@suse.de>
9040
9041         PR middle-end/47661
9042         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9043
9044 2011-03-21  Richard Guenther  <rguenther@suse.de>
9045
9046         PR lto/48210
9047         * params.def (lto-partitions): Require at least 1 partition.
9048
9049 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9050
9051         * gthr-solaris.h: Remove.
9052         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9053         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9054         (LIB_SPEC): Likewise.
9055         * config/sol2.opt (threads): Remove.
9056         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9057         (sparc*-*-solaris2*): Likewise.
9058         * configure.ac (enable_threads): Enable solaris support.
9059         * configure: Regenerate.
9060         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9061         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9062         solaris.
9063
9064 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9065
9066         * config.gcc: Obsolete *-*-solaris2.8*.
9067         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9068
9069 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9070
9071         PR bootstrap/48135
9072         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9073         reference.  Solaris 8 perl works.
9074
9075 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9076
9077         PR bootstrap/48135
9078         * doc/install.texi (Prerequisites): Move jar etc. up.
9079         Explain support library version requirements.
9080
9081 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9082
9083         PR bootstrap/48135
9084         * doc/install.texi (Prerequisites): Move Perl to build
9085         requirements.  Always necessary on Solaris 2 with Sun ld.
9086
9087 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9088
9089         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9090         binutils 2.21.
9091         (Specific, i?86-*-solaris2.[89]): Likewise.
9092         (Specific, i?86-*-solaris2.10): Likewise.
9093         (Specific, mips-sgi-irix6): Likewise.
9094         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9095         Update for binutils 2.21.
9096
9097 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9098
9099         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9100         Allow -fuse-linker-plugin for non-default plugin linker.
9101         * configure: Regenerate.
9102
9103 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9104
9105         PR bootstrap/48167
9106         * gengtype.c (files_rules): Added rule for cp/parser.h.
9107
9108 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9109
9110         PR target/48213
9111         * config/s390/s390.c (s390_delegitimize_address): Don't call
9112         lowpart_subreg if orig_x has BLKmode.
9113
9114 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9115
9116         PR target/12171
9117         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9118         * tree.h (attribute_spec): Add new member affects_type_identity.
9119         * attribs.c (empty_attribute_table): Adjust attribute_spec
9120         initializers.
9121         * config/alpha/alpha.c: Likewise.
9122         * config/arc/arc.c: Likewise.
9123         * config/arm/arm.c: Likewise.
9124         * config/avr/avr.c: Likewise.
9125         * config/bfin/bfin.c: Likewise.
9126         * config/crx/crx.c: Likewise.
9127         * config/darwin.h: Likewise.
9128         * config/h8300/h8300.c: Likewise.
9129         * config/i386/cygming.h: Likewise.
9130         * config/i386/i386.c: Likewise.
9131         * config/ia64/ia64.c: Likewise.
9132         * config/m32c/m32c.c: Likewise.
9133         * config/m32r/m32r.c: Likewise.
9134         * config/m68hc11/m68hc11.c: Likewise.
9135         * config/m68k/m68k.c: Likewise.
9136         * config/mcore/mcore.c: Likewise.
9137         * config/mep/mep.c: Likewise.
9138         * config/microblaze/microblaze.c: Likewise.
9139         * config/mips/mips.c: Likewise.
9140         * config/rs6000/rs6000.c: Likewise.
9141         * config/rx/rx.c: Likewise.
9142         * config/sh/sh.c: Likewise.
9143         * config/sol2.h: Likewise.
9144         * config/sparc/sparc.c: Likewise.
9145         * config/spu/spu.c: Likewise.
9146         * config/stormy16/stormy16.c: Likewise.
9147         * config/v850/v850.c: Likewise.
9148
9149 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9150
9151         * simplify-rtx.c (simplify_binary_operation_1): Handle
9152         (xor (and A B) C) case when B and C are both constants.
9153
9154 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9155
9156         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9157
9158 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9159
9160         PR bootstrap/48168
9161         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9162
9163 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9164
9165         PR rtl-optimization/48156
9166         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9167         assume df and df_lr are not NULL.
9168
9169 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9170
9171         PR debug/48023
9172         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9173         between a call and its CALL_ARG_LOCATION note.
9174
9175 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9176
9177         PR debug/48178
9178         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9179         between a call and its corresponding CALL_ARG_LOCATION note.
9180
9181 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9182
9183         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9184         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9185         * haifa-sched.c (setup_ref_regs): Ditto.
9186         * caller-save.c (add_used_regs_1): Ditto.
9187         * dse.c (look_for_hardregs): Ditto.
9188         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9189         * sched-rgn.c (check_live_1): Ditto.
9190
9191 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * c-decl.c (diagnose_mismatched_decls): Give an error for
9194         redefining a typedef with variably modified type.
9195
9196 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9197
9198         * c-decl.c (grokfield): Don't allow typedefs for structures or
9199         unions with no tag by default.
9200         * doc/extend.texi (Unnamed Fields): Update.
9201
9202 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9203
9204         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9205         Rewrite using indirect functions.
9206         (lwp_slwpcb): Ditto.
9207         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9208         (avx_vinsertf128<mode>): Ditto.
9209
9210 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9211
9212         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9213         unspecs.
9214
9215 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9216
9217         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9218         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9219
9220 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9221
9222         PR rtl-optimization/48170
9223         * gcse.c (hoist_code): Remove bogus asserts.
9224
9225 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9226
9227         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9228         computation for prologue/epilogue.
9229
9230 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9231
9232         * Makefile.in (check-consistency): Remove.
9233
9234 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9235
9236         PR debug/48176
9237         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9238         arange_table_in_use is 0, but either text_section_used or
9239         cold_text_section_used is true.  Don't call it if
9240         !info_section_emitted.
9241
9242 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9243
9244         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9245         FUNCTION_VALUE_REGNO_P): Remove.
9246         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9247         Remove.
9248         * config/avr/avr.c (avr_ret_register): Make static inline.
9249         (avr_function_value_regno_p): New function.
9250         (avr_libcall_value): Make static. Add 'func' argument.
9251         (avr_function_value): Make static. Rename 'func' argument to
9252         'fn_decl_or_type', forward it to avr_libcall_value. Call
9253         avr_ret_register function instead of RET_REGISTER macro.
9254         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9255
9256 2011-03-18  Jason Merrill  <jason@redhat.com>
9257
9258         PR c++/23372
9259         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9260
9261 2011-03-18  Richard Guenther  <rguenther@suse.de>
9262
9263         * doc/install.texi (--enable-gold): Remove.
9264         (--with-plugin-ld): Document.
9265         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9266
9267 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9268
9269         PR middle-end/47790
9270         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9271         again after expansion changes.
9272
9273 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9274
9275         * combine.c (try_combine): Do simplification only call of
9276         subst() on i2 even when i1 is present. Update comments.
9277
9278 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9279
9280         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9281         and UNSPEC_PCREL_SYMOFF.
9282
9283 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9284
9285         * config/s390/s390.md: Use define_c_enum for the unspec constant
9286         definitions.
9287
9288 2011-03-18  Richard Henderson  <rth@redhat.com>
9289             Jakub Jelinek  <jakub@redhat.com>
9290
9291         PR bootstrap/48161
9292         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9293         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9294
9295 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9296
9297         PR middle-end/47725
9298         * combine.c (cant_combine_insn_p): Don't check zero/sign
9299         extended hard registers.
9300
9301 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9302
9303         PR middle-end/47725
9304         * combine.c (cant_combine_insn_p): Check zero/sign extended
9305         hard registers.
9306
9307 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9308
9309         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9310         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9311         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9312         Change return type to bool.
9313         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9314
9315 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9316
9317         PR debug/48163
9318         * var-tracking.c (prepare_call_arguments): If CALL target
9319         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9320         pc instead of looking it up using cselib_lookup and use
9321         Pmode for it if x has VOIDmode.
9322         * dwarf2out.c (gen_subprogram_die): If also both first and
9323         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9324
9325         PR debug/48163
9326         * function.c (assign_parms): For data.passed_pointer parms
9327         use MEM of data.entry_parm instead of data.entry_parm itself
9328         as DECL_INCOMING_RTL.
9329         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9330         also when passed and declared mode is the same, DECL_RTL
9331         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9332         a MEM too.
9333
9334 2011-03-16  Jeff Law  <law@redhat.com>
9335
9336         PR rtl-optimization/37273
9337         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9338         handle them like argument loads from stack slots.  Do not double
9339         count memory for memory constants and argument loads from stack slots.
9340
9341 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9342
9343         PR debug/48160
9344         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9345
9346 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9347
9348         PR target/48171
9349         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9350
9351 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9352
9353         PR bootstrap/48153
9354         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9355         if dwarf_strict.
9356         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9357         Clear call_arg_locations and call_arg_loc_last always.
9358
9359         PR middle-end/48152
9360         * var-tracking.c (prepare_call_arguments): If argument needs to be
9361         passed by reference, adjust argtype and mode.
9362
9363 2011-03-17  Richard Guenther  <rguenther@suse.de>
9364
9365         PR middle-end/48134
9366         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9367         a value make sure to fold the statement.
9368
9369 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9370
9371         PR target/43872
9372         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9373         return condition with !cfun->calls_alloca.
9374
9375 2011-03-17  Richard Guenther  <rguenther@suse.de>
9376
9377         PR bootstrap/48148
9378         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9379         origin for decls in other ltrans units.
9380         (input_varpool_node): Likewise.
9381
9382 2011-03-17  Richard Guenther  <rguenther@suse.de>
9383
9384         PR middle-end/48165
9385         * tree-object-size.c (compute_object_offset): Properly return
9386         the offset operand of MEM_REFs as sizetype.
9387
9388 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9389
9390         PR rtl-optimization/48141
9391         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9392         * dse.c: Include params.h.
9393         (active_local_stores_len): New variable.
9394         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9395         to NULL.
9396         (record_store, check_mem_read_rtx): Decrease it when removing
9397         from the chain.
9398         (scan_insn): Likewise.  Increase it when adding to chain, if it
9399         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9400         set active_local_stores to NULL before the addition.
9401         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9402
9403         PR rtl-optimization/48141
9404         * dse.c (record_store): If no positions are needed in an insn
9405         that cannot be deleted, at least unchain it from active_local_stores.
9406
9407 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9408
9409         PR debug/47510
9410         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9411         (lookup_type_die_strip_naming_typedef): ... here.
9412         (get_context_die): Use it.
9413         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9414         the anonymous struct named by the naming typedef.
9415
9416 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9417
9418         PR target/48154
9419         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9420         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9421
9422 2011-03-16  Jeff Law  <law@redhat.com>
9423
9424         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9425         check for operands of conditional.  Allow type to be a pointer.
9426
9427 2011-03-16  Richard Guenther  <rguenther@suse.de>
9428
9429         PR tree-optimization/48149
9430         * fold-const.c (fold_binary_loc): Fold
9431         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9432
9433 2011-03-16  Richard Guenther  <rguenther@suse.de>
9434
9435         PR tree-optimization/26134
9436         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9437         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9438         (non_rewritable_mem_ref_base): Handle complex type component
9439         accesses, constrain offsets for vector and complex extracts
9440         more properly.
9441
9442 2011-03-16  Richard Guenther  <rguenther@suse.de>
9443
9444         PR tree-optimization/48146
9445         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9446         operands avoiding the need for renaming.
9447
9448 2011-03-16  Richard Guenther  <rguenther@suse.de>
9449
9450         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9451         constant folding.  Move MEM_REF canonicalization first.
9452         Rely on fold_const_aggregate_ref for initializer folding.
9453         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9454
9455 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9456
9457         PR middle-end/48136
9458         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9459         arg0/arg1 or their arguments are always fold converted to matching
9460         types.
9461
9462         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9463         to nargs.
9464
9465 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9466
9467         PR lto/46944
9468         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9469         Handle in-tree gold.
9470         (ld_vers): Extract binutils version for gold.
9471         (gcc_cv_ld_hidden): Handle gold here.
9472         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9473         * configure: Regenerate.
9474         * config.in: Regenerate.
9475         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9476         -fuse-linker-plugin otherwise.
9477         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9478         (LINK_COMMAND_SPEC): Use it.
9479         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9480
9481 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9482
9483         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9484         * calls.c: Remove debug.h include.
9485         (emit_call_1): Don't call virtual_call_token debug hook.
9486         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9487         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9488         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9489         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9490         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9491         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9492         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9493         dwarf2out_virtual_call): Remove.
9494         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9495         copy_call_info and virtual_call hooks.
9496         (dwarf2out_init): Don't initialize vcall_insn_table,
9497         debug_dcall_section and debug_vcall_section.
9498         (prune_unused_types): Don't mark nodes from dcall_table.
9499         (dwarf2out_finish): Don't output dcall or vcall tables.
9500         * final.c (final_scan_insn): Don't call direct_call or
9501         virtual_call debug hooks.
9502         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9503         virtual_call_token, copy_call_info and virtual_call hooks.
9504         (debug_nothing_uid): Remove prototype.
9505         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9506         copy_call_info and virtual_call hooks.
9507         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9508         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9509         * debug.c (do_nothing_debug_hooks): Likewise.
9510         (debug_nothing_uid): Remove.
9511         * doc/invoke.texi (-fenable-icf-debug): Remove.
9512         * common.opt (-fenable-icf-debug): Likewise.
9513
9514         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9515         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9516         call's MEM.  Handle functions returning aggregate through a hidden
9517         first pointer.  For virtual calls add clobbered pc to call arguments
9518         chain.
9519         * dwarf2out.c (gen_subprogram_die): Emit
9520         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9521         can't be emitted.
9522
9523         PR debug/45882
9524         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9525         * rtl.h (ENTRY_VALUE_EXP): Define.
9526         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9527         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9528         * print-rtl.c (print_rtx): Likewise.
9529         * gengtype.c (adjust_field_rtx_def): Likewise.
9530         * var-tracking.c (vt_add_function_parameter): Adjust
9531         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9532         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9533         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9534         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9535         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9536
9537         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9538         Call var_location debug hook even on CALL_INSNs.
9539         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9540         * rtl.def (ENTRY_VALUE): New.
9541         * dwarf2out.c: Include cfglayout.h.
9542         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9543         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9544         (struct call_arg_loc_node): New type.
9545         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9546         tail_call_site_count): New variables.
9547         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9548         DW_TAG_GNU_call_site_parameter.
9549         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9550         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9551         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9552         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9553         and DW_AT_GNU_all_source_call_sites.
9554         (mem_loc_descriptor): Handle ENTRY_VALUE.
9555         (add_src_coords_attributes): Don't add enything if
9556         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9557         (dwarf2out_abstract_function): Save and clear call_arg_location,
9558         call_site_count and tail_call_site_count around dwarf2out_decl call.
9559         (gen_call_site_die): New function.
9560         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9561         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9562         (dwarf2out_function_decl): Clear call_arg_locations,
9563         call_arg_loc_last, set call_site_count and tail_call_site_count
9564         to -1 and free block_map.
9565         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9566         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9567         followed by any real instructions.
9568         (dwarf2out_begin_function): Set call_site_count and
9569         tail_call_site_count to 0.
9570         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9571         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9572         attempt to force a DIE for it and worst case remove the attribute.
9573         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9574         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9575         the decl itself.
9576         * var-tracking.c: Include tm_p.h.
9577         (vt_stack_adjustments): For calls call note_register_arguments.
9578         (argument_reg_set): New variable.
9579         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9580         ensure the VALUE is resolved.
9581         (call_arguments): New variable.
9582         (prepare_call_arguments): New function.
9583         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9584         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9585         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9586         always use the best expression.
9587         (vt_expand_loc): Add ignore_cur_loc argument.
9588         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9589         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9590         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9591         note for all calls.
9592         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9593         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9594         argument.  Don't call cselib_preserve_only_values and
9595         cselib_reset_table.
9596         (note_register_arguments): New function.
9597         (vt_initialize): Compute argument_reg_set.  Call
9598         vt_add_function_parameters before processing basic blocks instead of
9599         afterwards.  For calls call prepare_call_arguments before calling
9600         cselib_process_insn.
9601         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9602         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9603         (var-tracking.o): Depend on $(TM_P_H).
9604         * cfglayout.h (insn_scope): New prototype.
9605         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9606         * cfglayout.c (insn_scope): No longer static.
9607         * insn-notes.def (CALL_ARG_LOCATION): New.
9608         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9609         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9610         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9611         nothing for DECL_EXTERNAL BLOCK_VARS.
9612
9613 2011-03-16  Alan Modra  <amodra@gmail.com>
9614
9615         PR target/45844
9616         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9617         create invalid offset address for vsx splat insn.
9618         * config/rs6000/predicates.md (splat_input_operand): New.
9619         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9620
9621 2011-03-15  Xinliang David Li  <davidxl@google.com>
9622
9623         PR c/47837
9624         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9625         (normalize_preds): New function.
9626         (is_use_properly_guarded): Normalize def predicates.
9627
9628 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9629
9630         PR target/46788
9631         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9632         in the output template.
9633
9634 2011-03-15  Richard Guenther  <rguenther@suse.de>
9635
9636         PR middle-end/47650
9637         * tree-pretty-print.c (dump_function_declaration): Properly
9638         dump unprototyped and varargs function types.
9639
9640 2011-03-15  Richard Guenther  <rguenther@suse.de>
9641
9642         PR tree-optimization/13954
9643         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9644         and friends.
9645
9646 2011-03-15  Richard Guenther  <rguenther@suse.de>
9647
9648         PR tree-optimization/48037
9649         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9650         selects into BIT_FIELD_REFs.
9651         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9652         vector select.
9653
9654 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9655
9656         PR tree-optimization/48129
9657         * builtins.c (fold_builtin_snprintf): Convert to type of
9658         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9659         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9660
9661 2011-03-15  Richard Guenther  <rguenther@suse.de>
9662
9663         PR tree-optimization/41490
9664         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9665         value but with VUSE.
9666         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9667         return statements.
9668         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9669         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9670         * tree-tailcall.c (find_tail_calls): Ignore returns.
9671
9672 2011-03-15  Richard Guenther  <rguenther@suse.de>
9673
9674         PR middle-end/48031
9675         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9676         or variable-indexed array accesses when in gimple form.
9677
9678 2011-03-15  Richard Guenther  <rguenther@suse.de>
9679
9680         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9681
9682 2011-03-15  Alan Modra  <amodra@gmail.com>
9683
9684         PR target/48032
9685         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9686         presume symbol_refs without a symbol_ref_decl are suitably
9687         aligned, nor other trees we may see here.  Handle anchor symbols.
9688         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9689         Check cmodel=medium addresses.  Adjust all calls.
9690         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9691         creating cmodel=medium optimized access to locals.
9692         * config/rs6000/constraints.md (R): Pass QImode to
9693         legitimate_constant_pool_address_p.
9694         * config/rs6000/predicates.md (input_operand): Pass mode to
9695         legitimate_constant_pool_address_p.
9696         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9697         Update prototype.
9698
9699 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9700
9701         PR target/48053
9702         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9703         64-bit constants being loaded into registers other than GPRs such
9704         as loading 0 into a VSX register.
9705
9706 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9707
9708         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9709
9710 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9711
9712         PR middle-end/47917
9713         * builtins.c (fold_builtin_snprintf): New function.
9714         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9715         (fold_builtin_4): Likewise.
9716
9717         PR middle-end/38878
9718         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9719         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9720         and C - X == X also strip nops from +/-/p+ operand.
9721         When optimizing -X == C, fold C to arg0's type.
9722
9723         PR debug/47946
9724         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9725         emit it as add_AT_int instead of add_AT_unsigned.
9726
9727 2011-03-14  Tom Tromey  <tromey@redhat.com>
9728
9729         * unwind-dw2.c: Include sys/sdt.h if it exists.
9730         (_Unwind_DebugHook): Use STAP_PROBE2.
9731         * config.in, configure: Rebuild.
9732         * configure.ac: Check for sys/sdt.h.
9733
9734 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9735
9736         * config/i386/i386.md (ROUND_FLOOR): New constant.
9737         (ROUND_CEIL): Ditto.
9738         (ROUND_TRUNC): Ditto.
9739         (ROUND_MXCSR): Ditto.
9740         (ROUND_NO_EXC): Ditto.
9741         (rint<mode>2): Use new defines instead of numerical constants.
9742         (floor<mode>2): Ditto.
9743         (ceil<mode>2): Ditto.
9744         (btrunc<mode>2): Ditto.
9745         * config/i386/i386-builtin-types.def: Define ROUND function type
9746         aliases.
9747         * config/i386/i386.c (enum ix86_builtins): Add
9748         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9749         (struct builtin_description): Add
9750         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9751         (ix86_expand_sse_round): New static function.
9752         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9753         function types.
9754         (ix86_builtin_vectorized_function): Handle
9755         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9756
9757 2011-03-14  Tom Tromey  <tromey@redhat.com>
9758
9759         * c-parser.c (c_parser_asm_string_literal): Clear
9760         warn_overlength_strings.
9761
9762 2011-03-14  Tom Tromey  <tromey@redhat.com>
9763
9764         * c-parser.c (disable_extension_diagnostics): Save
9765         warn_overlength_strings.
9766         (restore_extension_diagnostics): Restore warn_overlength_strings.
9767
9768 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9769
9770         * BASE-VER: Change to 4.7.0.
9771
9772 2011-03-14  Richard Guenther  <rguenther@suse.de>
9773
9774         PR middle-end/48098
9775         * tree.c (build_vector_from_val): Adjust assert to requirements
9776         and reality.
9777
9778 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9779
9780         PR bootstrap/48102
9781         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9782
9783 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9784
9785         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9786         terms of target_flags_explicit. Adjust copyright year.
9787
9788         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9789         * config/rs6000/t-freebsd: New file. Add override for
9790         LIB2FUNCS_EXTRA.
9791
9792 2011-03-13  Chris Demetriou  <cgd@google.com>
9793
9794         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9795         (-fno-diagnostics-show-option): this, to reflect current default.
9796         (-Werror=): Update text about -fno-diagnostics-show-option.
9797
9798 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9799
9800         PR target/48053
9801         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9802         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9803         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9804         mode is not V2DImode or V2DFmode.
9805         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9806         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9807         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9808         registers to 0.
9809         (movdi_internal64): Likewise.
9810
9811 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9812
9813         PR tree-optimization/47127
9814         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9815         parameter.
9816         (set_cloog_options): Same.
9817         (scop_to_clast): Same.
9818         (print_clast_stmt): Do not call cloog_state_malloc and
9819         cloog_state_free.
9820         (print_generated_program): Same.
9821         (gloog): Same.
9822         * graphite-clast-to-gimple.h (cloog_state): Declared.
9823         (scop_to_clast): Adjust declaration.
9824         * graphite.c (cloog_state): Defined here.
9825         (graphite_initialize): Call cloog_state_malloc.
9826         (graphite_finalize): Call cloog_state_free.
9827
9828 2011-03-11  Jason Merrill  <jason@redhat.com>
9829
9830         * attribs.c (lookup_attribute_spec): Take const_tree.
9831         * tree.h: Adjust.
9832
9833 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9834
9835         * config/sparc/sparc.c (sparc_option_override): Use
9836         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9837
9838 2011-03-11  Richard Guenther  <rguenther@suse.de>
9839
9840         PR tree-optimization/48067
9841         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9842         multiplication result will be only used once on the target
9843         stmt.
9844
9845 2011-03-11  Richard Guenther  <rguenther@suse.de>
9846
9847         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9848
9849 2011-03-11  Richard Guenther  <rguenther@suse.de>
9850
9851         PR lto/48073
9852         * tree.c (find_decls_types_r): Do not walk types only reachable
9853         from IDENTIFIER_NODEs.
9854
9855 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9856
9857         PR middle-end/48044
9858         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9859         all vnode->force_output nodes as needed.
9860
9861 2011-03-11  Jason Merrill  <jason@redhat.com>
9862
9863         PR c++/48069
9864         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9865         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9866
9867 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9868
9869         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9870         cgraph_node.
9871
9872 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9873
9874         PR tree-optimization/48063
9875         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9876         inline functions called once if !tree_can_inline_p (node->callers).
9877
9878 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9879
9880         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9881         extra_objs.
9882         * config/score/score3.c: Delete.
9883         * config/score/score3.h: Delete.
9884         * config/score/mul-div.S: Delete.
9885         * config/score/sfp-machine.h: Add new file.
9886         * config/score/constraints.md: Add new file.
9887         * config/score/t-score-softfp: Add new file.
9888         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9889         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9890         (score7_extra_constraint): Delete.
9891         (score7_option_override): Remove unused code.
9892         * config/score/score.c: Remove score3 and score5 define and code.
9893         * config/score/score.h: Remove score3 and score5 define and code.
9894         * config/score/score.md: Remove score3 template and unusual insn.
9895         * config/score/score.opt: Remove score3 and score5 options.
9896
9897 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9898
9899         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9900         when _HPUX_SOURCE is defined.
9901         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9902
9903 2011-03-10  Jason Merrill  <jason@redhat.com>
9904
9905         PR c++/48029
9906         * stor-layout.c (layout_type): Don't set structural equality
9907         on arrays of incomplete type.
9908         * tree.c (type_hash_eq): Handle comparing them properly.
9909
9910 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9911
9912         PR debug/48043
9913         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9914         result mode matches original rtl mode.
9915
9916 2011-03-10  Nick Clifton  <nickc@redhat.com>
9917
9918         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9919         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9920
9921 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9922
9923         PR rtl-optimization/47866
9924         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9925         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9926         if target wasn't scalar.
9927         * function.c (assign_stack_temp_for_type): Assert that neither
9928         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9929         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9930         macro.
9931         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9932
9933 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9934
9935         * config/s390/s390-protos.h (s390_label_align): New prototype.
9936         * config/s390/s390.c (s390_label_align): New function.
9937         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9938
9939 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9940
9941         PR target/47755
9942         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9943         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9944         (output_vec_const_move): Ditto.
9945
9946 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9947
9948         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9949         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9950         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9951         Change 'rclass' argument and result type to reg_class_t.
9952         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9953
9954 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9955
9956         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9957         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9958         (TARGET_MEMORY_MOVE_COST): Define.
9959         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9960
9961 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9962
9963         PR debug/47881
9964         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9965         removed anything.
9966
9967         PR tree-optimization/48022
9968         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9969         for EQ/NE_EXPR.
9970
9971 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9972
9973         PR debug/47991
9974         * var-tracking.c (find_use_val): Return NULL for
9975         cui->sets && cui->store_p BLKmode MEMs.
9976
9977 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9978
9979         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9980         Remove.
9981         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9982         xstormy16_print_operand_address): Remove.
9983         * config/stormy16/stormy16.c (xstormy16_print_operand,
9984         xstormy16_print_operand_address): Make static.
9985         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9986
9987 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9988
9989         PR target/47862
9990         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9991         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9992         before definition.
9993
9994 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9995
9996         PR bootstrap/48000
9997         * cfgloopmanip.c (fix_bb_placements): Return immediately
9998         if FROM is BASE_LOOP's header.
9999
10000 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10001
10002         * gimplify.c (gimplify_function_tree): Fix building calls
10003         to __builtin_return_address.
10004
10005 2011-03-07  Alan Modra  <amodra@gmail.com>
10006
10007         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10008         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10009         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10010         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10011         return_mode args.
10012         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10013         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10014         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10015         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10016         * config/rs6000/rs6000.c
10017         (rs6000_elf_end_indicate_exec_stack): Rename to..
10018         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10019         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10020         (rs6000_file_start): ..here.
10021         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10022         file scope variables.
10023         (call_ABI_of_interest): New function.
10024         (init_cumulative_args): Set above vars when function return value
10025         is a float, vector, or small struct.
10026         (rs6000_function_arg_advance_1): Likewise for function args.
10027         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10028         references float args.
10029
10030 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10031
10032         * doc/cfg.texi: Remove "See" before @ref.
10033         * doc/invoke.texi: Likewise.
10034
10035 2011-03-05  Jason Merrill  <jason@redhat.com>
10036
10037         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10038
10039 2011-03-05  Anthony Green  <green@moxielogic.com>
10040
10041         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10042
10043 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10044
10045         PR rtl-optimization/47899
10046         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10047         to flow_loop_nested_p when moving the loop upward.
10048
10049 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10050
10051         PR target/47719
10052         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10053
10054 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10055
10056         PR tree-optimization/47967
10057         * ipa-cp.c (build_const_val): Return NULL instead of creating
10058         VIEW_CONVERT_EXPR for mismatching sizes.
10059         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10060         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10061         give up on versioning.
10062
10063 2011-03-05  Alan Modra  <amodra@gmail.com>
10064
10065         PR target/47986
10066         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10067         full cmodel medium/large lo_sum + high addresses.
10068
10069 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10070
10071         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10072         pool references in UNSPEC_LTREL_OFFSET.
10073
10074 2011-03-04  Jan Hubicka  <jh@suse.cz>
10075
10076         PR lto/47497
10077         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10078         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10079         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10080         Add node pointers.
10081         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10082         cgraph_add_thunk): Add node pointers.
10083         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10084         associated to right node.
10085         (input_node): Update use of cgraph_same_body_alias
10086         and cgraph_add_thunk.
10087
10088 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10089
10090         * config/i386/i386.opt (mprefer-avx128): New flag.
10091         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10092         modes when the flag -mprefer-avx128 is on.
10093
10094 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10095
10096         * dwarf2out.c (compare_loc_operands): Fix address handling.
10097
10098 2011-03-04  Alan Modra  <amodra@gmail.com>
10099
10100         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10101
10102 2011-03-04  Richard Guenther  <rguenther@suse.de>
10103
10104         PR middle-end/47968
10105         * expmed.c (extract_bit_field_1): Prefer vector modes that
10106         vec_extract patterns can handle.
10107
10108 2011-03-04  Richard Guenther  <rguenther@suse.de>
10109
10110         PR middle-end/47975
10111         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10112
10113 2011-03-04  Richard Henderson  <rth@redhat.com>
10114
10115         * explow.c (emit_stack_save): Remove 'after' parameter.
10116         (emit_stack_restore): Likewise.
10117         * expr.h: Update to match.
10118         * builtins.c, calls.c, stmt.c: Likewise.
10119         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10120         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10121         * function.c (expand_function_end): Insert the emit_stack_save
10122         sequence before parm_birth_insn instead of after.
10123
10124 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10125
10126         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10127         (ssse3_pmaddubsw128): Ditto.
10128         (ssse3_pmaddubsw): Ditto.
10129
10130 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10131
10132         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10133
10134 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10135
10136         PR c/47963
10137         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10138         on TYPE_SIZE_UNIT if it is a DECL.
10139
10140         PR debug/47283
10141         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10142         first operand is not is_gimple_mem_ref_addr, try to fold it.
10143         If the operand still isn't is_gimple_mem_ref_addr, clear
10144         MEM_EXPR on op0.
10145
10146 2011-03-03  Richard Guenther  <rguenther@suse.de>
10147
10148         PR middle-end/47283
10149         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10150         match comment.
10151         (refs_may_alias_p_1): For release branches return true if
10152         we are confused by our input.
10153
10154 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10155
10156         * config/s390/s390.c (s390_function_value): Rename to ...
10157         (s390_function_and_libcall_value): ... this.
10158         (s390_function_value): New function.
10159         (s390_libcall_value): New function.
10160         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10161         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10162         target macro definitions.
10163         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10164
10165 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * config/i386/freebsd64.h (CC1_SPEC): Define.
10168         * config/i386/linux64.h (CC1_SPEC): Define.
10169         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10170
10171 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10172
10173         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10174         Remove.
10175         * config/stormy16/stormy16.c: Include reload.h.
10176         (xstormy16_memory_move_cost): New function.
10177         (TARGET_MEMORY_MOVE_COST): Define.
10178
10179 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10180
10181         PR rtl-optimization/47925
10182         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10183         with side effects.  Remove the more-specific check for volatile asms.
10184
10185 2011-03-02  Alan Modra  <amodra@gmail.com>
10186
10187         PR target/47935
10188         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10189         toc relative addresses for valid offsets.
10190
10191 2011-03-01  Richard Guenther  <rguenther@suse.de>
10192
10193         PR tree-optimization/47890
10194         * tree-vect-loop.c (get_initial_def_for_induction): Set
10195         related stmt properly.
10196
10197 2011-03-01  Richard Guenther  <rguenther@suse.de>
10198
10199         PR lto/47924
10200         * lto-streamer.c (lto_record_common_node): Also register
10201         the canonical type.
10202
10203 2011-03-01  Richard Guenther  <rguenther@suse.de>
10204
10205         PR lto/46911
10206         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10207         Do not stream DECL_ABSTRACT_ORIGIN.
10208         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10209         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10210         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10211         Do not stream DECL_ABSTRACT_ORIGIN.
10212         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10213         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10214
10215 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10216
10217         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10218         FUNCTION_VALUE_REGNO_P): Remove.
10219         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10220         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10221         Add 'outgoing' argument.
10222         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10223         function.
10224         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10225         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10226
10227 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10228
10229         PR debug/28047
10230         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10231         (lookup_filename): Likewise.
10232         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10233
10234 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10235             Jakub Jelinek  <jakub@redhat.com>
10236
10237         PR middle-end/47893
10238         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10239         (assign_stack_local_1): Change last argument type to int.
10240         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10241         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10242         don't record padding space into frame_space_list nor use those areas.
10243         (assign_stack_local): Adjust caller.
10244         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10245         of assign_stack_local, pass 0 as last argument.
10246         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10247         callers.
10248
10249 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10250
10251         PR debug/47283
10252         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10253         Use target address_mode and pointer_mode hooks instead of hardcoded
10254         Pmode and ptr_mode.  Handle some simple cases of extending if
10255         POINTERS_EXTEND_UNSIGNED < 0.
10256         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10257         Call convert_debug_memory_address.
10258         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10259         convert_debug_memory_address.
10260
10261         PR middle-end/46790
10262         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10263         * configure: Regenerated.
10264         * config.in: Regenerated.
10265         * varasm.c (default_function_section): Return NULL
10266         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10267
10268 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10269
10270         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10271         the description to match the printed values.
10272
10273 2011-02-28  Richard Guenther  <rguenther@suse.de>
10274
10275         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10276         of the copied scope tree.
10277
10278 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10279
10280         * doc/extend.texi (Function Attributes): Avoid deeply (and
10281         wrongly) nested tables.
10282
10283 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10284
10285         PR middle-end/47903
10286         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10287         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10288         r isn't op0 nor op1.
10289
10290 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10291
10292         * config/avr/avr.md: Remove magic comment for emacs.
10293
10294 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10295
10296         PR target/45261
10297         * config/avr/avr.c (avr_option_override): Use error on bad options.
10298         (avr_help): New function.
10299         (TARGET_HELP): Define.
10300
10301 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10302
10303         PR target/42240
10304         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10305         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10306
10307 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10308
10309         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10310         (ARM Options): Ditto.
10311         (i386 and x86-64 Options): Ditto.
10312         (RX Options): Ditto.
10313         (SPARC Options): Ditto.
10314
10315 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10316
10317         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10318         FreeBSD 6 and later.  Generally use cpu generic.
10319
10320 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10321
10322         * doc/cpp.texi: Update copyright years.
10323
10324 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10325
10326         PR target/46898
10327         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10328
10329 2011-02-25  Jon Beniston  <jon@beniston.com>
10330
10331         PR target/46898
10332         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10333         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10334         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10335         (lm32_block_move_inline): Add type cast to remove warning.
10336         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10337         (gen_int_relational): Move declarations to start of function.
10338
10339 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10340
10341         PR tree-optimization/45470
10342         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10343         can throw internally only.
10344         * tree-vect-stmts.c (vectorizable_call): Likewise.
10345
10346 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10347
10348         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10349         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10350         * config/stormy16/stormy16-protos.h
10351         (xstormy16_preferred_reload_class): Remove.
10352         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10353         static. Change 'rclass' argument and return type to reg_class_t.
10354         (TARGET_PREFERRED_RELOAD_CLASS,
10355         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10356
10357 2011-02-24  Richard Guenther  <rguenther@suse.de>
10358
10359         * lto-streamer-in.c (input_bb): Do not find referenced vars
10360         in debug statements.
10361
10362 2011-02-23  Jason Merrill  <jason@redhat.com>
10363
10364         * common.opt (fabi-version): Document v5 and v6.
10365
10366 2011-02-23  Richard Guenther  <rguenther@suse.de>
10367
10368         PR tree-optimization/47849
10369         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10370
10371 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10372
10373         * opts-common.c (decode_cmdline_option): Print empty string
10374         argument as "" in decoded->orig_option_with_args_text.
10375         * gcc.c (execute): Print empty string argument as ""
10376         in the verbose output.
10377         (do_spec_1): Keep empty string argument.
10378
10379 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10380
10381         * config.gcc: Declare score-* and crx-* obsolete.
10382
10383 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10384
10385         PR rtl-optimization/47763
10386         * web.c (web_main): Ignore naked clobber when replacing register.
10387
10388 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10389
10390         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10391         Remove.
10392
10393 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10394
10395         PR doc/47848
10396         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10397
10398 2011-02-22  Mike Stump  <mikestump@comcast.net>
10399
10400         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10401         assembler.
10402         * configure: Regenerate.
10403
10404 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10405
10406         PR rtl-optimization/46002
10407         * ira-color.c (update_copy_costs): Change class intersection
10408         test to reg_class_contents[] test of 'hard_regno'.
10409
10410 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10411
10412         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10413         than Driver option.
10414         * config/hpux11.opt (mt): Likewise.
10415         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10416         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10417         * config/vax/elf.opt (mno-asm-pic): Likewise.
10418         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10419
10420 2011-02-21  Mike Stump  <mikestump@comcast.net>
10421
10422         PR target/47822
10423         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10424         tree so we can get save the type.
10425         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10426         for CFString instead of trying to use past the end of the builtins.
10427         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10428         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10429         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10430         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10431         Rename to darwin_builtin_cfstring.
10432         (darwin_init_cfstring_builtins): Return the built type.
10433
10434 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10435
10436         PR target/47840
10437         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10438         (_mm256_insert_epi64): Use _mm_insert_epi64.
10439
10440 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10441
10442         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10443         * config/stormy16/stormy16-protos.h
10444         (xstormy16_mode_dependent_address_p): Remove.
10445         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10446         Make static. Change return type to bool. Change argument type to
10447         const_rtx. Remove dead code.
10448         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10449
10450 2011-02-21  Richard Guenther  <rguenther@suse.de>
10451
10452         PR lto/47820
10453         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10454         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10455         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10456         TUs context.
10457         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10458         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10459
10460 2011-02-20  Richard Guenther  <rguenther@suse.de>
10461
10462         PR lto/47822
10463         * tree.c (free_lang_data_in_decl): Clean builtins from
10464         the TU decl BLOCK_VARS.
10465
10466 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10467
10468         PR debug/47620
10469         PR debug/47630
10470         * haifa-sched.c (fix_tick_ready): Skip tick computation
10471         for debug insns.
10472
10473 2011-02-19  Richard Guenther  <rguenther@suse.de>
10474
10475         PR lto/47647
10476         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10477         Remove lazy BLOCK_VARS streaming.
10478         (lto_input_ts_block_tree_pointers): Likewise.
10479         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10480
10481 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10482
10483         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10484
10485 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10486
10487         * config/i386/biarch32.h, config/i386/mach.h,
10488         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10489
10490 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10491
10492         PR target/47800
10493         * config/i386/i386.md (peephole2 for shift and plus): Use
10494         operands[1] original mode in the first insn.
10495
10496 2011-02-18  Mike Stump  <mikestump@comcast.net>
10497
10498         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10499
10500 2011-02-18  Jan Hubicka  <jh@suse.cz>
10501
10502         PR middle-end/47788
10503         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10504         to zero when the function is not inlinable at all.
10505
10506 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10507
10508         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10509         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10510         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10511         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10512         * config/pa/t-pa64: Likewise.
10513         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10514
10515 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10516
10517         PR driver/47787
10518         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10519
10520 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10521
10522         PR target/47792
10523         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10524
10525 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10526
10527         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10528         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10529         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10530         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10531         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10532         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10533         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10534         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10535         m32r_legitimate_address_p): New functions.
10536         * config/m32r/constraints.md (constraint "S"): Don't use
10537         STORE_PREINC_PREDEC_P.
10538         (constraint "U"): Don't use LOAD_POSTINC_P.
10539
10540 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10541
10542         PR rtl-optimization/46178
10543         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10544         compute ira_hard_regno_cover_class[].
10545
10546 2011-02-18  Richard Guenther  <rguenther@suse.de>
10547
10548         PR lto/47798
10549         * lto-streamer.h (lto_global_var_decls): Declare.
10550         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10551         statics for global var processing.
10552
10553 2011-02-18  Richard Guenther  <rguenther@suse.de>
10554
10555         PR tree-optimization/47737
10556         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10557         edge dominance check.
10558
10559 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10560
10561         PR debug/47780
10562         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10563         avoid invalid rtx sharing.
10564
10565 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10566
10567         * doc/cpp.texi (Obsolete Features): Add background on the
10568         origin of assertions.
10569
10570 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10571
10572         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10573         objc_abi == 2.
10574         * config/darwin.c (output_objc_section_asm_op): Added support for
10575         ABI v1 and v2.
10576         (is_objc_metadata): New.
10577         (darwin_objc2_section): New.
10578         (darwin_objc1_section): New.
10579         (machopic_select_section): Added support for ABI v1 and v2.
10580         (darwin_emit_objc_zeroed): New.
10581         (darwin_output_aligned_bss): Detect objc metadata and treat it
10582         appropriately.
10583         (darwin_asm_output_aligned_decl_common): Same.
10584         (darwin_asm_output_aligned_decl_local): Same.
10585         * config/darwin-sections.def: Updated for ABI v1 and v2.
10586         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10587         compiling Objective-C code for the NeXT runtime, default to using
10588         ABI version 0 for 32-bit, and version 2 for 64-bit.
10589
10590 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10591
10592         * common.opt (optimize_fast): New Variable.
10593         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10594         instead of local variable ofast.
10595
10596 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10597
10598         * doc/invoke.texi (fobjc-abi-version): Documented.
10599         (fobjc-nilcheck): Documented.
10600         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10601         version.
10602
10603 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10604
10605         PR driver/47390
10606         * common.opt (export-dynamic): New Driver option.
10607         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10608
10609 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10610
10611         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10612
10613 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10614             Jan Hubicka  <jh@suse.cz>
10615
10616         PR debug/47106
10617         PR debug/47402
10618         * cfgexpand.c (account_used_vars_for_block): Remove.
10619         (estimated_stack_frame_size): Use referenced vars.
10620         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10621         that were referenced in the original function.  Test src_fn
10622         rather than cfun.  Drop redundant get_var_ann.
10623         (setup_one_parameter): Drop redundant get_var_ann.
10624         (declare_return_variable): Likewise.
10625         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10626         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10627         * ipa-inline.c (compute_inline_parameters): Do not compute
10628         disregard_inline_limits here.
10629         (compute_inlinable_for_current, pass_inlinable): New.
10630         (pass_inline_parameters): Require PROP_referenced_vars.
10631         * cgraphunit.c (cgraph_process_new_functions): Don't run
10632         compute_inline_parameters explicitly unless function is in SSA form.
10633         (cgraph_analyze_function): Set .disregard_inline_limits.
10634         * tree-sra.c (convert_callers): Compute inliner parameters
10635         only for functions already in SSA form.
10636
10637 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10638
10639         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10640         -mlittle-endian-data.
10641
10642 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10645         -mno-fpu, not -fpu and -no-fpu.
10646         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10647         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10648
10649 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10650
10651         PR target/43653
10652         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10653         input reload with PLUS RTX.
10654
10655 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10656
10657         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10658         of InverseVar(MDMX).
10659
10660 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10661
10662         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10663         --m4-340.
10664
10665 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * config/mn10300/mn10300.opt (mno-crt0): New.
10668
10669 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10670
10671         * config/m68k/uclinux.opt (static-libc): New Driver option.
10672
10673 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10674
10675         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10676
10677 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10678
10679         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10680         %{muser-extend-enabled}.
10681
10682 2011-02-16  Richard Guenther  <rguenther@suse.de>
10683
10684         PR tree-optimization/47738
10685         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10686         the TODO from tree_predictive_commoning.
10687
10688 2011-02-15  Jeff Law  <law@redhat.com>
10689
10690         Revert
10691         2011-01-25  Jeff Law  <law@redhat.com>
10692
10693         PR rtl-optimization/37273
10694         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10695         handle them like argument loads from stack slots.  Do not double
10696         count memory for memory constants and argument loads from stack slots.
10697
10698 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10699
10700         PR middle-end/47725
10701         * combine.c (cant_combine_insn_p): Revert the last change.
10702
10703 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10704
10705         PR target/47755
10706         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10707         mode for vector constants.  Remove code that checks for TImode.
10708
10709 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10710
10711         PR debug/47106
10712         PR debug/47402
10713         * cgraph.h (compute_inline_parameters): Return void.
10714         * ipa-inline.c (compute_inline_parameters): Adjust.
10715
10716 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10717
10718         PR debug/47106
10719         PR debug/47402
10720         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10721         rather than decl.
10722         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10723         * ipa-inline.c (compute_inline_parameters): Adjust.
10724
10725 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10726
10727         PR debug/47106
10728         PR debug/47402
10729         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10730         Adjust all users.  Pass FN to...
10731         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10732         fn argument.
10733         * ipa-struct-reorg.c: Adjust.
10734         * tree-dfa.c: Adjust.
10735         * tree-into-ssa.c: Adjust.
10736         * tree-sra.c: Adjust.
10737         * tree-ssa-alias.c: Adjust.
10738         * tree-ssa-live.c: Adjust.
10739         * tree-ssa.c: Adjust.
10740         * tree-ssanames.c: Adjust.
10741         * tree-tailcall.c: Adjust.
10742
10743 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10744
10745         PR debug/47106
10746         PR debug/47402
10747         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10748         Adjust all callers.
10749         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10750         * tree-flow-inline.h: Adjust.
10751         * gimple-pretty-print.c: Adjust.
10752         * tree-into-ssa.c: Adjust.
10753         * tree-ssa.c: Adjust.
10754         * cfgexpand.c: Adjust.
10755
10756 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10757
10758         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10759         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10760         (EXTRA_CONSTRAINT): Delete.
10761         * config/iq2000/constraints.md: New file.
10762         * config/iq2000/iq2000.md: Include it.
10763         (define_insn ""): Delete.
10764         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10765         unsupported constraint letters from patterns.
10766         (call_value, call_value_internal1): Likewise.
10767         (call_value_multiple_internal1): Likewise.
10768
10769 2011-02-15  Nick Clifton  <nickc@redhat.com>
10770
10771         * config/mn10300/mn10300.c: Include tm-constrs.h.
10772         (struct liw_data): New data structure describing an LIW candidate
10773         instruction.
10774         (extract_bundle): Use struct liw_data.  Allow small integer
10775         operands for some instructions.
10776         (check_liw_constraints): Use struct liw_data.  Remove swapped
10777         parameter.  Add comments describing the checks.  Fix bug when
10778         assigning the source of liw1 to the source of liw2.
10779         (liw_candidate): Delete.  Code moved into extract_bundle.
10780         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10781         before swapping.
10782         * config/mn10300/predicates.md (liw_operand): New predicate.
10783         Allows registers and small integer constants.
10784         * config/mn10300/constraints.md (O): New constraint.  Accetps
10785         integers in the range -8 to +7 inclusive.
10786         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10787         for moving a small integer into a register.  Give this alternative
10788         LIW attributes.
10789         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10790         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10791         using the J,K,L and M constraints,
10792         (liw): Remove SI mode on second operands to allow for HI and QI
10793         mode values.
10794         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10795         instruction.
10796
10797 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10798
10799         PR middle-end/47725
10800         * combine.c (cant_combine_insn_p): Check zero/sign extended
10801         hard registers.
10802
10803 2011-02-15  Richard Guenther  <rguenther@suse.de>
10804
10805         PR tree-optimization/47743
10806         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10807         for a non-type-compatible VN lookup bail out.
10808
10809 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10810
10811         * config/fr30/constraints.md: New file.
10812         * config/fr30/fr30.md: Include it.
10813         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10814         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10815         (EXTRA_CONSTRAINT): Delete.
10816
10817 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10818
10819         * config/frv/constraints.md: New file.
10820         * config/frv/predicates.md: Include it.
10821         * config/frv/frv.c (reg_class_from_letter): Delete.
10822         (frv_option_override): Don't initialize it.
10823         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10824         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10825         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10826         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10827         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10828         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10829         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10830         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10831         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10832         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10833         (REG_CLASS_FROM_CONSTRAINT): Delete.
10834
10835 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10836
10837         PR middle-end/47581
10838         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10839         if frame size is 0 in a leaf function.
10840
10841 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10842
10843         PR pch/14940
10844         * config/alpha/host-osf.c: New file.
10845         * config/alpha/x-osf: New file.
10846         * config.host (alpha*-dec-osf*): Use it.
10847
10848 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10849
10850         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10851         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10852         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10853         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10854         type to const_rtx.
10855         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10856
10857 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10858
10859         * config/stormy16/constraints.md: New file.
10860         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10861         Use satisfies_constraint_Q and satisfies_constraint_R.
10862         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10863         Delete.
10864         (xstormy16_legitiamte_address_p): Declare.
10865         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10866         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10867         (EXTRA_CONSTRAINT): Delete.
10868         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10869         Un-staticize.
10870         (xstormy16_extra_constraint_p): Delete.
10871
10872 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10873
10874         PR tree-optimization/46494
10875         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10876         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10877         (pass_rtl_loop_done): Add TODO_verify_flow.
10878         * fwprop.c (pass_rtl_fwprop): Likewise.
10879         * modulo-sched.c (pass_sms): Likewise.
10880         * tree-ssa-dom.c (pass_dominator): Likewise.
10881         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10882         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10883         (pass_tree_loop_done): Likewise.
10884         * tree-ssa-pre.c (execute_pre): Likewise.
10885         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10886         * tree-ssa-sink.c (pass_sink_code): Likewise.
10887         * tree-vrp.c (pass_vrp): Likewise.
10888
10889 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10890
10891         * config/v850/constraints.md: New file.
10892         * config/v850/v850.md: Include it.
10893         * config/v850/predicates.md (reg_or_0_operand): Use
10894         satisfies_constraint_G.
10895         (special_symbolref_operand): Use satisfies_constraint_K.
10896         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10897         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10898         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10899         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10900         (EXTRA_CONSTRAINT): Delete.
10901         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10902         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10903         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10904
10905 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10906
10907         PR target/47696
10908         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10909         description.
10910
10911 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10912
10913         * config/mcore/constraints.md: New file.
10914         * config/mcore/mcore.md: Include it.
10915         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10916         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10917         (REG_CLASS_FROM_LETTER): Delete.
10918         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10919         insn_const_int_ok_for_constraint.
10920         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10921         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10922         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10923         (EXTRA_CONSTRAINT): Delete.
10924
10925 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10926
10927         PR ada/41929
10928         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10929         (IS_SIGHANDLER): Define.
10930         (sparc64_is_sighandler): New function, split off from
10931         sparc64_fallback_frame_state.
10932         (sparc_is_sighandler): New function, split off from
10933         sparc_fallback_frame_state.
10934         (sparc64_fallback_frame_state): Merge with ...
10935         (sparc_fallback_frame_state): ... this into ...
10936         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10937         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10938         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10939         stack instead of hardcoded offsets.
10940
10941 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10942
10943         PR target/45808
10944         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10945
10946 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10947
10948         * configure: Regenerate.
10949
10950 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10951
10952         PR driver/45731
10953         * gcc.c (asm_options): Correct spec matching --target-help.
10954
10955 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10956
10957         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10958         to gimple call error.
10959
10960 2011-02-12  Mike Stump  <mikestump@comcast.net>
10961
10962         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10963         comments in backslash regions.
10964
10965 2011-02-12  Mike Stump  <mikestump@comcast.net>
10966             Jakub Jelinek  <jakub@redhat.com>
10967             Iain Sandoe  <iains@gcc.gnu.org>
10968
10969         PR target/47324
10970         * dwarf2out.c (output_cfa_loc): When required, apply the
10971         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10972         (output_loc_sequence): Likewise.
10973         (output_loc_operands_raw): Likewise.
10974         (output_loc_sequence_raw): Likewise.
10975         (output_cfa_loc): Likewise.
10976         (output_loc_list): Suppress register number adjustment when
10977         calling output_loc_sequence()
10978         (output_die): Likewise.
10979
10980 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10981
10982         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10983         Remove macros.
10984         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10985         xtensa_memory_move_cost): New functions.
10986         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10987
10988 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10989
10990         PR lto/47225
10991         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10992         in the current directory.
10993         * configure: Rebuilt.
10994
10995 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10996
10997         * config/darwin.c (darwin_override_options): Add a hunk missed
10998         from the commit of r168571.  Trim comment line lengths and
10999         correct indents of the preceding block.
11000
11001 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11002
11003         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11004         the switch.
11005
11006 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11007
11008         * common.opt (nostartfiles): New Driver option.
11009
11010 2011-02-11  Xinliang David Li  <davidxl@google.com>
11011
11012         PR tree-optimization/47707
11013         * tree-chrec.c (convert_affine_scev): Keep type precision.
11014
11015 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11016
11017         PR tree-optimization/47420
11018         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11019
11020 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11021
11022         PR rtl-optimization/47614
11023         * rtl.h (check_for_inc_dec): Declare.
11024         * dse.c (check_for_inc_dec): Externalize...
11025         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11026         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11027
11028 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11029
11030         PR driver/47678
11031         * gcc.c (main): Do not compile inputs if there were errors in
11032         option handling.
11033         * opts-common.c (read_cmdline_option): Check for wrong language
11034         after other error checks.
11035
11036 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11037
11038         * cgraph.c: Fix comment typos.
11039         * cgraph.h: Likewise.
11040         * cgraphunit.c: Likewise.
11041         * ipa-cp.c: Likewise.
11042         * ipa-inline.c: Likewise.
11043         * ipa-prop.c: Likewise.
11044         * ipa-pure-const.c: Likewise.
11045         * ipa-ref.c: Likewise.
11046         * ipa-reference.c: Likewise.
11047
11048 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11049
11050         PR debug/47684
11051         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11052
11053 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11054
11055         PR testsuite/47400
11056         * doc/sourcebuild.texi (Require Support): Document
11057         dg-require-ascii-locale.
11058
11059 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11060
11061         * doc/lto.texi (Write summary): Fix missing parentheses.
11062
11063 2011-02-10  DJ Delorie  <dj@redhat.com>
11064
11065         * config/m32c/m32c.c (m32c_option_override): Disable
11066         -fcombine-stack-adjustments until flag value tracking and compare
11067         optimization can be rewritten.
11068
11069 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11070
11071         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11072         PROCESSOR_POWER7.
11073         (PROCESSOR_DEFAULT64): Likewise.
11074
11075 2011-02-10  Richard Henderson  <rth@redhat.com>
11076
11077         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11078         change from 2011-02-03.
11079         * config/rx/rx.c (flags_from_code): Likewise.
11080         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11081         is valid, n/pz otherwise.
11082         (rx_select_cc_mode): Return CCmode if Y is not zero.
11083
11084 2011-02-10  Richard Guenther  <rguenther@suse.de>
11085
11086         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11087
11088 2011-02-10  Richard Guenther  <rguenther@suse.de>
11089
11090         PR tree-optimization/47677
11091         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11092
11093 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11094
11095         PR target/47665
11096         * combine.c (make_compound_operation): Only change shifts into
11097         multiplication for SCALAR_INT_MODE_P.
11098
11099 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11100
11101         PR testsuite/47622
11102         Revert
11103         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11104         PR debug/42631
11105         * web.c (entry_register): Don't clobber the number of the
11106         first uninitialized reference in used[].
11107
11108 2011-02-09  Richard Guenther  <rguenther@suse.de>
11109
11110         PR tree-optimization/47664
11111         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11112         all edges again.
11113
11114 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11115
11116         PR target/46481
11117         PR target/47032
11118         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11119         PROCESSOR_POWER7.
11120         (PROCESSOR_DEFAULT64): Same.
11121         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11122
11123 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11124
11125         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11126
11127 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11128
11129         PR middle-end/45505
11130         * tree-sra.c (struct access): New flags grp_scalar_read and
11131         grp_scalar_write.  Changed description of assignment read and write
11132         flags.
11133         (dump_access): Dump new flags, reorder all of them.
11134         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11135         to detect multiple scalar reads.
11136         (analyze_access_subtree): Use the new scalar read write flags instead
11137         of the old flags.  Adjusted comments.
11138
11139 2011-02-08  DJ Delorie  <dj@redhat.com>
11140
11141         PR target/47548
11142         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11143         patterns.
11144
11145 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11146
11147         * config/m68k/uclinux.opt: New.
11148         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11149
11150 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11151
11152         * config/cris/elf.opt (sim): New Driver option.
11153
11154 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11155
11156         * config/xtensa/elf.opt: New.
11157         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11158
11159 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11160
11161         * config/vax/elf.opt: New.
11162         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11163
11164 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11165
11166         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11167
11168 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11169
11170         * config/gnu-user.opt: New.
11171         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11172         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11173         *-*-uclinux*): Use gnu-user.opt.
11174
11175 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11176
11177         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11178         * config/i386/gnu.h (CPP_SPEC): Likewise.
11179
11180 2011-02-08  Ian Lance Taylor  <iant@google.com>
11181
11182         * common.opt (fcx-limited-range): Add SetByCombined flag.
11183         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11184         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11185         (fassociative-math, freciprocal-math): Likewise.
11186         (funsafe-math-optimizations): Likewise.
11187         * opth-gen.awk: Handle SetByCombined.
11188         * optc-gen.awk: Likewise.
11189         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11190         (set_unsafe_math_optimizations_flags): Likewise.
11191         * doc/options.texi (Option properties): Document SetByCombined.
11192
11193 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11194
11195         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11196         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11197         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11198         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11199         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11200
11201 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11202
11203         PR tree-optimization/46834
11204         PR tree-optimization/46994
11205         PR tree-optimization/46995
11206         * graphite-sese-to-poly.c (used_outside_reduction): New.
11207         (detect_commutative_reduction): Call used_outside_reduction.
11208         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11209         translate_scalar_reduction_to_array only when at least one
11210         loop-phi/close-phi tuple has been detected.
11211
11212 2011-02-08  Richard Guenther  <rguenther@suse.de>
11213
11214         PR middle-end/47639
11215         * tree-vect-generic.c (expand_vector_operations_1): Update
11216         stmts here ...
11217         (expand_vector_operations): ... not here.  Cleanup EH info
11218         and the CFG if required.
11219
11220 2011-02-08  Richard Guenther  <rguenther@suse.de>
11221
11222         PR tree-optimization/47641
11223         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11224         require type compatibility.
11225
11226 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11227
11228         * gimple-low.c (lower_function_body): Don't remove the location of
11229         the return statement here.
11230         (lower_gimple_return): Do it here instead but only if the return
11231         statement is actually used twice.
11232
11233 2011-02-08  Richard Guenther  <rguenther@suse.de>
11234
11235         PR tree-optimization/47632
11236         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11237         unused up_to_stmt parameter, return whether cfg-cleanup is
11238         necessary, remove EH info properly.
11239         (forward_propagate_into_gimple_cond): Adjust caller.
11240         (forward_propagate_into_cond): Likewise.
11241         (forward_propagate_comparison): Likewise.
11242         (tree_ssa_forward_propagate_single_use_vars): Make
11243         forward_propagate_comparison case similar to the two others.
11244
11245 2011-02-08  Nick Clifton  <nickc@redhat.com>
11246
11247         * config/mn10300/mn10300.opt (mliw): New command line option.
11248         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11249         (liw_bundling): New automaton.
11250         (liw): New attribute.
11251         (liw_op): New attribute.
11252         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11253         (movsi_internal): Add LIW attributes.
11254         (andsi3): Likewise.
11255         (iorsi3): Likewise.
11256         (xorsi3): Likewise.
11257         (addsi3): Separate register and immediate alternatives.
11258         Add LIW attributes.
11259         (subsi3): Likewise.
11260         (cmpsi): Likewise.
11261         (aslsi3): Likewise.
11262         (lshrsi3): Likewise.
11263         (ashrsi3): Likewise.
11264         (liw): New pattern.
11265         * config/mn10300/mn10300.c (liw_op_names): New
11266         (mn10300_print_operand): Handle 'W' operand descriptor.
11267         (extract_bundle): New function.
11268         (check_liw_constraints): New function.
11269         (liw_candidate): New function.
11270         (mn10300_bundle_liw): New function.
11271         (mn10300_reorg): New function.
11272         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11273         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11274         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11275         __LIW__ or __NO_LIW__.
11276         * doc/invoke.texi: Describe the -mliw command line option.
11277
11278 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11279
11280         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11281         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11282         pthread_mutex_unlock): Remove.
11283         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11284         * config/pa/t-pa64: Likewise.
11285         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11286         shared libc if not linking against libpthread.
11287         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11288
11289 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11290
11291         PR target/47558
11292         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11293         on 10.6 and later to ensure that we always use the unwinder from
11294         the system.  Only add -no_compact_unwind when tarteting darwin
11295         10.6 or later.
11296
11297 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11298
11299         PR target/46997
11300         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11301         (vec_interleave_lowv2sf): Ditto.
11302         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11303         (vec_extract_oddv2sf): Ditto.
11304
11305 2011-02-07  Mike Stump  <mikestump@comcast.net>
11306
11307         PR target/42333
11308         Add __ieee_divdc3 entry point.
11309         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11310         entry point.
11311         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11312         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11313         * config/darwin.c (darwin_rename_builtins): Add.
11314         * config/darwin-protos.h (darwin_rename_builtins): Add.
11315
11316 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11317
11318         PR target/47636
11319         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11320         for the condition.
11321
11322 2011-02-07  Mike Stump  <mikestump@comcast.net>
11323
11324         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11325
11326 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11327
11328         PR target/47534
11329         * config/avr/libgcc.S (exit): Move .endfunc
11330
11331 2011-02-07  Richard Guenther  <rguenther@suse.de>
11332
11333         PR tree-optimization/47615
11334         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11335         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11336         (run_scc_vn): Initialize it.
11337         (visit_reference_op_load): Use it.
11338         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11339
11340 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11341
11342         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11343         DImode trapping arithmetic libfuncs.
11344
11345 2011-02-07  Richard Guenther  <rguenther@suse.de>
11346
11347         PR tree-optimization/47621
11348         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11349         two duplicates ...
11350         (execute_update_addresses_taken): ... here.  Make it more
11351         conservative in what we accept.
11352
11353 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11354
11355         * config/sparc/freebsd.h (ASM_SPEC): Define.
11356         * config/sparc/vxworks.h (ASM_SPEC): Define.
11357
11358 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11359
11360         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11361
11362 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11363
11364         * doc/invoke.texi: Remove reference to compiler internals from
11365         user documentation.
11366
11367         * reg-notes.def: Remove REG_VALUE_PROFILE.
11368         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11369
11370 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11371
11372         PR middle-end/47610
11373         * varasm.c (default_section_type_flags): If decl is NULL,
11374         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11375
11376 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11377
11378         PR debug/42631
11379         * web.c (entry_register): Don't clobber the number of the
11380         first uninitialized reference in used[].
11381
11382 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11383
11384         PR tree-optimization/46194
11385         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11386         (build_classic_dist_vector_1): Do not represent classic distance
11387         vectors when the access functions are variating in different loops.
11388
11389 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11390
11391         * config/mips/iris6.opt: New.
11392         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11393
11394 2011-02-04  Richard Henderson  <rth@redhat.com>
11395             Steve Ellcey  <sje@cup.hp.com>
11396
11397         PR target/46997
11398         * config/ia64/predicates.md (mux1_brcst_element): New.
11399         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11400         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11401         (ia64_unpack_sign): New.
11402         (ia64_expand_unpack): Rewrite using new routines.
11403         (ia64_expand_widen_sum): Ditto.
11404         (ia64_expand_dot_prod_v8qi): Ditto.
11405         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11406         routines, add endian check.
11407         (pmpy2_even): Rename from pmpy2_r, add endian check.
11408         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11409         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11410         (vec_widen_smult_hi_v4hi): Ditto.
11411         (vec_widen_umult_lo_v4hi): Ditto.
11412         (vec_widen_umult_hi_v4hi): Ditto.
11413         (mulv2si3): Change endian checks.
11414         (sdot_prodv4hi): Rewrite with new calls.
11415         (udot_prodv4hi): New.
11416         (vec_pack_ssat_v4hi): Add endian check.
11417         (vec_pack_usat_v4hi): Ditto.
11418         (vec_pack_ssat_v2si): Ditto.
11419         (max1_even): Rename from max1_r, add endian check.
11420         (max1_odd): Rename from max1_l, add endian check.
11421         (*mux1_rev): Format change.
11422         (*mux1_mix): Ditto.
11423         (*mux1_shuf): Ditto.
11424         (*mux1_alt): Ditto.
11425         (*mux1_brcst_v8qi): Use new predicate.
11426         (vec_extract_evenv8qi): Remove endian check.
11427         (vec_extract_oddv8qi): Ditto.
11428         (vec_interleave_lowv4hi): Format change.
11429         (vec_interleave_highv4hi): Ditto.
11430         (mix2_even): Rename from mix2_r, add endian check.
11431         (mix2_odd): Rename from mux2_l, add endian check.
11432         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11433         (vec_extract_evenodd_helper): Format change.
11434         (vec_extract_evenv4hi): Remove endian check.
11435         (vec_extract_oddv4hi): Remove endian check.
11436         (vec_interleave_lowv2si): Format change.
11437         (vec_interleave_highv2si): Format change.
11438         (vec_initv2si): Remove endian check.
11439         (vecinit_v2si): Add endian check.
11440         (reduc_splus_v2sf): Add endian check.
11441         (reduc_smax_v2sf): Ditto.
11442         (reduc_smin_v2sf): Ditto.
11443         (vec_initv2sf): Remove endian check.
11444         (fpack): Add endian check.
11445         (fswap): Add endian check.
11446         (vec_interleave_highv2sf): Add endian check.
11447         (vec_interleave_lowv2sf): Add endian check.
11448         (fmix_lr): Add endian check.
11449         (vec_setv2sf): Format change.
11450         (*vec_extractv2sf_0_be): Use shift to extract operand.
11451         (*vec_extractv2sf_1_be): New.
11452         (vec_pack_trunc_v4hi): Add endian check.
11453         (vec_pack_trunc_v2si): Format change.
11454
11455 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11456
11457         PR inline-asm/23200
11458         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11459         do bb, locus and block comparison and disallow loads if it is not set.
11460         (stmt_is_replaceable_p): New function.
11461         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11462         callers.
11463         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11464         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11465         SSA_NAME_DEF_STMT.
11466         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11467
11468 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11469
11470         * config/rs6000/xilinx.opt: New.
11471         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11472
11473 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11474
11475         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11476
11477 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11478
11479         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11480         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11481         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11482         secondary_reload_info, xtensa_secondary_reload): Remove.
11483         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11484         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11485         (xtensa_preferred_reload_class): Make static. Change return and
11486         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11487         Use CONST_DOUBLE_P predicate.
11488         (xtensa_preferred_output_reload_class): New function.
11489         (xtensa_secondary_reload): Make static.
11490
11491 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11492
11493         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11494         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11495         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11496
11497 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11498
11499         PR middle-end/31490
11500         * output.h (SECTION_RELRO): Define.
11501         (SECTION_MACH_DEP): Adjust.
11502         (get_variable_section): New prototype.
11503         * varpool.c (varpool_finalize_named_section_flags): New function.
11504         (varpool_assemble_pending_decls): Call it.
11505         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11506         * cgraphunit.c (cgraph_output_in_order): Call
11507         varpool_finalize_named_section_flags.
11508         * varasm.c (get_section): Allow section flags conflicts between
11509         relro and read-only sections if the section hasn't been declared yet.
11510         Set SECTION_OVERRIDE after diagnosing section type conflict.
11511         (get_variable_section): No longer static.
11512         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11513         readonly sections that need relocations.
11514         (decl_readonly_section_1): New function.
11515         (decl_readonly_section): Use it.
11516
11517         Revert:
11518         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11519                     Steve Ellcey  <sje@cup.hp.com>
11520
11521         PR middle-end/31490
11522         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11523         if section attribute used.
11524
11525 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11526
11527         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11528         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11529         (darwin_init_sections): Remove assertion.
11530
11531 2011-02-03  Nick Clifton  <nickc@redhat.com>
11532
11533         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11534         lt and ge.
11535         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11536         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11537         instead of "n" and "pz".
11538         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11539         CC_FLAG_S.
11540
11541 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11542
11543         PR target/47312
11544         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11545         fma, expand FMA_EXPR as fma{,f,l} call.
11546
11547         PR lto/47274
11548         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11549         copy them into a unsigned char variable and pass address of it to
11550         lto_output_data_stream.
11551
11552         PR target/47564
11553         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11554         around backend_init_target and lang_dependent_init_target calls.
11555         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11556         (verify_cgraph_node): Don't call set_cfun here.  Use
11557         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11558         Set error_found for incorrectly represented calls to thunks.
11559
11560 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11561
11562         PR debug/43092
11563         PR rtl-optimization/43494
11564         * rtl.h (for_each_inc_dec_fn): New type.
11565         (for_each_inc_dec): Declare.
11566         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11567         (for_each_inc_dec_find_inc_dec): New fn.
11568         (for_each_inc_dec_find_mem): New fn.
11569         (for_each_inc_dec): New fn.
11570         * dse.c (struct insn_size): Remove.
11571         (replace_inc_dec, replace_inc_dec_mem): Remove.
11572         (emit_inc_dec_insn_before): New fn.
11573         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11574         (canon_address): Pass mem modes to cselib_lookup.
11575         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11576         (cselib_lookup_from_insn): Likewise.
11577         (cselib_subst_to_values): Likewise.
11578         * cselib.c (find_slot_memmode): New var.
11579         (cselib_find_slot): New fn.  Use it instead of
11580         htab_find_slot_with_hash everywhere.
11581         (entry_and_rtx_equal_p): Use find_slot_memmode.
11582         (autoinc_split): New fn.
11583         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11584         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11585         Deal with autoinc.  Special-case recursion into MEMs.
11586         (cselib_hash_rtx): Likewise.
11587         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11588         address and MEM modes.
11589         (cselib_subst_to_values): Add memmode, pass it on.
11590         Deal with autoinc.
11591         (cselib_lookup): Add memmode argument, pass it on.
11592         (cselib_lookup_from_insn): Add memmode.
11593         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11594         (struct cselib_record_autoinc_data): New.
11595         (cselib_record_autoinc_cb): New fn.
11596         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11597         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11598         (cselib_process_insn): ... here.
11599         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11600         to cselib_lookup.
11601         (add_uses): Likewise, also to cselib_subst_to_values.
11602         (add_stores): Likewise.
11603         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11604         cselib_subst_to_values.
11605         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11606         * gcse.c (do_local_cprop): Adjusted.
11607         * postreload.c (reload_cse_simplify_set): Adjusted.
11608         (reload_cse_simplify_operands): Adjusted.
11609         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11610
11611 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11612
11613         PR tree-optimization/45122
11614         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11615         unsafe assumptions when there's more than one loop exit.
11616
11617 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11618
11619         PR target/47272
11620         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11621         Document using vector double with the load/store builtins, and
11622         that the load/store builtins always use Altivec instructions.
11623
11624         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11625         to use altivec memory instructions, even on VSX.
11626         (vector_altivec_store_<mode>): Ditto.
11627
11628         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11629         function.
11630
11631         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11632         V2DF, V2DI support to load/store overloaded builtins.
11633
11634         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11635         altivec load/store builtins for V2DF/V2DI types.
11636
11637         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11638         set avoid indexed addresses on power6 if -maltivec.
11639         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11640         vector_altivec_load/vector_altivec_store builtins.
11641         (altivec_expand_st_builtin): Ditto.
11642         (altivec_expand_builtin): Add VSX memory builtins.
11643         (rs6000_init_builtins): Add V2DI types to internal types.
11644         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11645         load/store builtins.
11646         (rs6000_address_for_altivec): Insure memory address is appropriate
11647         for Altivec.
11648
11649         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11650         vec_vsx_ld and vec_vsx_st.
11651         (vsx_store_<mode>): Ditto.
11652
11653         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11654         variables to hold long long types for VSX vector memory builtins.
11655         (RS6000_BTI_unsigned_long_long): Ditto.
11656         (long_long_integer_type_internal_node): Ditti.
11657         (long_long_unsigned_type_internal_node): Ditti.
11658
11659         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11660         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11661         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11662
11663         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11664         short cuts.
11665         (vec_vsx_st): Ditto.
11666
11667 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * config/pa/pa-hpux10.opt: New.
11670         * config/hpux11.opt (pthread): New Driver option.
11671         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11672         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11673
11674 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11675
11676         * config/ia64/vms.opt: New.
11677         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11678
11679 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11680
11681         PR target/47580
11682         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11683         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11684         generator functions.
11685         (vsx_floatuns<VSi><mode>2): Ditto.
11686         (vsx_fix_trunc<mode><VSi>2): Ditto.
11687         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11688
11689 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11690
11691         * config/i386/djgpp.opt (posix): New Driver option.
11692
11693 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11694
11695         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11696         Move to the unsupported targets list.
11697
11698 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11699
11700         PR rtl-optimization/47525
11701         * df-scan.c: Update copyright years.
11702         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11703         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11704
11705 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11706
11707         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11708         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11709         (ASM_OUTPUT_ASCII): Remove.
11710         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11711
11712 2011-02-02  Jeff Law  <law@redhat.com>
11713
11714         PR middle-end/47543
11715         * reload.c (find_reloads_address): Handle reg+d address where both
11716         components are invalid by reloading the entire address.
11717
11718 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11719             Richard Guenther  <rguenther@suse.de>
11720
11721         PR tree-optimization/40979
11722         PR bootstrap/47044
11723         * passes.c (init_optimization_passes): After LIM call copy_prop
11724         and DCE to clean up.
11725         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11726
11727 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11728
11729         PR tree-optimization/47576
11730         PR tree-optimization/47555
11731         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11732         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11733         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11734         * tree-scalar-evolution.c (follow_ssa_edge): Use
11735         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11736
11737 2011-02-02  Richard Guenther  <rguenther@suse.de>
11738
11739         PR tree-optimization/47566
11740         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11741
11742 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11743
11744         PR debug/47106
11745         PR debug/47402
11746         * tree-inline.c (declare_return_variable): Remove unused caller
11747         variable.
11748
11749         PR debug/47106
11750         PR debug/47402
11751         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11752         * cfgexpand.c (account_used_vars_for_block): Use them.
11753         * tree-nrv.c (tree_nrv): Likewise.
11754         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11755         (dump_scope_block): Likewise.
11756         (remove_unused_locals): Likewise.
11757
11758         PR debug/47106
11759         PR debug/47402
11760         * tree-inline.c (declare_return_variable): Add result decl to
11761         local decls only once.
11762         * gimple-low.c (record_vars_into): Mark newly-created variables
11763         as referenced.
11764
11765 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11766
11767         PR debug/47498
11768         PR debug/47501
11769         PR debug/45136
11770         PR debug/45130
11771         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11772         debug insns.
11773         (no_real_insns_p, schedule_block, set_priorities): Drop special
11774         treatment of boundary debug insns.
11775         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11776         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11777         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11778         (BOUNDARY_DEBUG_INSN_P): Likewise.
11779         (SCHEDULE_DEBUG_INSN_P): Likewise.
11780         * sched-rgn.c (init_ready_list): Drop special treatment of
11781         boundary debug insns.
11782         * final.c (rest_of_clean_state): Clear notes' BB.
11783
11784 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * config/openbsd.opt (assert=): New Driver option.
11787
11788 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11789
11790         * config/i386/nto.opt: New.
11791         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11792
11793 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11794
11795         * config/i386/netware.opt: New.
11796         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11797
11798 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11799
11800         * config/interix.opt (posix): New Driver option.
11801
11802 2011-02-01  DJ Delorie  <dj@redhat.com>
11803
11804         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11805
11806         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11807         class for A0/A1.
11808
11809 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11810
11811         PR tree-optimization/47561
11812         * toplev.c (process_options): Print the Graphite flags.  Add
11813         flag_loop_flatten to the list of options requiring Graphite.
11814
11815 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11816
11817         * config/i386/cygming.opt (posix): New Driver option.
11818
11819 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11820
11821         * config/arm/vxworks.opt: New.
11822         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11823
11824 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11825
11826         * config/alpha/elf.opt: New.
11827         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11828         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11829
11830 2011-02-01  Richard Guenther  <rguenther@suse.de>
11831
11832         PR tree-optimization/47559
11833         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11834         store-motion on references that can throw.
11835
11836 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11837
11838         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11839         * tree-pass.h (TDF_CSELIB): New macro.
11840         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11841         cselib_lookup): Check for it rather than for TDF_DETAILS.
11842
11843 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11844
11845         PR driver/47547
11846         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11847         is HOST_BIT_BUCKET.
11848
11849         * opts.c (finish_options): Don't add x_aux_base_name if it is
11850         HOST_BIT_BUCKET.
11851
11852 2011-02-01  Richard Guenther  <rguenther@suse.de>
11853
11854         PR tree-optimization/47555
11855         Revert
11856         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11857
11858         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11859
11860 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11861
11862         PR gcc/46692
11863         * config/lm32/t-lm32: Add multilib for all CPU options.
11864
11865 2011-02-01  Richard Guenther  <rguenther@suse.de>
11866
11867         PR tree-optimization/47541
11868         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11869         sure to have a field at offset zero.
11870
11871 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11872
11873         * config/arc/arc.opt (EB, EL): New Driver options.
11874
11875 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11876
11877         * config/alpha/osf5.opt: New.
11878         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11879
11880 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11881
11882         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11883
11884 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11885
11886         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11887         -floop-interchange.
11888         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11889         is an alias of -floop-interchange and that it requires the
11890         Graphite infrastructure.
11891         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11892         flag_loop_interchange based on the value of flag_tree_loop_linear.
11893
11894 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11895             Richard Guenther  <rguenther@suse.de>
11896
11897         PR tree-optimization/47538
11898         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11899         type instead of r1type, except for comparisons.  For right
11900         shifts and comparisons punt if there are mismatches in
11901         sizetype vs. non-sizetype types.
11902
11903 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11904
11905         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11906         avx_runtime.
11907
11908 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11909
11910         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11911         version number.
11912         * configure: Regenerate.
11913
11914 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11915
11916         * configure.ac (gcc_cv_ld_static_option): Define.
11917         (gcc_cv_ld_dynamic_option): Define.
11918         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11919         instead.
11920         (HAVE_LD_STATIC_DYNAMIC): Update message.
11921         (LD_STATIC_OPTION): Define.
11922         (LD_DYNAMIC_OPTION): Define.
11923         * configure: Regenerate.
11924         * config.in: Regenerate.
11925         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11926         HAVE_LD_STATIC_DYNAMIC]: Use them.
11927
11928 2011-01-31  Nick Clifton  <nickc@redhat.com>
11929
11930         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11931         registers inside interrupt handlers if the handler is not a leaf
11932         function.
11933
11934 2011-01-31  Nick Clifton  <nickc@redhat.com>
11935
11936         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11937         reg_renumber returning an INVALID_REGNUM.
11938
11939 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11940
11941         PR libgcj/44341
11942         * doc/install.texi: Document host options discarded when cross
11943         configuring target libraries.
11944
11945 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11946
11947         Reverted:
11948         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11949         PR debug/45136
11950         PR debug/45130
11951         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11952         debug insns.
11953         (no_real_insns_p, schedule_block, set_priorities): Drop special
11954         treatment of boundary debug insns.
11955         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11956         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11957         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11958         (BOUNDARY_DEBUG_INSN_P): Likewise.
11959         (SCHEDULE_DEBUG_INSN_P): Likewise.
11960         * sched-rgn.c (init_ready_list): Drop special treatment of
11961         boundary debug insns.
11962         * final.c (rest_of_clean-state): Clear notes' BB.
11963
11964 2011-01-31  Alan Modra  <amodra@gmail.com>
11965
11966         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11967         toc relative expressions as we do in print_operand_address.
11968
11969 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11970
11971         * doc/extend.texi: Follow spelling conventions.
11972         * doc/invoke.texi: Fix a typo.
11973
11974 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11975
11976         * config/hpux11.opt: New.
11977         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11978         ia64*-*-hpux*): Use hpux11.opt.
11979
11980 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11981
11982         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11983         to tmake_file.
11984
11985 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11986
11987         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11988         support sites.
11989
11990 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11991
11992         * doc/install.texi (Binaries): Remove outdated reference for
11993         Motorola 68HC11/68HC12 downloads.
11994
11995 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11996
11997         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11998         Drepper's paper.
11999
12000 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12001
12002         PR bootstrap/47147
12003         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12004         used by NetBSD.
12005
12006 2011-01-28  Ahmad Sharif  <asharif@google.com>
12007
12008         * value-prof.c (check_counter): Corrected error message.
12009
12010 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12011
12012         * config/arm/arm.c (arm_legitimize_reload_address): New.
12013         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12014         arm_legitimize_reload_address.
12015         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12016
12017 2011-01-28  Ian Lance Taylor  <iant@google.com>
12018
12019         * godump.c (go_define): Ignore macros whose definitions include
12020         two adjacent operands.
12021
12022 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12023
12024         PR target/42894
12025         * varasm.c (force_const_mem): Store copy of x in desc->constant
12026         instead of x itself.
12027         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12028         itself into REG_EQUAL note.
12029
12030 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12031
12032         * config/freebsd.opt (posix, rdynamic): New Driver options.
12033
12034 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12035
12036         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12037         -Bstatic/-Bdynamic.
12038         * configure: Regenerate.
12039
12040 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12041
12042         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12043         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12044
12045 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12046
12047         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12048         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12049         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12050         (s390_preferred_reload_class): Make static. Change return and
12051         'rclass' argument type to reg_class_t.
12052
12053 2011-01-27  Jan Hubicka  <jh@suse.cz>
12054
12055         PR middle-end/46949
12056         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12057         (process_function_and_variable_attributes): Check defined weakrefs.
12058
12059 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12060
12061         PR tree-optimization/47228
12062         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12063         build_ref_for_offset.
12064
12065 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12066
12067         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12068
12069 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12070
12071         PR rtl-optimization/46856
12072         * postreload.c (reload_combine_recognize_const_pattern): Do not
12073         separate cc0 setter and user on cc0 targets.
12074
12075 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12076
12077         PR c/43082
12078         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12079         passed a VOID_TYPE expression, immediately emit an error and
12080         return error_mark_node.
12081
12082 2011-01-26  Jeff Law  <law@redhat.com>
12083
12084         PR rtl-optimization/47464
12085         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12086         rather than may_trap_p as needed.
12087
12088 2011-01-26  DJ Delorie  <dj@redhat.com>
12089
12090         PR rtl-optimization/46878
12091         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12092         setter/user dependency as well.
12093
12094 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12095
12096         PR rtl-optimization/44469
12097         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12098         after removing trivially dead basic blocks.
12099
12100 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12101
12102         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12103         * config/frv/frv.h (LINK_SPEC): Likewise.
12104         * config/i386/netware.h (LINK_SPEC): Likewise.
12105         * config/m68k/linux.h (ASM_SPEC): Likewise.
12106         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12107         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12108         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12109         * config/sparc/linux.h (ASM_SPEC): Likewise.
12110         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12111         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12112
12113 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12114
12115         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12116         * config/frv/frv.h (ASM_SPEC): Likewise.
12117         * config/m68k/linux.h (ASM_SPEC): Likewise.
12118         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12119         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12120         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12121         * config/sparc/linux.h (ASM_SPEC): Likewise.
12122         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12123         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12124
12125 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12126
12127         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12128         * config/frv/frv.h (LINK_SPEC): Likewise.
12129         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12130
12131 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12132
12133         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12134         * config/frv/frv.h (ASM_SPEC): Likewise.
12135         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12136         * config/m68k/linux.h (ASM_SPEC): Likewise.
12137         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12138         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12139         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12140         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12141         * config/sparc/linux.h (ASM_SPEC): Likewise.
12142         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12143         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12144         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12145
12146 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12147
12148         PR target/46997
12149         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12150         (*mux2): Ditto.
12151         (vec_extract_evenodd_help): Ditto.
12152         (vec_extract_evenv4hi): Ditto.
12153         (vec_extract_oddv4hi): Ditto.
12154         (vec_interleave_lowv2si): Ditto.
12155         (vec_interleave_highv2si): Ditto.
12156         (vec_extract_evenv2si): Ditto.
12157         (vec_extract_oddv2si: Ditto.
12158         (vec_pack_trunc_v2si): Ditto.
12159
12160 2011-01-22  Jan Hubicka  <jh@suse.cz>
12161
12162         PR target/47237
12163         * cgraph.h (cgraph_local_info): New field can_change_signature.
12164         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12165         signature can change.
12166         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12167         can change.
12168         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12169         (cgraph_function_versioning): We can not change signature of functions
12170         that don't allow that.
12171         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12172         (lto_input_node): Likewise.
12173         * ipa-inline.c (compute_inline_parameters): Compute
12174         local.can_change_signature.
12175         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12176         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12177         functions that can not change signature.
12178         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12179         init_cumulative_args): Do not use local calling conventions
12180         for functions that can not change signature.
12181
12182 2011-01-22  Jan Hubicka  <jh@suse.cz>
12183
12184         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12185
12186 2011-01-26  Richard Guenther  <rguenther@suse.de>
12187
12188         PR tree-optimization/47190
12189         * cgraphunit.c (process_common_attributes): New function.
12190         (process_function_and_variable_attributes): Use it.
12191
12192 2011-01-26  Richard Guenther  <rguenther@suse.de>
12193
12194         PR lto/47423
12195         * cgraphbuild.c (record_eh_tables): Record reference to personality
12196         function.
12197
12198 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12199
12200         PR debug/45454
12201         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12202         non-debug insns from moving up.
12203
12204 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12205
12206         PR target/40125
12207         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12208         t-dlldir{,-x} fragment for build and add it to tmake_file.
12209         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12210         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12211         * config/i386/t-dlldir: New file.
12212         (SHLIB_DLLDIR): Define.
12213         * config/i386/t-dlldir-x: New file.
12214         (SHLIB_DLLDIR): Define.
12215         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12216         (SHLIB_INSTALL): Use it.
12217
12218 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12219
12220         PR target/47246
12221         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12222         lower bound of the allowed Thumb-2 coprocessor load/store
12223         index range to -256. Add explaining comment.
12224
12225 2011-01-25  Ian Lance Taylor  <iant@google.com>
12226
12227         * godump.c (go_define): Improve lexing of macro expansion to only
12228         accept expressions which match Go spec.
12229
12230 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12231
12232         PR c++/43601
12233         * tree.c (handle_dll_attribute): Handle it.
12234         * doc/extend.texi (@item dllexport): Mention it.
12235         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12236
12237 2011-01-25  Ian Lance Taylor  <iant@google.com>
12238
12239         PR tree-optimization/26854
12240         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12241         (decl_jump_unsafe): Move higher in file, with no other change.
12242         (bind): Set has_jump_unsafe_decl if appropriate.
12243         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12244         (check_earlier_gotos): Likewise.
12245         (c_check_switch_jump_warnings): Likewise.
12246
12247 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12248
12249         * doc/invoke.texi (Warning Options): Add missing hyphen.
12250         (-fprofile-dir): Minor grammatical fixes.
12251         (-fbranch-probabilities): Likewise.
12252
12253 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12254
12255         PR debug/45136
12256         PR debug/45130
12257         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12258         debug insns.
12259         (no_real_insns_p, schedule_block, set_priorities): Drop special
12260         treatment of boundary debug insns.
12261         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12262         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12263         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12264         (BOUNDARY_DEBUG_INSN_P): Likewise.
12265         (SCHEDULE_DEBUG_INSN_P): Likewise.
12266         * sched-rgn.c (init_ready_list): Drop special treatment of
12267         boundary debug insns.
12268         * final.c (rest_of_clean-state): Clear notes' BB.
12269
12270 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12271
12272         * Makefile.in (LAMBDA_H): Removed.
12273         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12274         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12275         lambda-trans.o, and tree-loop-linear.o.
12276         (lto-symtab.o): Remove dependence on LAMBDA_H.
12277         (tree-loop-linear.o): Remove rule.
12278         (lambda-mat.o): Same.
12279         (lambda-trans.o): Same.
12280         (lambda-code.o): Same.
12281         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12282         (tree-vect-slp.o): Same.
12283         * hwint.h (gcd): Moved here.
12284         (least_common_multiple): Same.
12285         * lambda-code.c: Removed.
12286         * lambda-mat.c: Removed.
12287         * lambda-trans.c: Removed.
12288         * lambda.h: Removed.
12289         * tree-loop-linear.c: Removed.
12290         * lto-symtab.c: Do not include lambda.h.
12291         * omega.c (gcd): Removed.
12292         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12293         * tree-data-ref.c (print_lambda_vector): Moved here.
12294         (lambda_vector_copy): Same.
12295         (lambda_matrix_copy): Same.
12296         (lambda_matrix_id): Same.
12297         (lambda_vector_first_nz): Same.
12298         (lambda_matrix_row_add): Same.
12299         (lambda_matrix_row_exchange): Same.
12300         (lambda_vector_mult_const): Same.
12301         (lambda_vector_negate): Same.
12302         (lambda_matrix_row_negate): Same.
12303         (lambda_vector_equal): Same.
12304         (lambda_matrix_right_hermite): Same.
12305         * tree-data-ref.h: Do not include lambda.h.
12306         (lambda_vector): Moved here.
12307         (lambda_matrix): Same.
12308         (dependence_level): Same.
12309         (lambda_transform_legal_p): Removed declaration.
12310         (lambda_collect_parameters): Same.
12311         (lambda_compute_access_matrices): Same.
12312         (lambda_vector_gcd): Same.
12313         (lambda_vector_new): Same.
12314         (lambda_vector_clear): Same.
12315         (lambda_vector_lexico_pos): Same.
12316         (lambda_vector_zerop): Same.
12317         (lambda_matrix_new): Same.
12318         * tree-flow.h (least_common_multiple): Removed declaration.
12319         * tree-parloops.c (lambda_trans_matrix): Moved here.
12320         (LTM_MATRIX): Same.
12321         (LTM_ROWSIZE): Same.
12322         (LTM_COLSIZE): Same.
12323         (LTM_DENOMINATOR): Same.
12324         (lambda_trans_matrix_new): Same.
12325         (lambda_matrix_vector_mult): Same.
12326         (lambda_transform_legal_p): Same.
12327         * tree-pass.h (pass_linear_transform): Removed declaration.
12328         * tree-ssa-loop.c (tree_linear_transform): Removed.
12329         (gate_tree_linear_transform): Removed.
12330         (pass_linear_transform): Removed.
12331         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12332         flag_loop_interchange.
12333
12334 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12335
12336         PR tree-optimization/47265
12337         PR tree-optimization/47443
12338         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12339         if name still has some uses.
12340
12341 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12342
12343         PR tree-optimization/47382
12344         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12345         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12346
12347 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12348
12349         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12350         sjlj_except_unwind_info.
12351
12352 2011-01-25  Richard Guenther  <rguenther@suse.de>
12353
12354         PR tree-optimization/47426
12355         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12356         visible functions results escape.
12357
12358 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12359
12360         PR target/45701
12361         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12362         (arm_get_frame_offsets): Use it.
12363
12364 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12365             Jakub Jelinek  <jakub@redhat.com>
12366
12367         PR tree-optimization/47271
12368         * tree-if-conv.c (bb_postdominates_preds): New.
12369         (if_convertible_bb_p): Call bb_postdominates_preds.
12370         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12371         (predicate_scalar_phi): Call bb_postdominates_preds.
12372
12373 2011-01-25  Nick Clifton  <nickc@redhat.com>
12374
12375         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12376         * config/rx/rx.c (rx_function_value): Likewise.
12377         (rx_promote_function_mode): Likewise.
12378         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12379         in order to make it legitimate.
12380         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12381         make sure that the first operand is the same as the result register.
12382         (addsi3_unspec): Delete.
12383         (subdi3): Do not accept immediate operands.
12384         (subdi3_internal): Likewise.
12385
12386 2011-01-25  Jeff Law  <law@redhat.com>
12387
12388         PR rtl-optimization/37273
12389         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12390         handle them like argument loads from stack slots.  Do not double
12391         count memory for memory constants and argument loads from stack slots.
12392
12393 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12394
12395         PR tree-optimization/47427
12396         PR tree-optimization/47428
12397         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12398         coalesce if the new root var would be TREE_READONLY.
12399
12400 2011-01-25  Richard Guenther  <rguenther@suse.de>
12401
12402         PR middle-end/47414
12403         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12404         correct type for TBAA.
12405
12406 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12407
12408         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12409         (close_phi_written_to_memory): Call for_each_index with
12410         dr_indices_valid_in_loop.
12411
12412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12413
12414         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12415         when it is initialized.
12416
12417 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12418
12419         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12420         call to graphite_find_data_references_in_stmt.
12421         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12422         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12423         call to graphite_find_data_references_in_stmt.
12424         (analyze_drs_in_stmts): Same.
12425         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12426         in which the scalar analysis of indices is performed.
12427         (create_data_ref): Same.  Update call to dr_analyze_indices.
12428         (find_data_references_in_stmt): Update call to create_data_ref.
12429         (graphite_find_data_references_in_stmt): Same.
12430         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12431         declaration.
12432         (create_data_ref): Same.
12433         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12434         call to create_data_ref.
12435
12436 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12437
12438         * graphite-sese-to-poly.c (build_poly_scop): Move
12439         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12440
12441 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12442
12443         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12444         VAR_DECL, PARM_DECL, and RESULT_DECL.
12445
12446 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12447
12448         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12449         in a reduction PBB.
12450         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12451         that have already been marked as PBB_IS_REDUCTION.
12452
12453 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12454
12455         * graphite-scop-detection.c (same_close_phi_node): New.
12456         (remove_duplicate_close_phi): New.
12457         (make_close_phi_nodes_unique): New.
12458         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12459
12460 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12461
12462         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12463         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12464         of both data references to be the same.
12465
12466 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12467
12468         * graphite-dependences.c (build_lexicographical_constraint): Remove
12469         the gdim parameter.
12470         (build_lexicographical_constraint): Adjust call to
12471         ppl_powerset_is_empty.
12472         (dependence_polyhedron): Same.
12473         (graphite_legal_transform_dr): Same.
12474         (graphite_carried_dependence_level_k): Same.
12475         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12476         parameter.
12477         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12478
12479 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12480
12481         * graphite-sese-to-poly.c
12482         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12483         (close_phi_written_to_memory): New.
12484         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12485         and unshare_expr.
12486
12487 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12488
12489         * doc/install.texi: Update the expected version number of PPL to 0.11.
12490         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12491         #if PPL_VERSION_MINOR < 11.
12492
12493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12494
12495         * graphite-dependences.c: Include graphite-cloog-util.h.
12496         (new_poly_ddr): Inlined into dependence_polyhedron.
12497         (free_poly_ddr): Moved close by new_poly_ddr.
12498         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12499         Early return NULL when ppl_powerset_is_empty returns true.
12500         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12501         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12502         (graphite_legal_transform_dr): Call new_poly_ddr.
12503         (graphite_carried_dependence_level_k): Same.
12504         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12505         (dot_transformed_deps_stmt_1): Removed.
12506         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12507         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12508         (dot_deps_1): Call dot_deps_2.
12509         * Makefile.in (graphite-dependences.o): Add missing dependence on
12510         graphite-cloog-util.h.
12511
12512 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12513
12514         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12515         (build_lexicographical_constraint): Same.
12516         (dependence_polyhedron_1): Same.
12517         (graphite_legal_transform_dr): Same.
12518         (graphite_carried_dependence_level_k): Same.
12519         * graphite-ppl.c (ppl_powerset_is_empty): New.
12520         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12521         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12522
12523 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12524
12525         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12526         the "a followed by b" relation and document it.
12527
12528 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12529
12530         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12531         iteration when the bag of constraints is empty.
12532
12533 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12534
12535         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12536
12537 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12538
12539         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12540         nest and two loop depths as parameters.
12541         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12542         lst_perfect_nestify.
12543
12544 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12545
12546         * graphite-dependences.c (print_pddr): Call
12547         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12548
12549 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12550
12551         * graphite-ppl.c (debug_gmp_value): New.
12552         * graphite-ppl.h (debug_gmp_value): Declared.
12553
12554 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12555
12556         * doc/install.texi: Document availability of cloog-0.16.
12557
12558 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12559
12560         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12561         invalid postdominance info.
12562
12563 2011-01-24  Jan Hubicka  <jh@suse.cz>
12564
12565         PR c/21659
12566         * doc/extend.texi (weak pragma): Drop claim that it must
12567         appear before definition.
12568         * varasm.c (merge_weak, declare_weak): Only sanity check
12569         that DECL is not output at a time it is declared weak.
12570
12571 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12572
12573         * machmode.def: Fixed comments.
12574
12575 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12576
12577         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12578
12579 2011-01-24  Paul Koning  <ni1d@arrl.net>
12580
12581         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12582         WORDS_BIG_ENDIAN.
12583
12584 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12585
12586         PR target/46519
12587         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12588         (block_info): Add scanned and prev.
12589         (move_or_delete_vzeroupper_2): Return if the basic block
12590         has been scanned and the upper 128bit state is unchanged
12591         from the last scan.
12592         (move_or_delete_vzeroupper_1): Return true if the exit
12593         state is changed.
12594         (move_or_delete_vzeroupper): Visit basic blocks using the
12595         work-list based algorithm based on vt_find_locations in
12596         var-tracking.c.
12597
12598         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12599
12600 2011-01-24  Nick Clifton  <nickc@redhat.com>
12601
12602         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12603         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12604         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12605         then define __v850e1__.
12606         * doc/invoke.texi: Document -mv850es.
12607
12608 2011-01-24  Richard Henderson  <rth@redhat.com>
12609
12610         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12611         compound unordered comparisons.
12612         * config/rx/rx.c (rx_split_fp_compare): Remove.
12613         * config/rx/rx-protos.h: Update.
12614         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12615         (cbranchsf4): Don't call rx_split_fp_compare.
12616         (*cbranchsf4): Use rx_split_cbranch.
12617         (*cmpsf): Don't accept "i" constraint.
12618         (*conditional_branch): Only valid after reload.
12619         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12620
12621 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12622
12623         PR target/47385
12624         * config/rs6000/altivec.md (vector constant splitters): Add
12625         support for creating vector single precision constants if -mvsx is
12626         used and we would create the constant using Altivec primitives.
12627
12628 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12629             Richard Sandiford  <rdsandiford@googlemail.com>
12630
12631         PR rtl-optimization/47166
12632         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12633         mechanism for PRE_MODIFY and POST_MODIFY.
12634         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12635         reloadreg.
12636
12637 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12638
12639         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12640
12641 2011-01-22  Jan Hubicka  <jh@suse.cz>
12642
12643         PR lto/47333
12644         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12645
12646 2011-01-22  Jan Hubicka  <jh@suse.cz>
12647
12648         PR tree-optimization/43884
12649         PR lto/44334
12650         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12651         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12652
12653 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12654
12655         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12656         * config/s390/s390.c (s390_register_move_cost,
12657         s390_memory_move_cost): New.
12658         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12659
12660 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12661
12662         PR middle-end/47401
12663         * except.c (sjlj_assign_call_site_values): Move setting the
12664         crtl->uses_eh_lsda flag to ...
12665         (sjlj_mark_call_sites): ... here.
12666         (sjlj_emit_function_enter): Support NULL dispatch label.
12667         (sjlj_build_landing_pads): In a function with no landing pads
12668         that still has must-not-throw regions, generate code to register
12669         a personality function with empty LSDA.
12670
12671 2011-01-21  Richard Henderson  <rth@redhat.com>
12672
12673         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12674
12675         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12676
12677         * compare-elim.c: New file.
12678         * Makefile.in (OBJS-common): Add it.
12679         (compare-elim.o): New.
12680         * common.opt (fcompare-elim): New.
12681         * opts.c (default_options_table): Add OPT_fcompare_elim.
12682         * tree-pass.h (pass_compare_elim_after_reload): New.
12683         * passes.c (init_optimization_passes): Add it.
12684         * recog.h: Protect against re-inclusion.
12685         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12686         * doc/invoke.texi (-fcompare-elim): Document it.
12687         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12688         * doc/tm.texi: Rebuild.
12689
12690 2011-01-22  Nick Clifton  <nickc@redhat.com>
12691
12692         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12693         rx_split_fp_compare.
12694
12695 2011-01-22  Nick Clifton  <nickc@redhat.com>
12696
12697         * config/rx/rx.md (UNSPEC_CONST): New.
12698         (deallocate_and_return): Wrap the amount popped off the stack in
12699         an UNSPEC_CONST in order to stop it being rejected by
12700         -mmax-constant-size.
12701         (pop_and_return): Add a "(return)" rtx.
12702         (call): Drop the immediate operand.
12703         (call_internal): Likewise.
12704         (call_value): Likewise.
12705         (call_value_internal): Likewise.
12706         (sibcall_internal): Likewise.
12707         (sibcall_value_internal): Likewise.
12708         (sibcall): Likewise.  Generate an explicit call using
12709         sibcall_internal.
12710         (sibcall_value): Likewise.
12711         (mov<>): FAIL if a constant operand is not legitimate.
12712         (addsi3_unpsec): New pattern.
12713
12714         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12715         (ok_for_max_constant): New function.
12716         (gen_safe_add): New function.
12717         (rx_expand_prologue): Use gen_safe_add.
12718         (rx_expand_epilogue): Likewise.
12719         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12720         UNSPEC CONSTs.
12721
12722 2011-01-21  Jeff Law  <law@redhat.com>
12723
12724         PR tree-optimization/47053
12725         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12726         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12727         statements are deleted.
12728         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12729         is nonempty, then purge dead edges and cleanup the CFG.
12730
12731 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12732
12733         PR debug/47402
12734         Temporarily revert:
12735         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12736         PR debug/47106
12737         * tree-dfa.c (create_var_ann): Mark variable as used.
12738
12739 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12740
12741         PR middle-end/45566
12742         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12743         notes from other section in hot/cold partitioning even if
12744         last_action is -3.  Increment call_site_base.
12745
12746         PR rtl-optimization/47366
12747         * fwprop.c (forward_propagate_into): Return bool.  If
12748         any changes are made, -fnon-call-exceptions is used and
12749         REG_EH_REGION note is present, call purge_dead_edges
12750         and return true if it purged anything.
12751         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12752         any EH edges were purged.
12753
12754 2011-01-21  Jeff Law  <law@redhat.com>
12755
12756         PR rtl-optimization/41619
12757         * caller-save.c (setup_save_areas): Break out code to determine
12758         which hard regs are live across calls by examining the reload chains
12759         so that it is always used.
12760         Eliminate code which checked REG_N_CALLS_CROSSED.
12761
12762 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12763
12764         PR tree-optimization/47355
12765         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12766         NOP has non-debug uses beyond PHIs in new_bb.
12767
12768 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12769
12770         PR debug/47106
12771         * cfgexpand.c (account_used_vars_for_block): Only account vars
12772         that are annotated as used.
12773         (estimated_stack_frame_size): Don't set TREE_USED.
12774         * tree-dfa.c (create_var_ann): Mark variable as used.
12775
12776 2011-01-21  Richard Guenther  <rguenther@suse.de>
12777
12778         PR middle-end/47395
12779         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12780
12781 2011-01-21  Richard Guenther  <rguenther@suse.de>
12782
12783         PR tree-optimization/47365
12784         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12785         (vn_reference_lookup_pieces): Adjust.
12786         (vn_reference_lookup): Likewise.
12787         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12788         (vn_reference_lookup_3): Only look through kills if in
12789         VN_WALKREWRITE mode.
12790         (vn_reference_lookup_pieces): Adjust.
12791         (vn_reference_lookup): Likewise.
12792         (visit_reference_op_load): Likewise.
12793         (visit_reference_op_store): Likewise.
12794         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12795         (compute_avail): Likewise.
12796         (eliminate): Likewise.
12797
12798 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12799
12800         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12801         DECL_IGNORED_P non-reg vars if they are used.
12802
12803         PR tree-optimization/47391
12804         * varpool.c (const_value_known_p): Return false if
12805         decl is volatile.
12806
12807 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12808
12809         PR bootstrap/47215
12810         * config/i386/i386.c (ix86_local_alignment): Handle
12811         case for va_list_type_node is nil.
12812         (ix86_canonical_va_list_type): Likewise.
12813
12814 2011-01-21  Alan Modra  <amodra@gmail.com>
12815
12816         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12817         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12818
12819 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12820
12821         * config/arm/arm.md (define_attr type): Rename f_load
12822         and f_store to f_fpa_load and f_fpa_store. Update.
12823         (write_conflict): Deal with rename fallout.
12824         (*push_fp_multi): Likewise.
12825         * config/arm/fpa.md (f_load): Use f_fpa_load.
12826         (f_store): Use f_fpa_store.
12827         (*movsf_fpa): Likewise.
12828         (*movdf_fpa): Likewise.
12829         (*movxf_fpa): Likewise.
12830         (*thumb2_movsf_fpa): Likewise.
12831         (*thumb2_movdf_fpa): Likewise.
12832         (*thumb2_movxf_fpa): Likewise.
12833         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12834         f_loadd and f_stored.
12835         (*thumb2_movdi_vfp): Likewise.
12836         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12837         (*thumb2_movsi_vfp): Likewise.
12838         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12839         Use f_loads instead of f_load.
12840         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12841
12842 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12843
12844         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12845         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12846         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12847         (xtensa_mode_dependent_address_p): New function.
12848         (constantpool_address_p): Make static. Change return type to bool.
12849         Change argument type to const_rtx. Use CONST_INT_P predicate.
12850
12851 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12852
12853         PR debug/46583
12854         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12855
12856 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12857
12858         PR debug/47283
12859         * cfgexpand.c (expand_debug_expr): Instead of generating
12860         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12861         etc. handling.
12862
12863 2011-01-20  Richard Guenther  <rguenther@suse.de>
12864
12865         PR middle-end/47370
12866         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12867         the pointer operand of MEM_REFs.
12868
12869 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12870
12871         PR tree-optimization/46130
12872         * ipa-split.c (consider_split): If return_bb contains non-virtual
12873         PHIs other than for retval or if split_function would not adjust it,
12874         refuse to split.
12875
12876 2011-01-20  Richard Guenther  <rguenther@suse.de>
12877
12878         PR tree-optimization/47167
12879         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12880         Revert previous change, only avoid enumeral type changes.
12881
12882 2011-01-19  Mike Stump  <mikestump@comcast.net>
12883
12884         * doc/tm.texi.in (BRANCH_COST): Englishify.
12885         * doc/tm.texi (BRANCH_COST): Likewise.
12886
12887 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12888
12889         PR c++/47291
12890         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12891         (gen_scheduled_generic_parms_dies): New functions.
12892         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12893         generation for the end of CU compilation.
12894         (dwarf2out_finish): Generate template parameters DIEs here.
12895
12896 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12897
12898         PR debug/46240
12899         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12900         debug bind stmt on merge edges.
12901
12902 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12903
12904         PR debug/47079
12905         PR debug/46724
12906         * function.c (instantiate_expr): Instantiate incoming rtl of
12907         implicit arguments, and recurse on VALUE_EXPRs.
12908         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12909         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12910
12911 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12912
12913         * c-parser.c (c_parser_for_statement): Initialize
12914         collection_expression.
12915
12916 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12917
12918         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12919
12920 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12921
12922         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12923         (LINK_SHLIB_SPEC): Don't use %(link_path).
12924         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12925
12926 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12927
12928         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12929         (NO_SHARED_LIB_SUPPORT): Remove.
12930         (LINK_SHLIB_SPEC): Remove one conditional definition.
12931
12932 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12933
12934         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12935         %{call_shared}.
12936         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12937         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12938         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12939         %{call_shared} and conditionals on these options not being passed.
12940         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12941         %{call_shared}.
12942
12943 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12944
12945         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12946         simplify.
12947
12948         * ipa-split.c: Spelling fixes.
12949
12950 2011-01-19  Richard Henderson  <rth@redhat.com>
12951
12952         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12953         (*mulsi3): Likewise.
12954
12955         * longlong.h [__mn10300__] (count_leading_zeros): New.
12956         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12957         [__mn10300__] (add_ssaaaa, subddmmss): New.
12958         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12959         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12960
12961 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12962
12963         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12964
12965 2011-01-19  Richard Henderson  <rth@redhat.com>
12966
12967         * config/mn10300/mn10300.md (addsi3_flags): New.
12968         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12969         (subsi3_flags, subc_internal, subdi3): New.
12970         (subdi3_internal, *subdi3_degenerate): New.
12971         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12972
12973         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12974         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12975         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12976         * config/mn10300/mn10300-protos.h: Update.
12977         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12978         (return_ret): Likewise.  Rename from return_internal_regs.
12979         (return_internal): Remove.
12980
12981         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12982         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12983         (mn10300_legitimate_constant_p): Likewise.
12984         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12985         (mn10300_frame_size): New.
12986         (mn10300_expand_prologue): Use it.
12987         (mn10300_expand_epilogue): Likewise.
12988         (mn10300_initial_offset): Likewise.
12989         * config/mn10300/mn10300-protos.h: Update.
12990         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12991         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12992         (prologue, epilogue, return_internal): Tidy output code.
12993         (mn10300_store_multiple_operation, return): Likewise.
12994         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12995         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12996         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12997         (load_pic, am33_load_pic): New.
12998         (mn10300_load_pic0, mn10300_load_pic1): New.
12999
13000         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13001         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13002         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13003         (cc_flags_for_mode, cc_flags_for_code): New.
13004         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13005         overflow flag is not valid.  Validate that the flags we need
13006         for the comparison are valid.
13007         (mn10300_output_cmp): Remove.
13008         (mn10300_output_add): New.
13009         (mn10300_select_cc_mode): Use cc_flags_for_code.
13010         (mn10300_split_cbranch): New.
13011         (mn10300_match_ccmode): New.
13012         (mn10300_split_and_operand_count): New.
13013         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13014         to the function.
13015         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13016         (addsi3): ... here.  Use mn10300_output_add.
13017         (*addsi3_flags): New.
13018         (*am33_subsi3, *mn10300_subsi3): Merge...
13019         (subsi3): ... here.  Use attribute isa.
13020         (*subsi3_flags): New.
13021         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13022         when possible.
13023         (*am33_andsi3, *mn10300_andsi3): Merge...
13024         (andsi3): ... here.
13025         (*andsi3_flags): New.
13026         (andsi3 splitters): New.
13027         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13028         (iorsi3): ... here.
13029         (*iorsi3_flags): New.
13030         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13031         (xorsi3): ... here.
13032         (*xorsi3_flags): New.
13033         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13034         (one_cmplsi2): ... here.
13035         (*one_cmplsi2_flags): New.
13036         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13037         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13038         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13039         use matching constraints to eliminate a self-comparison.
13040         (*integer_conditional_branch): Rename from integer_conditional_branch.
13041         Use int_mode_flags to match CC_REG.
13042         (*cbranchsi4_btst, *btstsi): New.
13043         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13044         mn10300_split_cbranch.
13045         (*am33_cmpsf): Rename from am33_cmpsf.
13046         (*float_conditional_branch): Rename from float_conditional_branch.
13047         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13048         (zero_extendqisi2): ... here.
13049         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13050         (zero_extendhisi2): ... here.
13051         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13052         (extendqisi2): ... here.
13053         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13054         (extendhisi2): ... here.
13055         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13056         (ashlsi3): ... here.
13057         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13058         (lshrsi3): ... here.
13059         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13060         (ashrsi3): ... here.
13061         (consecutive add peephole): Remove.
13062         * config/mn10300/predicates.md (label_ref_operand): New.
13063         (int_mode_flags): New.
13064         (CCZN_comparison_operator): New.
13065
13066         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13067         (throughput_42_latency_43): New reservation.
13068         (mulsidi3, umulsidi3): New expanders.
13069         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13070         the MDR register to allocation; separately allocate the low and
13071         high parts of the DImode result.
13072         (umulsidi3_internal): Similarly.
13073         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13074         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13075         (udivsi3, umodsi3): Remove.
13076         (udivmodsi4, divmodsi4): New expanders.
13077         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13078         (*divmodsi4): Simiarly.
13079         (ext_internal): New.
13080
13081         * config/mn10300/constraints.md ("z"): New constraint.
13082         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13083         (FIXED_REGISTERS): Don't fix MDR.
13084         (CALL_USED_REGSITERS): Reformat nicely.
13085         (REG_ALLOC_ORDER): Add MDR.
13086         (enum regclass): Add MDR_REGS.
13087         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13088         (IRA_COVER_CLASSES): Add MDR_REGS.
13089         (REGNO_REG_CLASS): Handle MDR_REG.
13090         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13091         (mn10300_register_move_cost): Likewise.
13092         * config/mn10300/mn10300.md (MDR_REG): New.
13093         (*movsi_internal): Handle moves to/from MDR_REGS.
13094
13095         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13096         POST_MODIFY.
13097         (mn10300_secondary_reload): Tidy combination reload classes.
13098         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13099         addresses for AM33.  Allow symbolic offsets for reg+imm.
13100         (mn10300_regno_in_class_p): New.
13101         (mn10300_legitimize_reload_address): New.
13102         * config/mn10300/mn10300.h (enum reg_class): Remove
13103         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13104         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13105         SP_OR_GENERAL_REGS.
13106         (REG_CLASS_NAMES): Update to match.
13107         (REG_CLASS_CONTENTS): Likewise.
13108         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13109         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13110         (REGNO_IN_RANGE_P): Remove.
13111         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13112         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13113         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13114         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13115         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13116         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13117         (REGNO_GENERAL_P): New.
13118         (HAVE_POST_MODIFY_DISP): New.
13119         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13120         (LEGITIMIZE_RELOAD_ADDRESS): New.
13121         * config/mn10300/mn10300-protos.h: Update.
13122
13123         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13124         DATA_REGS for AM33 stack-pointer destination.
13125         (mn10300_preferred_output_reload_class): Likewise.
13126         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13127         into a form appropriate for ...
13128         (TARGET_SECONDARY_RELOAD): New.
13129         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13130         * config/mn10300/mn10300-protos.h: Update.
13131         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13132         reload_insi; use the "A" constraint for the scratch; handle AM33
13133         moves of sp to non-address registers.
13134
13135         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13136         (*movqi_internal): ... here.
13137         (*am33_movhi, *mn10300_movhi): Merge into...
13138         (*movhi_internal): ... here.
13139         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13140         as the source/destination of moves from/to SP.
13141         (movsf): Only allow for AM33-2.
13142         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13143         any integer constant constraint.  Only allow for AM33-2.  Tidy
13144         all of the alternative outputs.
13145         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13146         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13147         for MN103.
13148         (udivsi3, umodsi3): New patterns for MN103 only.
13149
13150 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13151
13152         * doc/tm.texi.in: Spell out that a lack of register class unions
13153         can lead to ICEs.
13154         * doc/tm.texi: Regenerate.
13155
13156 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13157
13158         PR rtl-optimization/47337
13159         * dce.c (check_argument_store): New function.
13160         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13161
13162         PR tree-optimization/47290
13163         * tree-eh.c (infinite_empty_loop_p): New function.
13164         (cleanup_empty_eh): Use it.
13165
13166 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13167
13168         PR target/46997
13169         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13170         (a64_expand_widen_sum): Ditto.
13171         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13172         (vec_extract_evenodd_help): Ditto.
13173         (vec_extract_evenv4hi): Ditto.
13174         (vec_extract_oddv4hi): Ditto.
13175         (vec_extract_evenv2si): Ditto.
13176         (vec_extract_oddv2si): Ditto.
13177         (vec_extract_evenv2sf): Ditto.
13178         (vec_extract_oddv2sf): Ditto.
13179         (vec_pack_trunc_v4hi: Ditto.
13180         (vec_pack_trunc_v2si): Ditto.
13181         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13182         (vec_interleave_highv8qi): Ditto.
13183         (mix1_r): Ditto.
13184         (vec_extract_oddv8qi): Ditto.
13185         (vec_interleave_lowv4hi): Ditto.
13186         (vec_interleave_highv4hi): Ditto.
13187         (vec_interleave_lowv2si): Ditto.
13188         (vec_interleave_highv2si): Ditto.
13189
13190 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13191
13192         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13193         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13194         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13195         (pa_c_mode_for_suffix): New.
13196         (TARGET_EXPAND_BUILTIN): Define.
13197         (TARGET_C_MODE_FOR_SUFFIX): Define.
13198         (pa_builtins): Define.
13199         (pa_init_builtins): Register __float128 type and init new support
13200         builtins.
13201         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13202         * config/pa/quadlib.c (_U_Qfcopysign): New.
13203
13204 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13205
13206         PR middle-end/46894
13207         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13208         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13209         are defined.
13210
13211 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13212
13213         PR tree-optimization/47179
13214         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13215         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13216
13217 2011-01-18  Richard Guenther  <rguenther@suse.de>
13218
13219         PR rtl-optimization/47216
13220         * emit-rtl.c: Include tree-flow.h.
13221         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13222         of replicating it with different semantics.
13223         * Makefile.in (emit-rtl.o): Adjust.
13224
13225 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13226
13227         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13228         (cortex_a9_dp): Handle neon types correctly.
13229
13230 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13231
13232         PR rtl-optimization/47299
13233         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13234         subtarget.  Use normal multiplication if both operands are constants.
13235         * expmed.c (expand_widening_mult): Don't try to optimize constant
13236         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13237         before using it.
13238
13239 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13240
13241         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13242         spacing after 'e.g.', typos, comma, hyphenation.
13243
13244 2011-01-17  Richard Henderson  <rth@redhat.com>
13245
13246         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13247         (rx_restricted_mem_operand): New.
13248         (rx_shift_operand): Use register_operand.
13249         (rx_source_operand, rx_compare_operand): Likewise.
13250         * config/rx/rx.md (addsi3_flags): New expander.
13251         (adddi3): Rewrite as expander.
13252         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13253         (subsi3_flags): New expander.
13254         (subdi3): Rewrite as expander.
13255         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13256
13257         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13258         (rx_init_builtins): Remove sat builtin.
13259         (rx_expand_builtin): Likewise.
13260         * config/rx/rx.md (ssaddsi3): New.
13261         (*sat): Rename from sat.  Represent the CC_REG input.
13262
13263         * config/rx/predicates.md (rshift_operator): New.
13264         * config/rx/rx.c (rx_expand_insv): Remove.
13265         * config/rx/rx-protos.h: Update.
13266         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13267         operand to the canonical position.
13268         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13269         (*bitclr, *bitclr_in_memory): Similarly.
13270         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13271         (insv): Retain the zero_extract in the expansion.
13272
13273         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13274         (bswaphi2, bitinvert, revw): Likewise.
13275
13276         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13277         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13278         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13279         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13280         (bitset, bitset_in_memory): Likewise.
13281         (bitinvert, bitinvert_in_memory): Likewise.
13282         (bitclr, bitclr_in_memory): Likewise.
13283         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13284         (rx_strend, rx_cmpstrn): Likewise.
13285         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13286         (bitop peep2 patterns): Remove.
13287
13288         * config/rx/rx.c (rx_match_ccmode): New.
13289         * config/rx/rx-protos.h: Update.
13290         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13291         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13292         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13293         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13294         (fix_truncsfsi2, floatsisf2): Likewise.
13295         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13296         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13297         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13298         (*subsi3_flags, *xorsi3_flags): New.
13299
13300         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13301
13302         * config/rx/rx.c (rx_print_operand): Remove workaround for
13303         unsplit comparison operations.
13304
13305         * config/rx/rx.md (movsicc): Split after reload.
13306         (*movsicc): Merge *movsieq and *movsine via match_operator.
13307         (*stcc): New pattern.
13308
13309         * config/rx/rx.c (rx_float_compare_mode): Remove.
13310         * config/rx/rx.h (rx_float_compare_mode): Remove.
13311         * config/rx/rx.md (cstoresi4): Split after reload.
13312         (*sccc): New pattern.
13313
13314         * config/rx/predicates.md (label_ref_operand): New.
13315         (rx_z_comparison_operator): New.
13316         (rx_zs_comparison_operator): New.
13317         (rx_fp_comparison_operator): New.
13318         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13319         Validate that the flags are set properly for the comparison.
13320         (rx_gen_cond_branch_template): Remove.
13321         (rx_cc_modes_compatible): Remove.
13322         (mode_from_flags): New.
13323         (flags_from_code): Rename from flags_needed_for_conditional.
13324         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13325         (rx_select_cc_mode): Likewise.
13326         (rx_split_fp_compare): New.
13327         (rx_split_cbranch): New.
13328         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13329         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13330         (*cbranchsf4): Similarly.
13331         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13332         match_operator and rx_split_cbranch.
13333         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13334         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13335         (*cmpsi): Rename from cmpsi.
13336         (*tstsi): Rename from tstsi.
13337         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13338         (*conditional_branch): Rename from conditional_branch.
13339         (*reveresed_conditional_branch): Remove.
13340         (b<code>): Remove expander.
13341         * config/rx/rx-protos.h: Update.
13342
13343         * config/rx/rx.c (rx_compare_redundant): Remove.
13344         * config/rx/rx.md (cmpsi): Don't use it.
13345         * config/rx/rx-protos.h: Update.
13346
13347         * config/rx/rx-modes.def (CC_F): New mode.
13348         * config/rx/rx.c (rx_select_cc_mode): New.
13349         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13350         * config/rx/rx-protos.h: Update.
13351
13352 2011-01-17  Richard Henderson  <rth@redhat.com>
13353
13354         * except.c (dump_eh_tree): Fix stray ; after for statement.
13355
13356 2011-01-17  Richard Guenther  <rguenther@suse.de>
13357
13358         PR tree-optimization/47313
13359         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13360         handling before copying the body.  Properly deal with
13361         by-reference result in SSA form.
13362
13363 2011-01-17  Ian Lance Taylor  <iant@google.com>
13364
13365         PR target/47219
13366         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13367         (struct_value_alias_set): Don't define.
13368         (sparc_option_override): Don't set sparc_sr_alias_set and
13369         struct_value_alias_set.
13370         (save_or_restore_regs): Use gen_frame_mem rather than calling
13371         set_mem_alias_set.
13372         (sparc_struct_value_rtx): Likewise.
13373
13374 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13375
13376         PR target/47318
13377         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13378         (_mm_maskstore_pd): Likewise.
13379         (_mm_maskload_ps): Likewise.
13380         (_mm_maskstore_ps): Likewise.
13381         (_mm256_maskload_pd): Change mask to __m256i.
13382         (_mm256_maskstore_pd): Likewise.
13383         (_mm256_maskload_ps): Likewise.
13384         (_mm256_maskstore_ps): Likewise.
13385
13386         * config/i386/i386-builtin-types.def: Updated.
13387         (ix86_expand_special_args_builtin): Likewise.
13388
13389         * config/i386/i386.c (bdesc_special_args): Update
13390         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13391         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13392         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13393         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13394
13395         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13396         Use <avxpermvecmode> on mask register.
13397         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13398
13399 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13400             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13401             Eric Botcazou  <ebotcazou@adacore.com>
13402
13403         PR target/46655
13404         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13405         if <= USHRT_MAX in 32-bit mode.
13406
13407 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13408
13409         * doc/install.texi (Configuration, Specific): Wrap long
13410         lines in examples.  Allow line wrapping in long options
13411         and URLs where beneficial for PDF output.
13412
13413 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13414
13415         * config/mips/mips.c (mips_classify_symbol): Don't return
13416         SYMBOL_PC_RELATIVE for nonlocal labels.
13417
13418 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13419
13420         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13421
13422 2011-01-15  Jan Hubicka  <jh@suse.cz>
13423
13424         PR tree-optimization/47276
13425         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13426         declarations as needed.
13427
13428 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13429
13430         * common.opt (fdevirtualize): New flag.
13431         * doc/invoke.texi (Option Summary): Document it.
13432         * opts.c (default_options_table): Add devirtualize flag.
13433         * ipa-prop.c (detect_type_change): Return immediately if
13434         devirtualize flag is not set.
13435         (detect_type_change_ssa): Likewise.
13436         (compute_known_type_jump_func): Likewise.
13437         (ipa_analyze_virtual_call_uses): Likewise.
13438
13439 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13440
13441         PR tree-optimization/45934
13442         PR tree-optimization/46302
13443         * ipa-prop.c (type_change_info): New type.
13444         (stmt_may_be_vtbl_ptr_store): New function.
13445         (check_stmt_for_type_change): Likewise.
13446         (detect_type_change): Likewise.
13447         (detect_type_change_ssa): Likewise.
13448         (compute_complex_assign_jump_func): Check for dynamic type change.
13449         (compute_complex_ancestor_jump_func): Likewise.
13450         (compute_known_type_jump_func): Likewise.
13451         (compute_scalar_jump_functions): Likewise.
13452         (ipa_analyze_virtual_call_uses): Likewise.
13453         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13454
13455 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13456
13457         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13458         * config/i386/i386.opt (msse5): New Alias.
13459
13460 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13461
13462         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13463         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13464         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13465         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13466
13467 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13468
13469         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13470         -mcpu options.
13471         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13472         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13473         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13474         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13475         Likewise.
13476         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13477
13478 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13479
13480         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13481
13482 2011-01-14  Mike Stump  <mikestump@comcast.net>
13483
13484         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13485         * config/fr30/fr30.md: Likweise
13486         (movsi_push): Likewise.
13487         (movsi_pop): Likewise.
13488         (enter_func): Likewise.
13489         * config/moxie/moxie.md (movsi_push): Likewise.
13490         (movsi_pop): Likewise.
13491
13492 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13493
13494         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13495         %{no_archive} %{exact_version}.
13496         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13497         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13498         %{no_archive} %{exact_version}.
13499         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13500         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13501         * config/mips/vxworks.h: Likewise.
13502
13503 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13504
13505         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13506
13507 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13508
13509         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13510         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13511
13512 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13513
13514         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13515         -nodefaultlib.
13516
13517 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13518
13519         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13520         for mcpu not cpu.
13521         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13522         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13523         not cpu.
13524         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13525         Don't handle -shlib.
13526
13527 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13528
13529         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13530         (CC1_SPEC): Don't handle -profile.
13531
13532 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13533
13534         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13535         * config/mips/mips.h (CC1_SPEC): Likewise.
13536
13537 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13538
13539         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13540         * config/mips/mips.h (CC1_SPEC): Likewise.
13541
13542 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13543
13544         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13545         * config/m32r/linux.h (LINK_SPEC): Likewise.
13546         * config/mips/linux.h (LINK_SPEC): Likewise.
13547         * config/mips/linux64.h (LINK_SPEC): Likewise.
13548         * config/sparc/linux.h (LINK_SPEC): Likewise.
13549         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13550         LINK_SPEC): Likewise.
13551         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13552
13553 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13554
13555         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13556         %{version:-v}.
13557         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13558
13559 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13560
13561         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13562         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13563
13564 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13565
13566         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13567
13568 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13569
13570         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13571         supports -Bstatic/-Bdynamic.
13572         * configure: Regenerate.
13573
13574 2011-01-14  Jan Hubicka  <jh@suse.cz>
13575             Jack Howarth  <howarth@bromo.med.uc.edu>
13576
13577         PR target/46037
13578         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13579         when checking debug_info_level. Test write_symbols instead of
13580         debug_hooks->var_location when setting flag_var_tracking_uninit.
13581
13582 2011-01-14  Richard Guenther  <rguenther@suse.de>
13583
13584         PR tree-optimization/47179
13585         * target.def (ref_may_alias_errno): New target hook.
13586         * targhooks.h (default_ref_may_alias_errno): Declare.
13587         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13588         (default_ref_may_alias_errno): New function.
13589         * target.h (struct ao_ref_s): Declare.
13590         * tree-ssa-alias.c: Include target.h.
13591         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13592         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13593         (targhooks.o): Likewise.
13594         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13595         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13596
13597 2011-01-14  Richard Guenther  <rguenther@suse.de>
13598
13599         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13600
13601 2011-01-14  Richard Guenther  <rguenther@suse.de>
13602
13603         PR tree-optimization/47280
13604         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13605         return CFG changes.
13606         (tree_ssa_forward_propagate_single_use_vars): Deal with
13607         CFG changes from associate_plusminus.
13608
13609 2011-01-14  Richard Guenther  <rguenther@suse.de>
13610
13611         PR middle-end/47281
13612         Revert
13613         2011-01-11  Richard Guenther  <rguenther@suse.de>
13614
13615         PR tree-optimization/46076
13616         * tree-ssa.c (useless_type_conversion_p): Conversions from
13617         unprototyped to empty argument list function types are useless.
13618
13619 2011-01-14  Richard Guenther  <rguenther@suse.de>
13620
13621         PR tree-optimization/47286
13622         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13623
13624 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13625
13626         PR middle-end/46823
13627         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13628
13629 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13630
13631         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13632         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13633         * config/xtensa/xtensa.c (xtensa_libcall_value,
13634         xtensa_function_value_regno_p): New functions.
13635         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13636
13637 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13638
13639         PR c++/47213
13640         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13641         PE specific hook.
13642         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13643         New function prototype.
13644         * config/i386/winnt.c (i386_pe_assemble_visibility):
13645         Warn only if attribute was specified by user.
13646
13647 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13648
13649         PR target/47251
13650         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13651         floating point.
13652         (floatunsdidf2_fcfidu): Ditto.
13653
13654 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13655
13656         * config/s390/s390.c (print_operand_address): Replace 'error' with
13657         'output_operand_lossage'.
13658         (print_operand): Likewise.
13659
13660 2011-01-13  Jeff Law  <law@redhat.com>
13661
13662         PR rtl-optimization/39077
13663         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13664         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13665         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13666         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13667         * gcse.c (prune_insertions_deletions): New function.
13668         (compute_pre_data): Use it.
13669
13670 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13671
13672         PR debug/PR46973
13673         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13674         static function.
13675         (prune_unused_types_mark): Use it.
13676
13677 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13678
13679         PR rtl-optimization/45352
13680         * sel-sched.c: Update copyright years.
13681         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13682         in the advancing loop when we have issued issue_rate insns.
13683
13684 2011-01-12  Richard Henderson  <rth@redhat.com>
13685
13686         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13687         (TARGET_MD_ASM_CLOBBERS): New.
13688
13689         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13690         (TARGET_DELEGITIMIZE_ADDRESS): New.
13691
13692         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13693         (clzsi2, *bsch): New patterns.
13694
13695         * config/mn10300/mn10300.md (INT): New mode iterator.
13696         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13697
13698         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13699         flag_split_wide_types.
13700
13701         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13702         (mn10300_trampoline_init): Rewrite without a template, an immediate
13703         load and a direct branch.
13704         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13705
13706 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13707
13708         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13709         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13710         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13711         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13712
13713 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13714
13715         PR debug/47209
13716         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13717         of type.
13718
13719 2011-01-12  Jan Hubicka  <jh@suse.cz>
13720
13721         PR driver/47244
13722         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13723         (PLUGIN_COND_CLOSE): New macro.
13724         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13725
13726 2011-01-12  Richard Guenther  <rguenther@suse.de>
13727
13728         PR lto/47259
13729         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13730         register variables in a MEM_REF.
13731
13732 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13733
13734         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13735         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13736         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13737         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13738         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13739         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13740         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13741         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13742         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13743         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13744         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13745         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13746         * config/gnu-user.h: New.  Copied from linux.h.
13747         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13748         GNU_USER_TARGET_STARTFILE_SPEC.
13749         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13750         GNU_USER_TARGET_ENDFILE_SPEC.
13751         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13752         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13753         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13754         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13755         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13756         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13757         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13758         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13759         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13760         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13761         * config/arm/linux-eabi.h (CC1_SPEC): Use
13762         GNU_USER_TARGET_CC1_SPEC.
13763         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13764         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13765         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13766         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13767         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13768         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13769         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13770         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13771
13772 2011-01-12  Richard Guenther  <rguenther@suse.de>
13773
13774         PR other/46946
13775         * doc/invoke.texi (ffast-math): Document it is turned on
13776         with -Ofast.
13777
13778 2011-01-12  Jan Hubicka  <jh@suse.cz>
13779
13780         PR tree-optimization/47233
13781         * opts.c (common_handle_option): Disable ipa-reference with profile
13782         feedback.
13783
13784 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13785
13786         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13787         error message.
13788
13789 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13790
13791         * c-parser.c (c_lex_one_token): Updated and reindented some
13792         comments.  No changes in code.
13793
13794 2011-01-11  Ian Lance Taylor  <iant@google.com>
13795
13796         * godump.c (go_output_var): Don't output the variable if there is
13797         already a type with the same name.
13798
13799 2011-01-11  Ian Lance Taylor  <iant@google.com>
13800
13801         * godump.c (go_format_type): Don't generate float80.
13802
13803 2011-01-11  Richard Henderson  <rth@redhat.com>
13804
13805         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13806         declaration.  Rewrite for both speed and size.
13807         (mn10300_address_cost_1): Remove.
13808         (mn10300_register_move_cost): New.
13809         (mn10300_memory_move_cost): New.
13810         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13811         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13812         extensions, shifts, BSWAP, CLZ.
13813         (mn10300_wide_const_load_uses_clr): Remove.
13814         (TARGET_REGISTER_MOVE_COST): New.
13815         (TARGET_MEMORY_MOVE_COST): New.
13816         * config/mn10300/mn10300-protos.h: Update.
13817         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13818
13819         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13820         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13821         * config/mn10300/mn10300-protos.h: Update.
13822         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13823         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13824         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13825         (*test_int_bitfield, *test_byte_bitfield): Remove.
13826         (*bit_test, *subreg_bit_test): Remove.
13827         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13828
13829         * config/mn10300/constraints.md ("c"): Rename from "A".
13830         ("A", "D"): New constraint letters.
13831         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13832         (fmssf4, fnmasf4, fnmssf4): Likewise.
13833
13834         * config/mn10300/mn10300.md (isa): New attribute.
13835         (enabled): New attribute.
13836
13837         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13838         (abssf2, negsf2): Define only for hardware fp.
13839         (sqrtsf2): Reformat.
13840         (addsf3, subsf3, mulsf3): Merge expander and insn.
13841
13842         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13843         (DEBUGGER_AUTO_OFFSET): Remove.
13844         (DEBUGGER_ARG_OFFSET): Remove.
13845
13846         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13847         Emit register stores with the same offsets as the hardware.
13848         (mn10300_store_multiple_operation): Don't check that the register
13849         save offsets are monotonic.
13850         * config/mn10300/mn10300-protos.h: Update.
13851
13852         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13853
13854         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13855         in terms of the value on the stack, not the MDR register.
13856
13857 2011-01-11  Jan Hubicka  <jh@suse.cz>
13858
13859         PR lto/45721
13860         PR lto/45375
13861         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13862         (symbol_alias_set_destroy, symbol_alias_set_contains,
13863         propagate_aliases_backward): Declare.
13864         * lto-streamer-out.c (struct sets): New sturcture.
13865         (trivally_defined_alias): New function.
13866         (output_alias_pair_p): Rewrite.
13867         (output_unreferenced_globals): Fix output of alias pairs.
13868         (produce_symtab): Likewise.
13869         * ipa.c (function_and_variable_visibility): Set weak alias destination
13870         as needed in lto.
13871         * varasm.c (symbol_alias_set_t): Remove.
13872         (symbol_alias_set_destroy): Export.
13873         (propagate_aliases_forward, propagate_aliases_backward): New functions
13874         based on ...
13875         (compute_visible_aliases): ... this one; remove.
13876         (trivially_visible_alias): New
13877         (trivially_defined_alias): New.
13878         (remove_unreachable_alias_pairs): Rewrite.
13879         (finish_aliases_1): Reorganize code checking if alias is defined.
13880         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13881         in LTO mode.
13882
13883 2011-01-11  Richard Guenther  <rguenther@suse.de>
13884
13885         PR tree-optimization/46076
13886         * tree-ssa.c (useless_type_conversion_p): Conversions from
13887         unprototyped to empty argument list function types are useless.
13888
13889 2011-01-11  Richard Guenther  <rguenther@suse.de>
13890
13891         PR middle-end/45235
13892         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13893         volatile MEMs as MEM_READONLY_P.
13894
13895 2011-01-11  Richard Guenther  <rguenther@suse.de>
13896
13897         PR tree-optimization/47239
13898         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13899
13900 2011-01-11  Jeff Law  <law@redhat.com>
13901
13902         PR tree-optimization/47086
13903         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13904         IVs from statements that might throw.
13905
13906 2011-01-10  Jan Hubicka  <jh@suse.cz>
13907
13908         PR lto/45375
13909         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13910
13911 2011-01-10  Jan Hubicka  <jh@suse.cz>
13912
13913         PR lto/45375
13914         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13915         when correcting profile.
13916
13917 2011-01-10  Jan Hubicka  <jh@suse.cz>
13918
13919         PR lto/46083
13920         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13921         DECL_FINI_PRIORITY.
13922         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13923         Restore DECL_FINI_PRIORITY.
13924
13925 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13926
13927         * doc/gimple.texi: Fix quoting of multi-word return values in
13928         @deftypefn statements.  Ensure presence of return value.  Wrap
13929         overlong @deftypefn lines.
13930         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13931         descriptions of removed functions.
13932         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13933         of multi-word return value in @deftypefn statement.
13934
13935 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13936
13937         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13938         (Conditional Expressions, Logical Operators)
13939         (Statement and operand traversals): Do not indent smallexample
13940         code.  Fix duplicate function argument in example.
13941
13942 2011-01-10  Jeff Law  <law@redhat.com>
13943
13944         PR tree-optimization/47141
13945         * ipa-split.c (split_function): Handle case where we are
13946         returning a value and the return block has a virtual operand phi.
13947
13948 2011-01-10  Jan Hubicka  <jh@suse.cz>
13949
13950         PR tree-optimization/47234
13951         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13952         (pass_feedback_split_functions): Declare.
13953         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13954         tree-profile.
13955         * ipa-split.c (gate_split_functions): Update comments; disable
13956         split-functions for profile_arc_flag and branch_probabilities.
13957         (gate_feedback_split_functions): New function.
13958         (execute_feedback_split_functions): New function.
13959         (pass_feedback_split_functions): New global var.
13960
13961 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13962
13963         PR lto/46760
13964         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13965         calling gimple_call_set_cannot_inline.
13966
13967 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13968
13969         * config/darwin-sections.def: Remove unused section.
13970
13971 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13972
13973         PR c++/47218
13974         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13975
13976 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13977
13978         PR objc/47232
13979         * c-parser.c (c_parser_declaration_or_fndef): Improved
13980         error message.
13981
13982 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13983
13984         * config/i386/winnt.c (i386_pe_start_function): Make sure
13985         to switch back to function's section.
13986
13987 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13988
13989         PR gcc/46902
13990         PR testsuite/46912
13991         * plugin.c: Move include of dlfcn.h from here...
13992         * system.h: ... to here.
13993
13994 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13995
13996         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13997         file name.
13998         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13999         two extra empty pages in PDF output.
14000
14001 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14002
14003         PR objc/47078
14004         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14005         for error recovery purposes behave as if it was not specified so
14006         that the default type is usd.
14007
14008 2011-01-07  Jan Hubicka  <jh@suse.cz>
14009
14010         PR tree-optmization/46469
14011         * ipa.c (function_and_variable_visibility): Clear needed flags on
14012         nodes with external decls; handle weakrefs merging correctly.
14013
14014 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14015
14016         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14017         not false.
14018
14019 2011-01-07  Jan Hubicka  <jh@suse.cz>
14020
14021         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14022         and no longer claim that gold is required for linker plugin.
14023         * configure: Regenerate.
14024         * gcc.c (PLUGIN_COND): New macro.
14025         (LINK_COMMAND_SPEC): Use it.
14026         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14027         * config.in (HAVE_LTO_PLUGIN): New.
14028         * configure.ac (--with-lto-plugin): New parameter; autodetect
14029         HAVE_LTO_PLUGIN.
14030
14031 2011-01-07  Jan Hubicka  <jh@suse.cz>
14032
14033         PR tree-optimization/46367
14034         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14035         when we can update original.
14036         (cgraph_mark_inline_edge): Sanity check.
14037         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14038
14039 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14040
14041         * config/spu/spu.h (ASM_COMMENT_START): Define.
14042
14043 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14044
14045         PR driver/42445
14046         * gcc.c (%>S): New.
14047         (SWITCH_KEEP_FOR_GCC): Likewise.
14048         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14049         (do_spec_1): Handle "%>".
14050
14051         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14052
14053 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14054
14055         PR target/47201
14056         * config/i386/i386.c (ix86_delegitimize_address): If
14057         simplify_gen_subreg fails, return orig_x.
14058
14059         PR bootstrap/47187
14060         * value-prof.c (gimple_stringop_fixed_value): Handle
14061         lhs of the call properly.
14062
14063 2011-01-07  Jan Hubicka  <jh@suse.cz>
14064
14065         PR lto/45375
14066         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14067
14068 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14069
14070         * target.def (function_switched_text_sections): New hook.
14071         * doc/tm.texi: Regenerated.
14072         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14073         * final.c (default_function_switched_text_sections): New.
14074         (final_scan_insn): Call function_switched_text_sections when a
14075         mid-function section change occurs.
14076         * output.h (default_function_switched_text_sections): Declare.
14077         * config/darwin-protos.h (darwin_function_switched_text_sections):
14078         Likewise.
14079         * config/darwin.c (darwin_function_switched_text_sections): New.
14080         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14081
14082 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14083
14084         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14085         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14086         the secondary code fragment when outputting for DWARF == 2.
14087
14088 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14089
14090         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14091         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14092         Remove.
14093         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14094         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14095
14096 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14097
14098         PR debug/46704
14099         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14100         when it is not empty.
14101
14102 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14103
14104         Bobcat Enablement
14105         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14106         (case ${target}): Add btver1.
14107         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14108         -march=native recognize btver1 processors.
14109         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14110         btver1 def_and_undef
14111         * config/i386/i386.c (struct processor_costs btver1_cost): New
14112         btver1 cost table.
14113         (m_BTVER1): New definition.
14114         (m_AMD_MULTIPLE): Includes m_BTVER1.
14115         (initial_ix86_tune_features): Add btver1 tune.
14116         (processor_target_table): Add btver1 entry.
14117         (static const char *const cpu_names): Add btver1 entry.
14118         (software_prefetching_beneficial_p): Add btver1.
14119         (ix86_option_override_internal): Add btver1 instruction sets.
14120         (ix86_issue_rate): Add btver1.
14121         (ix86_adjust_cost): Add btver1.
14122         * config/i386/i386.h (TARGET_BTVER1): New definition.
14123         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14124         (enum processor_type): Add PROCESSOR_BTVER1.
14125         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14126
14127 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14128
14129         PR target/43309
14130         * config/i386/i386.c (legitimize_tls_address)
14131         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14132         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14133         (tls_initial_exec_64_sun): New pattern.
14134
14135 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14136
14137         * doc/invoke.texi (Overall Options): Improve wording and markup
14138         of the description of -wrapper.
14139
14140 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14141
14142         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14143         rdynamic, threads): New Driver options.
14144
14145 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14146
14147         PR target/38118
14148         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14149         if coming from .tdata.
14150         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14151
14152 2011-01-06  Jan Hubicka  <jh@suse.cz>
14153
14154         PR lto/47188
14155         * collect2.c (main): Do not enable LTOmode when plugin is active.
14156
14157 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14158
14159         PR other/45915
14160         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14161         --version output if supported.
14162         * configure: Regenerate.
14163
14164 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14165
14166         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14167         Driver options.
14168
14169 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14170
14171         PR c/47150
14172         * c-convert.c (convert): When converting a complex expression
14173         other than COMPLEX_EXPR to a different complex type, ensure
14174         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14175         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14176         when converting COMPLEX_TYPE.
14177
14178 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14179
14180         PR tree-optimization/47139
14181         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14182         only the last reduction value is used outside the loop.  Update
14183         documentation.
14184
14185 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14186
14187         * config/rtems.opt: New.
14188         * config.gcc (*-*-rtems*): Use rtems.opt.
14189
14190 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14191
14192         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14193         processors do not support 3DNow instructions.
14194
14195 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14196
14197         * config/spu/spu.c (spu_option_override): Set parameter
14198         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14199
14200 2011-01-05  Jan Hubicka  <jh@suse.cz>
14201
14202         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14203         at the command line.
14204
14205 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14206
14207         PR lto/47162
14208         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14209         deltas on streamed outgoing edges.
14210         (output_node_opt_summary): Output info for outgoing edges only when
14211         the node is in new parameter set.
14212         (output_cgraph_opt_summary): New parameter set, passed to the two
14213         aforementioned functions.  Update its forward declaration and its
14214         callee too.
14215
14216 2011-01-05  Tom Tromey  <tromey@redhat.com>
14217
14218         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14219         operator to c_finish_omp_atomic.
14220         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14221         (build_unary_op): Update.
14222         (build_modify_expr): Update.
14223         (build_asm_expr): Update.
14224
14225 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14226
14227         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14228         newly inserted insns.
14229         (pad_bb): Likewise.
14230         (spu_emit_branch_hint): Likewise.
14231         (insert_hbrp_for_ilb_runout): Likewise.
14232         (spu_machine_dependent_reorg): Call df_finish_pass after
14233         schedule_insns returns.
14234
14235 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14236
14237         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14238
14239 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14240
14241         PR tree-optimization/47005
14242         * tree-sra.c (struct access): Add 'non_addressable' bit.
14243         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14244         (decide_one_param_reduction): Return 0 if the parameter is passed by
14245         reference and one of the accesses in the group is non_addressable.
14246
14247 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14248
14249         PR tree-optimization/47056
14250         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14251         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14252         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14253
14254 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14255
14256         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14257         initializer.  Skip view conversions from aggregate types.
14258
14259 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14260
14261         PR bootstrap/47055
14262         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14263
14264 2011-01-04  Philipp Thomas  <pth@suse.de>
14265
14266         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14267         obvious typo.
14268
14269 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14270
14271         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14272         on empty epilogue sequences.
14273
14274 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14275
14276         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14277         non-static): New Driver options.
14278
14279 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14280
14281         PR driver/47137
14282         * gcc.c (default_compilers[]): Set combinable field to 0
14283         for all assembly languages.
14284
14285 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14286
14287         * config/mips/loongson3a.md: New file.
14288         * config/mips/mips.md: Include loongson3a.md.
14289         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14290         TUNE_LOONGSON_3A.
14291
14292 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14293
14294         PR middle-end/47017
14295         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14296         instead of convert_memory_address_addr_space on the base expression.
14297
14298 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14299
14300         * config/spu/spu.c (spu_option_override): Update error text
14301         for bad -march= / -mtune= values.
14302
14303 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14304
14305         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14306         if branch-hint optimization will be performed.
14307
14308 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14309
14310         PR tree-optimization/47148
14311         * ipa-split.c (split_function): Convert arguments to
14312         DECL_ARG_TYPE if possible.
14313
14314         PR tree-optimization/47155
14315         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14316         when computing uns.
14317
14318         PR rtl-optimization/47157
14319         * combine.c (try_combine): If undobuf.other_insn becomes
14320         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14321         and set *new_direct_jump_p too.
14322
14323 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14324
14325         PR tree-optimization/47021
14326         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14327
14328 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14329
14330         * gcc.c (process_command): Update copyright notice dates.
14331         * gcov.c (print_version): Likewise.
14332         * gcov-dump.c (print_version): Likewise.
14333         * mips-tfile.c (main): Likewise.
14334         * mips-tdump.c (main): Likewise.
14335
14336 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14337
14338         PR tree-optimization/46801
14339         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14340         aggregate fields start at byte boundary instead of the bit-field flag.
14341
14342 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14343
14344         PR driver/47137
14345         * gcc.c (main): Revert revision 168407.
14346
14347 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14348
14349         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14350
14351 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14352
14353         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14354         vector optab to expand vector/scalar shift, update gimple to vector.
14355
14356 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14357
14358         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14359         a thunk.
14360
14361 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14362
14363         PR tree-optimization/46984
14364         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14365         HOST_WIDE_INT.
14366         (cgraph_create_indirect_edge): Fixed line length.
14367         (cgraph_indirect_call_info): Declare.
14368         (cgraph_make_edge_direct) Update declaration.
14369         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14370         (cgraph_create_indirect_edge): Use it.
14371         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14372         callees.
14373         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14374         the new thunk_delta representation.
14375         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14376         HOST_WIDE_INT.
14377         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14378         (ipa_read_indirect_edge_info): Likewise.
14379         * lto-cgraph.c (output_edge_opt_summary): New function.
14380         (output_node_opt_summary): Call it on all outgoing edges.
14381         (input_edge_opt_summary): New function.
14382         (input_node_opt_summary): Call it on all outgoing edges.
14383
14384 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14385
14386         PR driver/47137
14387         * gcc.c (main): Don't check have_o when settting combine_inputs.
14388
14389 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14390
14391         * regrename.c: Add general comment describing the pass.
14392         (struct du_head): Remove 'length' field.
14393         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14394         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14395         Force renaming to the preferred class (if any) in the first pass and do
14396         not consider registers that belong to it in the second pass.
14397         (create_new_chain): Do not set 'length' field.
14398         (scan_rtx_reg): Likewise.
14399
14400 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14401
14402         PR tree-optimization/47140
14403         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14404         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14405         to bit_value_binop.
14406
14407         PR rtl-optimization/47028
14408         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14409         parm_birth_insn instead of at the beginning of first bb.
14410
14411 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14412
14413         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14414         Remove the word "see" before "@pxref".
14415         * doc/rtl.texi: Remove the word "see" before "@pxref".
14416
14417 2011-01-01  Jan Hubicka  <jh@suse.cz>
14418
14419         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14420         memory.
14421
14422 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14423
14424         PR target/38662
14425         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14426
14427 \f
14428 Copyright (C) 2011 Free Software Foundation, Inc.
14429
14430 Copying and distribution of this file, with or without modification,
14431 are permitted in any medium without royalty provided the copyright
14432 notice and this notice are preserved.