OSDN Git Service

Change maybe_eh_return to bool.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return
4         to bool.
5         (ix86_emit_restore_regs_using_mov): Likewise.
6         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7
8 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
9
10         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
12         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14         RTX_OK_FOR_OLO10_P): ...here.
15         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16         SYMBOLIC_CONST.
17
18 2011-05-12  Kai Tietz  <ktietz@redhat.com>
19
20         * gimplify.c (gimple_boolify): Re-boolify expression
21         arguments even if expression type is of kind BOOLEAN_TYPE.
22         (gimplify_boolean_expr): Removed.
23         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
24         and XOR. Additional take care that we keep expression's type.
25         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
26         of TRUTH_AND|OR|XOR_EXPR.
27
28 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
29
30         PR tree-optimization/48975
31         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
32         on all bbs here and free and clear ifc_bbs at the end.
33
34 2011-05-12  Richard Guenther  <rguenther@suse.de>
35
36         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
37         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
38         until after simple checks.
39         (gimple_types_compatible_p): Likewise.
40         (iterative_hash_gimple_type): Always hash pointer targets
41         and function return and argument types.
42         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
43         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
44         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
45         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
46         completely in the simple compare section.
47         (gimple_register_canonical_type): Query the cache again after
48         registering.
49
50 2011-05-12  Richard Guenther  <rguenther@suse.de>
51
52         PR tree-optimization/48172
53         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
54         the number of iterations from the segment size calculation.
55         (vect_create_cond_for_alias_checks): Adjust.
56
57 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
58
59         PR debug/48967
60         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
61         if validate_subreg fails.
62
63 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
64
65         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
66         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
67         early.
68
69 2011-05-12  DJ Delorie  <dj@redhat.com>
70
71         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
72         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
73         created builtin into rx_builtins array.
74         (rx_builtin_decl): New function.
75         (TARGET_BUITLIN_DECL): Define.
76         Include gt-rx.h.
77
78 2011-05-12  DJ Delorie  <dj@redhat.com>
79             Nick Clifton  <nickc@redhat.com>
80
81         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
82         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
83         (rx_is_legitimate_address): Add pre-decrement and post-increment
84         addressing in HImode and QImode.  Fix test for out of range
85         REG+INT addressing.
86         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
87         (rx_align_for_label): Test label before extracting its usage
88         count.
89         (rx_adjust_insn_lengths): Fix selection of insn codes.
90         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
91
92 2011-05-11  Jason Merrill  <jason@redhat.com>
93
94         * tree.c (type_hash_canon): Use struct tree_type_non_common.
95
96 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
97
98         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
99         reindent the subsequent block.
100
101 2011-05-11  Satoru Takabayashi  <satorux@google.com>
102             Paul Pluzhnikov  <ppluzhnikov@google.com>
103
104         * doc/install.texi (Configuration): Document
105         --with-linker-hash-style.
106         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
107         * config.in: Add LINKER_HASH_STYLE.
108         * configure.ac: Add --with-linker-hash-style.
109         * configure: Regenerate.
110
111 2011-05-11  Richard Guenther  <rguenther@suse.de>
112
113         PR middle-end/48964
114         * gimple.c (iterative_hash_canonical_type): Fix typo.
115
116 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
117
118         * config/i386/i386.c (legitimize_tls_address)
119         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
120         expanders directly for TARGET_GNU2_TLS.  Determine pic and
121         __tls_get_addr symbol reference here.  Update call to
122         gen_tls_global_dynamic_{32,64} for added arguments.
123         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
124         expanders directly for TARGET_GNU2_TLS.  Determine
125         __tls_get_addr symbol reference here.  Update call to
126         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
127         unique UNSPEC REG_EQUIV to libcall block.
128         (ix86_tls_get_addr): Declare static.
129         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
130         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
131         Do not determine pic and __tls_get_addr symbol reference here. Do not
132         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
133         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
134         (tls_global_dynamic_64): Add operand 2.  Do not determine
135         __tls_get_addr symbol reference here.  Do not call
136         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
137         (tls_local_dynamic_base64): Ditto for operand 1.
138
139 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
140
141         * function.c (expand_function_start): Initialize stack_check_probe_note
142         only if the generic stack checking mechanism is used.
143
144 2011-05-11  Richard Guenther  <rguenther@suse.de>
145
146         PR tree-optimization/15256
147         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
148         (A & B) | C, combine (A op CST1) op CST2.
149         (tree_ssa_forward_propagate_single_use_vars): Only bother to
150         visit assigns that have uses.
151
152 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
153
154         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
155         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
156         (unpack_ts_type_common_value_fields): ...this.  Update comment.
157         (unpack_value_fields): Adjust for renaming.
158         (lto_input_ts_type_tree_pointers): Split into...
159         (lto_input_ts_type_common_tree_pointer): ...this and...
160         (lto_input_ts_type_non_common_tree_pointers): ...this.
161         (lto_input_tree_pointers): Adjust for above split.
162         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
163         (pack_ts_type_common_value_fields): ...this.  Update comment.
164         (lto_output_ts_type_tree_pointers): Split into...
165         (lto_output_ts_type_common_tree_pointers): ...this and...
166         (lto_output_ts_type_non_common_tree_pointers): ...this.
167         (lto_output_tree_pointers): Adjust for above split.
168         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
169         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
170         * stor-layout.c (vector_type_mode): Adjust location of mode field.
171         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
172         Define.
173         (struct tree_type): Split into...
174         (struct tree_type_common: ...this and...
175         (struct tree_type_with_lang_specific): ...this and...
176         (struct tree_type_non_common): ...this.  Adjust accessor macros
177         accordingly.
178         (TYPE_VALUES_RAW): Define.
179         (union tree_node): Update for above changes.
180         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
181         TS_TYPE_NON_COMMON.
182         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
183         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
184         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
185         * treestructu.def (TS_TYPE): Remove.
186         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
187         Define.
188
189 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
190
191         PR debug/48159
192         * tree-ssa.c (reset_debug_uses): New function.
193         * tree-flow.h (reset_debug_uses): New prototype.
194         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
195         * tree-loop-distribution.c (generate_loops_for_partition): Call
196         reset_debug_uses on the stmts that will be removed.  Keep around
197         all debug stmts, don't count them as bits in partition bitmap.
198         (generate_builtin): Don't count debug stmts or labels as bits in
199         partition bitmap.
200
201 2011-05-11  Richard Guenther  <rguenther@suse.de>
202
203         * gimple.c (gimple_type_hash_1): Merge with ...
204         (gimple_type_hash): ... this.
205         (gtc_visit): Remove mode parameter and simplify accordingly.
206         (gimple_types_compatible_p_1): Likewise.
207         (gimple_types_compatible_p): Likewise.
208         (iterative_hash_gimple_type): Likewise.
209         (visit): Likewise.
210         (gimple_type_eq): Adjust.
211
212 2011-05-11  Revital Eres  <revital.eres@linaro.org>
213
214         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
215         enters the branch create an anti edge in the opposite direction
216         to prevent the creation of reg-moves.
217         * modulo-sched.c: Adjust comment to reflect the fact we are
218         scheduling closing branch.
219         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
220         (stage_count): New field in struct partial_schedule.
221         (calculate_stage_count): New function.
222         (normalize_sched_times): Rename to reset_sched_times and handle
223         incrementing the sched time of the nodes by a constant value
224         passed as parameter.
225         (duplicate_insns_of_cycles): Skip closing branch.
226         (sms_schedule_by_order): Schedule closing branch.
227         (ps_insn_find_column): Handle closing branch.
228         (sms_schedule): Call reset_sched_times and adjust the code to
229         support scheduling of the closing branch.
230         (ps_insert_empty_row): Update calls to normalize_sched_times
231         and rotate_partial_schedule functions.
232
233 2011-05-11  Richard Guenther  <rguenther@suse.de>
234
235         PR middle-end/48953
236         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
237
238 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
239
240         * opts.c (finish_options): Move warning settings from process_options.
241         * toplev.c (process_options): Move warning settings to finish_options.
242
243 2011-05-11  Richard Guenther  <rguenther@suse.de>
244
245         PR tree-optimization/18041
246         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
247         (simplify_bitwise_binary): ... this.  Handle operand conversions
248         by applying them to the result instead.
249         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
250
251 2011-05-11  Richard Guenther  <rguenther@suse.de>
252
253         * gimple.c (gimple_canonical_types_compatible_p): Split out
254         from gimple_types_compatible_p and friends.  Do not recurse
255         to pointed-to types.
256         (gimple_canonical_type_eq): Use it.
257         (iterative_hash_canonical_type): Split out from
258         iterative_hash_gimple_type and friends.  Do not recurse
259         to pointed-to types.
260         (gimple_canonical_type_hash): Use it, allocate the hash here.
261
262 2011-05-11  Revital Eres  <revital.eres@linaro.org>
263
264         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
265         recognizing doloop.
266
267 2011-05-11  Revital Eres  <revital.eres@linaro.org>
268
269         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
270         instead of PREV_INSN.
271
272 2011-05-11  Revital Eres  <revital.eres@linaro.org>
273
274         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
275         * loop-doloop.c (doloop_condition_get): Likewise.
276         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
277         (doloop_end): New.
278         * config/arm/arm.md (*addsi3_compare0): Remove "*".
279
280 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
281
282         * tree.def (CASE_LABEL_EXPR): Add an operand.
283         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
284
285 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
286
287         * c-decl.c (c_override_global_bindings_to_false): Remove.
288         (global_bindings_p): Don't check
289         c_override_global_bindings_to_false.
290         * c-tree.h (c_override_global_bindings_to_false): Remove.
291         * c-typeck.c (composite_type): Don't set
292         c_override_global_bindings_to_false.
293
294 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
295
296         PR target/48857, 48495
297         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
298         (VSX_MODE): Ditto.
299         (VSX_MOVE_MODE): Ditto.
300         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
301         VSX vector types.  Add V2DImode.
302         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
303         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
304         (MODES_TIEABLE_P): Ditto.
305
306         * config/rs6000/rs6000.c (rs6000_emit_move): Use
307         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
308         VSX_VECTOR_MODE.
309         (init_cumulative_args): Ditto.
310         (rs6000_function_arg_boundary): Ditto.
311         (rs6000_function_arg_advance_1): Ditto.
312         (rs6000_function_arg): Ditto.
313         (rs6000_function_ok_for_sibcall): Ditto.
314         (emit_frame_save): Ditto.
315         (rs6000_function_value): Ditto.
316         (rs6000_libcall_value): Ditto.
317
318 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
319
320         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
321         i386/darwin-lib.h to $libgcc_tm_file.
322         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
323
324 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
325
326         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
327
328 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
329
330         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
331         * config/rs6000/rs6000-tables.opt: New file (generated).
332         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
333         rs6000/rs6000-tables.opt to extra_options.
334         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
335         * config/rs6000/rs6000.c (rs6000_select): Remove.
336         (processor_target_table): Move contents to rs6000-cpus.def.
337         (darwin_rs6000_override_options): Check
338         global_options_set.x_rs6000_cpu_index instead of
339         rs6000_select[1].string.
340         (rs6000_option_override_internal): Likewise.
341         (rs6000_handle_option): Don't assert that global structures are in
342         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
343         (rs6000_default_cpu): New variable.
344         (rs6000_file_start): Set it instead of local default_cpu.  Check
345         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
346         global_options_set.x_rs6000_tune_index instead of rs6000_select.
347         (rs6000_darwin_file_start): Check rs6000_default_cpu and
348         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
349         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
350         rs6000_select): Remove.
351         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
352         Remove.
353         (mcpu=, mtune=): Use Var, Init, Enum and Save.
354         * config/rs6000/t-rs6000
355         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
356         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
357         global_options_set.x_rs6000_cpu_index instead of
358         rs6000_select[1].string.
359         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
360         global_options_set.x_rs6000_cpu_index instead of
361         rs6000_select[1].string.
362
363 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
364
365         * config.gcc (libgcc_tm_file): Define instead of including files
366         from ../../libgcc/config/ in tm_file.
367         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
368         * configure: Regenerate.
369         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
370         libgcc_tm.h, cs-libgcc_tm.h): New.
371         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
372         (clean): Remove libgcc_tm.h.
373         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
374         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
375         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
376
377 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
378
379         PR target/48896
380         * config/avr/avr.c (avr_ret_register): Return unsigned int
381         instead of int.
382         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
383         it to avr_libcall_value.
384         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
385         expand_expr.
386         (avr_expand_binop_builtin): Ditto.
387         (avr_expand_unop_builtin): Ditto.
388
389 2011-05-10  DJ Delorie  <dj@redhat.com>
390
391         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
392         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
393         * config/rx/rx.c (rx_align_for_label): Add label and
394         uses_threshold parameters.  Do not align when the label is not
395         used enough.
396         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
397
398 2011-05-10  Richard Guenther  <rguenther@suse.de>
399
400         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
401         a series of conversions and apply foldings similar to what
402         fold-const does.
403         (tree_ssa_forward_propagate_single_use_vars): Call it.
404
405 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
406
407         PR tree-optimization/48611
408         PR tree-optimization/48794
409         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
410         referenced from RESX or EH_DISPATCH arguments.
411
412         PR debug/48928
413         * dfp.c (decimal_to_decnumber): Handle conversion from
414         dconst{1,2,m1,half}.
415
416 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
417
418         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
419         for !flag_prefer_avx128.
420         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
421
422 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
423
424         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
425         (fold_ternary_loc): Use expr_location_or.
426
427 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
428
429         PR debug/48853
430         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
431         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
432         Pmode and mem_mode is not VOIDmode.
433
434 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
435
436         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
437         TYPE_QUAL_RESTRICT): Convert to enum.
438
439 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
440
441         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
442         (const_pow2_1_to_8_operand): Ditto.
443         (const_pow2_1_to_128_operand): Ditto.
444         (const_pow2_1_to_32768_operand): Ditto.
445         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
446         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
447         in insn constraint to check integer value of operand 3.
448         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
449
450         (PINSR_MODE): New mode iterator.
451         (sse2p4_1): New mode attribute.
452         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
453         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
454         iterator.  Use const_int_operand instead of
455         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
456         exact_log2 in insn constraint to check integer value of operand 3.
457
458 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
459
460         * config/i386/sse.md (blendbits): Remove mode attribute.
461         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
462         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
463         Check integer value of operand 3 in insn constraint.
464
465 2011-05-09  Richard Guenther  <rguenther@suse.de>
466
467         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
468         for diagnostics.
469         (lto_symtab_merge): Likewise.  Do not register types here.
470         (lto_symtab_merge_decls_2): Likewise.
471         (lto_symtab_merge_decls_1): Likewise.
472         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
473         * gimple.c (enum gtc_mode): Declare.
474         (gimple_types_compatible_p): Make static.
475
476 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
477
478         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
479         temporary register to match Pmode.
480
481 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
482
483         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
484         and *vec_concatv4si_1_avx.
485
486 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
487
488         PR rtl-optimization/48927
489         * ira-conflicts.c (commutative_constraint_p): Use
490         recog_data.alternative_enabled_p to disable alternatives where
491         "enabled" attribute is false.
492         (get_dup_num): Ditto.
493         * ira-lives.c (single_reg_class): Ditto.
494         (ira_implicitly_set_insn_hard_regs): Ditto.
495
496 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
497
498         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
499         (dataflow_set_preserve_mem_locs): Likewise.
500
501 2011-05-09  Philipp Thomas  <pth@suse.de>
502
503         * config/mep/mep.c (mep_validate_vliw): Syntax description
504         should not be translated.
505
506 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
507
508         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
509         * config/mips/mips-tables.opt: New file (generated).
510         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
511         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
512         MIPS_ARCH_OPTION_NATIVE): Define.
513         * config/mips/mips.c (mips_cpu_info_table): Move contents to
514         mips-cpus.def.
515         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
516         mips_parse_cpu): Remove.
517         (mips_cpu_info_from_opt, mips_default_arch): New.
518         (mips_handle_option): Don't assert that global structures are in
519         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
520         (mips_option_override): Use new variables and functions to set
521         state of these options.  Use strcmp to check for individual CPU names.
522         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
523         definition.
524         * config/mips/mips.opt (march=): Use ToLower and Enum.
525         (mips): Use ToLower, Enum and Var.
526         (mtune=): Use ToLower and Enum.
527         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
528
529 2011-05-08  Jan Hubicka  <jh@suse.cz>
530
531         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
532         Arrange type pairs to be UID ordered.
533         (gimple_lookup_type_leader): Make inline.
534
535 2011-05-09  Nick Clifton  <nickc@redhat.com>
536
537         PR target/48899
538         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
539         PROCESSOR_DEFAULT.
540
541         PR target/48897
542         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
543         variable 's'.
544
545 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
546
547         * combine.c (simplify_comparison): Abstract out parts into...
548         (simplify_compare_const): ... new function.
549         (try_combine): Generalize parallel arithmetic/compare combining
550         to call simplify_compare_const() and CANONICALIZE_COMPARE().
551
552 2011-05-08  Jan Hubicka  <jh@suse.cz>
553
554         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
555         (cgraph_create_virtual_clone): Call hooks once virtual clone
556         is finished.
557         * cgraph.h (cgraph_clone_node): Update prototype.
558         * ipa-cp.c (ipcp_estimate_growth): Use
559         estimate_ipcp_clone_size_and_time.
560         * ipa-inline-transform.c (clone_inlined_nodes): Update.
561         * lto-cgraph.c (input_node): Update.
562         * ipa-inline.c (recursive_inlining): Update.
563         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
564         (evaluate_conditions_for_known_args): Break out from ...
565         (evaluate_conditions_for_edge): ... here.
566         (evaluate_conditions_for_ipcp_clone): New function.
567         (inline_node_duplication_hook): Update clone summary based
568         on parameter map.
569         (estimate_callee_size_and_time): Rename to ...
570         (estimate_node_size_and_time): take NODE instead of EDGE;
571         take POSSIBLE_TRUTHS as argument.
572         (estimate_callee_size_and_time): Update.
573         (estimate_ipcp_clone_size_and_time): New function.
574         (do_estimate_edge_time): Update.
575
576 2011-05-08  Richard Guenther  <rguenther@suse.de>
577
578         PR middle-end/48908
579         PR middle-end/48905
580         * expmed.c (expand_shift_1): Compute adjusted constant shift
581         amount manually.
582
583 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
584
585         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
586
587 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
588
589         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
590
591 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
592
593         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
594
595 2011-05-07  Jan Hubicka  <jh@suse.cz>
596
597         * ipa-inline-transform.c (inline_call): Account when program size
598         decreases.
599         * ipa-inline.c (relative_time_benefit): New function.
600         (edge_badness): Reorganize to be power 2 based; fix thinko when
601         computing badness for negative growth; update comments to match
602         reality; better dumps.
603
604 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
605
606         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
607         type to bool and adjust comment.
608         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
609         (fold_mathfn_compare): Remove calls to global_bindings_p.
610         (fold_inf_compare): Likewise.
611         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
612         * c-tree.h (global_bindings_p): Adjust prototype.
613         * c-decl.c (global_bindings_p): Return bool and simplify.
614
615 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
616
617         PR tree-optimization/48837
618         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
619         when accumulator transformation is performed.
620
621 2011-05-06  Jan Hubicka  <jh@suse.cz>
622
623         * i386.h (ix86_tune_indices): Add
624         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
625         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
626         * i386.c (initial_ix86_tune_features): Add
627         X86_SOFTARE_PREFETCHING_BENEFICIAL.
628         (software_prefetching_beneficial_p): Remove predicate.
629         (ix86_option_override_internal): Use new macro.
630
631 2011-05-06  Jan Hubicka  <jh@suse.cz>
632
633         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
634
635 2011-05-06  Jan Hubicka  <jh@suse.cz>
636
637         * cgraph.c (cgraph_add_thunk): Create real function node instead
638         of alias node; finalize it and mark needed/reachale; arrange visibility
639         to be right and add it into the corresponding same comdat group list.
640         (dump_cgraph_node): Dump thunks.
641         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
642         cgraph_function_with_gimple_body_p,
643         cgraph_first_function_with_gimple_body,
644         cgraph_next_function_with_gimple_body): New functions.
645         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
646         New macros.
647         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
648         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
649         * cgraphunit.c (cgraph_finalize_function): Only look into possible
650         devirtualization when optimizing.
651         (verify_cgraph_node): Verify thunks.
652         (cgraph_analyze_function): Analyze thunks.
653         (cgraph_mark_functions_to_output): Output thunks only in combination
654         with function they are assigned to.
655         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
656         alias into normal node.
657         (assemble_thunks): New functoin.
658         (cgraph_expand_function): Use it.
659         * lto-cgraph.c (lto_output_node): Stream thunks.
660         (input_overwrite_node): Stream in thunks.
661         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
662         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
663         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
664         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
665         (inline_analyze_function): Do not care about thunk jump functions.
666         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
667         * ipa-prop.c (ipa_prop_write_jump_functions): Use
668         cgraph_function_with_gimple_body_p.
669         * passes.c (do_per_function_toporder): Use
670         cgraph_function_with_gimple_body_p.
671         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
672         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
673         (function_called_by_processed_nodes_p): Likewise.
674
675 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
676
677         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
678         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
679         entries.
680         (mabi=): Replace with separate entries for mabi=altivec,
681         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
682         mabi=ieeelongdouble and mabi=ibmlongdouble.
683         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
684         check for -mabi=spe without SPE ABI support here.
685         (rs6000_handle_option): Replace OPT_mabi_ handling with
686         OPT_mabi_altivec and OPT_mabi_spe handling.
687
688 2011-05-06  Cary Coutant  <ccoutant@google.com>
689
690         * dwarf2out.c (contains_subprogram_definition): New function.
691         (should_move_die_to_comdat): Call it.
692
693 2011-05-06  Jeff Law  <law@redhat.com>
694
695         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
696         remove_ctrl_stmt_and_useless_edges.
697         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
698         (fixup_template_block, thread_single_edge): Likewise.
699         (mark_threaded_blocks): Use THREAD_TARGET.
700
701 2011-05-06  Alan Modra  <amodra@gmail.com>
702
703         PR target/48900
704         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
705         const0_rtx as the arg to the dummy __tls_get_addr libcall.
706
707 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
708
709         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
710         constraint modifier to "r".
711
712 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
713
714         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
715         fall through for OPT_mcmodel_.
716
717 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
718
719         * config/s390/s390.c (s390_asm_trampoline_template): Comment
720         instruction sizes.
721         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
722
723 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
724
725         PR target/47930
726         * config/arm/arm.opt (marm): Document it.
727         (mthumb): Reject negative variant.
728
729 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
730
731         PR target/48898
732         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
733         Fix typo in "ccvt" variable name.
734
735 2011-05-06  Tristan Gingold  <gingold@adacore.com>
736
737         PR target/48895
738         * config/vms/vms-ar.c (main): Remove cwd variable.
739
740 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
741
742         PR debug/48902
743         * var-tracking.c (prepare_call_arguments): Move else before #endif.
744
745 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
746
747         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
748         * gimplify.c (gimplify_switch_expr): Likewise.
749         * omp-low.c (expand_omp_sections): Likewise.
750         * tree-eh.c (lower_try_finally_switch): Likewise.
751         (lower_eh_dispatch): Likewise.
752         * tree.h (build_case_label): Declare.
753         * tree.c (build_case_label): Define.
754
755 2011-05-05  Jason Merrill  <jason@redhat.com>
756
757         PR c++/40975
758         * tree-inline.c (copy_tree_r): Use copy_statement_list.
759         (copy_statement_list): Don't recurse.
760         * stor-layout.c (copy_self_referential_tree_r): Don't allow
761         STATEMENT_LIST.
762
763 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
764
765         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
766         through from -mfpu= handling.
767         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
768
769 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
770
771         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
772         POST_MODIFY.
773
774 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
775
776         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
777         for 11.31.
778         (hppa[12]*-*-hpux11*): Ditto.
779         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
780         * config/ia64/hpux-unix2003.h: New.
781         * config/pa/pa-hpux1131.opt: New.
782         * config/pa/pa-hpux1131.h: New.
783         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
784         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
785         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
786
787 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
788
789         PR debug/48853
790         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
791         instead of mode as 3rd argument to recursive call.
792         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
793         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
794         VOIDmode.
795         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
796         don't give up if mode is Pmode and mem_mode is not VOIDmode.
797         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
798         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
799
800 2011-05-05  Julian Brown  <julian@codesourcery.com>
801
802         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
803         parenthesis in D-register case.
804
805 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
806
807         * opt-functions.awk (var_type_struct): Handle Enum options.
808         * optc-gen.awk: Don't check range of variables of character type.
809         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
810         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
811         rs6000_sdata_name, rs6000_explicit_options): Remove.
812         (rs6000_option_override_internal): Check for -malign-power here.
813         Use global_options_set instead of rs6000_explicit_options.
814         (rs6000_parse_fpu_option): Remove.
815         (rs6000_handle_option): Access variables via opts and opts_set
816         pointers.  Use error_at and warning_at.  Add fall-through
817         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
818         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
819         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
820         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
821         here.  Don't use rs6000_parse_fpu_option.
822         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
823         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
824         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
825         (mrecip=): Use Var.
826         (mspe): Use Var and Save.
827         (mtraceback=): Use Enum and Var.
828         (rs6000_traceback_type): New Enum and EnumValue entries.
829         (mfloat-gprs=): Use Enum, Var and Save.
830         (rs6000_float_gprs): New Enum and EnumValue entries.
831         (mlong-double-): use Var and Save.
832         (msched-costly-dep=, minsert-sched-nops=): Use Var.
833         (malign-): Use Enum and Var.
834         (rs6000_alignment_flags): New Enum and EnumValue entries.
835         (mfpu=): Use Enum.
836         (fpu_type_t): New Enum and EnumValue entries.
837         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
838         global_options_set instead of rs6000_explicit_options.
839         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
840         global_options_set instead of rs6000_explicit_options.
841         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
842         global_options_set instead of rs6000_explicit_options.
843         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
844         global_options_set instead of rs6000_explicit_options.
845         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
846         global_options_set instead of rs6000_explicit_options.
847         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
848         global_options_set instead of rs6000_explicit_options.
849         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
850         definition.
851         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
852         global_options_set instead of rs6000_explicit_options.
853         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
854         (rs6000_cmodel): New Enum and EnumValue entries.
855         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
856         global_options_set instead of rs6000_explicit_options.
857         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
858         (mtls-size=): Use Enum and Var.
859         (rs6000_tls_size): New Enum and EnumValue entries.
860
861 2011-05-05  Michael Matz  <matz@suse.de>
862
863         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
864         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
865         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
866         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
867         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
868         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
869         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
870         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
871         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
872         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
873         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
874         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
875         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
876         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
877         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
878         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
879
880 2011-05-05  Richard Guenther  <rguenther@suse.de>
881
882         * expmed.c (expand_variable_shift): Rename to ...
883         (expand_shift_1): ... this.  Take an expanded shift amount.
884         For rotates recurse directly not building trees for the shift amount.
885         (expand_variable_shift): Wrap around expand_shift_1.
886         (expand_shift): Adjust.
887
888 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
889
890         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
891
892 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
893
894         * tree.h (get_pending_sizes): Remove prototype.
895         (put_pending_size): Likewise.
896         (put_pending_sizes): Likewise.
897         * stor-layout.c (pending_sizes): Delete.
898         (get_pending_sizes): Likewise.
899         (put_pending_size): Likewise.
900         (put_pending_sizes): Likewise.
901         (variable_size): Do not call put_pending_size and tidy up.
902         * function.h (struct function): Remove dont_save_pending_sizes_p.
903         * lto-streamer-in.c (input_function): Do not stream it.
904         * lto-streamer-out.c (output_function): Likewise.
905         * tree-inline.c (initialize_cfun): Do not copy it.
906         * c-decl.c (store_parm_decls): Do not set it.
907         * omp-low.c (create_task_copyfn): Likewise.
908         * tree-optimize.c (tree_rest_of_compilation): Likewise.
909
910 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
911
912         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
913         conditions.
914         (*movdf_internal): Ditto.
915         (*movdf_internal_nointeger): Ditto.
916         (*movsf_internal): Ditto.
917
918 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
919
920         * c-decl.c (finish_decl): Don't call get_pending_sizes.
921         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
922         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
923         (c_variable_size): Remove.
924         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
925         call put_pending_sizes.
926         (get_parm_info): Add parameter expr.  Use it to set
927         arg_info->pending_sizes.
928         (store_parm_decls): Use arg_info->pending_sizes instead or calling
929         get_pending_sizes.
930         * c-parser.c (c_parser_parms_declarator): Update call to
931         c_parser_parms_list_declarator.
932         (c_parser_parms_list_declarator): Take parameter expr.  Update
933         call to push_parm_decl.  Update recursive call.  Don't call
934         get_pending_sizes.  Update calls to get_parm_info.
935         (c_parser_objc_method_definition): Update calls to
936         c_parser_objc_method_decl and objc_start_method_definition.
937         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
938         (c_parser_objc_method_decl): Add parameter expr.  Update call to
939         grokparm.
940         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
941         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
942         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
943
944 2011-05-05  Michael Hope  <michael.hope@linaro.org>
945
946         PR pch/45979
947         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
948         __ARM_EABI__ hosts.
949
950 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
951
952         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
953         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
954         (spu_output_mi_thunk): New function.
955
956 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
957
958         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
959         targetm.asm_out.print_operand.
960         * config/sol2.c: Include target.h.
961
962 2011-05-04  Jan Hubicka  <jh@suse.cz>
963
964         * ipa-inline.c (reset_edge_caches): New function.
965         (update_caller_keys): Add check_inlinablity_for; do not
966         reset edge caches; remove now unnecesary loop.
967         (update_callee_keys): Add comments; reset node_growth_cache of callee.
968         (update_all_callee_keys): Likewise.
969         (inline_small_functions): Sanity check cache; update code
970         recomputing it.
971
972 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
973
974         PR rtl-optimization/47612
975         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
976         as the last insn of the sequence to be moved.
977
978 2011-05-04  Tobias Burnus  <burnus@net-b.de>
979
980         PR fortran/48864
981         * doc/invoke.texi (Ofast): Document that it
982         enables Fortran's -fno-protect-parens.
983
984 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
985
986         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
987
988 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
989
990         * stor-layout.c (variable_size): Do not issue errors.
991
992 2011-05-04  Richard Guenther  <rguenther@suse.de>
993
994         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
995         for array-ref indices.
996         (tree_coverage_counter_addr): Likewise.
997         (build_fn_info_type): Use size_int for index types.
998         (build_gcov_info): Likewise.
999
1000 2011-05-04  Richard Guenther  <rguenther@suse.de>
1001
1002         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1003         to build_int_cst.
1004         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1005         for constructor indices.
1006         (push_init_level): Likewise.
1007
1008 2011-05-04  Richard Guenther  <rguenther@suse.de>
1009
1010         * explow.c (promote_mode): Move variable declarations before code.
1011
1012 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1013
1014         * tree.h (build_function_type_array): Declare.
1015         (build_varargs_function_type_array): Declare.
1016         (build_function_type_vec, build_varargs_function_type_vec): Define.
1017         * tree.c (build_function_type_array_1): New function.
1018         (build_function_type_array): New function.
1019         (build_varargs_function_type_array): New function.
1020
1021 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1022
1023         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1024         before setting STMT_VINFO_TYPE.
1025
1026 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1027
1028         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1029         instead of spu_pass_by_reference.
1030
1031 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1032
1033         * calls.c (emit_library_call_value_1): Invoke
1034         promote_function_mode hook on libcall arguments.
1035         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1036         argument being NULL.
1037         * targhooks.c (default_promote_function_mode): Lisewise.
1038         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1039         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1040
1041         * doc/tm.texi: Document that TYPE argument might be NULL.
1042
1043 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1044
1045         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1046
1047 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1048
1049         From Bernd Schmidt
1050         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1051
1052 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1053
1054         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1055         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1056         Move ...
1057         * mips-tfile.c: ... here.
1058         Don't include coretypes.h, tm.h, filenames.h.
1059         (saber_stop): Remove definition and all calls.
1060         [__SABER__]: Remove.
1061         (__LINE__): Remove default.
1062         (Size_t, Ptrdiff_t): Remove definitions.
1063         Replace by size_t, ptrdiff_t.
1064         [!MIPS_DEBUGGING_INFO]: Remove.
1065         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1066         (progname): Add const.
1067         (STATIC): Remove.
1068         Replace all uses by static.
1069         (ALIGN_SYMTABLE_OFFSET): Remove default.
1070         * mips-tdump.c: Don't include coretypes.h, tm.h.
1071         Remove !MIPS_IS_STAB guard.
1072         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1073         $(TM_H), filenames.h dependencies.
1074         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1075
1076 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1077
1078         From Jie Zhang
1079         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1080         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1081
1082 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1083
1084         From Bernd Schmidt
1085         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1086         account and save/restore RETS.
1087         (PROFILE_BEFORE_PROLOGUE): Define.
1088         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1089         the push insn to use predecrement.
1090
1091 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1092
1093         From Jie Zhang
1094         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1095
1096 2011-05-04  Nick Clifton  <nickc@redhat.com>
1097
1098         * config/mn10300/mn10300.c: Include cfgloop.h.
1099         (DUMP): New macro.
1100         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1101         Lcc or a FLcc insn into the instruction stream.
1102         (mn10300_block_contains_call): New function.  Returns true if the
1103         given basic block contains a CALL insn.
1104         (mn10300_loop_contains_call_insn): New function.  Returns true if
1105         the given loop contains a CALL insn.
1106         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1107         to use the SETLB and Lcc or FLcc insns.
1108         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1109         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1110         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1111         disable the SETLB optimization.
1112         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1113         __SETLB__ or __NO_SETLB__.
1114         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1115         (movsf_internal): Handle MDR register.
1116         (cmpsi): Make visible.
1117         (setlb): New pattern.
1118         (Lcc): New pattern.
1119         (FLcc): New pattern.
1120
1121 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1122
1123         PR target/48860
1124         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1125         for reg<->xmm moves.
1126         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1127         (vec_concatv2di_rex64_sse): Ditto.
1128         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1129         (*vec_extractv2di_1_rex64): Ditto.
1130
1131         Revert:
1132         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1133
1134         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1135         reg<->xmm moves.
1136         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1137
1138 2011-05-04  Richard Guenther  <rguenther@suse.de>
1139
1140         * tree.h (int_const_binop): Remove notrunc argument.
1141         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1142         create integer constants that are properly truncated.
1143         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1144         (const_binop): Remove zero notrunc argument to int_const_binop.
1145         (size_binop_loc): Likewise.
1146         (fold_div_compare): Likewise.
1147         (maybe_canonicalize_comparison_1): Likewise.
1148         (fold_comparison): Likewise.
1149         (fold_binary_loc): Likewise.
1150         (multiple_of_p): Likewise.
1151         * expr.c (store_constructor): Likewise.
1152         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1153         (maybe_fold_stmt_addition): Likewise.
1154         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1155         * stor-layout.c (layout_type): Likewise.
1156         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1157         * tree-sra.c (build_ref_for_offset): Likewise.
1158         (build_user_friendly_ref_for_offset): Likewise.
1159         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1160         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1161         * tree-ssa-loop-niter.c (inverse): Likewise.
1162         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1163         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1164         * tree-switch-conversion.c (check_range): Likewise.
1165         (build_constructors): Likewise.
1166         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1167         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1168         (extract_range_from_assert): Likewise.
1169         (vrp_int_const_binop): Likewise.
1170         (extract_range_from_binary_expr): Likewise.
1171         (extract_range_from_unary_expr): Likewise.
1172         (check_array_ref): Likewise.
1173         (find_case_label_range): Likewise.
1174         (simplify_div_or_mod_using_ranges): Likewise.
1175         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1176         comparing case labels for merging.
1177
1178 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1179
1180         * dwarf2out.c (debug_str_hash_forced): Removed.
1181         (gen_label_for_indirect_string): Removed.
1182         (get_debug_string_label): Removed.
1183         (AT_string_form): Generate label directly.
1184         (output_indirect_string): Test indirect_string_node for
1185         DW_FORM_strp instead of checking label and refcount.
1186         (prune_indirect_string): Removed.
1187         (prune_unused_types): Don't check debug_str_hash_forced or
1188         call prune_indirect_string.
1189
1190 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1191
1192         PR other/48093
1193         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1194
1195 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1196
1197         PR debug/47994
1198         PR debug/47919
1199         * combine.c (try_combine): Skip debug insns at m_split tests.
1200
1201 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1202
1203         PR42288
1204         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1205         when info_section_emitted.
1206
1207 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1208
1209         * config/mips/mips-opts.h: New.
1210         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1211         to mips-opts.h.
1212         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1213         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1214         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1215         via opts pointer.
1216         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1217         mips-opts.h.
1218         (mips_abi, mips_code_readable): Don't declare.
1219         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1220         (mabi=): Use Enum and Var.
1221         (mips_abi): New Enum and EnumValue entries.
1222         (mcode-readable=): Use Enum and Var.
1223         (mips_code_readable_setting): New Enum and EnumValue entries.
1224         (mr10k-cache-barrier=): Use Enum and Var.
1225         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1226
1227 2011-05-03  Jan Hubicka  <jh@suse.cz>
1228
1229         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1230         replace hash by pointer map.
1231         (cgraph_node_set_element_def, cgraph_node_set_element,
1232         const_cgraph_node_set_element, varpool_node_set_element_def,
1233         varpool_node_set_element, const_varpool_node_set_element): Remove.
1234         (free_cgraph_node_set, free_varpool_node_set): New function.
1235         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1236         * tree-emutls.c: Free varpool node set.
1237         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1238         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1239         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1240         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1241         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1242         Move here from ipa.c; implement using pointer_map
1243         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1244         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1245         debug_cgraph_node_set, varpool_node_set_new,
1246         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1247         dump_varpool_node_set, debug_varpool_node_set):
1248         Move to ipa-uitls.c.
1249         * passes.c (ipa_write_summaries): Update.
1250
1251 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1252
1253         From Mike Frysinger:
1254         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1255         bf542/bf544/bf547/bf548/bf549.
1256
1257 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1258
1259         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1260
1261 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1262
1263         From Bernd Schmidt:
1264         * config/bfin/bfin.md (MOVCC): New mode_macro.
1265         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1266         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1267         comments from generated assembly.
1268
1269 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1270
1271         From Bernd Schmidt
1272         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1273         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1274         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1275         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1276         * config/bfin/lib1funcs.asm (___muldi3): New function.
1277
1278 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1279
1280         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1281         build_function_type_list instead of build_function_type.
1282         Rearrange initialization of `args' to do so.
1283
1284 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1285
1286         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1287         instead of build_function_type.
1288
1289 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1290
1291         * config/rs6000/rs6000.c (spe_init_builtins): Call
1292         build_function_type_list instead of build_function_type.
1293         (paired_init_builtins, altivec_init_builtins): Likewise.
1294         (builtin_function_type): Likewise.
1295
1296 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1297
1298         * config/sh/sh.c (sh_media_init_builtins): Call
1299         build_function_type_list instead of build_function_type.
1300
1301 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1302
1303         * config/sparc/sparc.c (sparc_file_end): Call
1304         build_function_type_list instead of build_function_type.
1305
1306 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1307
1308         * config/alpha/alpha.c (alpha_init_builtins): Call
1309         build_function_type_list instead of build_function_type.
1310
1311 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1312
1313         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1314         build_function_type_list instead of build_function_type.
1315
1316 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1317
1318         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1319         build_function_type_list instead of build_function_type.
1320         Delete `endlink' variable.
1321
1322 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1323
1324         * config/avr/avr.c (avr_init_builtins): Call
1325         build_function_type_list instead of build_function_type.
1326
1327 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1328
1329         * config/picochip/picochip.c (picochip_init_builtins): Call
1330         build_function_type_list instead of build_function_type.
1331         Delete `endlink' variable.
1332
1333 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1334
1335         * config/bfin/bfin.c (bfin_init_builtins): Call
1336         build_function_type_list instead of build_function_type.
1337
1338 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1339
1340         From Bernd Schmidt
1341         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1342         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1343
1344 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1345
1346         From Jie Zhang:
1347         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1348         libbffastfp overrides libgcc when -mfast-fp.
1349
1350 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1351
1352         Originally from Bernd Schmidt
1353         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1354         * config/bfin/bfin.c (override_options): Test it and error if
1355         TARGET_FDPIC.
1356
1357 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1358
1359         Originally From Bernd Schmidt
1360         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1361         FD-PIC.
1362
1363 2011-05-03  Jeff Law  <law@redhat.com>
1364
1365         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1366         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1367         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1368         than accessing AUX field directly.  Free the AUX field before
1369         clearing it.
1370         (thread_block, thread_through_loop_header): Likewise.
1371         (thread_single_edge, mark_threaded_blocks): Likewise.
1372         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1373         (register_jump_thread): Do not attempt to thread to a NULL edge.
1374
1375 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1376
1377         * function.c (init_function_start): Call decide_function_section.
1378         * varasm.c (decide_function_section): New function.
1379         (assemble_start_function): When not using
1380         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1381         or first_function_block_is_cold.
1382         * rtl.h (decide_function_section): Declare.
1383
1384 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1385             Jakub Jelinek  <jakub@redhat.com>
1386
1387         PR target/48774
1388         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1389         only succeed if req_mode is the same as set_mode.
1390
1391 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1392
1393         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1394         * genemit.c (gen_exp): Handle RETURN.
1395         * emit-rtl.c (verify_rtx_sharing): Likewise.
1396         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1397         * rtl.c (copy_rtx): RETURN is shared.
1398         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1399         (ret_rtx): New.
1400         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1401         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1402         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1403         * config/cris/cris.c (cris_expand_return): Likewise.
1404         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1405         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1406         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1407         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1408         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1409         Likewise.
1410         * config/v850/v850.c (expand_epilogue): Likewise.
1411         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1412         * config/arm/arm.md (epilogue): Likewise.
1413         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1414         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1415         variable to ret_reg.
1416
1417 2011-05-03  Richard Guenther  <rguenther@suse.de>
1418
1419         PR lto/48846
1420         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1421         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1422         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1423
1424 2011-05-03  Richard Guenther  <rguenther@suse.de>
1425
1426         * c-decl.c (grokdeclarator): Instead of looking at
1427         TREE_OVERFLOW check if the constant fits in the index type.
1428
1429 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1430
1431         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1432         (vec_store_lanes<mode><mode>): Likewise.
1433
1434 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1435
1436         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1437         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1438         convert_optab_index values.
1439         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1440         * genopinit.c (optabs): Initialize the new optabs.
1441         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1442         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1443         (expand_STORE_LANES): New functions.
1444         * tree.h (build_array_type_nelts): Declare.
1445         * tree.c (build_array_type_nelts): New function.
1446         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1447         (vect_model_load_cost): Likewise.
1448         (vect_store_lanes_supported, vect_load_lanes_supported)
1449         (vect_record_strided_load_vectors): Declare.
1450         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1451         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1452         (vect_transform_strided_load): Split out statement recording into...
1453         (vect_record_strided_load_vectors): ...this new function.
1454         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1455         (write_vector_array, create_array_ref): New functions.
1456         (vect_model_store_cost): Add store_lanes_p argument.
1457         (vect_model_load_cost): Add load_lanes_p argument.
1458         (vectorizable_store): Try to use store-lanes functions for
1459         interleaved stores.
1460         (vectorizable_load): Likewise load-lanes and loads.
1461         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1462         to vect_model_store_cost.
1463         (vect_build_slp_tree): Likewise vect_model_load_cost.
1464
1465 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1466
1467         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1468         * hooks.c (hook_bool_mode_uhwi_false): New function.
1469         * target.def (array_mode_supported_p): New hook.
1470         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1471         * doc/tm.texi: Regenerate.
1472         * stor-layout.c (mode_for_array): New function.
1473         (layout_type): Use it.
1474         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1475         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1476
1477 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1478
1479         PR target/48723
1480         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1481         for -fstack-check if the size to allocate is negative.
1482
1483 2011-05-02  Lawrence Crowl  <crowl@google.com>
1484
1485         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1486         (timevar_cond_start): New for starting a timer only when it is not
1487         already running.
1488         (timevar_cond_stop): New for stopping a timer when it was not already
1489         running.
1490
1491         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1492         (timevar_cond_start): New as above.
1493         (timevar_cond_stop): New as above.
1494
1495         * timevar.def: Add start/stop timers for compiler phases,
1496         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1497         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1498         and TV_PHASE_FINALIZE.
1499         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1500         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1501         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1502         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1503         Make unused TV_OVERLOAD into a start/stop timer.
1504
1505         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1506         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1507         to indicate that they are start/stop timers.
1508
1509         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1510         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1511         Move initialization to do_compile.
1512         (do_compile): Add initialization from above.
1513         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1514
1515         * c-decl.c (c_write_global_declarations): Add start/stop of
1516         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1517
1518         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1519         or TV_PARSE_INLINE, as appropriate.
1520         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1521         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1522
1523 2011-05-02  Jason Merrill  <jason@redhat.com>
1524
1525         PR c++/40975
1526         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1527
1528 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1529
1530         PR c/35445
1531         * c-decl.c (finish_decl): Only create a composite if the types are
1532         compatible.
1533
1534 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1535
1536         * config/fr30/fr30-protos.h (Mmode): Don't define.
1537         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1538         definition where used.
1539         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1540         define.  Expand definitions where used.
1541         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1542         Expand definitions where used.
1543         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1544         rx_function_arg, rx_function_arg_advance,
1545         rx_function_arg_boundary): Expand definitions of those macros.
1546         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1547         definition where used.
1548
1549 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1550
1551         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1552         reg<->xmm moves.
1553         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1554         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1555         with *movv2sf_internal_rex64_avx.
1556         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1557         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1558         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1559         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1560         "vex" in "prefix" attribute calculation.
1561         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1562
1563 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1564
1565         PR target/47951
1566         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1567         inputs match the output.
1568
1569 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1570
1571         PR target/47955
1572         * config/m68k/m68k.c (m68k_expand_prologue): Set
1573         current_function_static_stack_size.
1574
1575 2011-05-02   Jan Hubicka  <jh@suse.cz>
1576
1577         * lto-streamer.c (lto_streamer_cache_insert_1,
1578         lto_streamer_cache_lookup, lto_streamer_cache_create,
1579         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1580         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1581
1582 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1583
1584         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1585         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1586         config/m68k/t-opts: New files.
1587         * config/m68k/m68k-tables.opt: New file (generated).
1588         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1589         extra_options and m68k/t-opts to tmake_file.
1590         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1591         (all_isas): Initialize using m68k-isas.def.
1592         (all_microarchs): Initialize using m68k-microarchs.def.
1593         (m68k_find_selection): Remove.
1594         (m68k_handle_option): Don't assert that global structures are in
1595         use.  Use error_at.  Access variables via opts pointer.  Don't
1596         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1597         directly for -m68020-40 and -m68020-60.
1598         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1599         m68k_tune_entry here.
1600         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1601         to m68k-opts.h.
1602         (m68k_library_id_string): Remove declaration.
1603         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1604         (m68k_library_id_string): New Variable.
1605         (march=, mcpu=, mtune=): Use Enum and Var.
1606
1607 2011-05-02  Richard Guenther  <rguenther@suse.de>
1608
1609         * varasm.c (output_constructor_regular_field): Compute zero-based
1610         index with double-ints.  Make sure to ICE instead of producing
1611         wrong code.
1612         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1613         in asserts.  Properly use a signed type.
1614
1615 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1616
1617         * config/i386/sse.md (V): New mode iterator.
1618         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1619         TARGET_SSE2.
1620         (V_256): Rename from AVX256MODE.
1621         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1622         condition to all users.
1623         (VF1): Ditto.
1624         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1625         condition to all users.
1626         (VF_128): Make V4SF mode unconditional.
1627         (VF_256): Rename from AVX256MODEF2P.
1628         (VI4F_128): Rename from SSEMODE4S.
1629         (VI8F_128): Rename from SSEMODE2D.
1630         (VI4F_256): Rename from AVX256MODE8P.
1631         (VI8F_256): Rename from AVX256MODE4P.
1632         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1633         (ssescalarmodesuffix): Remove SF and DF modes.
1634         (SSEMODE124): Remove.
1635         (SSEMODE1248): Ditto.
1636         (SSEMODEF2P): Ditto.
1637         (AVXMODEF2P): Ditto.
1638         (AVXMODEFDP): Ditto.
1639         (AVXMODEFSP): Ditto.
1640         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1641         unconditional.
1642         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1643         unconditional.
1644         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1645         xop_pcmov_<mode>256.  Use V mode iterator.
1646
1647         Adjust RTX patterns globally for renamed mode attributes.
1648
1649 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1650
1651         * haifa-sched.c (sched_emit_insn): Emit insn before first
1652         non-scheduled insn.  Inform back-end about new insn.  Add
1653         new insn to scheduled_insns list.
1654
1655 2011-05-02  Richard Guenther  <rguenther@suse.de>
1656
1657         PR tree-optimization/48822
1658         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1659         (process_scc): Indicate which iteration we start.
1660
1661 2011-05-02  Jan Hubicka  <jh@suse.cz>
1662
1663         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1664         (lto_section_overrun): New.
1665         * lto-section-out.c (append_block): Rename to ...
1666         (lto_append_block): ... this one; export.
1667         (lto_output_1_stream): Move lto lto-streamer.h
1668         (lto_output_data_stream): Update.
1669         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1670         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1671         functions.
1672
1673 2011-05-02  Richard Guenther  <rguenther@suse.de>
1674
1675         * tree.c (tree_code_counts): New global array.
1676         (record_node_allocation_statistics): Count individual tree codes.
1677         (dump_tree_statistics): Dump individual code stats.
1678
1679 2011-05-01  Jan Hubicka  <jh@suse.cz>
1680
1681         * ipa-inline.c (caller_growth_limits): Fix thinko when
1682         looking for largest stack frame.
1683         * ipa-inline.h (dump_inline_summary): Declare.
1684         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1685         on stack usage.
1686         (dump_inline_summary): Export.
1687         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1688
1689 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1690
1691         * reginfo.c (memory_move_cost): Change rclass argument type form
1692         'enum reg_class' to reg_class_t.
1693         * reload.h (memory_move_cost): Update prototype.
1694         * postreload.c reload_cse_simplify_set): Change type dclass var to
1695         reg_class_t.
1696         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1697         Update prototype.
1698         (ira_allocate_and_set_costs): Change aclass argument type form
1699         'enum reg_class' to reg_class_t.
1700         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1701         Change aclass argument type to reg_class_t.
1702         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1703         to reg_class_t.
1704         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1705         memory_move_cost call.
1706
1707         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1708         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1709         Change type tmp var to reg_class_t.
1710
1711 2011-04-30  Jan Hubicka  <jh@suse.cz>
1712
1713         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1714         inlining into function with flatten attribute.
1715         (want_inline_small_function_p): Be more realistic about inlining
1716         cold calls where callee size grows.
1717
1718 2011-04-30  Jan Hubicka  <jh@suse.cz>
1719
1720         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1721         flags.
1722
1723 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1724
1725         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1726         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1727         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1728         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1729         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1730         (print_operand): Rename to...
1731         (sparc_print_operand): ...this. Make static. Adjust
1732         sparc_print_operand function call.
1733         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1734         functions.
1735
1736 2011-04-30  Jan Hubicka  <jh@suse.cz>
1737
1738         PR middle-end/48752
1739         * ipa-inline.c (early_inliner): Disable when doing late
1740         addition of function.
1741
1742 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1743
1744         * dwarf2out.c (get_address_mode): New inline.
1745         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1746         if not dwarf_strict emit
1747         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1748         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1749         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1750         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1751         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1752         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1753         mem_loc_descriptor callers.
1754         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1755         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1756         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1757         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1758         (base_types): New variable.
1759         (get_base_type_offset, calc_base_type_die_sizes,
1760         base_type_for_mode, mark_base_types, base_type_cmp,
1761         move_marked_base_types): New functions.
1762         (calc_die_sizes): Assert that die_offset is 0 or equal to
1763         next_die_offset.
1764         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1765         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1766         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1767         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1768         (gen_subprogram_die): Don't give up on call site parameters
1769         with non-integral or large integral modes.  Adjust
1770         mem_loc_descriptor callers.
1771         (prune_unused_types): Call prune_unused_types_mark on base_types
1772         vector entries.
1773         (resolve_addr): Call mark_base_types.
1774         (dwarf2out_finish): Call move_marked_base_types.
1775
1776         PR tree-optimization/48809
1777         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1778         type.
1779         (gen_inbound_check): Don't compute index_expr - range_min in utype
1780         again, instead reuse SSA_NAME initialized in build_arrays.
1781         Remove two useless gsi_for_stmt calls.
1782
1783 2011-04-29  Jeff Law  <law@redhat.com>
1784
1785         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1786
1787 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1788
1789         * cgraph.h (cgraph_postorder): Remove declaration.
1790         * ipa-utils.h (ipa_free_postorder_info): Declare.
1791         (ipa_reverse_postorder): Likewise.
1792         * cgraphunit.c: Include ipa-utils.h.
1793         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1794         * ipa-inline.c: Include ipa-utils.h.
1795         (ipa_inline): Update call to ipa_reverse_postorder.
1796         * ipa-pure-const.c (propagate_pure_const): Update call to
1797         ipa_reduced_postorder and ipa_print_order.  Call
1798         ipa_free_postorder_info to clean up.
1799         (propagate_nothrow): Likewise.
1800         * ipa-reference.c (propagate): Removed a useless call to
1801         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1802         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1803         * ipa.c: Include ipa-utils.h.
1804         (ipa_profile): Update call to ipa_reverse_postorder.
1805         (cgraph_postorder): Moved to...
1806         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1807         (ipa_utils_print_order): Renamed to ipa_print_order.
1808         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1809         comments.
1810         (ipa_free_postorder_info): New function.
1811         * passes.c: Include ipa-utils.h.
1812         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1813         (ipa_write_summaries): Likewise.
1814         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1815         (cgraphunit.o): Likewise.
1816         (ipa.o): Likewise.
1817         (ipa-inline.o): Likewise.
1818
1819 2011-04-29  Jan Hubicka  <jh@suse.cz>
1820
1821         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1822         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1823         * ipa-inline.h (clause_t): Turn into unsigned int.
1824         * ipa-inline-analysis.c (add_clause): Do more simplification.
1825         (and_predicates): Shortcut more cases.
1826         (predicates_equal_p): Move forward; check that clauses are properly
1827         ordered.
1828         (or_predicates): Shortcut more cases.
1829         (edge_execution_predicate): Rewrite as...
1830         (set_cond_stmt_execution_predicate): ... this function; handle
1831         __builtin_constant_p.
1832         (set_switch_stmt_execution_predicate): New .
1833         (compute_bb_predicates): New.
1834         (will_be_nonconstant_predicate): Update TODO.
1835         (estimate_function_body_sizes): Use compute_bb_predicates
1836         and free them later, always try to estimate if stmt is constant.
1837         (estimate_time_after_inlining, estimate_size_after_inlining):
1838         Gracefully handle optimized out edges.
1839         (read_predicate): Fix off by one error.
1840
1841 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1842
1843         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1844
1845 2011-04-27  Xinliang David Li  <davidxl@google.com>
1846
1847         * tree-profile.c (init_ic_make_global_vars): Set
1848         tls attribute on ic vars.
1849         * coverage.c (coverage_end_function): Initialize
1850         function_list with zero.
1851
1852 2011-04-29  Richard Guenther  <rguenther@suse.de>
1853
1854         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1855         for the type of the result.
1856         (fold_builtin_isascii): Likewise.
1857         (fold_builtin_toascii): Use integer_type_node where appropriate.
1858         (fold_builtin_logb): Likewise.
1859         (fold_builtin_frexp): Likewise.
1860         (fold_builtin_strstr): Likewise.
1861         (fold_builtin_strpbrk): Likewise.
1862         (fold_builtin_fputs): Likewise.
1863         (fold_builtin_sprintf): Likewise.
1864         (fold_builtin_snprintf): Likewise.
1865         (fold_builtin_printf): Likewise.
1866         (do_mpfr_remquo): Use a proper type for the assigned constant.
1867         (do_mpfr_lgamma_r): Likewise.
1868         * dwarf2out.c (resolve_one_addr): Use size_int.
1869         * except.c (init_eh): Likewise.
1870         (assign_filter_values): Use integer_type_node for filter values.
1871         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1872         indices.
1873         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1874         for EH region numbers.
1875         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1876         for the shift amount.
1877
1878 2011-04-29  Richard Guenther  <rguenther@suse.de>
1879
1880         * expr.h (expand_shift): Rename to ...
1881         (expand_variable_shift): ... this.
1882         (expand_shift): Take a constant shift amount.
1883         * expmed.c (expand_shift): Rename to ...
1884         (expand_variable_shift): ... this.
1885         (expand_shift): New wrapper around expand_variable_shift.
1886         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1887         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1888         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1889         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1890         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1891         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1892         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1893         emit_store_flag_1, emit_store_flag): Likewise.
1894         * builtins.c (expand_builtin_signbit): Likewise.
1895         * calls.c (load_register_parameters): Likewise.
1896         * function.c (assign_parm_setup_block): Likewise.
1897         * lower-subreg.c (resolve_shift_zext): Likewise.
1898         * optabs.c (widen_bswap, expand_abs_nojump,
1899         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1900         * spu/spu.c (spu_expand_extv): Likewise.
1901         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1902
1903 2011-04-29  Richard Guenther  <rguenther@suse.de>
1904
1905         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1906         for the remapped region number.
1907         * predict.c (build_predict_expr): Use integer_type_node for the
1908         predict kind.
1909         * fold-const.c (fold_binary_loc): Use integer_type_node for
1910         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1911
1912 2011-04-29  Michael Matz  <matz@suse.de>
1913
1914         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1915         other trees that just builtins.
1916         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1917
1918 2011-04-29  Richard Guenther  <rguenther@suse.de>
1919
1920         * tree-nested.c (get_trampoline_type): Use size_int.
1921         (get_nl_goto_field): Likewise.
1922         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1923         for all indexes.
1924         (lower_eh_constructs_2): Likewise.
1925         (lower_resx): Likewise.
1926         (lower_eh_dispatch): Likewise.
1927         * tree-mudflap.c (mf_build_string): Use size_int.
1928         (mudflap_register_call): Use integer_type_node for the flag.
1929         (mudflap_enqueue_constant): Use size_int.
1930         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1931         instead of rebuilding it.
1932
1933 2011-04-29  Richard Guenther  <rguenther@suse.de>
1934
1935         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1936         Handle OBJ_TYPE_REF.
1937         (find_func_aliases_for_call): Use it more consistently.
1938
1939 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1940
1941         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1942         (rank_for_schedule): Use it.
1943         (schedule_block): Set it.
1944
1945 2011-04-28  David Li  <davidxl@google.com>
1946
1947         * tree.c (crc32_string): Use crc32_byte.
1948         (crc32_byte): New function.
1949         * tree.h (crc32_byte): New function.
1950         * gcov.c (read_graph_file): Handle new cfg_cksum.
1951         (read_count_file): Ditto.
1952         * profile.c (instrument_values): Ditto.
1953         (get_exec_counts): Ditto.
1954         (read_profile_edge_counts): Ditto.
1955         (compute_branch_probabilities): Ditto.
1956         (compute_value_histograms): Ditto.
1957         (branch_prob): Ditto.
1958         (end_branch_prob): Ditto.
1959         * coverage.c (read_counts_file): Ditto.
1960         (get_coverage_counts): Ditto.
1961         (tree_coverage_counter_addr): Ditto.
1962         (coverage_checksum_string): Ditto.
1963         (coverage_begin_output): Ditto.
1964         (coverage_end_function): Ditto.
1965         (build_fn_info_type): Ditto.
1966         (build_fn_info_value): Ditto.
1967         * libgcov.c (gcov_exit): Ditto.
1968         * gcov-dump.c (tag_function): Ditto.
1969         (compute_checksum): Remove.
1970
1971 2011-04-29  Alan Modra  <amodra@gmail.com>
1972
1973         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1974         unspec plus offset.  Tidy macho code.
1975
1976 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1977
1978         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1979         node instead of a decl.  Update all callers.
1980         * cgraph.h: Update declaration.
1981
1982 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1983
1984         PR tree-optimization/48765
1985         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1986         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1987         to indicate if loop aware SLP is being used.  Scan the statements
1988         and update the vectorization factor according to the type of
1989         vectorization before statement analysis.
1990         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1991         pass it to vect_analyze_loop_operations.
1992         (vectorizable_reduction): Set number of copies to 1 in case of pure
1993         SLP statement.
1994         * tree-vect-stmts.c (vectorizable_conversion,
1995         vectorizable_assignment, vectorizable_shift,
1996         vectorizable_operation, vectorizable_type_demotion,
1997         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1998         Likewise.
1999         (vectorizable_condition): Move the check that it is not SLP
2000         vectorization before the number of copies check.
2001         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2002         to vectorize the loop using SLP.
2003
2004 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2005
2006         PR middle-end/48597
2007         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2008         inline asm.
2009
2010 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2011
2012         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2013         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2014         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2015         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2016         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2017         linux*.h headers.
2018         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2019         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2020         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2021         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2022         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2023         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2024         REG_NAME.
2025         * config/i386/linux.h (REG_NAME): Don't define.
2026         * config/i386/linux64.h (REG_NAME): Don't define.
2027         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2028         Undefine before defining.
2029
2030 2011-04-28  Jan Hubicka  <jh@suse.cz>
2031
2032         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2033         nonconstant_names array.
2034         (estimate_function_body_sizes): Build nonconstant_names array; handle
2035         BUILT_IN_CONSTANT_P.
2036
2037 2011-04-28  Richard Guenther  <rguenther@suse.de>
2038
2039         PR bootstrap/48804
2040         Revert
2041         2011-04-28  Richard Guenther  <rguenther@suse.de>
2042
2043         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2044         as late as possible.
2045
2046 2011-04-28  Richard Guenther  <rguenther@suse.de>
2047
2048         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2049         (debug_constraint): Do it here.
2050         (dump_constraints): And here.
2051         (rewrite_constraints): And here.
2052         (dump_constraint_edge): Remove.
2053         (dump_constraint_graph): Rewrite to produce DOT output.
2054         (solve_constraints): Build succ graph as late as possible.
2055         Dump constraint graphs before and after solving.
2056
2057 2011-04-28  Richard Guenther  <rguenther@suse.de>
2058
2059         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2060         New function split out from ...
2061         (find_func_aliases): ... here.  Call it.
2062         (find_func_aliases_for_call): Likewise.
2063
2064 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2065
2066         * internal-fn.h (internal_fn_name_array): Declare.
2067         (internal_fn_flags_array): Likewise.
2068
2069 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2070
2071         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2072         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2073         Move from sse.md.
2074         (ssemodefsuffix): Remove.
2075         (ssevecmodesuffix): New mode attribute.
2076         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2077         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2078         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2079         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2080         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2081         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2082         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2083         ssemodesuffix mode attribute.
2084         (float splitters): Use ssevecmodesuffix mode attribute.
2085         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2086         (sseinsmode): Rename from avxvecmode.
2087         (avxsizesuffix): Rename from avxmodesuffix.
2088         (sseintvecmode): Rename from avxpermvecmode.
2089         (ssedoublevecmode): Rename from ssedoublesizemode.
2090         (ssehalfvecmode): Rename from avxhalfvecmode.
2091         (ssescalarmode): Rename from avxscalarmode.
2092         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2093         templates for ssemodesuffix mode attribute.
2094         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2095         mode attribute.
2096
2097         Adjust RTX patterns globally for renamed mode attributes.
2098
2099 2011-04-27  Jan Hubcika  <jh@suse.cz>
2100
2101         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2102         * ipa-inline-analysis.c: Include alloc-pool.h.
2103         (edge_predicate_pool): New.
2104         (trye_predicate_p): New function
2105         (false_predicate_p): New function.
2106         (add_clause): Sanity check that false clauses are "optimized";
2107         never add clauses to predicate that is already known to be false.
2108         (and_predicate): Use flase_predicate_p.
2109         (evaulate_predicate): Rename to ...
2110         (evaluate_predicate): ... this one; update all callers; assert
2111         that false is not listed among possible truths.
2112         (dump_predicate): Use true_predicate_p.
2113         (account_size_time): Use false_predicate_p.
2114         (evaulate_conditions_for_edge): Rename to ...
2115         (evaluate_conditions_for_edge) ... this one.
2116         (edge_set_predicate): New function.
2117         (inline_edge_duplication_hook): Duplicate edge predicates.
2118         (inline_edge_removal_hook): Free edge predicates.
2119         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2120         (dump_inline_summary): Update.
2121         (estimate_function_body_sizes): Set edge predicates.
2122         (estimate_calls_size_and_time): Handle predicates.
2123         (estimate_callee_size_and_time): Update.
2124         (remap_predicate): Add toplev_predicate; update comment.
2125         (remap_edge_predicates): New function.
2126         (inline_merge_summary): Compute toplev predicate; update.
2127         (read_predicate): New function.
2128         (read_inline_edge_summary): Use it.
2129         (inline_read_section): Likewise.
2130         (write_predicate): New function.
2131         (write_inline_edge_summary): Use it.
2132         (inline_write_summary): Likewise.
2133         (inline_free_summary): Free alloc pool and edge summary vec.
2134
2135 2011-04-27  Richard Guenther  <rguenther@suse.de>
2136
2137         * tree-ssa-structalias.c (changed_count): Remove.
2138         (changed): Use a bitmap.
2139         (unify_nodes): Adjust.
2140         (do_sd_constraint): Likewise.
2141         (do_ds_constraint): Likewise.
2142         (do_complex_constraint): Likewise.
2143         (solve_graph): Likewise.
2144
2145 2011-04-27  Jan Hubicka  <jh@suse.cz>
2146
2147         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2148
2149 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2150
2151         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2152         (avx_vperm2f128_*_operand): Ditto.
2153         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2154         Use avx_vpermilp_parallel in insn condition.
2155         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2156         Use avx_vperm2f128_parallel in insn condition.
2157
2158 2011-04-27  Richard Guenther  <rguenther@suse.de>
2159
2160         * Makefile.in (tree-ssa-structalias.o): Remove
2161         gt-tree-ssa-structalias.h dependency.
2162         (GTFILES): Remove tree-ssa-structalias.c.
2163         * tree.c (allocate_decl_uid): New function.
2164         (make_node_stat): Use it.
2165         (copy_node_stat): Likewise.
2166         * tree.h (allocate_decl_uid): Declare.
2167         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2168         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2169         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2170         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2171         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2172         (struct heapvar_map): Likewise.
2173         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2174         heapvar_insert): Likewise.
2175         (make_heapvar_for): Rename to ...
2176         (make_heapvar): ... this.  Simplify.
2177         (fake_var_decl_obstack): New global var.
2178         (build_fake_var_decl): New function.
2179         (make_constraint_from_heapvar): Adjust.
2180         (handle_lhs_call): Likewise.
2181         (create_function_info_for): Likewise.
2182         (intra_create_variable_infos): Likewise.
2183         (init_alias_vars): Allocate fake_var_decl_obstack.
2184         (init_alias_heapvars, delete_alias_heapvars): Remove.
2185         (compute_points_to_sets): Do not call init_alias_heapvars.
2186         (ipa_pta_execute): Likewise.
2187         (delete_points_to_sets): Free fake_var_decl_obstack.
2188
2189 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2190
2191         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2192         (si_from_UTItype, si_to_UTItype): New functions.
2193         (__udivmodti4): Use them to implement type-punning.
2194         * config/spu/multi3.c (union qword_TItype): New data type.
2195         (si_from_TItype, si_to_TItype): New functions.
2196         (__multi3): Use them to implement type-punning.
2197
2198 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2199
2200         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2201
2202 2011-04-27  Jan Hubicka  <jh@suse.cz>
2203
2204         * ipa-prop.c (function_insertion_hook_holder): New holder.
2205         (ipa_add_new_function): New function.
2206         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2207         Register/deregister holder.
2208
2209 2011-04-27  Richard Guenther  <rguenther@suse.de>
2210
2211         PR tree-optimization/48772
2212         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2213
2214 2011-04-27  Richard Guenther  <rguenther@suse.de>
2215
2216         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2217         TARGET_MEM_REF handling.
2218
2219 2011-04-27  Nick Clifton  <nickc@redhat.com>
2220
2221         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2222         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2223         (REG_CLASS_NAMES): Likewise.
2224         (REG_CLASS_CONTENTS): Likewise.
2225         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2226         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2227         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2228         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2229         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2230         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2231         duplicate register classes.
2232         (frv_class_likely_spilled_p): Likewise.
2233         (frv_register_move_cost): Likewise.
2234
2235         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2236         end of the regno_reg_class array.
2237
2238 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2239
2240         PR c/48742
2241         * c-typeck.c (build_binary_op): Don't wrap arguments if
2242         int_operands is true.
2243
2244 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2245
2246         PR target/48767
2247         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2248         targetm.calls.must_pass_in_stack for void type.
2249
2250 2011-04-26  Jan Hubicka  <jh@suse.cz>
2251
2252         * cgraphbuild.c (build_cgraph_edges): Update call
2253         of cgraph_create_edge and cgraph_create_indirect_edge.
2254         * cgraph.c (cgraph_create_edge_including_clones,
2255         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2256         cgraph_update_edges_for_call_stmt_node): Do not take nest
2257         argument; do not initialize call_stmt_size/time.
2258         (dump_cgraph_node): Do not dump nest.
2259         (cgraph_clone_edge): Do not take loop_nest argument;
2260         do not propagate it; do not clone call_stmt_size/time.
2261         (cgraph_clone_node): Likewise.
2262         (cgraph_create_virtual_clone): Update.
2263         * cgraph.h (struct cgraph_edge): Remove
2264         call_stmt_size/call_stmt_time/loop_nest.
2265         (cgraph_create_edge, cgraph_create_indirect_edge,
2266         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2267         prototype.
2268         * tree-emutls.c (gen_emutls_addr): Update.
2269         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2270         loop_nest; handle indirect calls, too.
2271         (clone_inlined_nodes): Do not care about updating inline summaries.
2272         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2273         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2274         stream call_stmt_size/call_stmt_time/loop_nest.
2275         * ipa-inline.c (edge_badness): Update.
2276         (ipa_inline): dump summaries after inlining.
2277         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2278         New.
2279         (inline_edge_summary): New function.
2280         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2281         (inline_edge_removal_hook): Handle edge summaries.
2282         (inline_edge_duplication_hook): New hook.
2283         (inline_summary_alloc): Alloc hooks.
2284         (initialize_growth_caches): Do not register removal hooks.
2285         (free_growth_caches); Do not free removal hook.
2286         (dump_inline_edge_summary): New function.
2287         (dump_inline_summary): Use it.
2288         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2289         (inline_update_callee_summaries): New function.
2290         (inline_merge_summary): Use it.
2291         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2292         (read_inline_edge_summary): New function.
2293         (inline_read_section): Use it.
2294         (write_inline_edge_summary): New function.
2295         (inline_write_summary): Use it.
2296         (inline_free_summary): Free edge new holders.
2297         * tree-inline.c (copy_bb): Update.
2298
2299 2011-04-26  Jason Merrill  <jason@redhat.com>
2300
2301         * tree-eh.c (lower_try_finally_switch): Create the label along with
2302         the CASE_LABEL_EXPR.
2303
2304 2011-04-26  David S. Miller  <davem@davemloft.net>
2305             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2306
2307         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2308         * configure: Regenerate.
2309
2310 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2311
2312         PR target/48258
2313         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2314         reduction.
2315         (VEC_reduc): New code iterator and splitters for vector reduction.
2316         (VEC_reduc_name): Ditto.
2317         (VEC_reduc_rtx): Ditto.
2318         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2319         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2320
2321         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2322         support for extracting SF on VSX.
2323
2324         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2325         generating xscvspdp.
2326         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2327         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2328         double add, minimum, maximum vector reduction.
2329         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2330         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2331         optimize double vector reduction.
2332         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2333
2334 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2335
2336         * config/fr30/fr30.h (inhibit_libc): Don't define.
2337         * config/m32r/m32r-protos.h: Correct comment.
2338         * config/v850/v850.h (GHS_default_section_names,
2339         GHS_current_section_names): Use tree, not union tree_node *.
2340
2341 2011-04-26  Xinliang David Li  <davidxl@google.com>
2342
2343         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2344         * c-family/c-opts.c (c_common_handle_option): Set
2345         warn_maybe_uninitialized.
2346         * opts.c (common_handle_option): Ditto.
2347         * common.opt:  New option.
2348         * tree-ssa.c (warn_uninit): Add one more parameter.
2349         (warn_uninitialized_var): Pass warning code.
2350         * tree-flow.h: Interface change.
2351
2352
2353 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2354
2355         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2356         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2357         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2358
2359 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2360
2361         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2362         * config/mips/mips.opt (mmips-tfile): Remove.
2363
2364         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2365         mips-tdump reference to ...
2366         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2367         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2368         reference by Tru64 UNIX.
2369
2370 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2371
2372         PR debug/48768
2373         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2374         is error_mark_node, set value to NULL.
2375
2376         PR tree-optimization/48734
2377         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2378         if return value from maybe_fold_*_comparsions isn't something
2379         the code is prepared to handle.
2380
2381 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2382
2383         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2384         mode check.
2385         (ext_QIreg_nomode_operands): Remove.
2386         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2387         (*andsi_1): Ditto.
2388         (*andhi_1): Ditto.
2389
2390 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2391
2392         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2393
2394 2011-04-26  Richard Guenther  <rguenther@suse.de>
2395
2396         * c-typeck.c (build_unary_op): Do not expand array-refs via
2397         pointer arithmetic.  Only adjust qualifiers for function types.
2398
2399 2011-04-26  Richard Guenther  <rguenther@suse.de>
2400
2401         PR middle-end/48694
2402         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2403         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2404         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2405         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2406
2407 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2408
2409         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2410         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2411         * doc/extend.texi: Document __underlying_type.
2412
2413 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2414
2415         * config/rs6000/titan.md (automata_option "progress"): Remove.
2416
2417 2011-04-25  Jeff Law  <law@redhat.com>
2418
2419         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2420
2421 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2422
2423         * system.h (ENUM_BITFIELD): Remove.
2424
2425 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2426             Eric Botcazou  <ebotcazou@adacore.com>
2427
2428         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2429         for STORE_FLAG_VALUE==-1 case.
2430
2431 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2432
2433         PR target/43804
2434         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2435         LEGITIMATE_PIC_OPERAND_P.
2436
2437 2011-04-24  Jan Hubicka  <jh@suse.cz>
2438
2439         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2440         WPA hack.
2441         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2442         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2443         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2444         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2445         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2446         Sanity check predicate length.
2447         (remap_predicate): Likewise; sanity check jump functions.
2448         (inline_read_section, inline_write_summary): Sanity check
2449         predicate length.
2450
2451 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2452
2453         PR other/48748
2454         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2455         __is_literal_type, and __is_trivial; update throughout about
2456         possibly cv-qualified void types.
2457
2458 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2459
2460         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2461         testsuite and make it version agnostic.
2462
2463 2011-04-22  Jan Hubicka  <jh@suse.cz>
2464
2465         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2466
2467 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2468
2469         PR c/48685
2470         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2471         to VOID_TYPE even around MODIFY_EXPR.
2472
2473 2011-04-22  Mike Stump  <mikestump@comcast.net>
2474
2475         * gensupport.c (read_md_rtx): Fix typo in comment.
2476         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2477         comment.
2478
2479 2011-04-22  Jan Hubicka  <jh@suse.cz>
2480
2481         * gengtype.c (open_base_files): Add ipa-inline.h include.
2482         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2483         ipa-prop.c; update all uses.
2484         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2485         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2486         merge summary of inlined function into former caller.
2487         * ipa-inline.c (max_benefit): Remove.
2488         (edge_badness): Compensate for removal of benefits.
2489         (update_caller_keys): Use
2490         reset_node_growth_cache/reset_edge_growth_cache.
2491         (update_callee_keys): Likewise.
2492         (update_all_callee_keys): Likewise.
2493         (inline_small_functions): Do not collect max_benefit; do not reset
2494         estimated_growth; call free_growth_caches and initialize_growth_caches.
2495         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2496         struct size_time_entry): New structures.
2497         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2498         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2499         and estimated_growth.
2500         (edge_growth_cache_entry): New structure.
2501         (node_growth_cache, edge_growth_cache): New global vars.
2502         (estimate_growth): Turn into inline.
2503         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2504         initialize_growth_caches, free_growth_caches): Declare.
2505         (estimate_edge_growth): Rewrite.
2506         (estimate_edge_time): Implement as inline cache lookup.
2507         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2508         functions.
2509         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2510         (NUM_CONDITIONS): New constant.
2511         (predicate_conditions): New enum.
2512         (IS_NOT_CONSTANT): New constant.
2513         (edge_removal_hook_holder): New var.
2514         (node_growth_cache, edge_growth_cache): New global vars.
2515         (true_predicate, single_cond_predicate, false_predicate,
2516         not_inlined_predicate, add_condition, add_clause, and_predicates,
2517         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2518         dump_clause, dump_predicate, account_size_time,
2519         evaulate_conditions_for_edge): New functions.
2520         (inline_summary_alloc): Move to heap.
2521         (inline_node_removal_hook): Clear condition and entry vectors.
2522         (inline_edge_removal_hook): New function.
2523         (initialize_growth_caches, free_growth_caches): New function.
2524         (dump_inline_summary): Update.
2525         (edge_execution_predicate): New function.
2526         (will_be_nonconstant_predicate): New function.
2527         (estimate_function_body_sizes): Compute BB and constantness predicates.
2528         (compute_inline_parameters): Do not clear estimated_growth.
2529         (estimate_edge_size_and_time): New function.
2530         (estimate_calls_size_and_time): New function.
2531         (estimate_callee_size_and_time): New function.
2532         (remap_predicate): New function.
2533         (inline_merge_summary): New function.
2534         (do_estimate_edge_time): New function based on...
2535         (estimate_edge_time): ... this one.
2536         (do_estimate_edge_growth): New function.
2537         (do_estimate_growth): New function based on....
2538         (estimate_growth): ... this one.
2539         (inline_analyze_function): Analyze after deciding on jump functions.
2540         (inline_read_section): New function.
2541         (inline_read_summary): Use it.
2542         (inline_write_summary): Write all the new data.
2543         * ipa-prop.c (ipa_get_param_decl_index): Export.
2544         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2545         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2546         Declare.
2547         (ipa_get_lattice): Move here from ipa-cp.c
2548         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2549         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2550         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2551         cgraph_edge_inlinable_p): Remove.
2552         * cgraphunit.c: Include ipainline.h
2553         (cgraph_process_new_functions): Update call of
2554         compute_inline_parameters.
2555
2556 2011-04-22  Richard Guenther  <rguenther@suse.de>
2557
2558         * tree.c (build_int_cst): Properly create canonicalized integer
2559         constants.
2560         (build_int_cst_type): Remove scary comments.
2561
2562 2011-04-22  Xinliang David Li  <davidxl@google.com>
2563
2564         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2565         by default when -Wno-error is not specified.
2566         * opts-global.c (decode_options): Remove call to
2567         control_warning_options.
2568
2569 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2570
2571         PR tree-optimization/48717
2572         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2573         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2574
2575 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2576
2577         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2578         definition where used.
2579
2580 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR c/48716
2583         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2584         TREE_STATIC variables declared inside of some OpenMP construct.
2585
2586 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2587
2588         PR middle-end/48585
2589         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2590
2591 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2592
2593         PR c/36750
2594         * c-typeck.c (pop_init_level): Do not warn about initializing
2595         with ` = {0}'.
2596
2597 2011-04-22  Alan Modra  <amodra@gmail.com>
2598
2599         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2600         when returning call_cookie.
2601         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2602         pointers, to functions with no more vector args than the current
2603         function, and some non-local calls for ABI_V4.
2604         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2605         sibcall_nonlocal_aix64): Combine to ..
2606         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2607         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2608         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2609         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2610         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2611         operand.
2612         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2613         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2614         sibcall_value_symbolic_64): Delete.
2615
2616 2011-04-21  Xinliang David Li  <davidxl@google.com>
2617
2618         * cgraph.h: Remove pid.
2619         * cgraph.c: Remove pid.
2620         * value-prof.c (init_node_map): New function.
2621         (del_node_map): New function.
2622         (find_func_by_funcdef_no): New function.
2623         (gimple_ic_transform): Call new function.
2624         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2625         * function.c (get_last_funcdef_no): New function.
2626         * function.h (get_last_funcdef_no): New function.
2627         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2628         to libgcov function.
2629         (tree-profiling): Call node map init and delete function.
2630
2631 2011-04-21  Ian Lance Taylor  <iant@google.com>
2632
2633         * godump.c (go_format_type): Use exported Go name for anonymous
2634         field name.
2635
2636 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2637
2638         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2639         Call builtin_function_type_list instead of builtin_function_type.
2640         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2641
2642 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2643
2644         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2645         build_function_type_list instead of build_function_type.
2646         Delete variable `endlink'.
2647
2648 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2649
2650         * config/s390/s390.c (s390_init_builtins): Call
2651         build_function_type_list instead of build_function_type.
2652
2653 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2654
2655         * config/ia64/ia64.c (ia64_init_builtins): Call
2656         build_function_type_list instead of builtin_function_type.
2657
2658 2011-04-21  Easwaran Raman  <eraman@google.com>
2659
2660         * cfgexpand.c (stack_var): Remove OFFSET...
2661         (add_stack_var): ...and its reference here...
2662         (expand_stack_vars): ...and here.
2663         (stack_var_cmp): Sort by descending order of size.
2664         (partition_stack_vars): Change heuristic.
2665         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2666         (dump_stack_var_partition): Add newline after each partition.
2667
2668 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2669             Jeff Law  <law@redhat.com>
2670
2671         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2672         * gengtype.c (matching_file_name_substitute): Likewise.
2673
2674 2011-04-21  Richard Guenther  <rguenther@suse.de>
2675
2676         PR lto/48703
2677         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2678
2679 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2680
2681         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2682
2683 2011-04-21  Richard Guenther  <rguenther@suse.de>
2684
2685         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2686         file name.
2687
2688 2011-04-21  Richard Guenther  <rguenther@suse.de>
2689
2690         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2691         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2692         Use DECL_P, not SSA_VAR_P.
2693         (ptr_derefs_may_alias_p): Likewise.
2694         (ptr_deref_may_alias_ref_p_1): Likewise.
2695         (decl_refs_may_alias_p): Likewise.
2696         (refs_may_alias_p_1): Likewise.
2697         (ref_maybe_used_by_call_p_1): Likewise.
2698         (call_may_clobber_ref_p_1): Likewise.
2699         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2700         are either MEM_REF or TARGET_MEM_REF.
2701         (indirect_refs_may_alias_p): Likewise.
2702         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2703         for MEM_EXPR of indirect calls.
2704
2705 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2706
2707         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2708         (dst_file_info_struct): Remove flen field.
2709         (lookup_filename): Remove code that set flen field.
2710
2711 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2712
2713         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2714
2715 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2716
2717         PR target/48708
2718         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2719         vec_extract and vec_concat for non-SSE4_1 targets.
2720
2721 2011-04-21  Richard Guenther  <rguenther@suse.de>
2722
2723         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2724         return statements.
2725
2726 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2727
2728         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2729         undefine.
2730         (FILE): Don't undefine.
2731
2732 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2733
2734         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2735         struct rtx_def *.
2736         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2737         struct rtx_def *.
2738         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2739         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2740         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2741         rtx_def *.
2742         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2743         definitions where used.
2744         * config/microblaze/microblaze.h (struct microblaze_args): Use
2745         rtx, not struct rtx_def *.
2746         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2747         rtx_def *.
2748         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2749         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2750         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2751         not struct rtx_def *.
2752         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2753         struct rtx_def *.
2754         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2755         rtx_def *.
2756         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2757
2758 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2759
2760         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2761         operand_equal_p to compare DR_BASE_ADDRESSes.
2762         (vect_check_interleaving): Likewise.
2763
2764 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2765
2766         PR target/46329
2767         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2768         for all Neon struct constants.
2769
2770 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2771
2772         * target.def (legitimate_constant_p): New hook.
2773         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2774         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2775         * doc/tm.texi: Regenerate.
2776         * hooks.h (hook_bool_mode_rtx_true): Declare.
2777         * hooks.c (hook_bool_mode_rtx_true): Define.
2778         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2779         * calls.c (precompute_register_parameters): Replace uses of
2780         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2781         (emit_library_call_value_1): Likewise.
2782         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2783         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2784         * ira-costs.c (scan_one_insn): Likewise.
2785         * recog.c (general_operand, immediate_operand): Likewise.
2786         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2787         * reload1.c (init_eliminable_invariants): Likewise.
2788
2789         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2790         mode argument.
2791         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2792         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2793         argument.
2794         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2795         * config/alpha/predicates.md (input_operand): Update call to
2796         alpha_legitimate_constant_p.
2797
2798         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2799         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2800         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2801         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2802         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2803         (arm_legitimate_constant_p): New functions.
2804         (arm_cannot_force_const_mem): Make static.
2805
2806         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2807
2808         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2809         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2810         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2811         instead of bfin_legitimate_constant_p.
2812         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2813         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2814
2815         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2816
2817         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2818
2819         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2820         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2821         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2822         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2823
2824         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2825         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2826         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2827
2828         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2829         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2830         * config/i386/i386.c (legitimate_constant_p): Rename to...
2831         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2832         argument.
2833         (ix86_cannot_force_const_mem): Update accordingly.
2834         (ix86_legitimate_address_p): Likewise.
2835         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2836         * config/i386/i386.md: Update commentary.
2837
2838         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2839         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2840         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2841         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2842
2843         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2844
2845         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2846         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2847         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2848         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2849
2850         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2851         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2852         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2853
2854         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2855         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2856         (m32r_legitimate_constant_p): New function.
2857
2858         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2859         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2860         LEGITIMATE_CONSTANT_P.
2861         (LEGITIMATE_CONSTANT_P): Delete.
2862         * config/m68k/m68k.c (m68k_expand_prologue): Call
2863         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2864         (m68k_legitimate_constant_p): New function.
2865         * config/m68k/m68k.md: Update comments.
2866
2867         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2868         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2869         (mcore_legitimate_constant_p): New function.
2870
2871         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2872         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2873         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2874         Add a mode argument.
2875         (mep_legitimate_address): Update accordingly.
2876         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2877
2878         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2879         Delete.
2880         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2881         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2882         static.  Check OP's mode for VOIDmode.
2883         (microblaze_legitimate_constant_p): New function.
2884         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2885
2886         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2887         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2888         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2889         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2890         * config/mips/predicates.md: Update comments.
2891
2892         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2893         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2894         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2895         (mmix_legitimate_constant_p): Make static, return a bool, and take
2896         a mode argument.
2897         (mmix_print_operand_address): Update accordingly.
2898
2899         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2900         Delete.
2901         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2902         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2903         static.  Add a mode argument.
2904         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2905
2906         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2907
2908         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2909         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2910         (pa_legitimate_constant_p): New function.
2911
2912         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2913
2914         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2915         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2916         (pdp11_legitimate_constant_p): New function.
2917
2918         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2919         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2920         (rs6000_legitimate_constant_p): New function.
2921
2922         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2923         (rx_legitimate_constant_p): ...this.
2924         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2925         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2926         (rx_legitimate_constant_p): ...this.
2927         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2928         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2929
2930         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2931         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2932         * config/s390/s390.c (legitimate_constant_p): Rename to...
2933         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2934         and add a mode argument.
2935         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2936
2937         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2938
2939         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2940         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2941         (sh_legitimate_constant_p): New function.
2942
2943         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2944         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2945         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2946         (legitimate_constant_p): Rename to...
2947         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2948         argument.
2949         (constant_address_p): Update accordingly.
2950
2951         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2952         argument and return a bool.
2953         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2954         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2955         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2956         (spu_rtx_costs): Update accordingly.
2957         * config/spu/predicates.md (vec_imm_operand): Likewise.
2958
2959         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2960
2961         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2962         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2963         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2964
2965         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2966         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2967         * config/vax/vax.c (legitimate_constant_p): Likewise.
2968
2969         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2970         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2971         (xtensa_legitimate_constant_p): New function.
2972
2973 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2974
2975         * target.def (cannot_force_const_mem): Add a mode argument.
2976         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2977         * doc/tm.texi: Regenerate.
2978         * hooks.h (hook_bool_mode_rtx_false): Declare.
2979         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2980         (hook_bool_mode_const_rtx_true): Likewise.
2981         (hook_bool_mode_rtx_false): New function.
2982         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2983         to be non-VOID.  Update call to cannot_force_const_mem.
2984         (find_reloads): Update accordingly.
2985         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2986         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2987         argument.
2988         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2989         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2990         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2991         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2992         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2993         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2994         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2995         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2996         (m68k_cannot_force_const_mem): ...this new function.
2997         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2998         argument.
2999         (mips_const_insns, mips_legitimize_const_move): Update calls.
3000         (mips_secondary_reload_class): Likewise.
3001         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3002         (pa_cannot_force_const_mem): ...this new function.
3003         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3004         (rs6000_cannot_force_const_mem): ...this new function.
3005         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3006         argument.
3007         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3008         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3009         to...
3010         (xtensa_cannot_force_const_mem): ...this new function.
3011
3012 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3013
3014         * config/mips/mips.c (mips16_build_function_stub): Call
3015         build_function_type_list instead of build_function_type.
3016         (mips16_build_call_stub): Likewise.
3017
3018 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3019
3020         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3021         instead of build_function_type.
3022
3023 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3024
3025         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3026         instead of build_function_type.
3027
3028 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3029
3030         PR target/48678
3031         * config/i386/i386.md (insv): Change operand 0 constraint to
3032         "register_operand".  Change operand 1 and 2 constraint to
3033         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3034         * config/i386/sse.md (sse4_1_pinsrb): Export.
3035         (sse2_pinsrw): Ditto.
3036         (sse4_1_pinsrd): Ditto.
3037         (sse4_1_pinsrq): Ditto.
3038         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3039         * config/i386/i386.c (ix86_expand_pinsr): New.
3040
3041 2011-04-20  Easwaran Raman  <eraman@google.com>
3042
3043         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3044         containing union type only with -fstrict-aliasing.
3045
3046 2011-04-20  Jim Meyering  <meyering@redhat.com>
3047
3048         Remove useless if-before-free tests.
3049         * calls.c (expand_call, save_area): Likewise.
3050         * cfgcleanup.c (try_forward_edges): Likewise.
3051         * collect2.c (collect_execute): Likewise.
3052         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3053         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3054         * coverage.c (coverage_checksum_string): Likewise.
3055         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3056         * cselib.c (cselib_init): Likewise.
3057         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3058         (df_set_clean_cfg): Likewise.
3059         * function.c (free_after_compilation): Likewise.
3060         * gcc.c (do_spec_1, main): Likewise.
3061         * gcov.c (create_file_names): Likewise.
3062         * gensupport.c (identify_predicable_attribute): Likewise.
3063         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3064         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3065         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3066         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3067         * ipa-pure-const.c (local_pure_const): Likewise.
3068         * ipa-reference.c (propagate): Likewise.
3069         * ira-costs.c (free_ira_costs): Likewise.
3070         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3071         * matrix-reorg.c (mat_free): Likewise.
3072         * prefix.c (get_key_value): Likewise.
3073         * profile.c (compute_value_histograms): Likewise.
3074         * reload1.c (free_reg_equiv): Likewise.
3075         * sched-deps.c (free_deps): Likewise.
3076         * sel-sched-ir.c (fence_clear): Likewise.
3077         * sese.c (set_rename, if_region_set_false_region): Likewise.
3078         * tree-data-ref.c (free_rdg): Likewise.
3079         * tree-eh.c (lower_try_finally): Likewise.
3080         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3081         * tree-ssa-live.c (delete_var_map): Likewise.
3082         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3083         * tree-ssa-pre.c (phi_trans_add): Likewise.
3084
3085 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3086
3087         PR tree-optimization/48611
3088         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3089         beyond ERT_MUST_NOT_THROW region.
3090
3091 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3092
3093         * config/mips/mips.opt (mfix-24k): New.
3094         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3095         * config/mips/mips.md (length): Increase by 4 for stores if
3096         fixing 24K errata.
3097         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3098         all noreorder if fixing 24K errata.
3099         * doc/invoke.texi: Document mfix-24k.
3100
3101 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3102
3103         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3104         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3105
3106 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3107
3108         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3109         (const_ok_for_op): ... to here.
3110
3111 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3112
3113         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3114         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3115
3116 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3117
3118         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3119
3120 2011-04-20  Richard Guenther  <rguenther@suse.de>
3121
3122         PR tree-optimization/47892
3123         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3124         are if-convertible.
3125
3126 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3127
3128         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3129
3130 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3131
3132         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3133
3134 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3135
3136         PR target/18145
3137
3138         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3139         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3140         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3141         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3142         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3143
3144         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3145         New prototype.
3146
3147         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3148         (avr_asm_named_section, avr_asm_output_aligned_common,
3149         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3150         New functions to update...
3151         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3152         (avr_asm_init_sections): Overwrite section callbacks for
3153         data_section, bss_section.
3154         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3155         from here to...
3156         (avr_file_end): ...here.
3157
3158 2011-04-20  Richard Guenther  <rguenther@suse.de>
3159
3160         PR middle-end/48695
3161         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3162         objects and types here.  Adjust for their offset before comparing.
3163
3164 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3165
3166         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3167         statement per copy.
3168
3169 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3170
3171         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3172         (GIMPLE_H): Include $(INTERNAL_FN_H).
3173         (OBJS-common): Add internal-fn.o.
3174         (internal-fn.o): New rule.
3175         * internal-fn.def: New file.
3176         * internal-fn.h: Likewise.
3177         * internal-fn.c: Likewise.
3178         * gimple.h: Include internal-fn.h.
3179         (GF_CALL_INTERNAL): New gf_mask.
3180         (gimple_statement_call): Put fntype into a union with a new
3181         internal_fn field.
3182         (gimple_build_call_internal): Declare.
3183         (gimple_build_call_internal_vec): Likewise.
3184         (gimple_call_same_target_p): Likewise.
3185         (gimple_call_internal_p): New function.
3186         (gimple_call_internal_fn): Likewise.
3187         (gimple_call_fntype): Return null for internal calls.
3188         (gimple_call_set_fntype): Assert that the function is not internal.
3189         (gimple_call_set_fn): Likewise.
3190         (gimple_call_set_fndecl): Likewise.
3191         (gimple_call_set_internal_fn): New function.
3192         (gimple_call_addr_fndecl): Handle null functions.
3193         (gimple_call_return_type): Likewise null types.
3194         * gimple.c (gimple_build_call_internal_1): New function.
3195         (gimple_build_call_internal): Likewise.
3196         (gimple_build_call_internal_vec): Likewise.
3197         (gimple_call_same_target_p): Likewise.
3198         (gimple_call_flags): Handle calls to internal functions.
3199         (gimple_call_fnspec): New function.
3200         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3201         (gimple_has_side_effects): Handle null functions.
3202         (gimple_rhs_has_side_effects): Likewise.
3203         (gimple_call_copy_skip_args): Handle calls to internal functions.
3204         * cfgexpand.c (expand_call_stmt): Likewise.
3205         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3206         * gimple-fold.c (gimple_fold_call): Handle null functions.
3207         (gimple_fold_stmt_to_constant_1): Don't fold
3208         calls to internal functions.
3209         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3210         functions.
3211         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3212         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3213         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3214         (do_warn_unused_result): Likewise.
3215         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3216         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3217         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3218         the target of a call.
3219         (initialize_hash_element): Update accordingly.
3220         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3221         (iterative_hash_hashable_expr): Handle calls to internal functions.
3222         (print_expr_hash_elt): Likewise.
3223         * tree-ssa-pre.c (can_value_number_call): Likewise.
3224         (eliminate): Handle null functions.
3225         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3226         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3227         (find_func_aliases): Likewise.
3228         * value-prof.c (gimple_ic_transform): Likewise.
3229         (gimple_indirect_call_to_profile): Likewise.
3230         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3231         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3232
3233 2011-04-19  Jan Hubicka  <jh@suse.cz>
3234
3235         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3236         * ipa-inline.c (inline_small_functions): Compute summaries first,
3237         populate heap later.
3238
3239 2011-04-19  Jan Hubicka  <jh@suse.cz>
3240
3241         * cgraph.h (save_inline_function_body): Remove.
3242         * ipa-inline-transform.c: New file, broke out of...
3243         * ipa-inline.c: ... this one; Update toplevel comment.
3244         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3245         make global.
3246         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3247         (cgraph_mark_inline_edge): Rename to inline_call; move to
3248         ipa-inline-transform.c.
3249         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3250         move to ipa-inline-transform.c
3251         (recursive_inlining, inline_small_functions, flatten_function,
3252         ipa_inline, inline_always_inline_functions,
3253         early_inline_small_functions): Update.
3254         (inline_transform): Move to ipa-inline-transform.c.
3255         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3256         Declare.
3257         * Makefile.in (ipa-inline-transform.o): New file.
3258         * cgraphunit.c (save_inline_function_body): Move to
3259         ipa-inline-transform.c
3260
3261 2011-04-19  DJ Delorie  <dj@redhat.com>
3262
3263         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3264         registers if we already know there aren't any.
3265         (m32c_emit_epilogue): Don't emit a barrier here.
3266         (m32c_emit_eh_epilogue): Likewise.
3267         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3268         operands at expand time.
3269         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3270         int" wchar type.
3271         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3272         duplicates.  Provide aliases instead.
3273         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3274         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3275         the compiler.
3276
3277 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3278
3279         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3280         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3281         (general_or_i64_p, sparc_register_move_cost): New function.
3282
3283 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3284
3285         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3286         Add lynx, mipssde.  Sort table.
3287
3288 2011-04-19  Xinliang David Li  <davidxl@google.com>
3289
3290         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3291         not negative.
3292
3293 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3294
3295         PR target/48678
3296         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3297         is a SUBREG with non-MODE_INT mode inside of it.
3298
3299 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3300
3301         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3302         also according to actual contants.
3303         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3304         (gimple_fold_call): Use it.
3305         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3306
3307 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3308
3309         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3310         non-pointer assignments.
3311
3312 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3313
3314         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3315         account anc_offset and otr_type from the indirect edge info.
3316         * ipa-prop.c (get_ancestor_addr_info): New function.
3317         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3318         get_ancestor_addr_info, call it.
3319         (ipa_note_param_call): Do not initialize information about polymorphic
3320         calls, return the indirect call graph edge.  Remove the last
3321         parameter, adjust all callers.
3322         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3323         parameters.  Initialize polymorphic information in the indirect edge.
3324
3325 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3326
3327         PR lto/48148
3328         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3329         the types if they have different enumeration identifiers.
3330
3331 2011-04-19  Jan Hubicka  <jh@suse.cz>
3332
3333         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3334         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3335         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3336         (optimize_function_for_size_p) ... here.
3337
3338 2011-04-19  Richard Guenther  <rguenther@suse.de>
3339
3340         PR lto/48207
3341         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3342         langhook.
3343
3344 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3345
3346         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3347         if DECL_NO_INLINE_WARNING_P is set on the function.
3348
3349 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3350
3351         PR fortran/47976
3352         * reload1.c (inc_for_reload): Return void. All callers changed.
3353         (emit_input_reload_insns): Don't try to delete previous output
3354         reloads to a register, or record spill_reg_store for autoincs.
3355
3356 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3357
3358         * gengtype.h: Updated copyright year.
3359         (struct input_file_st): Add inpisplugin field.
3360         (type_fileloc): New function.
3361         * gengtype.c
3362         (write_typed_struct_alloc_def): Add gcc_assert.
3363         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3364         (write_typed_alloc_defns): Don't output for plugin files.
3365         (input_file_by_name): Clear inpisplugin field.
3366         (main): Set inpisplugin field for plugin files.
3367
3368 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3369
3370         * gengtype-state.c (string_eq): New.
3371         (read_state): Use string_eq instead of strcmp when creating the
3372         state_ident_tab.
3373
3374 2011-04-19  Wei Guozhi  <carrot@google.com>
3375
3376         PR target/47855
3377         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3378         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3379         linkage.
3380         * config/arm/constraints.md (Uu): New constraint.
3381         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3382
3383 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3384
3385         * config.gcc (-*-*-*vms): Added.
3386         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3387         definitions moved.
3388         * config/vms/vms-ld.c: New file.
3389         * config/vms/vms-ar.c: New file.
3390         * config/vms/t-vmsnative: New file.
3391
3392 2011-04-18  Xinliang David Li  <davidxl@google.com>
3393
3394         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3395
3396 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3397
3398         PR middle-end/48661
3399         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3400         if TREE_TYPE (v) is non-NULL.
3401
3402         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3403         gimple_get_virt_mehtod_for_binfo.
3404         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3405         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3406         callers.
3407         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3408
3409 2011-04-18  Michael Matz  <matz@suse.de>
3410             Steve Ellcey  <sje@cup.hp.com>
3411
3412         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3413         use its mode as source mode if it isn't VOIDmode.
3414
3415 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3416
3417         * doc/passes.texi: Fill crossref nodes.
3418
3419 2011-04-18  Jim Meyering  <meyering@redhat.com>
3420
3421         Fix doubled-word typos in comments and strings
3422         * config/alpha/vms-unwind.h: s/for for/for/
3423         * config/arm/unwind-arm.h: Likewise.
3424         * config/microblaze/microblaze.c: Likewise.
3425         * config/sh/constraints.md: s/in in/in/
3426         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3427
3428 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3429
3430         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3431         (AVX_FLOAT_MODE_P): Ditto.
3432         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3433         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3434         (AVX_VEC_FLOAT_MODE_P): Ditto.
3435         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3436         (UNSPEC_MASKSTORE): Ditto.
3437         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3438         Merge from <sse>_movmsk<ssemodesuffix> and
3439         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3440         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3441         iterator.
3442         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3443         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3444         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3445
3446 2011-04-18  Jan Hubicka  <jh@suse.cz>
3447
3448         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3449
3450         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3451         (want_inline_function_called_once_p): Break out the logic from
3452         ipa_inline.
3453         (edge_badness): Ensure that profile is not misupdated.
3454         (lookup_recursive_calls): Prioritize by call frequencies.
3455         (inline_small_functions): Move program size estimates here;
3456         actually process whole queue even when unit growth has been
3457         met. (to properly compute inline_failed reasons and for the
3458         case unit size decrease.) Revisit comments on recursive inlining.
3459         (ipa_inline): Remove unit summary code; first inline hot calls
3460         of functions called once, cold calls next.
3461         (order, nnodes): Remove unused variables.
3462         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3463         (GTFILES): Remove ipa-inline.c
3464         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3465
3466 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3467
3468         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3469
3470 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3471             Richard Earnshaw  <rearnsha@arm.com>
3472
3473         * arm.c (neon_builtin_type_bits): Remove.
3474         (typedef enum neon_builtin_mode): New.
3475         (T_MAX): Don't define.
3476         (typedef enum neon_builtin_datum): Remove bits, codes[],
3477         num_vars and base_fcode.  Add mode, code and fcode.
3478         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3479         VAR10): Change accordingly.
3480         (neon_builtin_data[]): Change accordingly
3481         (arm_init_neon_builtins): Change accordingly.
3482         (neon_builtin_compare): Remove.
3483         (locate_neon_builtin_icode): Remove.
3484         (arm_expand_neon_builtin): Change accordingly.
3485
3486         * arm.h (enum arm_builtins): Move to ...
3487         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3488
3489         * arm.c (arm_builtin_decl): Declare.
3490         (TARGET_BUILTIN_DECL): Define.
3491         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3492         (arm_builtin_decls[]): New.
3493         (arm_init_neon_builtins): Store builtin declarations in
3494         arm_builtin_decls[].
3495         (arm_init_tls_builtins): Likewise.
3496         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3497         (arm_builtin_decl): New.
3498
3499 2011-04-18  Richard Guenther  <rguenther@suse.de>
3500
3501         * tree.c (upper_bound_in_type): Build properly canonicalized
3502         INTEGER_CSTs.
3503         (lower_bound_in_type): Likewise.
3504
3505 2011-04-18  Richard Guenther  <rguenther@suse.de>
3506
3507         * gimple.h (gimple_call_addr_fndecl): New function.
3508         (gimple_call_fndecl): Use it.
3509         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3510         for direct calls.
3511         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3512         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3513
3514 2011-04-18  Richard Guenther  <rguenther@suse.de>
3515
3516         PR middle-end/48650
3517         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3518
3519 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3520
3521         PR lto/48492
3522         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3523         DECL_IN_CONSTANT_POOL without RTL.
3524
3525 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3526             Ira Rosen  <ira.rosen@linaro.org>
3527
3528         PR target/48252
3529         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3530         to match neon_vzip/vuzp/vtrn_internal.
3531         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3532         outputs explicitly dependent on both inputs.
3533         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3534
3535 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3536
3537         PR tree-optimization/48616
3538         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3539         whether the shift is by scalar or vector based on whether all SLP
3540         scalar stmts have the same rhs.
3541
3542 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3543
3544         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3545         memory operands.
3546
3547 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3548
3549         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3550         registers.
3551
3552 2011-04-17  Jan Hubicka  <jh@suse.cz>
3553
3554         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3555         * cgrpahunit.c (cgraph_finalize_function): Do not set
3556         finalized_by_frontend.
3557         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3558         finalized_by_frontend.
3559
3560 2011-04-17  Jan Hubicka  <jh@suse.cz>
3561
3562         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3563         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3564         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3565         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3566         method.
3567         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3568         gimple-fold.c
3569         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3570
3571 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3572
3573         PR lto/48538
3574         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3575         is non-null before accessing it.
3576         (input_cgraph): Remove trailing spaces.
3577
3578 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3579
3580         * params.def (sms-min-sc): New param flag.
3581         * modulo-sched.c (sms_schedule): Use it.
3582         * doc/invoke.texi (sms-min-sc): Document it.
3583
3584 2011-04-17  Jan Hubicka  <jh@suse.cz>
3585
3586         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3587         present, also set gimple_call_set_cannot_inline.
3588         * ipa-inline.c: Update toplevel comment.
3589         (MAX_TIME): Remove.
3590         (cgraph_clone_inlined_nodes): Fix linebreaks.
3591         (cgraph_check_inline_limits): Restructure to ...
3592         (caller_growth_limits): ... this one; be more tolerant
3593         on growth in nested inline chains; add explanatory comment;
3594         fix stack accounting thinko introduced by previous patch.
3595         (cgraph_default_inline_p): Remove.
3596         (report_inline_failed_reason): New function.
3597         (can_inline_edge_p): New function.
3598         (can_early_inline_edge_p): New function.
3599         (leaf_node_p): Move upwards in file.
3600         (want_early_inline_function_p): New function.
3601         (want_inline_small_function_p): New function.
3602         (want_inline_self_recursive_call_p): New function.
3603         (cgraph_edge_badness): Rename to ...
3604         (edge_badness) ... this one; fix linebreaks.
3605         (update_edge_key): Update call of edge_baddness; add
3606         detailed dump about queue updates.
3607         (update_caller_keys): Use can_inline_edge_p and
3608         want_inline_small_function_p.
3609         (cgraph_decide_recursive_inlining): Rename to...
3610         (recursive_inlining): Use can_inline_edge_p and
3611         want_inline_self_recursive_call_p; simplify and remove no longer
3612         valid FIXME.
3613         (cgraph_set_inline_failed): Remove.
3614         (add_new_edges_to_heap): Use can_inline_edge_p and
3615         want_inline_small_function_p.
3616         (cgraph_decide_inlining_of_small_functions): Rename to ...
3617         (inline_small_functions): ... this one; cleanup; use
3618         can/want predicates; cleanup debug ouput; work edges till fibheap
3619         is exhausted and do not stop once unit growth is reached; remove
3620         later loop processing remaining edges.
3621         (cgraph_flatten): Rename to ...
3622         (flatten_function): ... this one; use can_inline_edge_p
3623         and can_early_inline_edge_p predicates.
3624         (cgraph_decide_inlining): Rename to ...
3625         (ipa_inline): ... this one; remove unreachable nodes before
3626         inlining functions called once; simplify the pass.
3627         (cgraph_perform_always_inlining): Rename to ...
3628         (inline_always_inline_functions): ... this one; use
3629         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3630         (cgraph_decide_inlining_incrementally): Rename to ...
3631         (early_inline_small_functions): ... this one; simplify
3632         using new predicates; cleanup; make dumps prettier.
3633         (cgraph_early_inlining): Rename to ...
3634         (early_inliner): newer inline regular functions into always-inlines;
3635         fix updating of call stmt summaries.
3636         (pass_early_inline): Update for new names.
3637         (inline_transform): Fix formating.
3638         (gate_cgraph_decide_inlining): Rename to ...
3639         (pass_ipa_inline): ... this one.
3640         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3641         * ipa-inline-analysis.c (dump_inline_summary): Update.
3642         (compute_inline_parameters): Do not compute disregard_inline_limits;
3643         look for mismatching arguments.
3644         (estimate_growth): Fix handlig of non-trivial self recursion.
3645         (inline_read_summary): Do not read info->disregard_inline_limits.
3646         (inline_write_summary): Do not write info->disregard_inline_limits.
3647         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3648         and move all checks into can_inline_edge_p predicate; re-enable code
3649         comparing optimization levels.
3650         (expand_call_inline): Do not test inline_forbidden_into_p.
3651         * Makefile.in (ipa-inline.o): Update arguments.
3652
3653 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3654
3655         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3656
3657 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3658
3659         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3660
3661 2011-04-17  Michael Matz  <matz@suse.de>
3662
3663         PR tree-optimization/48622
3664         PR lto/48645
3665         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3666         in same order as they're written.
3667
3668 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3669
3670         * config/pa/predicates.md: Reorganize and simplify predicates.
3671         Eliminate duplicate code checks.
3672         (arith_operand): Rename to arith14_operand
3673         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3674         * config/pa/pa.md: Use renamed operands.
3675         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3676         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3677         arith11_operand, adddi3_operand, indexed_memory_operand,
3678         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3679         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3680         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3681         move_dest_operand, move_src_operand, prefetch_cc_operand,
3682         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3683         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3684         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3685         div_operand, int5_operand, movb_comparison_operator,
3686         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3687         arith_double_operand, ireg_operand, lhs_lshift_operand,
3688         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3689         integer_store_memory_operand): Likewise.
3690         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3691         (integer_store_memory_operand, read_only_operand,
3692         function_label_operand, borx_reg_operand,
3693         non_hard_reg_operand): Likewise.
3694         (eq_neq_comparison_operator): Delete unused operator.
3695         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3696         function_label_operand.
3697         (emit_move_sequence): Likewise.
3698
3699 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3700
3701         * config/i386/sse.md (sseunpackmode): New mode attribute.
3702         (ssepackmode): Ditto.
3703         (vec_pack_trunc_<mode>): Macroize expander from
3704         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3705         (vec_unpacks_lo_<mode>): Macroize expander from
3706         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3707         (vec_unpacks_hi_<mode>): Macroize expander from
3708         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3709         (vec_unpacku_lo_<mode>): Macroize expander from
3710         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3711         (vec_unpacku_hi_<mode>): Macroize expander from
3712         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3713         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3714         ix86_expand_sse4_unpack.
3715         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3716
3717 2011-04-16  Jan Hubicka  <jh@suse.cz>
3718
3719         * cgraphbuild.c: Include ipa-inline.h.
3720         (reset_inline_failed): Use initialize_inline_failed.
3721         * cgraph.c: Include ipa-inline.h.
3722         (cgraph_create_node_1): Do not initialize estimated_growth.
3723         (initialize_inline_failed): More to ipa-inline-analysis.c
3724         (dump_cgraph_node): Do not dump inline flags.
3725         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3726         and disregard_inline_limits flags.
3727         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3728         time, size, estimated_growth.
3729         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3730         Update.
3731         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3732         DECL_DISREGARD_INLINE_LIMITS.
3733         (cgraph_analyze_function): Do not initialize
3734         node->local.disregard_inline_limits.
3735         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3736         inlinable, versionable and disregard_inline_limits.
3737         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3738         cgraph_check_inline_limits, cgraph_default_inline_p,
3739         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3740         add_new_edges_to_heap): Update.
3741         (cgraph_decide_inlining_of_small_function): Update; set
3742         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3743         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3744         cgraph_decide_inlining_incrementally): Update.
3745         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3746         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3747         time, size and estimated_growth parameters.
3748         (estimate_edge_growth): Update.
3749         (initialize_inline_failed): Declare.
3750         * ipa-split.c: Include ipa-inline.h
3751         (execute_split_functions): Update.
3752         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3753         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3754         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3755         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3756         estimated_growth to INT_MIN.
3757         (inline_node_duplication_hook): Likewise.
3758         (dump_inline_summary): Dump new fields.
3759         (compute_inline_parameters): Update.
3760         (estimate_edge_time, estimate_time_after_inlining,
3761         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3762         inline_write_summary):
3763         (initialize_inline_failed): Move here from cgraph.c.
3764         * tree-sra.c: Include ipa-inline.h.
3765         (ipa_sra_preliminary_function_checks): Update.
3766         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3767         ipa-inline.h.
3768
3769 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3770
3771         * config/i386/sse.md (V16): New mode iterator.
3772         (VI1, VI8): Ditto.
3773         (AVXMODEQI, AVXMODEDI): Remove.
3774         (sse2, sse3): New mode attribute.
3775         (mov<mode>): Use V16 mode iterator.
3776         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3777         (push<mode>1): Use V16 mode iterator.
3778         (movmisalign<mode>): Ditto.
3779         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3780         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3781         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3782         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3783         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3784         avx_movdqu<avxmodesuffix>.
3785         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3786         *avx_movdqu<avxmodesuffix>.
3787         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3788         avx_lddqu<avxmodesuffix>.
3789         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3790         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3791         avx_movnt<AVXMODEDI:mode>.
3792         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3793         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3794
3795 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3796
3797         PR target/48629
3798         * haifa-sched.c (prune_ready_list, schedule_block): Use
3799         sched_pressure_p rather than flag_sched_pressure.
3800
3801 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3802
3803         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3804         cgraph_get_node instead of cgraph_get_create_node.
3805
3806 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3807
3808         * cfgexpand.c (expand_debug_expr): Use
3809         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3810
3811 2011-04-15  Michael Matz  <matz@suse.de>
3812
3813         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3814         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3815         * function.c (gimplify_parameters): Ditto.
3816         * gimplify.c (gimplify_vla_decl): Ditto.
3817
3818         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3819         (gimple_call_set_alloca_for_var): New inline function.
3820         (gimple_call_alloca_for_var_p): Ditto.
3821         * gimple.c (gimple_build_call_from_tree): Remember
3822         CALL_ALLOCA_FOR_VAR_P state.
3823         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3824
3825         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3826         calls if they were for VLA objects.
3827
3828 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3829
3830         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3831         of ADR_EXPRs.
3832
3833 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3834
3835         PR middle-end/48601
3836         * tree-emutls.c (lower_emutls_function_body): Call
3837         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3838         result is non-NULL.
3839
3840 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3841
3842         * c-decl.c (detect_field_duplicates): Call
3843         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3844
3845 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3846
3847         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3848         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3849         * ipa-pure-const.c (check_stmt): Call it.
3850         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3851
3852 2011-04-15  Richard Guenther  <rguenther@suse.de>
3853
3854         PR tree-optimization/48290
3855         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3856         Properly decide inhibiting propagation based on the valueized
3857         operand.  Do loop-closed SSA form preserving here ...
3858         (init_copy_prop): ... not here.
3859
3860 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3861
3862         PR target/48612
3863         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3864         (*ieee_smax<mode>3): Likewise.
3865
3866 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3867
3868         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3869         Replace match_operand with match_dup for the third operand in
3870         these expanders.
3871
3872 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3873
3874         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3875         to track processing of conditionals.  Update all callers.
3876         (try_combine, simplify_if_then_else): Update.
3877
3878 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3879
3880         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3881         -fsched-pressure.
3882
3883 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3884
3885         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3886         instead of match_operand for operand 3.
3887
3888 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3889
3890         * recog.h (insn_operand_data): Add an "allows_mem" field.
3891         * genoutput.c (output_operand_data): Initialize it.
3892         * optabs.c (maybe_legitimize_operand_same_code): New function.
3893         (maybe_legitimize_operand): Use it when matching the original
3894         op->value.
3895
3896 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3897
3898         * gimplify.c: Fix issues in comments throughout.
3899         (voidify_wrapper_expr): Fix long line.
3900         (build_stack_save_restore): Likewise.
3901         (gimplify_loop_expr): Likewise.
3902         (gimplify_compound_lval): Likewise.
3903         (gimplify_init_ctor_eval): Likewise.
3904         (gimplify_modify_expr_rhs): Likewise.
3905         (omp_notice_threadprivate_variable): Likewise.
3906
3907 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3908
3909         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3910         original one if this is not a builtin function.
3911
3912 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3913
3914         PR target/48605
3915         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3916         offset it as needed based on top 2 bits in operands[3], change
3917         MEM mode to SFmode and mask those 2 bits away from operands[3].
3918
3919 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3920
3921         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3922         change from objc_declare_protocols() to objc_declare_protocol().
3923
3924 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3925
3926         * config/i386/sse.md (sse4_1): New mode attribute.
3927         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3928         avx_blend<ssemodesuffix><avxmodesuffix> and
3929         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3930         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3931         avx_blendv<ssemodesuffix><avxmodesuffix> and
3932         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3933         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3934         avx_dp<ssemodesuffix><avxmodesuffix> and
3935         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3936         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3937         (sse4_1_packusdw): Merge with *avx_packusdw.
3938         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3939         (sse4_1_pblendw): Merge with *avx_pblendw.
3940         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3941         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3942         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3943         VF mode iterator.
3944         (sse4_1_round<ssescalarmodesuffix>): Merge with
3945         *avx_round<ssescalarmodesuffix>.
3946         (aesenc): Merge with *avx_aesenc.
3947         (aesenclast): Merge with *avx_aesenclast.
3948         (aesdec): Merge with *avx_aesdec.
3949         (aesdeclast): Merge with *avx_aesdeclast.
3950         (pclmulqdq): Merge with *pclmulqdq.
3951         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3952         New predicate.
3953         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3954
3955 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3956
3957         PR middle-end/48608
3958         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3959         (align_local_variable): This.  Update DECL_ALIGN.
3960         (add_stack_var): Updated.
3961         (expand_one_stack_var): Likewise.
3962
3963 2011-04-14  Richard Guenther  <rguenther@suse.de>
3964
3965         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3966         Remove.
3967         (dse_initialize_block_local_data, dse_leave_block,
3968         record_voperand_set, get_stmt_uid): Likewise.
3969         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3970         (dse_optimize_stmt): Remove voperand set handling code.
3971         Simplify and improve to handle any kind of killing stmt.
3972         (dse_record_phi): Remove.
3973         (dse_enter_block): Simplify.
3974         (tree_ssa_dse): Likewise.
3975         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3976
3977 2011-04-14  Jan Hubicka  <jh@suse.cz>
3978
3979         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3980         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3981         (cgraph_local_info): Remove inline_summary.
3982         * ipa-cp.c: Include ipa-inline.h.
3983         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3984         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3985         accesor.
3986         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3987         (input_overwrite_node): Do not set inline summary.
3988         (input_node): Do not stream inline summary.
3989         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3990         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3991         growth; we do not have inline parameters computed for that anyway.
3992         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3993         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3994         (inline_summary_t): New type and VECtor.
3995         (debug_inline_summary, dump_inline_summaries): Declare.
3996         (inline_summary): Use VOCtor.
3997         (estimate_edge_growth): Kill hack computing call stmt size directly.
3998         * lto-section-in.c (lto_section_name): Add inline section.
3999         * ipa-inline-analysis.c: Include lto-streamer.h
4000         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4001         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4002         (inline_summary_vec): Define.
4003         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4004         dump_inline_summaries): New functions.
4005         (estimate_function_body_sizes): Properly compute size/time of outgoing
4006         calls.
4007         (compute_inline_parameters): Alloc inline_summary; do not compute
4008         size/time of incomming calls.
4009         (estimate_edge_time): Avoid missing time summary hack.
4010         (inline_read_summary): Read inline summary info.
4011         (inline_write_summary): Write inline summary info.
4012         (inline_free_summary): Free all hooks and inline summary vector.
4013         * lto-streamer.h: Add LTO_section_inline_summary section.
4014         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4015         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4016
4017 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4018
4019         * tree-vectorizer.h (vect_strided_store_supported): Add a
4020         HOST_WIDE_INT argument.
4021         (vect_strided_load_supported): Likewise.
4022         (vect_permute_store_chain): Return void.
4023         (vect_transform_strided_load): Likewise.
4024         (vect_permute_load_chain): Delete.
4025         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4026         count argument.  Check that the count is a power of two.
4027         (vect_strided_load_supported): Likewise.
4028         (vect_permute_store_chain): Return void.  Update after above changes.
4029         Assert that the access is supported.
4030         (vect_permute_load_chain): Likewise.
4031         (vect_transform_strided_load): Return void.
4032         * tree-vect-stmts.c (vectorizable_store): Update calls after
4033         above interface changes.
4034         (vectorizable_load): Likewise.
4035         (vect_analyze_stmt): Don't check for strided powers of two here.
4036
4037 2011-04-14  Richard Guenther  <rguenther@suse.de>
4038
4039         PR tree-optimization/48590
4040         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4041         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4042         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4043         BUILT_IN_STACK_SAVE.
4044         * tree-ssa-dce.c (propagate_necessity): Handle
4045         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4046
4047 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4048
4049         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4050         objc_declare_class.
4051
4052 2011-04-14  Richard Guenther  <rguenther@suse.de>
4053
4054         * tree.h (get_object_alignment_1): Declare.
4055         * builtins.c (get_object_alignment_1): Split out worker from ...
4056         (get_object_alignment): ... here.
4057         * fold-const.c (get_pointer_modulus_and_residue): Use
4058         get_object_alignment_1.
4059
4060 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4061
4062         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4063         type parameter.
4064         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4065         parameter.  Generalise code to handle arrays as well as vectors.
4066         (vect_setup_realignment): Update accordingly.
4067         * tree-vect-stmts.c (vectorizable_store): Likewise.
4068         (vectorizable_load): Likewise.
4069
4070 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4071
4072         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4073         within the per-copy loop.
4074
4075 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4076
4077         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4078         in the dump file.
4079
4080 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4081
4082         * doc/options.texi (Negative): Explicitly mention that the
4083         Negative chain must be circular.
4084
4085 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4086
4087         * function.h (block_chainon): Declare.
4088         * function.c (block_chainon): Define.
4089
4090 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4091             Eric Weddington  <eric.weddington@atmel.com>
4092             Georg-Johann Lay <avr@gjlay.de>
4093
4094         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4095         New Includes
4096         (avr_init_builtins, avr_expand_builtin,
4097         avr_expand_delay_cycles, avr_expand_unop_builtin,
4098         avr_expand_binop_builtin ): New functions.
4099         (avr_builtin_id): New enum
4100         (struct avr_builtin_description): New struct
4101         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4102         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4103
4104         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4105         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4106         UNSPECV_DELAY_CYCLES): new enumeration values
4107         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4108         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4109         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4110         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4111         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4112         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4113         "fmulsu"): New insns
4114
4115         * config/avr/avr-c.c: fix line endings
4116         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4117         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4118         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4119         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4120         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4121
4122         * doc/extend.texi (AVR Built-in Functions): New node
4123         (Target Builtins): Add documentation of AVR
4124         built-in functions.
4125
4126 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4127
4128         PR target/44643
4129         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4130         alone. Error if non-const data has attribute progmem.
4131
4132 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4133
4134         * tree.h (struct tree_constructor): Include tree_typed instead of
4135         tree_common.
4136         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4137         TS_TYPED instead of TS_COMMON.
4138
4139 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4140
4141         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4142         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4143         (sse2_psadbw): Merge with *avx_psadbw.
4144         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4145         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4146         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4147         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4148         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4149         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4150         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4151         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4152         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4153         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4154         (ssse3_palignrti): Merge with *avx_palignrti.
4155
4156 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4157
4158         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4159         * tree-ssanames.c (fini_ssanames): VEC_free it.
4160         (make_ssa_name_fn): Update for VECness of free_ssanames.
4161         (release_ssa_name, release_dead_ssa_names): Likewise.
4162         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4163         tree_common.
4164         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4165         TS_TYPED instead of TS_COMMON.
4166
4167 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4168
4169         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4170         statistics_counter_event.
4171         * tree-ssa-copyrename.c (stats): Define.
4172         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4173         statistics_counter_event.
4174         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4175         (bswap_stats, widen_mul_stats): Define.
4176         (insert_reciprocals): Increment rdivs_inserted.
4177         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4178         rfuncs_inserted.  Add calls to statistics_counter_event.
4179         (execute_cse_sincos_1): Increment inserted.
4180         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4181         statistics_counter_event.
4182         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4183         of bswap_stats.  Add calls to statistics_counter_event.
4184         (convert_mult_to_widen): Increment widen_mults_inserted.
4185         (convert_plusminus_to_widen): Increment maccs_inserted.
4186         (convert_mult_to_fma): Increment fmas_inserted.
4187         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4188         calls to statistics_counter_event.
4189
4190 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4191
4192         PR rtl-optimization/48455
4193         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4194         `temp_costs->mem_cost'.
4195
4196 2011-04-13  Jan Hubicka  <jh@suse.cz>
4197
4198         * ipa-inline.h: New file.
4199         * ipa-inline-analysis.c: New file. Broken out of ...
4200         * ipa-inline.c: ... this file; update toplevel comment;
4201         include ipa-inline.h
4202         (inline_summary): Move to ipa-inline.h
4203         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4204         ipa-inline-analysis.c.
4205         (cgraph_estimate_time_after_inlining): Rename to
4206         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4207         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4208         to estimate_edge_growth.
4209         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4210         rename to estimate_size_after_inlining.
4211         (cgraph_mark_inline_edge): Update for new naming convention.
4212         (cgraph_check_inline_limits): Likewise.
4213         (cgraph_edge_badness): Likewise.
4214         (cgraph_decide_recursive_inlining): Likewise.
4215         (cgraph_decide_inlining_of_small_functions): Likewise.
4216         (cgraph_decide_inlining_incrementally): Likewise.
4217         (cgraph_estimate_growth): Rename to estimate_growth; move to
4218         ipa-inline-analysis.c.
4219         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4220         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4221         (compute_inline_parameters): Likewise.
4222         (compute_inline_parameters_for_current): Likewise.
4223         (pass_inline_parameters): Likewise.
4224         (inline_indirect_intraprocedural_analysis): Likewise.
4225         (analyze_function): Rename to inline_analyze_function; likewise.
4226         (add_new_function): Move to ipa-inline-analysis.c.
4227         (inline_generate_summary): Likewise.
4228         (inline_read_summary): Likewise.
4229         (inline_write_summary): Likewise.
4230         * Makefile.in (ipa-inline-analysis.c): New file.
4231
4232 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4233
4234         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4235         * configure: Regenerate.
4236
4237 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4238
4239         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4240         instead of tree_common.
4241         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4242         Likewise.
4243         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4244         TS_TYPED rather than TS_COMMON.
4245         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4246
4247 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4248
4249         PR target/45263
4250         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4251         r20 around calls of __tablejump_elpm__
4252
4253 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4254
4255         PR middle-end/48591
4256         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4257         NULL.
4258         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4259
4260 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4261
4262         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4263         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4264         (cfi_vec): New typedef.
4265         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4266         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4267         (cie_cfi_vec): New static variable.
4268         (cie_cfi_head): Delete.
4269         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4270         declaration changed. Use vector rather than list operations.
4271         (new_cfi): Don't initialize the dw_cfi_next field.
4272         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4273         rather than list operations.
4274         (lookup_cfa): Use vector rather than list operations.
4275         (output_cfis): New argument upto. Accept a cfi_vec rather than
4276         a dw_cfi_ref list head as argument. All callers changed.
4277         Iterate over the vector using upto as a maximum index.
4278         (output_all_cfis): New static function.
4279         (output_fde): Use vector rather than list operations. Use the
4280         new upto argument for output_cfis rather than manipulating a
4281         list.
4282         (dwarf2out_begin_prologue): Change initializations to match
4283         new struct members.
4284         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4285         from the vector length rather than searching for the end of a list.
4286         Use output_all_cfis.
4287         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4288
4289 2011-04-13  Nick Clifton  <nickc@redhat.com>
4290
4291         * config/rx/rx.md (movmemsi): Do not use this pattern when
4292         volatile pointers are involved.
4293
4294 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4295
4296         * config/i386/sse.md (pinsrbits): Remove.
4297         (sse2_packsswb): Merge with *avx_packsswb.
4298         (sse2_packssdw): Merge with *avx_packssdw.
4299         (sse2_packuswb): Merge with *avx_packuswb.
4300         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4301         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4302         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4303         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4304         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4305         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4306         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4307         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4308         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4309         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4310         (sse2_loadld): Merge with *avx_loadld.
4311         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4312         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4313         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4314         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4315         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4316
4317 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4318
4319         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4320         calling TREE_CHAIN.
4321         * print-tree.c (print_node): Likewise.
4322         * tree-inline.c (copy_tree_r): Likewise.
4323         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4324         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4325         instead of TS_COMMON.
4326         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4327         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4328         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4329         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4330         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4331         ...and these...
4332         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4333         * tree.h: ...here.
4334         (TREE_CHAIN): Check for a TS_COMMON structure.
4335         (TREE_TYPE): Check for a TS_TYPED structure.
4336
4337 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4338
4339         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4340         cgraph_get_create_node instead of cgraph_node.
4341
4342 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4343
4344         * c-parser.c (c_parser_initelt): Updated call to
4345         objc_build_message_expr.
4346         (c_parser_postfix_expression): Likewise.
4347
4348 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4349
4350         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4351         MASK_MS_BITFIELD_LAYOUT bit.
4352
4353 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4354
4355         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4356         assert it is always true.
4357         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4358         moves.
4359
4360 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4361
4362         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4363         compiling Objective-C to be more efficient.
4364
4365 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4366
4367         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4368         argv_copied.
4369
4370 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4371
4372         * recog.h, genoutput.c, optabs.c: Revert last patch.
4373
4374 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4375
4376         PR target/48090
4377         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4378
4379 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4380
4381         * recog.h (insn_operand_data): Add an "allows_mem" field.
4382         * genoutput.c (output_operand_data): Initialize it.
4383         * optabs.c (maybe_legitimize_operand_same_code): New function.
4384         (maybe_legitimize_operand): Use it when matching the original
4385         op->value.
4386
4387 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4388
4389         * genpreds.c (process_define_predicate): Move most processing
4390         to gensupport.c.  Continue to validate the expression.
4391         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4392         (process_define_predicate): Move processing to gensupport.c.
4393         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4394         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4395         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4396         argument.
4397         (valid_predicate_name_p): New function, split out from old
4398         genpreds.c:process_define_predicate.
4399         (process_define_predicate): New function, combining code from
4400         old genpreds.c and genrecog.c functions.
4401         (process_rtx): Call it for DEFINE_PREDICATE and
4402         DEFINE_SPECIAL_PREDICATE.
4403
4404 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4405
4406         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4407         size of a '%A' memory reference.
4408         (T_DREG, T_QREG): New neon_builtin_type_bits.
4409         (arm_init_neon_builtins): Assert that the load and store operands
4410         are neon_struct_operands.
4411         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4412         (NEON_ARG_MEMORY): New builtin_arg.
4413         (neon_dereference_pointer): New function.
4414         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4415         Handle NEON_ARG_MEMORY.
4416         (arm_expand_neon_builtin): Update after above interface changes.
4417         Use NEON_ARG_MEMORY for loads and stores.
4418         * config/arm/predicates.md (neon_struct_operand): New predicate.
4419         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4420         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4421         (V_four_elem): Tweak formatting.
4422         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4423         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4424         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4425         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4426         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4427         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4428         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4429         Use %A in the output template.
4430         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4431         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4432         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4433         the width of the memory access.  Remove post-increment.
4434         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4435
4436 2011-04-12  Nick Clifton  <nickc@redhat.com>
4437
4438         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4439         instruction for interrupt handlers if the target is the basic V850
4440         architecture.
4441         (expand_epilogue): Likewise.
4442
4443 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4444
4445         PR rtl-optimization/48549
4446         * combine.c (propagate_for_debug): Also stop after BB_END of
4447         this_basic_block.  Process LAST and just stop processing after it.
4448         (combine_instructions): If last_combined_insn has been deleted,
4449         set last_combined_insn to its PREV_INSN.
4450
4451 2011-04-12  Richard Guenther  <rguenther@suse.de>
4452
4453         PR tree-optimization/46076
4454         * gimple.h (struct gimple_statement_call): Add fntype field.
4455         (gimple_call_fntype): Adjust.
4456         (gimple_call_set_fntype): New function.
4457         * gimple.c (gimple_build_call_1): Set the call function type.
4458         * gimplify.c (gimplify_call_expr): Preserve the function
4459         type the frontend used for the call.
4460         (gimplify_modify_expr): Likewise.
4461         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4462         function type.
4463         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4464         function type.
4465         * tree-ssa.c (useless_type_conversion_p): Function pointer
4466         conversions are useless.
4467
4468 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4469
4470         * cgraph.h (cgraph_node): Remove function declaration.
4471         (cgraph_create_node): Declare.
4472         (cgraph_get_create_node): Likewise.
4473         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4474         Updated all callers.
4475         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4476         the decl does not already exist.  Call cgraph_get_create_node instead
4477         of cgraph_node.
4478         (cgraph_get_create_node): New function.
4479         (cgraph_same_body_alias): Update comment.
4480         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4481         assert it does not return NULL.
4482         (cgraph_update_edges_for_call_stmt): Likewise.
4483         (cgraph_clone_edge): Likewise.
4484         (cgraph_create_virtual_clone): Likewise.
4485         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4486         instead of cgraph_node.
4487         (cgraph_add_new_function): Call cgraph_create_node or
4488         cgraph_get_create_node instead of cgraph_node.
4489         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4490         instead of cgraph_node.
4491         (record_eh_tables): Likewise.
4492         (mark_address): Likewise.
4493         (mark_load): Likewise.
4494         (build_cgraph_edges): Call cgraph_get_create_node instead
4495         of cgraph_node.
4496         (rebuild_cgraph_edges): Likewise.
4497         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4498         instead of cgraph_node.
4499         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4500         cgraph_node.
4501         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4502         cgraph_create_node instead of cgraph_node.
4503         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4504         of cgraph_node.
4505         * lto-cgraph.c (input_node): Likewise.
4506         * lto-streamer-in.c (input_function): Likewise.
4507         * varasm.c (mark_decl_referenced): Likewise.
4508         (assemble_alias): Likewise.
4509
4510 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4511
4512         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4513         instead of cgraph_node and assert it does not return NULL.
4514         * lto-streamer-in.c (lto_read_body): Likewise.
4515         * omp-low.c (new_omp_context): Likewise.
4516         (create_task_copyfn): Likewise.
4517         * tree-emutls.c (lower_emutls_function_body): Likewise.
4518         * matrix-reorg.c (transform_allocation_sites): Likewise.
4519
4520 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4521
4522         PR c/48552
4523         * c-typeck.c (build_asm_expr): Error out on attempts to use
4524         void type outputs or inputs for constraints that allow reg or
4525         don't allow memory.
4526
4527 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4528             Richard Earnshaw  <rearnsha@arm.com>
4529
4530         PR target/48250
4531         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4532         to use sign-magnitude offsets. Reject unsupported unaligned
4533         cases. Add detailed description in comments.
4534         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4535         condition from TARGET_32BIT to TARGET_ARM.
4536
4537 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4538
4539         * tree.h (struct typed_tree): New.
4540         (struct tree_common): Include it instead of tree_base.
4541         (TREE_TYPE): Update for new location of type field.
4542         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4543         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4544         (union tree_node): Add typed field.
4545         * treestruct.def (TS_TYPED): New.
4546         * lto-streamer.c (check_handled_ts_structures): Handle it.
4547         * tree.c (MARK_TS_TYPED): New macro.
4548         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4549
4550 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4551
4552         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4553         (force_nonfallthru): Do not alter the loop nest if no basic block
4554         was created.
4555
4556 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4557
4558         * config/i386/sse.md (VI): New mode iterator.
4559         (SSEMODEI): Remove.
4560         (AVX256MODEI): Ditto.
4561         (AVXMODEF4P): Ditto.
4562         (avxvecpsmode): Ditto.
4563         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4564         (sse2_andnot<mode>3): New expander.
4565         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4566         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4567         (<any_logic:code><mode>3): Use VI mode iterator.
4568         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4569         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4570         (*andnottf3): Handle AVX three-operand constraints.
4571         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4572
4573 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4574             Robert Millan  <rmh@gnu.org>
4575
4576         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4577         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4578         GNU_USER_DYNAMIC_LINKER64): Define.
4579         (REG_NAME): Don't undefine.
4580         (MD_UNWIND_SUPPORT): Undefine.
4581         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4582         (REG_NAME): Don't undefine.
4583         (MD_UNWIND_SUPPORT): Undefine.
4584         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4585
4586 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4587
4588         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4589         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4590
4591 2011-04-11  Xinliang David Li  <davidxl@google.com>
4592
4593         * value-profile.c (check_ic_target): New function.
4594         (gimple_ic_transform): Sanity check indirect call target.
4595         * gimple-low.c (gimple_check_call_args): Interface change.
4596         (gimple_check_call_matching_types): New function.
4597         * tree-inline.c (tree_can_inline_p): Call new function.
4598
4599 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4600
4601         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4602         tree-pretty-print.h & realmpfr.h.
4603
4604 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4605
4606         PR middle-end/48464
4607         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4608         (setup_allocno_and_important_classes): Ditto.
4609
4610 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4611
4612         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4613         GNU_USER_DYNAMIC_LINKER.
4614         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4615         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4616         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4617         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4618         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4619         GNU_USER_TARGET_OS_CPP_BUILTINS.
4620         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4621         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4622         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4623         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4624         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4625         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4626         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4627         GNU_USER_TARGET_OS_CPP_BUILTINS.
4628         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4629         GNU_USER_DYNAMIC_LINKER.
4630         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4631         GNU_USER_TARGET_OS_CPP_BUILTINS.
4632         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4633         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4634         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4635         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4636         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4637         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4638         GNU_USER_DYNAMIC_LINKER64): Remove.
4639         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4640         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4641         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4642         GNU_USER_DYNAMIC_LINKER.
4643         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4644         GNU_USER_TARGET_OS_CPP_BUILTINS.
4645         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4646         GNU_USER_TARGET_OS_CPP_BUILTINS.
4647         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4648         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4649         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4650         GNU_USER_TARGET_OS_CPP_BUILTINS.
4651         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4652         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4653         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4654         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4655         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4656         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4657         GNU_USER_DYNAMIC_LINKER.
4658         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4659         GNU_USER_TARGET_OS_CPP_BUILTINS.
4660         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4661         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4662         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4663         GNU_USER_DYNAMIC_LINKER.
4664         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4665         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4666         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4667         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4668         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4669         GNU_USER_DYNAMIC_LINKER.
4670         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4671         GNU_USER_DYNAMIC_LINKERN32.
4672         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4673         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4674         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4675         GNU_USER_DYNAMIC_LINKER32.
4676         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4677         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4678         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4679         GNU_USER_DYNAMIC_LINKER.
4680         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4681         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4682         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4683         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4684         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4685         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4686         GNU_USER_DYNAMIC_LINKER32.
4687         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4688         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4689         GNU_USER_DYNAMIC_LINKER.
4690         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4692         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4693         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4694         GNU_USER_DYNAMIC_LINKER64.
4695         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4696         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4697         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4698         GNU_USER_DYNAMIC_LINKER.
4699         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4700         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4701         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4702         GNU_USER_DYNAMIC_LINKER.
4703         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4704         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4705         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4706         GNU_USER_DYNAMIC_LINKER32.
4707         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4708         GNU_USER_DYNAMIC_LINKER64.
4709         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4710         GNU_USER_DYNAMIC_LINKER64.
4711         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4712         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4713         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4714         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4715         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4716
4717 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4718
4719         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4720         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4721         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4722         GNU_USER_DYNAMIC_LINKER.
4723         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4724         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4725         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4726         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4727         GNU_USER_DYNAMIC_LINKER64.
4728         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4729         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4730         GNU_USER_LINK_EMULATION.
4731         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4732         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4733         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4734         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4735         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4736         CPP_SPEC, CC1_SPEC): Remove.
4737         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4738         (GNU_USER_DYNAMIC_LINKER): Define.
4739         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4740         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4741         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4742         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4743         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4744         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4745         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4746         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4747         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4748         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4749         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4750         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4751         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4752         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4753         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4754         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4755         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4756         GNU_USER_DYNAMIC_LINKER.
4757         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4758         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4759         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4760         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4761         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4762         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4763         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4764         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4765         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4766         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4767
4768 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4769
4770         PR target/9601
4771         PR target/11772
4772         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4773         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4774         comment.
4775         (ix86_is_msabi_thiscall): Removed.
4776         (ix86_is_type_thiscall): Likewise.
4777         (ix86_get_callcvt): New function.
4778         (ix86_comp_type_attributes): Simplify check.
4779         (ix86_function_regparm): Use ix86_get_callcvt for calling
4780         convention attribute checks.
4781         (ix86_return_pops_args): Likewise.
4782         (ix86_static_chain): Likewise.
4783         (x86_this_parameter): Likewise.
4784         (x86_output_mi_thunk): Likewise.
4785         (ix86_function_type_abi): Optimize check for types without attributes.
4786         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4787         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4788         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4789         by flag-values.
4790         (IX86_BASE_CALLCVT): Helper macro.
4791         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4792         Use ix86_get_callcvt for calling convention attribute checks and avoid
4793         symbol-decoration for stdcall in TARGET_RTD case.
4794         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4795         Likewise.
4796         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4797         for declaration.
4798
4799 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4800
4801         * config/i386/sse.md (VI_128): New mode iterator.
4802         (VI12_128): Rename from SSEMODE12.
4803         (VI14_128): Rename from SSEMODE14.
4804         (VI124_128): New mode iterator.
4805         (VI24_128): Rename from SSEMODE248.
4806         (VI248_128): Rename from SSEMODE248.
4807         (SSEMODE124C8): Remove.
4808         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4809         (*sse2_<plusminus_insn><mode>3): Merge with
4810         *avx_<plusminus_insn><mode>3.
4811         (*mulv8hi3): Merge with *avx_mulv8hi3.
4812         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4813         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4814         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4815         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4816         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4817         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4818         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4819         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4820         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4821         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4822         (*<smaxmin:code>v8hi3): Ditto.
4823         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4824         (*<smaxmin:code>v16qi3): Ditto.
4825         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4826         (*sse2_eq<mode>3): Ditto.
4827         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4828         (*sse2_gt<mode>3): Ditto.
4829         (vcondv2di): Split out of vcond<mode>.
4830         (vconduv2di): Split out of vcondu<mode>.
4831
4832 2011-04-11  Richard Guenther  <rguenther@suse.de>
4833
4834         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4835         before calling tree_low_cst.
4836
4837 2011-04-11  Richard Guenther  <rguenther@suse.de>
4838
4839         * stor-layout.c (layout_type): Compute all array index size operations
4840         in the original type.
4841         (initialize_sizetypes): Add comment.
4842         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4843
4844 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4845
4846         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4847
4848 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4849
4850         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4851         of cgraph_node, handle NULL return value.
4852         (cgraph_global_info): Likewise.
4853         (cgraph_rtl_info): Likewise.
4854         * tree-inline.c (estimate_num_insns): Likewise.
4855         * gimplify.c (unshare_body): Likewise.
4856         (unvisit_body): Likewise.
4857         (gimplify_body): Likewise.
4858         * predict.c (optimize_function_for_size_p): Likewise.
4859         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4860         (call_may_clobber_ref_p_1): Likewise.
4861         * varasm.c (function_section_1): Likewise.
4862         (assemble_start_function): Likewise.
4863
4864 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4865
4866         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4867         of cgraph_node.
4868         * final.c (rest_of_clean_state): Likewise.
4869         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4870         * passes.c (pass_init_dump_file): Likewise.
4871         (execute_all_ipa_transforms): Likewise.
4872         (function_called_by_processed_nodes_p): Likewise.
4873         * predict.c (maybe_hot_frequency_p): Likewise.
4874         (probably_never_executed_bb_p): Likewise.
4875         (compute_function_frequency): Likewise.
4876         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4877         (unnest_nesting_tree_1): Likewise.
4878         (lower_nested_functions): Likewise.
4879         * tree-optimize.c (execute_fixup_cfg): Likewise.
4880         (tree_rest_of_compilation): Likewise.
4881         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4882         * tree-sra.c (ipa_early_sra): Likewise.
4883         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4884         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4885         * ipa.c (record_cdtor_fn): Likewise.
4886         * ipa-inline.c (cgraph_early_inlining): Likewise.
4887         (compute_inline_parameters_for_current): Likewise.
4888         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4889         * ipa-pure-const.c (local_pure_const): Likewise.
4890         * ipa-split.c (split_function): Likewise.
4891         (execute_split_functions): Likewise.
4892         * cgraphbuild.c (build_cgraph_edges): Likewise.
4893         (rebuild_cgraph_edges): Likewise.
4894         (cgraph_rebuild_references): Likewise.
4895         (remove_cgraph_callee_edges): Likewise.
4896         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4897         (verify_cgraph_node): Likewise.
4898         (cgraph_analyze_functions): Likewise.
4899         (cgraph_preserve_function_body_p): Likewise.
4900         (save_inline_function_body): Likewise.
4901         (save_inline_function_body): Likewise.
4902         * tree-inline.c (copy_bb): Likewise.
4903         (optimize_inline_calls): Likewise.
4904
4905 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4906
4907         PR tree-optimization/48195
4908         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4909         ipa_check_create_edge_args.
4910         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4911         ipa_check_create_edge_args.
4912         * ipa-inline.c (inline_generate_summary): Do not call
4913         ipa_check_create_node_params and ipa_check_create_edge_args.
4914         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4915         ipa_check_create_edge_args.
4916
4917 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4918
4919         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4920         instead of loop.
4921         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4922         * function.c (record_hard_reg_sets): Likewise.
4923         * ira.c (compute_regs_asm_clobbered): Likewise.
4924         * sched-deps.c (sched_analyze_1): Likewise.
4925         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4926
4927 2011-04-09  Xinliang David Li  <davidxl@google.com>
4928
4929         PR tree-optimization/PR48484
4930         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4931         has_valid_pred lazily
4932
4933 2011-04-09  Duncan Sands  <baldrick@free.fr>
4934
4935         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4936
4937 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4938
4939         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4940         cost of I0 to zero at the end, if any.
4941
4942 2011-04-08  Xinliang David Li  <davidxl@google.com>
4943
4944         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4945         to insane profile data.
4946
4947 2011-04-08  Xinliang David Li  <davidxl@google.com>
4948
4949         * ipa-cp.c (ipcp_update_profiling): Correct
4950          negative scale factor due to insane profile data.
4951
4952 2011-04-08  Xinliang David Li  <davidxl@google.com>
4953
4954         * final.c (dump_basic_block_info): New function.
4955         (final): Dump basic block.
4956         (final_scan_insn): Remove old dump.
4957
4958 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4959
4960         PR target/47829
4961         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4962         crtbegin/crtend.
4963
4964 2011-04-08  Michael Matz  <matz@suse.de>
4965
4966         PR middle-end/48389
4967         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4968         functions.
4969         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4970         * rtl.h (rebuild_jump_labels_chain): Declare.
4971         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4972         insns inserted on edges.
4973
4974 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4975
4976         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4977         * config/arm/arm-arches.def: New.
4978         * config/arm/arm-opts.h: New.
4979         * config/arm/genopt.sh: New.
4980         * config/arm/arm-tables.opt: New (generated).
4981         * config/arm/arm.c (arm_handle_option, arm_target_help,
4982         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4983         (all_architectures): Get most table contents from arm-arches.def.
4984         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4985         arm_selected_tune here.
4986         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4987         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4988         (march=, mcpu=, mtune=): Use Enum and Var.
4989         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4990         (arm.o): Update dependencies.
4991
4992 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4993
4994         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4995         of header_file.
4996         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4997         (write_typed_alloc_defns): Likewise.
4998         (main): Calls write_typed_alloc_defns with output_header.
4999
5000 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5001
5002         PR inline-asm/48435
5003         * ira-color.c (setup_profitable_hard_regs): Add comments.
5004         Don't take prohibited hard regs into account.
5005         (setup_conflict_profitable_regs): Rename to
5006         get_conflict_profitable_regs.
5007         (check_hard_reg_p): Check prohibited hard regs.
5008
5009 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5010
5011         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5012         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5013         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5014
5015 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5016
5017         PR target/48366
5018         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5019         move from floating point to shift amount register.
5020         (emit_move_sequence): Remove secondary reload support for floating
5021         point to shift amount amount register copies.
5022         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5023         amount register copies.
5024         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5025         register, return false if mode isn't a scalar integer mode.
5026         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5027
5028 2011-04-08  Richard Guenther  <rguenther@suse.de>
5029
5030         * gimple.c (gimple_call_flags): Remove kludge.
5031
5032 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5033
5034         * sel-sched.c (sel_region_init): Move call to
5035         sel_setup_region_sched_flags after setup_current_loop_nest.
5036
5037 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5038
5039         PR rtl-optimization/48272
5040         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5041         init_insn_reg_pressure_info.  Adjust a caller.
5042         * sched-int.h (init_insn_reg_pressure_info): Declare.
5043         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5044         when sched-pressure is enabled.
5045
5046 2011-04-08  Richard Guenther  <rguenther@suse.de>
5047
5048         * gimple.c (gimple_set_modified): Do not queue calls to
5049         MODIFIED_NORETURN_CALLS here ...
5050         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5051
5052 2011-04-08  Richard Guenther  <rguenther@suse.de>
5053
5054         PR lto/48467
5055         * toplev.c (lang_dependent_init): Do not open asm_out_file
5056         in WPA mode, nor perform debug machinery initialization.
5057         (finalize): Do not unlink asm_out_file in WPA mode.
5058
5059 2011-04-08  Richard Guenther  <rguenther@suse.de>
5060
5061         * gimple.h (gimple_call_fntype): New function.
5062         (gimple_call_return_type): Use it.
5063         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5064         * gimple-low.c (gimple_check_call_args): Likewise.
5065         * gimple.c (gimple_call_flags): Likewise.
5066         (gimple_call_arg_flags): Likewise.
5067         (gimple_call_return_flags): Likewise.
5068         * tree-cfg.c (verify_gimple_call): Likewise.
5069         (do_warn_unused_result): Likewise.
5070         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5071         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5072
5073 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5074
5075         PR rtl-optimization/48235
5076         * sel-sched.c (code_motion_process_successors): Recompute the last
5077         insn in basic block if control flow changed.
5078         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5079         Update condition for ilist_remove.
5080
5081 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5082
5083         PR rtl-optimization/48302
5084         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5085         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5086         it to record added preheader blocks.
5087         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5088         on to sel_add_loop_preheaders.
5089         (sel_region_init): Move call to setup_current_loop_nest after
5090         sel_init_bbs.
5091
5092 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5093
5094         PR target/48273
5095         * cfgloop.h (loop_has_exit_edges): New helper.
5096         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5097         non-clonable.
5098         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5099         that have no exit edges.
5100
5101 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5102
5103         PR rtl-optimization/48442
5104         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5105         all callers.  Adjust assert.
5106
5107 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5108
5109         PR tree-optimization/48377
5110         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5111         is_packed to true even for types with smaller TYPE_ALIGN than
5112         TYPE_SIZE.
5113
5114 2011-04-08  Richard Guenther  <rguenther@suse.de>
5115
5116         PR bootstrap/48513
5117         * doc/tm.texi: Re-generate.
5118
5119 2011-04-08  Wei Guozhi  <carrot@google.com>
5120
5121         PR target/47855
5122         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5123         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5124         * config/arm/arm.md (*push_multi): Change the length computation to
5125         call a C function.
5126
5127 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5128
5129         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5130         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5131         * doc/tm.texi: Regenerate.
5132         * system.h (ASM_OUTPUT_BSS): Poison.
5133         * varasm.c (asm_output_bss): Remove function.
5134         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5135
5136         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5137         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5138         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5139         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5140         Likewise.
5141         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5142         Likewise.
5143         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5144         Likewise.
5145         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5146
5147 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5148
5149         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5150         EnumValue lines.
5151
5152 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5153
5154         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5155         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5156         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5157         OPT_mcpu32.
5158         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5159         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5160         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5161         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5162         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5163         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5164         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5165         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5166         options.  Don't map other m68k options manually.  Don't handle
5167         old-style options as canonical.
5168         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5169         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5170
5171 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5172
5173         * basic-block.h (force_nonfallthru): Move to...
5174         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5175         (force_nonfallthru): ...here.
5176         * cfghooks.c (force_nonfallthru): New function.
5177         * cfgrtl.c (force_nonfallthru): Rename into...
5178         (rtl_force_nonfallthru): ...this.
5179         (commit_one_edge_insertion): Do not set AUX field.
5180         (commit_edge_insertions): Do not discover new basic blocks.
5181         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5182         (cfg_layout_rtl_cfg_hooks): Likewise.
5183         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5184         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5185         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5186
5187 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5188
5189         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5190         Remove macros.
5191
5192 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5193
5194         * config/i386/sse.md: Update copyright year.
5195         (avxcvtvecmode): Remove.
5196         (sse_movhlps): Merge with *avx_movhlps.
5197         (sse_movlhps): Merge with *avx_movlhps.
5198         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5199         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5200         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5201         (sse_loadhps): Merge with *avx_loadhps.
5202         (sse_storelps): Merge with *avx_storelps.
5203         (sse_loadlps): Merge with *avx_loadlps.
5204         (sse_movss): Merge with *avx_movss.
5205         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5206         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5207         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5208         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5209         (vec_set<mode>_0): Ditto.
5210         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5211         (sse4_1_insertps): Merge with *avx_insertps.
5212         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5213         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5214         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5215         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5216         (sse2_storehpd): Merge with *avx_storehpd.
5217         (sse2_loadhpd): Merge with *avx_loadhpd.
5218         (sse2_loadlpd): Merge with *avx_loadlpd.
5219         (sse2_movsd): Merge with *avx_movsd.
5220         (*vec_concatv2df): Merge with *vec_concatv2df.
5221
5222 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5223
5224         PR debug/48343
5225         * combine.c (combine_instructions): Add last_combined_insn,
5226         update it if insn is after it, pass it to all try_combine calls.
5227         (try_combine): Add last_combined_insn parameter, pass it instead of
5228         i3 to propagate_for_debug.
5229
5230 2011-04-07  Nick Clifton  <nickc@redhat.com>
5231
5232         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5233         to handle MDR <-> data register transfers.
5234         (movhi_internal): Likewise.
5235
5236 2011-04-07  Alan Modra  <amodra@gmail.com>
5237
5238         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5239         previous stack info.
5240
5241 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5242
5243         PR target/43920
5244         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5245         flow_find_cross_jump.  Swap variables to implement backward replacement.
5246         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5247
5248 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5249
5250         PR target/43920
5251         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5252         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5253         and bb2.
5254         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5255         src1 or src2.  Redirect edges to the last basic block.  Update
5256         frequency and count on multiple basic blocks in case of fallthru.
5257
5258 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5259
5260         PR target/43920
5261         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5262         function.
5263         (old_insns_match_p): Change return type.  Replace return false/true
5264         with return dir_none/dir_both.  Use can_replace_by.
5265         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5266         direction from dir_p.  Register replacement direction in dir, last_dir
5267         and afterlast_dir.  Handle new return type of old_insns_match_p using
5268         merge_dir.  Return replacement direction in dir_p.
5269         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5270         return type of old_insns_match_p.
5271         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5272         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5273         flow_find_cross_jump.
5274         * basic-block.h (enum replace_direction): New type.
5275         (flow_find_cross_jump): Add parameter to declaration.
5276
5277 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5278
5279         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5280         (AVXMODEDCVTPS2DQ): Ditto.
5281         (VEC_FLOAT_MODE): Ditto.
5282         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5283         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5284         (<any_logic:code><mode>3): Use VF mode iterator.
5285         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5286         Use VF mode iterator.
5287         (copysign<mode>3): Use VF mode iterator.
5288         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5289         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5290         (*<any_logic:code><MODEF:mode>3): Merge with
5291         *avx_<any_logic:code><MODEF:mode>3.
5292         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5293         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5294         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5295         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5296         (sse2_cvtdq2ps): Use %v modifier.
5297         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5298         (avx_cvtps2dq<avxmodesuffix>): Remove.
5299         (sse2_cvtps2dq): Use %v modifier.
5300         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5301         (avx_cvttps2dq<avxmodesuffix>): Remove.
5302         (sse2_cvttps2dq): Use %v modifier.
5303         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5304         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5305         (sse2_cvtsd2siq): Fix insn template.
5306         (sse2_cvtsd2siq_2): Ditto.
5307         (sse2_cvttsd2siq): Ditto.
5308         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5309         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5310
5311 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5312
5313         * gcov-io.c: Use GCC Runtime Library Exception.
5314
5315 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5316
5317         PR debug/48466
5318         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5319         as base_reg whatever register reg has been eliminated to, instead
5320         of hardcoding STACK_POINTER_REGNUM.
5321
5322 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5323
5324         * doc/tm.texi.in: Document C target hooks as separate from general
5325         target hooks.
5326         * doc/tm.texi: Regenerate.
5327         * genhooks.c (struct hook_desc): Add docname field.
5328         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5329         docname field.
5330         (hook_array): Include c-target.def.
5331         (emit_documentation): Use docname field in output.
5332         (emit_init_macros): Take docname argument.  Only emit definitions
5333         for hooks matching docname.
5334         (main): Expect additional arguments in all cases.  Pass argument
5335         to emit_init_macros.
5336         * target.def: Move initial macro definitions and comments to
5337         target-hooks-macros.h.
5338         (gcc_targetcm): Move to c-family/c-target.def.
5339         * target.h (targetcm): Move declaration to c-family/c-target.h.
5340         * targhooks.c (default_handle_c_option): Move to
5341         c-family/c-opts.c.
5342         * targhooks.h (default_handle_c_option): Move declaration to
5343         c-family/c-common.h.
5344         * target-hooks-macros.h: New file.
5345         * config.gcc (target_has_targetcm): Define and use to add to
5346         c_target_objs and cxx_target_objs.
5347         * config/default-c.c: New file.
5348         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5349         of target.h and target-def.h.
5350         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5351         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5352         darwin_check_cfstring_format_arg): Make static.
5353         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5354         TARGET_STRING_OBJECT_REF_TYPE_P,
5355         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5356         * config/darwin-protos.h (darwin_objc_construct_string,
5357         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5358         declare.
5359         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5360         TARGET_STRING_OBJECT_REF_TYPE_P,
5361         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5362         * config/t-darwin (darwin-c.o): Update dependencies.
5363         * system.h (TARGET_HAS_TARGETCM): Poison.
5364         * Makefile.in (TARGET_H): Update.
5365         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5366         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5367         (default-c.o): New target.
5368         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5369         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5370         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5371         c-target.def.
5372         (build/genhooks.o): Update dependencies.
5373
5374 2011-04-06  Richard Guenther  <rguenther@suse.de>
5375
5376         * ipa-inline.c (enum inlining_mode): Remove.
5377         (cgraph_flatten): Use some other token.
5378         (cgraph_edge_early_inlinable_p): New function, split out from ...
5379         (cgraph_perform_always_inlining): New function, split out from ...
5380         (cgraph_decide_inlining_incrementally): ... here.
5381         (cgraph_mark_inline_edge): Adjust.
5382         (cgraph_early_inlining): Re-structure.
5383         (pass_early_inline): Require SSA form.
5384
5385 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5386             Julian Brown  <julian@codesourcery.com>
5387             Mark Shinwell  <shinwell@codesourcery.com>
5388
5389         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5390         LO_REGS only for Thumb-1.
5391         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5392         be used in short instructions when optimising for size on Thumb-2.
5393
5394 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5395
5396         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5397         associated with user returns to be preserved.
5398
5399 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5400
5401         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5402         symbol_queue_size, DBXOUT_DECR_NESTING,
5403         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5404         if XCOFF_DEBUGGING_INFO.
5405
5406 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5407
5408         * config/i386/i386.md (attribute isa): New.
5409         (attribute enabled): New.
5410         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5411         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5412         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5413         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5414         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5415         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5416         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5417         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5418
5419         * config/i386/sse.md (VF): New mode iterator.
5420         (VF1): Ditto.
5421         (VF2): Ditto.
5422         (VF_128): Ditto.
5423         (SSEMODEF4): Remove.
5424         (attribute sse): Handle V8SF and V4DF modes.
5425         (<absneg:code><mode>2): Use VF mode iterator.
5426         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5427         mode iterator.
5428         (<plusminus_insn><mode>3): Use VF mode iterator.
5429         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5430         Use VF mode iterator.
5431         (<sse>_vm<plusminus_insn><mode>3): Merge with
5432         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5433         (mul<mode>3): Use VF mode iterator.
5434         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5435         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5436         mode iterator.
5437         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5438         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5439         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5440         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5441         mode iterator.
5442         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5443         Use VF1 mode iterator.
5444         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5445         (sqrt<VF2:mode>2): New expander.
5446         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5447         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5448         and sqrtv2df2.  Use VF mode iterator.
5449         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5450         mode iterator.
5451         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5452         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5453         Use VF1 mode iterator.
5454         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5455         (<smaxmin:code><mode>3): Use VF mode iterator.
5456         (*<smaxmin:code><mode>3_finite): Merge with
5457         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5458         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5459         (<sse>_vm<smaxmin:code><mode>2): Merge with
5460         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5461         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5462         mode iterator.
5463         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5464         mode iterator.
5465         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5466         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5467         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5468         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5469         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5470         VF mode iterator.
5471         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5472         Use VF_128 mode iterator.
5473         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5474         mode iterator.
5475         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5476         VF_128 mode iterator.
5477         (vcond<mode>): Use VF mode iterator.
5478         * config/i386/predicates.md (sse_comparison_operator): Merge with
5479         avx_comparison_float_operator.  Do not declare as special_predicate.
5480         * config/i386/i386.c (struct builtin_description): Update for renamed
5481         compare patterns.
5482         (ix86_expand_args_builtin): Ditto.
5483         (ix86_expand_sse_compare_mask): Ditto.
5484
5485 2011-04-06  Richard Guenther  <rguenther@suse.de>
5486
5487         * tree-inline.c (estimate_num_insns): For calls simply account
5488         for all passed arguments and a used return value.
5489
5490 2011-04-06  Richard Guenther  <rguenther@suse.de>
5491
5492         PR tree-optimization/47663
5493         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5494         call_stmt_time fields.
5495         (cgraph_edge_inlinable_p): Declare.
5496         (cgraph_edge_recursive_p): New inline function.
5497         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5498         (cgraph_clone_edge): Copy it.
5499         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5500         Account for call stmt time.
5501         (cgraph_estimate_time_after_inlining): Take edge argument.
5502         (cgraph_estimate_edge_growth): Account call stmt size.
5503         (cgraph_estimate_size_after_inlining): Take edge argument.
5504         (cgraph_mark_inline_edge): Adjust.
5505         (cgraph_check_inline_limits): Likewise.
5506         (cgraph_recursive_inlining_p): Remove.
5507         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5508         (cgraph_decide_recursive_inlining): Take edge argument and
5509         adjust.
5510         (cgraph_decide_inlining_of_small_functions): Do not avoid
5511         diags for recursive inlining here.
5512         (cgraph_flatten): Adjust.
5513         (cgraph_decide_inlining_incrementally): Likewise.
5514         (estimate_function_body_sizes): Remove call cost handling.
5515         (compute_inline_parameters): Initialize caller edge call costs.
5516         (cgraph_estimate_edge_growth): New function.
5517         (cgraph_estimate_growth): Use it.
5518         (cgraph_edge_badness): Likewise.
5519         (cgraph_check_inline_limits): Take an edge argument.
5520         (cgraph_decide_inlining_of_small_functions): Adjust.
5521         (cgraph_decide_inlining): Likewise.
5522         * tree-inline.c (estimate_num_insns): Only account for call
5523         return value if it is used.
5524         (expand_call_inline): Avoid diagnostics on recursive inline
5525         functions here.
5526         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5527         (input_edge): Input edge call costs.
5528
5529 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5530
5531         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5532
5533 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5534
5535         * doc/invoke.texi (Spec Files): Fix typo.
5536
5537 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5538
5539         * profile.c (branch_prob): Move declaration of local variable.  Remove
5540         obsolete ??? comment.  Expand the location explicitly instead of using
5541         the LOCATION_FILE and LOCATION_LINE macros.
5542
5543 2011-04-06  Wei Guozhi  <carrot@google.com>
5544
5545         PR target/47855
5546         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5547         (arm_cond_branch): Likewise.
5548         (arm_cond_branch_reversed): Likewise.
5549         (arm_jump): Likewise.
5550         (push_multi): Likewise.
5551         * config/arm/constraints.md (Py): New constraint.
5552
5553 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5554
5555         PR bootstrap/48471
5556         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5557         Move these...
5558         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5559         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5560         #ifdef DBX_DEBUGGING_INFO.
5561
5562 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5563
5564         PR bootstrap/48403
5565         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5566         if old and new states differ.
5567
5568 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5569
5570         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5571         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5572         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5573         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5574         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5575         mcfv4e): Use Alias.
5576         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5577         ColdFire options to -mcpu= options.
5578
5579 2011-04-05  Jeff Law  <law@redhat.com>
5580
5581         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5582         check if BB is a successor of LOOP->header and return
5583         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5584
5585 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5586
5587         * cprop.c (struct reg_use): Remove.
5588         (reg_use_table): Make an array of RTX.
5589         (find_used_regs, constprop_register, local_cprop_pass,
5590         bypass_block): Simplify users of reg_use_table.
5591         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5592         on one of the uses found by find_used_regs.
5593
5594 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5595
5596         PR bootstrap/48469
5597         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5598         declaration.
5599
5600 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5601
5602         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5603         as an rtx.
5604         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5605
5606 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5607
5608         PR middle-end/48441
5609         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5610
5611 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5612
5613         * combine.c: Include obstack.h.
5614         (struct insn_link): Define.
5615         (uid_log_links): Adjust type.
5616         (FOR_EACH_LOG_LINK): New macro.
5617         (insn_link_obstack): Declare.
5618         (alloc_insn_link): Define.
5619         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5620         type of link variables.
5621         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5622         (try_combine, record_promoted_values, distribute_notes): Likewise.
5623         (distribute_links): Likewise.  Tweak prototype.
5624         (clear_log_links): Delete.
5625         (adjust_for_new_dest): Call alloc_insn_link.
5626         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5627
5628 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5629
5630         * gcse.c (modify_mem_list): Convert to an array of VECs.
5631         (canon_modify_mem_list, compute_transp): Tweak formatting.
5632         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5633         (load_killed_in_block_p): Likewise.
5634         (record_last_mem_set_info): Likewise.
5635         (clear_modify_mem_tables): Likewise.
5636
5637 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5638
5639         PR middle-end/48461
5640         * function.c (emit_use_return_register_into_block): Only define if
5641         HAVE_return.
5642
5643 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5644
5645         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5646
5647 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5648
5649         * config/rx/rx-opts.h: New.
5650         * config/rx/rx.c (rx_cpu_type): Remove.
5651         (rx_handle_option): Don't assert that global structures are in
5652         use.  Access variables via opts pointer.  Defer most handling of
5653         OPT_mint_register_.  Use error_at.
5654         (rx_option_override): Handle deferred OPT_mint_register_ here.
5655         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5656         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5657         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5658         (rx_cpu_types): New Enum and EnumValue entries.
5659         (mint-register=): Use Defer and use Var accordingly.
5660
5661 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5662
5663         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5664         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5665         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5666         Move these...
5667         (debug_free_queue, debug_nesting, symbol_queue_index):
5668         ...and these...
5669         * dbxout.c: ...to here.  Make static.
5670
5671 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5672
5673         * gcse.c (modify_pair): Define.  Define a VEC of it.
5674         (canon_modify_mem_list): Convert to an array of VECs.
5675         (free_insn_expr_list_list): Delete.
5676         (clear_modify_mem_tables): Call VEC_free instead.
5677         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5678         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5679         (canon_list_insert, compute_transp): Likewise.
5680
5681 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5682
5683         PR target/43920
5684         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5685         for size.
5686
5687 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5688
5689         PR target/43920
5690         * function.c (emit_use_return_register_into_block): New function.
5691         (thread_prologue_and_epilogue_insns): Use
5692         emit_use_return_register_into_block.
5693
5694 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5695
5696         PR target/43920
5697         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5698         insn.
5699
5700 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5701
5702         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5703
5704 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5705
5706         * config/arm/arm.md (define_constants for unspec): Replace with
5707         define_c_enum.
5708         (define_constants for unspecv): Replace with define_c_enum.
5709         * config/arm/neon.md (define_constants for unspec): Replace with
5710         define_c_enum.
5711
5712 2011-04-04  Richard Henderson  <rth@redhat.com>
5713
5714         PR bootstrap/48400
5715         * dwarf2out.c (output_line_info): Always emit line info from
5716         at least one section.
5717         (dwarf2out_init): Create text_section_line_info here ...
5718         (set_cur_line_info_table): ... not here.
5719
5720 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5721
5722         PR target/48380
5723         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5724         not called.
5725
5726         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5727
5728 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5729
5730         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5731         (expr_equiv_p): Remove.
5732         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5733         (hash_scan_set): Update call to insert_set_in_table.
5734         (dump_hash_table): Dump <dest, src> pair.
5735         (lookup_set): Simplify.  Lookup <dest, src> pair.
5736         (compute_transp): Remove, fold heavily simplified code into...
5737         (compute_local_properties): ...here.  Expect COMP and TRANSP
5738         unconditionally.
5739         (find_avail_set): Take set directly from struct expr.
5740         (find_bypass-set): Likewise.
5741         (bypass_block): Likewise.
5742         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5743
5744         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5745         checks on form of COND from find_implicit_sets to here.
5746         (find_implicit_sets): Cleanup control flow. Split critical edges
5747         if it exposes implicit sets.  Allocate/resize implicit_sets as
5748         necessary.
5749         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5750         changed something.  Run df_analyze after find_implicit_sets if any
5751         edges were split.  Do not allocate implicit_sets here.
5752
5753         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5754         (gcse_obstack): Renamed to cprop_obstack.
5755         (GNEW, GNEWVEC, GNEWVAR): Remove.
5756         (gmalloc): Remove.
5757         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5758         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5759         (gcse_alloc): Likewise, and rename to cprop_alloc.
5760         (alloc_gcse_men, free_gcse_mem): Remove.
5761         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5762         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5763         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5764
5765         * cprop.c (oprs_not_set_p): Remove.
5766         (mark_set, mark_clobber): Remove.
5767         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5768         (reg_not_set_p): New function.
5769         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5770         (cprop_insn): Likewise.
5771         (cprop_jump): Use FOR_EACH_EDGE.
5772
5773 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5774
5775         PR bootstrap/48403
5776         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5777         (rank_for_schedule): Use scheduled_insns vector instead of
5778         last_scheduled_insn.
5779         (ok_for_early_queue_removal): Likewise.
5780         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5781         we have a dbg_cnt.
5782         (choose_ready): Likewise.
5783         (commit_schedule): Use VEC_iterate.
5784         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5785         a dbg_cnt, use it and ensure the first insn is in the ready list.
5786         (haifa_sched_init): Allocate scheduled_insns.
5787         (sched_extend_ready_list): Don't allocate it; reserve space.
5788         (haifa_sched_finish): Free it.
5789
5790 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5791
5792         * optc-gen.awk: Always remove type from Variable entry before
5793         recording in var_seen.
5794
5795 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5796
5797         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5798         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5799         call to tidy_fallthru_edges.
5800
5801 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5802
5803         * doc/options.texi (ToLower): Document.
5804         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5805         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5806         * opts.h (cl_option): Add cl_tolower field.
5807         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5808         arguments with lowercase strings.
5809         * config/rx/rx.opt (mcpu=): Add ToLower.
5810         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5811         argument.
5812
5813 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5814
5815         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5816
5817 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5818
5819         * config/vax/vax.c: Include reload.h.
5820
5821 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5822
5823         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5824         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5825         (sparc_preferred_reload_class): New function.
5826
5827 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5828
5829         PR debug/48401
5830         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5831         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5832
5833 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5834
5835         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5836         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5837
5838 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5839
5840         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5841         (ASM_OUTPUT_ALIGNED_BSS): Define.
5842
5843 2011-04-03  Michael Matz  <matz@suse.de>
5844
5845         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5846         and next_slot members.
5847         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5848         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5849         (lto_streamer_cache_append): Declare.
5850         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5851         unsigned index, remove offset parameter, ensure that we append
5852         or update existing entries.
5853         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5854         parameter, update next_slot for append.
5855         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5856         parameter.
5857         (lto_streamer_cache_insert_at): Likewise.
5858         (lto_streamer_cache_append): New function.
5859         (lto_streamer_cache_lookup): Use unsigned index.
5860         (lto_streamer_cache_get): Likewise.
5861         (lto_record_common_node): Don't test tree_node_can_be_shared.
5862         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5863         (lto_streamer_cache_delete): Don't free offsets member.
5864         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5865         (lto_output_string_with_length): Use lto_output_data_stream.
5866         (lto_output_tree_header): Remove ix parameter, don't write it.
5867         (lto_output_builtin_tree): Likewise.
5868         (lto_write_tree): Adjust callers to above, don't track and write
5869         offset, write unsigned index.
5870         (output_unreferenced_globals): Don't emit all global vars.
5871         (write_global_references): Use unsigned indices.
5872         (lto_output_decl_state_refs): Likewise.
5873         (write_symbol): Likewise.
5874         * lto-streamer-in.c (lto_input_chain): Move earlier.
5875         (input_function): Use unsigned index.
5876         (input_alias_pairs): Don't read and then ignore all global vars.
5877         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5878         don't pass it back, use lto_streamer_cache_append.
5879         (lto_register_var_decl_in_symtab): Use unsigned index.
5880         (lto_register_function_decl_in_symtab): Likewise.
5881         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5882         index.
5883         (lto_get_builtin_tree): Don't read index, use
5884         lto_streamer_cache_append.
5885         (lto_read_tree): Adjust call to lto_materialize_tree.
5886
5887         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5888         don't use function calls in arguments to MIN.
5889
5890         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5891         twice.
5892
5893         * gimple.c (gimple_type_leader_entry): Mark deletable.
5894
5895 2011-04-03  Alan Modra  <amodra@gmail.com>
5896
5897         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5898
5899 2011-04-03  Michael Matz  <matz@suse.de>
5900
5901         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5902         an integer.
5903         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5904
5905 2011-04-03  Michael Matz  <matz@suse.de>
5906
5907         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5908         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5909         without function context.
5910         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5911         current_function_decl and cfun.
5912
5913 2011-04-03  Michael Matz  <matz@suse.de>
5914
5915         * tree.c (decl_init_priority_insert): Don't create entry for
5916         default priority.
5917         (decl_fini_priority_insert): Ditto.
5918         (fields_compatible_p, find_compatible_field): Remove.
5919         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5920         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5921
5922 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5923
5924         * combine.c (try_combine): Remove useless local variable.
5925
5926 2011-04-03  Richard Guenther  <rguenther@suse.de>
5927             Ira Rosen  <ira.rosen@linaro.org>
5928
5929         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5930         non-variable offsets and compare the remaining bases of the two
5931         accesses instead of looking for exact same data-ref.
5932
5933 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5934
5935         PR target/48416
5936         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5937
5938         * i386.c (ix86_is_msabi_thiscall): New helper function.
5939         (ix86_is_type_thiscall): New helper function.
5940         (ix86_comp_type_attributes): Handle thiscall for method-functions
5941         special.
5942         (init_cumulative_args): Likewise.
5943         (find_drap_reg): Likewise.
5944         (ix86_static_chain): Likewise.
5945         (x86_this_parameter): Likewise.
5946         (x86_output_mi_thunk): Likewise.
5947
5948 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5949             Nicolas Setton  <setton@adacore.com>
5950             Eric Botcazou  <ebotcazou@adacore.com>
5951
5952         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5953         (add_gnat_descriptive_type_attribute): New function.
5954         (gen_array_type_die): Call it.
5955         (gen_enumeration_type_die): Likewise.
5956         (gen_struct_or_union_type_die): Likewise.
5957         (modified_type_die): Likewise.
5958         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5959         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5960         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5961
5962 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5963
5964         PR bootstrap/48148
5965         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5966         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5967
5968         Revert:
5969         2011-03-17  Richard Guenther  <rguenther@suse.de>
5970
5971         PR bootstrap/48148
5972         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5973         origin for decls in other ltrans units.
5974         (input_varpool_node): Likewise.
5975
5976 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5977
5978         PR middle-end/48335
5979         * expr.c (expand_assignment): Handle all possibilities
5980         if TO_RTX is CONCAT.
5981         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5982         (store_split_bit_field): If SUBREG_REG (op0) or
5983         op0 itself has smaller mode than word, return it
5984         for offset 0 and const0_rtx for out-of-bounds stores.
5985         If word is const0_rtx, skip it.
5986
5987 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5988
5989         * config/h8300/h8300.c (print_operand_address): Rename to...
5990         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5991         Call h8300_print_operand and h8300_print_operand_address instead of
5992         print_operand and print_operand_address. Declare.
5993         (print_operand): Renake to...
5994         (h8300_print_operand): ...this. Make static. Adjust comments.
5995         Call h8300_print_operand instead of print_operand. Declare.
5996         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5997         (h8300_register_move_cost): Likewise.
5998         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5999         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6000         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6001         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6002         * config/h8300/h8300-protos.h (print_operand): Delete.
6003         (print_operand_address): Delete.
6004
6005 2011-04-01  Richard Henderson  <rth@redhat.com>
6006
6007         PR 48400
6008         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6009         in strict mode before dwarf4.  Re-order tests to early out
6010         before switching sections.
6011
6012 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6013
6014         * config/h8300/constraints.md: New file.
6015         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6016         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6017         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6018         * config/h8300/predicates.md (bit_operand): Likewise.
6019         (incdec_operand): Use satisfies_constraint_M and
6020         satisfies_constraint_O.  Don't use C code block.
6021         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6022         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6023         (compute_mov_length): Use satisfies_constraint_G.
6024         (fix_bit_operand): Use satisfies_constraint_U.
6025         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6026         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6027         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6028         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6029         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6030         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6031         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6032         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6033         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6034         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6035         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6036         (EXTRA_MEMORY_CONSTRAINT): Delete.
6037
6038 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6039             Michael Meissner  <meissner@linux.vnet.ibm.com>
6040
6041         PR target/48262
6042         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6043         operands, as per the specifications.
6044
6045         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6046         (vec_extract_evenv4sf): Ditto.
6047         (vec_extract_evenv8hi): Ditto.
6048         (vec_extract_evenv16qi): Ditto.
6049         (vec_extract_oddv4si): Ditto.
6050
6051 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6052
6053         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6054         high_pc attribute if the CU has no associated code. Only output
6055         DW_AT_entry_pc for CU if not generating strict dwarf and
6056         dwarf_version < 4.
6057
6058 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6059
6060         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6061         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6062         out of ...
6063         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6064         * final.c (final_start_function): Call the new function rather
6065         than using a NULL argument for dwarf2out_frame_debug.
6066
6067         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6068         that contains the prologue.
6069
6070         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6071         changed.  Print it in debugging output.
6072
6073         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6074
6075         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6076         Split most of the code into...
6077         (begin_move_insn): ... here.  New function.
6078         (ebb_sched_info): Add a pointer to it.
6079         * haifa-sched.c (scheduled_insns): New static variable.
6080         (sched_extend_ready_list): Allocate it.
6081         (schedule_block): Use it to record the order of scheduled insns.
6082         Perform RTL changes to move insns only after all scheduling
6083         decisions have been made.
6084         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6085         begin_move_insn field.
6086         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6087         * sched-int.h (struct haifa_sched_info): Remove second argument
6088         from begin_schedule_ready hook.  Add new member begin_move_insn.
6089         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6090         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6091
6092         * haifa-sched.c (prune_ready_list): New function, broken out of
6093         schedule_block.
6094         (schedule_block): Use it.
6095
6096 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6097
6098         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6099
6100 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6101
6102         * config.gcc (*-*-mingw*): Allow as option the
6103         posix threading model.
6104         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6105         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6106         definition.
6107         (CPP_SPEC): Add pthread/no-pthread handling.
6108         (LIB_SPEC): Likewise.
6109         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6110         (LIB_SPEC): Likewise.
6111         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6112         flag to pass -pthread option for shared libgcc build.
6113         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6114         for shared libgcc build.
6115         * config/i386/t-mingw-pthread: New file.
6116         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6117         New define to enable use of library pthread by default.
6118         * config/i386/mingw.opt (pthread): New driver option.
6119         (no-pthread): New driver option.
6120         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6121         * config/i386/mingw-w64.opt: Likewise.
6122
6123 2011-04-01  Gary Funck <gary@intrepid.com>
6124
6125         * c-decl.c (grokdeclarator): Fix formatting.
6126
6127 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6128
6129         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6130         instead of n_operands.
6131         (set_storage_via_setmem): Likewise.
6132         * optabs.c (maybe_gen_insn): Likewise.
6133         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6134         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6135         (mips_expand_builtin_direct): Likewise.
6136         * config/spu/spu.c (expand_builtin_args): Likewise.
6137
6138 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6139
6140         * recog.h (insn_data_d): Add n_generator_args.
6141         * genoutput.c (data): Likewise.
6142         (output_insn_data): Print it.
6143         (max_opno, num_dups): Delete.
6144         (scan_operands): Just fill in "d->operand[...]".
6145         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6146
6147 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6148
6149         * gensupport.h (pattern_stats): New structure.
6150         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6151         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6152         (max_operand_1, max_operand_vec): Delete.
6153         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6154
6155 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6156
6157         * emit-rtl.c (emit_pattern_after_setloc): New function.
6158         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6159         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6160         (emit_pattern_after): New function.
6161         (emit_insn_after, emit_jump_insn_after): Call it.
6162         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6163         (emit_pattern_before_setloc): New function.
6164         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6165         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6166         Likewise.
6167         (emit_pattern_before): New function.
6168         (emit_insn_before, emit_jump_insn_before): Call it.
6169         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6170
6171 2011-03-31  Richard Henderson  <rth@redhat.com>
6172
6173         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6174         (dw_separate_line_info_entry): Remove.
6175         (enum dw_line_info_opcode): New.
6176         (dw_line_info_entry): Use it.
6177         (dw_line_info_table, dw_line_info_table_p): New.
6178         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6179         (line_info_table, line_info_label_num): Remove.
6180         (line_info_table_in_use): Remove.
6181         (separate_line_info_table): Remove.
6182         (separate_line_info_table_allocated): Remove.
6183         (separate_line_info_table_in_use): Remove.
6184         (LINE_INFO_TABLE_INCREMENT): Remove.
6185         (line_info_label_num): New.
6186         (cur_line_info_table): New.
6187         (text_section_line_info, cold_text_section_line_info): New.
6188         (separate_line_info): New.
6189         (SEPARATE_LINE_CODE_LABEL): Remove.
6190         (print_dwarf_line_table): Remove.
6191         (debug_dwarf): Don't dump it.
6192         (output_one_line_info_table): New.
6193         (output_line_info): Use it.
6194         (new_line_info_table): New.
6195         (set_cur_line_info_table): New.
6196         (dwarf2out_switch_text_section): Use it.
6197         (dwarf2out_begin_function): Likewise.
6198         (push_dw_line_info_entry): New.
6199         (dwarf2out_source_line): Rewrite for new line info tables.
6200         (dwarf2out_init): Remove dead initailizations.
6201
6202 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6203
6204         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6205         various flags.
6206         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6207         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6208         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6209         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6210         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6211         * opt-functions.awk (flag_init, switch_bit_fields): New.
6212         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6213         generate CL_MISSING_OK or CL_SAVE.
6214         * optc-gen.awk: Update to generate bit-field output as well as
6215         flags field.
6216         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6217         bit-field instead of CL_REJECT_DRIVER flag.
6218         * opts-common.c (generate_canonical_option,
6219         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6220         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6221         instead of CL_REJECT_NEGATIVE flag.
6222         * toplev.c (print_switch_values): Use cl_report bit-field instead
6223         of CL_REPORT flag.
6224
6225 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6226
6227         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6228         a zero minimum index only if it is redundant.
6229
6230 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6231
6232         PR rtl-optimization/48381
6233         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6234         instead of ira_class_hard_reg_index for calculating conflicting
6235         hard registers.
6236
6237 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6238
6239         * cprop.c: Clean up hash table building.
6240         (reg_avail_info): Remove.
6241         (oprs_available_p): Remove.
6242         (record_last_reg_set_info): Remove.
6243         (record_last_set_info): Remove.
6244         (reg_available_p): New function.
6245         (gcse_constant_p): Do not treat unfolded conditions as constants.
6246         (make_set_regs_unavailable): New function.
6247         (hash_scan_set): Simplify with new reg_available_p.
6248         (compute_hash_table_work): Traverse insns stream only once.
6249         Do not compute reg_avail_info. Traverse insns in reverse order.
6250         Record implicit sets after recording explicit sets from the block.
6251
6252 2011-03-31  Michael Matz  <matz@suse.de>
6253
6254         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6255
6256 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6257
6258         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6259         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6260         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6261         (h8300_mode_dependent_address_p): New function.
6262         (h8300_get_index): Make static.
6263
6264 2011-03-31  Jeff Law  <law@redhat.com>
6265
6266         * reload1.c (elimination_effects): Fix typo in recent change.
6267
6268         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6269         typo potentially leading to null pointer dereference.
6270
6271         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6272         (setup_save_areas): Corresponding changes to avoid useless
6273         assignments.
6274
6275         * jump.c (reversed_comparison_code_parts): Avoid successive return
6276         statements when REVERSE_CONDITION is defined.
6277
6278         * expr.c (expand_assignment): Avoid useless assignments.
6279         (expand_expr_real_1): Likewise.
6280         (expand_expr_real_2): Avoid useless statements.
6281
6282         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6283
6284         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6285
6286         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6287         statements.
6288
6289         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6290
6291 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6292
6293         PR target/47109
6294         * doc/tm.texi.in (TARGET_VERSION): Remove.
6295         * doc/tm.texi: Regenerate.
6296         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6297         * collect2.c (main): Don't use TARGET_VERSION.
6298         * mips-tdump.c (main): Don't use TARGET_VERSION.
6299         * mips-tfile.c (main): Don't use TARGET_VERSION.
6300         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6301         * config/rs6000/vxworksae.h: Remove.
6302         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6303         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6304         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6305         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6306         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6307         * config/arm/arm.h (TARGET_VERSION): Remove.
6308         * config/arm/coff.h (TARGET_VERSION): Remove.
6309         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6310         * config/arm/elf.h (TARGET_VERSION): Remove.
6311         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6312         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6313         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6314         * config/arm/pe.h (TARGET_VERSION): Remove.
6315         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6316         * config/arm/semi.h (TARGET_VERSION): Remove.
6317         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6318         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6319         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6320         * config/avr/avr.h (TARGET_VERSION): Remove.
6321         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6322         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6323         * config/frv/frv.h (TARGET_VERSION): Remove.
6324         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6325         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6326         * config/i386/darwin.h (TARGET_VERSION): Remove.
6327         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6328         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6329         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6330         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6331         * config/i386/gnu.h (TARGET_VERSION): Remove.
6332         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6333         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6334         * config/i386/linux.h (TARGET_VERSION): Remove.
6335         * config/i386/linux64.h (TARGET_VERSION): Remove.
6336         * config/i386/lynx.h (TARGET_VERSION): Remove.
6337         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6338         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6339         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6340         * config/i386/netware.h (TARGET_VERSION): Remove.
6341         * config/i386/nto.h (TARGET_VERSION): Remove.
6342         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6343         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6344         * config/ia64/elf.h (TARGET_VERSION): Remove.
6345         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6346         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6347         * config/ia64/linux.h (TARGET_VERSION): Remove.
6348         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6349         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6350         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6351         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6352         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6353         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6354         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6355         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6356         * config/m68k/linux.h (TARGET_VERSION): Remove.
6357         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6358         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6359         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6360         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6361         * config/mep/mep.h (TARGET_VERSION): Remove.
6362         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6363         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6364         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6365         * config/mips/linux.h (TARGET_VERSION): Remove.
6366         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6367         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6368         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6369         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6370         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6371         * config/pa/pa.h (TARGET_VERSION): Remove.
6372         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6373         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6374         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6375         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6376         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6377         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6378         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6379         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6380         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6381         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6382         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6383         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6384         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6385         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6386         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6387         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6388         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6389         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6390         * config/s390/linux.h (TARGET_VERSION): Remove.
6391         * config/s390/s390.h (TARGET_VERSION): Remove.
6392         * config/s390/tpf.h (TARGET_VERSION): Remove.
6393         * config/score/score.h (TARGET_VERSION): Remove.
6394         * config/sh/linux.h (TARGET_VERSION): Remove.
6395         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6396         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6397         * config/sh/sh.h (TARGET_VERSION): Remove.
6398         * config/sh/sh64.h (TARGET_VERSION): Remove.
6399         * config/sh/superh.h (TARGET_VERSION): Remove.
6400         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6401         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6402         * config/sparc/linux.h (TARGET_VERSION): Remove.
6403         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6404         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6405         TARGET_NAME32, TARGET_NAME): Remove.
6406         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6407         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6408         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6409         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6410         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6411         * config/spu/spu.h (TARGET_VERSION): Remove.
6412         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6413         * config/v850/v850.h (TARGET_VERSION): Remove.
6414         * config/vax/linux.h (TARGET_VERSION): Remove.
6415         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6416         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6417         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6418
6419 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6420
6421         PR target/48142
6422         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6423         frame-related from frame-unrelated adjustments to the stack pointer.
6424
6425 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6426
6427         * common.opt (fdebug-types-section): Move earlier.
6428         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6429
6430 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6431
6432         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6433         var.
6434
6435 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6436
6437         * tree.h (CASE_CHAIN): Define.
6438         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6439         (gimple_redirect_edge_and_branch): Likewise.
6440
6441 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6442
6443         PR middle-end/48367
6444         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6445         calculation.
6446
6447 2011-03-30  Jeff Law  <law@redhat.com>
6448
6449         * PR bootstrap/48371
6450         * reload1.c (reload): Fix botch in last change.
6451
6452         * reload.h (struct reload): Fix typo introduced in last change.
6453
6454 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6455
6456         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6457         Undocumented.  Remove help text.
6458         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6459         -mhard-float.
6460
6461 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6462
6463         * doc/options.texi (NegativeAlias): Document.
6464         (Alias): Mention NegativeAlias.
6465         * opt-functions.awk: Handle NegativeAlias.
6466         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6467         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6468         * opts.h (CL_NEGATIVE_ALIAS): Define.
6469         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6470         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6471         OPT_mspe_.
6472         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6473         Alias entries.
6474         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6475         mno-spe and mno-isel instead of mspe=no and -misel=no.
6476
6477 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6478
6479         * common.opt (fdebug-types-section): New flag.
6480         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6481         * dwarf2out.c (use_debug_types): New define.
6482         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6483         (print_die): Guard output of type unit signatures using
6484         use_debug_types.
6485         (build_abbrev_table): Replace assert of dwarf_version >= 4
6486         with assert on use_debug_types.
6487         (size_of_die): Likewise.
6488         (unmark_dies): Likewise.
6489         (value_format): Decide AT_ref_external form on use_debug_types.
6490         (output_die): Replace dwarf_version version check guard with
6491         use_debug_types where appropriate.
6492         (modified_type_die): Likewise.
6493         (gen_reference_type_die): Likewise.
6494         (dwarf2out_start_source_file): Likewise.
6495         (dwarf2out_end_source_file): Likewise.
6496         (prune_unused_types_walk_attribs): Likewise.
6497         (dwarf2out_finish): Likewise.
6498
6499 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6500
6501         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6502
6503 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6504
6505         PR rtl-optimization/48332
6506         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6507         mode of input operand N and modeN to its actual mode.
6508
6509 2011-03-30  Jeff Law  <law@redhat.com>
6510
6511         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6512         define accessor macro.
6513         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6514         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6515         (reg_equiv_init): Likewise.
6516         (reg_equivs_size): New variable.
6517         (reg_equiv_init_size): Remove.
6518         (allocate_initial_values): Move prototype to here from....
6519         * integrate.h (allocate_initial_values): Remove prototype.
6520         * integrate.c: Include reload.h.
6521         (allocate_initial_values): Corresponding changes.
6522         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6523         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6524         (update_equiv_regs): Corresponding changes.
6525         (ira): Corresponding changes.
6526         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6527         (push_secondary_reload): Corresponding changes.
6528         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6529         (make_memloc, find_reloads_address): Corresponding changes.
6530         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6531         (find_reloads_address_1): Corresponding changes.
6532         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6533         (refers_to_regno_for_reload_p): Corresponding changes.
6534         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6535         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6536         * reload1.c: Include ggc.h.
6537         (grow_reg_equivs): New function.
6538         (replace_pseudos_in, reload): Corresponding changes.
6539         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6540         (eliminate_regs_1, elimination_effects): Corresponding changes.
6541         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6542         (delete_output_reload): Likewise.
6543         * caller-save.c (mark_referenced_regs): Corresponding changes.
6544         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6545         * frv/predicates.md (frv_load_operand): Corresponding changes.
6546         * microblaze/microblaze.c (double_memory_operand): Corresponding
6547         changes.
6548         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6549         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6550         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6551         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6552         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6553         changes.
6554         * pa/pa.c (emit_move_sequence): Corresponding changes.
6555         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6556
6557 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6558
6559         PR target/47551
6560         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6561         structure modes.  Don't check neon_vector_mem_operand for
6562         vector or structure modes.
6563
6564 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6565             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6566
6567         PR target/43590
6568         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6569         operand 1 and reshuffle the operands to match.
6570         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6571
6572 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6573
6574         PR driver/48208
6575         * config/c.opt (F): Added 'Driver' to -F option.
6576
6577         PR driver/48260
6578         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6579           handler function.
6580         * config/darwin.opt: Added '-arch' option.
6581
6582 2011-03-30  Nick Clifton  <nickc@redhat.com>
6583
6584         * config/rx/rx.md: Add peepholes and patterns to combine
6585         extending loads and simple arithmetic instructions.
6586         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6587         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6588         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6589         modes to use pre-decrement and post-increment addressing.
6590         (rx_is_restricted_memory_address): Add range checking of REG+INT
6591         addresses.
6592         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6593         (rx_memory_move_cost): Adjust cost of stores.
6594         (rx_adjust_insn_length): New function.
6595
6596 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6597
6598         PR c/48305
6599         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6600         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6601         matching arg00/arg01 types.
6602
6603 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6604
6605         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6606         last_location to UNKNOWN_LOCATION.
6607
6608 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6609
6610         PR target/48349
6611         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6612         FLOAT_SSE_REGS.
6613
6614 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6615             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6616
6617         PR bootstrap/48337
6618         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6619         Init(PROCESSOR_V7).
6620         (sparc_cpu): Likewise.
6621         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6622         PROCESSOR_V7.
6623
6624 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6625
6626         PR target/48336
6627         PR middle-end/48342
6628         PR rtl-optimization/48345
6629         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6630         hard regs for given mode from profitable regs when doing secondary
6631         allocation.
6632
6633 2011-03-29  Jeff Law  <law@redhat.com>
6634
6635         PR bootstrap/48327
6636         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6637         do_not_duplicate field.
6638         (lookup_redirection_data): Corresponding changes.
6639         (create_duplicates): Always create a template block.
6640         (redirect_edges): Remove code which reused the original block
6641         when it was going to become unreachable code.
6642         (thread_block): Don't set do_not_duplicate field.
6643
6644 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6645
6646         * lto-opts.c (register_user_option_p, lto_register_user_option):
6647         Make type argument unsigned.
6648         * lto-streamer.h (lto_register_user_option): Make type argument
6649         unsigned.
6650         * opth-gen.awk: Make CL_* macros unsigned.
6651         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6652         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6653         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6654         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6655         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6656         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6657         (find_opt): Make lang_mask argument unsigned.
6658
6659 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6660
6661         PR rtl-optimization/48331
6662         PR rtl-optimization/48334
6663         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6664         for any used algorithm.
6665
6666 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6667
6668         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6669         to parent_max.
6670
6671 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6672
6673         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6674         (alpha_option_override): Don't set alpha_sr_alias_set.
6675         (emit_frame_store_1): Use gen_frame_mem rather than calling
6676         set_mem_alias_set.
6677         (alpha_expand_epilogue): Ditto.
6678
6679 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6680
6681         PR tree-optimization/48290
6682         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6683         vectorization, check that relevant phis in the basic block after
6684         the inner loop are really inner loop's exit phis.
6685
6686 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6687
6688         PR debug/48190
6689         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6690         (cached_dw_loc_list_def): New structure.
6691         (cached_dw_loc_list): New typedef.
6692         (cached_dw_loc_list_table): New variable.
6693         (cached_dw_loc_list_table_hash): New function.
6694         (cached_dw_loc_list_table_eq): Likewise.
6695         (add_location_or_const_value_attribute): Take a bool cache_p.
6696         Cache the list when the parameter is true.
6697         (gen_formal_parameter_die): Update caller.
6698         (gen_variable_die): Likewise.
6699         (dwarf2out_finish): Likewise.
6700         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6701         while generating debug info for the decl.
6702         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6703         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6704         (resolve_addr): Cache the result of resolving a chain of
6705         location lists.
6706
6707 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6708
6709         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6710         conflict object hard regset nodes have intersecting hard reg sets.
6711
6712         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6713         after regstat_init_n_sets_and_refs.
6714
6715         * ira.c: Add more comments at the top.
6716         (setup_stack_reg_pressure_class, setup_pressure_classes):
6717         Add comments how we compute the register pressure classes.
6718         (setup_allocno_and_important_classes): Add more comments.
6719         (setup_class_translate_array, reorder_important_classes)
6720         (setup_reg_class_relations): Add comments.
6721
6722         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6723         start of the file.
6724
6725         * ira-color.c: Add 2011 to the Copyright line.
6726         (assign_hard_reg):  Add more comments.
6727         (improve_allocation): Ditto.
6728
6729         * ira-costs.c: Add 2011 to the Copyright line.
6730         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6731         comments.
6732         (setup_regno_cost_classes_by_mode): Ditto.
6733
6734         Initial patches from ira-improv branch:
6735
6736         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6737
6738         * ira-build.c (ira_create_object): Remove initialization of
6739         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6740         (ira_create_allocno): Remove initialization of
6741         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6742         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6743         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6744         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6745         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6746         Initialize ALLOCNO_ADD_DATA.
6747         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6748         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6749         ALLOCNO_REG.
6750         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6751         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6752
6753         * ira.c (ira_reallocate): Remove.
6754         (setup_pressure_classes): Call
6755         ira_init_register_move_cost_if_necessary.  Use
6756         ira_register_move_cost instead of ira_get_register_move_cost.
6757         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6758         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6759
6760         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6761         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6762         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6763         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6764         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6765         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6766         Fix formatting.
6767         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6768         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6769         (struct allocno_color_data): New.
6770         (allocno_color_data_t): New typedef.
6771         (allocno_color_data): New definition.
6772         (ALLOCNO_COLOR_DATA): New macro.
6773         (struct object_color_data): New.
6774         (object_color_data_t): New typedef.
6775         (object_color_data): New definition.
6776         (OBJECT_COLOR_DATA): New macro.
6777         (update_copy_costs, calculate_allocno_spill_cost): Call
6778         ira_init_register_move_cost_if_necessary.  Use
6779         ira_register_move_cost instead of ira_get_register_move_cost.
6780         (move_spill_restore, update_curr_costs): Ditto.
6781         (allocno_spill_priority): Make it inline.
6782         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6783         (struct coalesce_data, coalesce_data_t): New.
6784         (allocno_coalesce_data): New definition.
6785         (ALLOCNO_COALESCE_DATA): New macro.
6786         (merge_allocnos, coalesced_allocno_conflict_p): Use
6787         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6788         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6789         (coalesce_allocnos): Ditto.
6790         (setup_coalesced_allocno_costs_and_nums): Ditto.
6791         (collect_spilled_coalesced_allocnos): Ditto.
6792         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6793         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6794         (coalesce_spill_slots): Ditto.
6795         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6796         free allocno_coalesce_data.
6797
6798         * ira-conflicts.c: Fix formatting.
6799         (process_regs_for_copy): Call
6800         ira_init_register_move_cost_if_necessary.  Use
6801         ira_register_move_cost instead of ira_get_register_move_cost.
6802         (build_object_conflicts): Optimize.
6803
6804         * ira-costs.c (record_reg_classes): Optimize.  Call
6805         ira_init_register_move_cost_if_necessary.  Use
6806         ira_register_move_cost, ira_may_move_in_cost, and
6807         ira_may_move_out_cost instead of ira_get_register_move_cost and
6808         ira_get_may_move_cost.
6809         (record_address_regs): Ditto.
6810         (scan_one_insn): Optimize.
6811         (find_costs_and_classes): Optimize.
6812         (process_bb_node_for_hard_reg_moves): Call
6813         ira_init_register_move_cost_if_necessary.  Use
6814         ira_register_move_cost instead of ira_get_register_move_cost.
6815
6816         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6817         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6818         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6819         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6820         definitions.
6821         (ira_initiate_emit_data, ira_finish_emit_data)
6822         (create_new_allocno): New functions.
6823         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6824         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6825         Use ira_register_move_cost instead of ira_get_register_move_cost.
6826
6827         * ira-int.h: Fix some comments.
6828         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6829         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6830         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6831         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6832         add_data.
6833         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6834         bitfield after mode.  Make hard_regno a short int.  Make
6835         hard_regno short.  Remove first_coalesced_allocno and
6836         next_coalesced_allocno.  Move mem_optimized_dest_p,
6837         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6838         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6839         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6840         temp, colorable_p.  Add new member add_data.
6841         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6842         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6843         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6844         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6845         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6846         (ALLOCNO_ADD_DATA): New macro.
6847         (ira_emit_data_t): New typedef.
6848         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6849         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6850         from struct ira_allocno.
6851         (ALLOCNO_EMIT_DATA): New macro.
6852         (ira_allocno_emit_data, allocno_emit_reg): New.
6853         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6854         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6855         (OBJECT_ADD_DATA): New macro.
6856         (ira_reallocate): Remove.
6857         (ira_initiate_emit_data, ira_finish_emit_data): New.
6858         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6859         (ira_init_register_move_cost_if_necessary): New.
6860         (ira_object_conflict_iter_next): Merge into
6861         ira_object_conflict_iter_cond.
6862         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6863
6864         * ira-live.c (process_single_reg_class_operands): Call
6865         ira_init_register_move_cost_if_necessary.  Use
6866         ira_register_move_cost instead of ira_get_register_move_cost.
6867
6868         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6869
6870         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6871
6872         * ira-costs.c: Fix formatting.
6873         (cost_classes, cost_classes_num): Remove.
6874         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6875         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6876         (cost_classes_del, cost_classes_htab): New.
6877         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6878         (initiate_regno_cost_classes, setup_cost_classes): New.
6879         (setup_regno_cost_classes_by_aclass): New.
6880         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6881         (record_reg_classes): Use regno_cost_classes instead of
6882         cost_classes.  Move checking opposite operand up.
6883         (record_address_regs): Use regno_cost_classes
6884         instead of cost_classes.
6885         (scan_one_insn): Ditto.  Use always general register.
6886         (print_allocno_costs): Use regno_cost_classes instead of
6887         cost_classes.
6888         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6889         (find_costs_and_classes): Set up cost classes for each registers.
6890         Use also their mode for this.  Use regno_cost_classes instead of
6891         cost_classes.
6892         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6893         cost_classes.
6894         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6895         (ira_costs, ira_set_pseudo_classes): Call
6896         initiate_regno_cost_classes and finish_regno_cost_classes.
6897
6898         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6899
6900         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6901
6902         * target.def (ira_cover_classes): Remove.
6903
6904         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6905
6906         * doc/tm.texi.in: Ditto.
6907
6908         * ira-conflicts.c: Remove mentioning cover classes from the file.
6909         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6910         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6911
6912         * targhooks.c (default_ira_cover_classes): Remove.
6913
6914         * targhooks.h (default_ira_cover_classes): Ditto.
6915
6916         * haifa-sched.c: Remove mentioning cover classes from the file.
6917         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6918         ira_pressure_classes and ira_pressure_classes_num instead of
6919         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6920         sched_regno_pressure_class instead of sched_regno_cover_class.
6921         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6922         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6923
6924         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6925         classes from the file.
6926         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6927         (struct object_hard_regs, struct object_hard_regs_node): New.
6928         (struct ira_object): New members profitable_hard_regs,
6929         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6930         (struct ira_allocno): Rename cover_class to aclass.  Rename
6931         cover_class_cost and updated_cover_class_cost to class_cost and
6932         updated_class_cost.  Remove splay_removed_p and
6933         left_conflict_size.  Add new members colorable_p.
6934         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6935         (ALLOCNO_COLORABLE_P): New macro.
6936         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6937         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6938         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6939         (OBJECT_...): Rename parameter C to O.
6940         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6941         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6942         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6943         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6944         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6945         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6946         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6947         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6948         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6949         x_ira_reg_class_subunion.
6950         (ira_max_memory_move_cost, ira_max_register_move_cost)
6951         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6952         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6953         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6954         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6955         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6956         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6957         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6958         (ira_tune_allocno_costs_and_cover_classes): Rename to
6959         ira_tune_allocno_costs.
6960         (ira_debug_hard_regs_forest): New.
6961         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6962         (ira_object_conflict_iter_next): Fix comments.
6963         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6964         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6965         cover_class to aclass.
6966         (ira_allocate_and_accumulate_costs): Ditto.
6967         (ira_allocate_and_set_or_copy_costs): Ditto.
6968
6969         * opts.c (decode_options): Remove ira_cover_class check.
6970
6971         * ira-color.c: Remove mentioning cover classes from the file.  Use
6972         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6973         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6974         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6975         (splay-tree.h): Remove include.
6976         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6977         before copy_freq_compare_func.
6978         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6979         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6980         New definitions.
6981         (hard_regs_roots, hard_regs_node_vec): Ditto.
6982         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6983         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6984         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6985         (create_new_object_hard_regs_node): Ditto.
6986         (add_new_object_hard_regs_node_to_forest): Ditto.
6987         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6988         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6989         Ditto.
6990         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6991         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6992         (remove_unused_object_hard_regs_nodes): Ditto.
6993         (enumerate_object_hard_regs_nodes): Ditto.
6994         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6995         (object_hard_regs_subnode_t): Ditto.
6996         (struct object_hard_regs_subnode): Ditto.
6997         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6998         (setup_object_hard_regs_subnode_index): Ditto.
6999         (get_object_hard_regs_subnodes_num): Ditto.
7000         (form_object_hard_regs_nodes_forest): Ditto.
7001         (finish_object_hard_regs_nodes_tree): Ditto.
7002         (finish_object_hard_regs_nodes_forest): Ditto.
7003         (allocnos_have_intersected_live_ranges_p): Rename to
7004         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7005         (pseudos_have_intersected_live_ranges_p): Rename to
7006         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7007         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7008         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7009         (update_copy_costs): Remove assert.  Skip cost update if the hard
7010         reg does not belong the class.
7011         (assign_hard_reg): Process only profitable hard regs.
7012         (uncolorable_allocnos_num): Make it scalar.
7013         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7014         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7015         and ira_reg_class_max_nregs.
7016         (bucket_allocno_compare_func): Check frequency first.
7017         (sort_bucket): Add compare function as a parameter.
7018         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7019         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7020         (push_allocno_to_stack): Rewrite for checking new allocno
7021         colorability.
7022         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7023         (push_only_colorable): Pass new parameter to sort_bucket.
7024         (push_allocno_to_spill): Remove.
7025         (allocno_spill_priority_compare): Make it inline and rewrite.
7026         (splay_tree_allocate, splay_tree_free): Remove.
7027         (allocno_spill_sort_compare): New function.
7028         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7029         build and use splay tree.  Choose first allocno in uncolorable
7030         allocno bucket to spill.  Remove setting spill cost.
7031         (all_conflicting_hard_regs): Remove.
7032         (setup_allocno_available_regs_num): Check only profitable hard
7033         regs.  Print info about hard regs nodes.
7034         (setup_allocno_left_conflicts_size): Remove.
7035         (put_allocno_into_bucket): Don't call
7036         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7037         (improve_allocation): New.
7038         (color_allocnos): Call setup_profitable_hard_regs,
7039         form_object_hard_regs_nodes_forest, improve_allocation,
7040         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7041         (print_loop_title): Use pressure classes.
7042         (color_allocnso): Ditto.
7043         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7044         and allocnos_for_spilling.
7045         (ira_sort_regnos_for_alter_reg): Don't setup members
7046         {first,next}_coalesced_allocno.
7047         (color): Remove allocating and freeing removed_splay_allocno_vec.
7048         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7049         prohibited_class_mode_regs.
7050
7051         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7052         formatting.
7053         (update_allocno_pressure_excess_length): Use pressure classes.
7054         (inc_register_pressure, dec_register_pressure): Check for pressure
7055         class.
7056         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7057         pressure class.  Use ira_reg_class_nregs instead of
7058         ira_reg_class_max_nregs.
7059         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7060         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7061         (single_reg_class): Use ira_reg_class_nregs instead of
7062         ira_reg_class_max_nregs.
7063         (process_bb_node_lives): Use pressure classes.
7064
7065         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7066         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7067         (change_loop): Use pressure classes.
7068         (modify_move_list): Call ira_set_allocno_class instead of
7069         ira_set_allocno_cover_class.
7070
7071         * ira-build.c: Remove mentioning cover classes from the file.  Use
7072         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7073         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7074         ALLOCNO_UPDATED_CLASS_COST instead of
7075         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7076         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7077         (ira_create_allocno): Remove initialization of
7078         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7079         ALLOCNO_COLORABLE_P.
7080         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7081         Update conflict regs for the objects.
7082         (create_cap_allocno): Remove assert.  Don't propagate
7083         ALLOCNO_AVAILABLE_REGS_NUM.
7084         (ira_free_allocno_costs): New function.
7085         (finish_allocno): Change a part of code into call of
7086         ira_free_allocno_costs.
7087         (low_pressure_loop_node_p): Use pressure classes.
7088         (object_range_compare_func): Don't compare classes.
7089         (setup_min_max_conflict_allocno_ids): Ditto.
7090
7091         * loop-invariant.c: Remove mentioning cover classes from the file.
7092         Use ira_pressure_classes and ira_pressure_classes_num instead of
7093         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7094         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7095         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7096         Use reg_allocno_class instead of reg_cover_class.
7097         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7098         STACK_REG_COVER_CLASS.
7099         (get_regno_cover_class): Rename to get_regno_pressure_class.
7100         (move_loop_invariants): Initialize and finalize regstat.
7101
7102         * ira.c: Remove mentioning cover classes from the file.  Add
7103         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7104         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7105         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7106         setup_class_subset_and_memory_move_costs.
7107         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7108         (setup_cover_and_important_classes): Rename to
7109         setup_allocno_and_important_classes.
7110         (setup_class_translate_array): New.
7111         (setup_class_translate): Call it for allocno and pressure classes.
7112         (cover_class_order): Rename to allocno_class_order.
7113         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7114         of ira_class_translate.
7115         (reorder_important_classes): Set up ira_important_class_nums.
7116         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7117         (print_class_cover): Rename to print_classes.  Add parameter.
7118         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7119         Print pressure classes too.
7120         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7121         setup_reg_subclasses.
7122         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7123         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7124         (setup_prohibited_class_mode_regs): Use
7125         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7126         (clarify_prohibited_class_mode_regs): New function.
7127         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7128         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7129         (ira_init_once): Initialize them.
7130         (free_register_move_costs): Process them.
7131         (ira_init): Move calls of find_reg_classes and
7132         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7133         Call clarify_prohibited_class_mode_regs.
7134         (ira_no_alloc_reg): Remove.
7135         (too_high_register_pressure_p): Use pressure classes.
7136
7137         * sched-deps.c: Remove mentioning cover classes from the file.
7138         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7139         ira_pressure_classes and ira_pressure_classes_num instead of
7140         ira_reg_class_cover_size and ira_reg_class_cover.
7141         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7142         sched_regno_pressure_class instead of sched_regno_cover_class.
7143         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7144         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7145
7146         * ira.h: Add 2010 to Copyright.
7147         (ira_no_alloc_reg): Remove external.
7148         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7149         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7150         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7151         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7152         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7153         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7154         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7155         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7156         x_ira_no_alloc_regs.
7157         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7158         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7159         ira_allocno_classes_num and ira_allocno_classes.
7160         (ira_class_translate): Rename to ira_allocno_class_translate.
7161         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7162         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7163         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7164         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7165         (ira_no_alloc_regs): New.
7166
7167         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7168         classes from the file.  Use ALLOCNO_CLASS instead of
7169         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7170         ALLOCNO_COVER_CLASS_COST.
7171         (regno_cover_class): Rename to regno_aclass.
7172         (record_reg_classes): Use ira_reg_class_subunion instead of
7173         ira_reg_class_union.
7174         (record_address_regs): Check overflow.
7175         (scan_one_insn): Ditto.
7176         (print_allocno_costs): Print total mem cost fore regional allocation.
7177         (print_pseudo_costs): Use REG_N_REFS.
7178         (find_costs_and_classes): Use classes intersected with them on the
7179         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7180         ira_reg_class_union.  Use ira_allocno_class_translate and
7181         regno_aclass instead of ira_class_translate and regno_cover_class.
7182         Modify code for finding regno_aclass.  Setup preferred classes for
7183         the next pass.
7184         (setup_allocno_cover_class_and_costs): Rename to
7185         setup_allocno_class_and_costs.  Use regno_aclass instead of
7186         regno_cover_class.  Use ira_set_allocno_class instead of
7187         ira_set_allocno_cover_class.
7188         (init_costs, finish_costs): Use regno_aclass instead of
7189         regno_cover_class.
7190         (ira_costs): Use setup_allocno_class_and_costs instead of
7191         setup_allocno_cover_class_and_costs.
7192         (ira_tune_allocno_costs_and_cover_classes): Rename to
7193         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7194         by processing objects.  Use ira_reg_class_max_nregs instead of
7195         ira_reg_class_nregs.
7196
7197         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7198
7199         * sched-int.h: Remove mentioning cover classes from the file.
7200         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7201
7202         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7203         classes from the file.
7204         (struct reg_pref): Rename coverclass into allocnoclass.
7205         (reg_cover_class): Rename to reg_allocno_class.
7206
7207         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7208
7209         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7210
7211         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7212
7213         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7214
7215         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7216
7217         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7218
7219         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7220
7221         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7222
7223         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7224
7225         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7226
7227         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7228         (i386_ira_cover_classes): Ditto.
7229
7230         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7231
7232         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7233
7234         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7235
7236         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7237
7238         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7239
7240         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7241
7242         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7243         (mips_ira_cover_classes): Ditto.
7244
7245         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7246
7247         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7248
7249         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7250
7251         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7252
7253         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7254
7255         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7256         (IRA_COVER_CLASSES_VSX): Ditto.
7257
7258         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7259         (rs6000_ira_cover_classes): Ditto.
7260
7261         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7262
7263         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7264
7265         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7266
7267         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7268
7269         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7270
7271         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7272
7273         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7274
7275         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7276
7277         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7278
7279         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7280
7281 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7282
7283         PR debug/48253
7284         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7285         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7286         dw_fde_unlikely_section_end_label, cold_in_std_section,
7287         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7288         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7289         fields.
7290         (output_fde): Use dw_fde_second_{begin,end} if second is
7291         true, otherwise dw_fde_{begin,end}.
7292         (output_call_frame_info): Test dw_fde_second_begin != NULL
7293         instead of dw_fde_switched_sections.
7294         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7295         fields, initialize new fields.  Initialize in_std_section
7296         unconditionally from the first partition.
7297         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7298         dw_fde_second_begin is non-NULL.
7299         (dwarf2out_switch_text_section): Stop initializing removed
7300         dw_fde_struct fields, initialize new fields, initialize
7301         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7302         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7303         (struct var_loc_list_def): Add last_before_switch field.
7304         (arange_table, arange_table_allocated, arange_table_in_use,
7305         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7306         (size_of_aranges): Count !in_std_section and !second_in_std_section
7307         hunks in fdes, instead of looking at arange_table_in_use.
7308         (output_aranges): Add aranges_length argument, don't call
7309         size_of_aranges here.  Instead of using aranges_table*
7310         emit ranges for fdes when !in_std_section resp.
7311         !second_in_std_section.
7312         (dw_loc_list): Break ranges crossing section switch.
7313         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7314         use dw_fde_second_end instead of dw_fde_end as end of last range.
7315         (gen_subprogram_die): Don't call add_arange.  Use
7316         dw_fde_{begin,end} for first partition and if switched
7317         section dw_fde_second_{begin,end} for the second.
7318         (var_location_switch_text_section_1,
7319         var_location_switch_text_section): New functions.
7320         (dwarf2out_begin_function): Initialize cold_text_section even
7321         when function_section () isn't text_section.
7322         (prune_unused_types): Don't walk arange_table.
7323         (dwarf2out_finish): Don't needlessly test
7324         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7325         If info_section_emitted, call size_of_aranges and if it indicates
7326         non-empty .debug_aranges, call output_aranges with the computed
7327         size.  Stop using removed dw_fde_struct fields, use
7328         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7329         for second.
7330
7331         PR debug/48203
7332         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7333         create ENTRY_VALUE if incoming or address of incoming's MEM
7334         is a hard REG.
7335         * dwarf2out.c (mem_loc_descriptor): Don't emit
7336         DW_OP_GNU_entry_value of DW_OP_fbreg.
7337         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7338         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7339         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7340         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7341         ENTRY_VALUE_EXPs.
7342         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7343         is a REG_P or MEM_P with REG_P address, compute hash directly
7344         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7345         (preserve_only_constants): Don't clear VALUES forwaring
7346         ENTRY_VALUE to some other VALUE.
7347
7348 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7349
7350         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7351         instead of GEN_INT.
7352
7353 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7354
7355         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7356         block before expanding the statement.
7357         (expand_gimple_stmt_1): Likewise.  Set them here...
7358         (expand_gimple_stmt): ...and not here.  Tidy.
7359         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7360         unknown.
7361
7362 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7363
7364         * Makefile.in: New rule for cprop.o.
7365         * gcse.c: Move constant/copy propagation to cprop.c.
7366         (compute_local_properties): Only handle expression tables.
7367         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7368         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7369         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7370         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7371         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7372         compute_cprop_data, find_used_regs, try_replace_reg,
7373         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7374         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7375         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7376         find_bypass_set, reg_killed_on_edge, bypass_block,
7377         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7378         execute_rtl_cprop, pass_rtl_cprop): Move to...
7379         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7380         moved from gcse.c to here with minor cleanups in duplicated code.
7381
7382 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7383
7384         * config/i386/i386.c (flag_opts): Fix a typo in
7385         -mavx256-split-unaligned-store.
7386
7387 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7388
7389         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7390         LIBCALL_VALUE): Remove macros.
7391         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7392         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7393         (h8300_function_value, h8300_libcall_value,
7394         h8300_function_value_regno_p): New functions.
7395
7396 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7397
7398         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7399
7400 2011-03-28  Jeff Law  <law@redhat.com>
7401
7402         * tree-ssa-threadupdate.c (redirect_edges): Call
7403         create_edge_and_update_destination_phis as needed.
7404         (create_edge_and_update_destination_phis): Accept new BB argument.
7405         All callers updated.
7406         (thread_block): Do not update the profile when threading around
7407         intermediate blocks.
7408         (thread_single_edge): Likewise.
7409         (determine_bb_domination_status): If BB is not a successor of the
7410         loop header, return NONDOMINATING.
7411         (register_jump_thread): Note when we register a jump thread around
7412         an intermediate block.
7413         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7414         (thread_across_edge): Use it.
7415
7416 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7417
7418         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7419         when for_return is 2.
7420
7421 2011-03-28  Jeff Law  <law@redhat.com>
7422
7423         * var-tracking.c (canonicalize_values_mark): Delete unused
7424         lhs assignment.
7425         (canonicalize_values_star, set_variable_part): Likewise.
7426         (clobber_variable_part, delete_variable_part): Likewise.
7427
7428 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7429
7430         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7431
7432 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7433
7434         * tree-inline.c (expand_call_inline): Do not check that destination
7435         node is analyzed.
7436         (optimize_inline_calls): Assert that destination node is analyzed.
7437         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7438         not call tree_lowering_passes.
7439         * cgraph.h (cgraph_analyze_function): Declare.
7440         * cgraphunit.c (cgraph_analyze_function): Make public.
7441
7442 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7443
7444         * config/sparc/sparc-opts.h: New.
7445         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7446         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7447         (sparc_option_override): Store processor_type enumeration rather
7448         than string in cpu_default.  Remove name and enumeration from
7449         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7450         without using sparc_select.  Use target_flags_explicit instead of
7451         fpu_option_set.
7452         * config/sparc/sparc.h (enum processor_type): Move to
7453         sparc-opts.h.
7454         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7455         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7456         HeaderInclude entry.
7457         (mcpu=, mtune=): Use Var and Enum.
7458         (sparc_processor_type): New Enum and EnumValue entries.
7459
7460 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7461             Iain Sandoe  <iains@gcc.gnu.org>
7462
7463         PR target/48245
7464         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7465
7466 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7467
7468         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7469         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7470         Insert new statements at it in lieu of STMT.
7471         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7472         * tree-vect-stmts.c (vectorizable_store): Likewise.
7473         (vectorizable_load): Likewise.
7474
7475 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7476
7477         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7478         (divtf3): Ditto.
7479         (multf3): Ditto.
7480         (subtf3): Ditto.
7481
7482 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7483
7484         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7485         unaligned 256bit load/store.
7486         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7487         (*avx_movdqu<avxmodesuffix>): Likewise.
7488
7489 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7490
7491         PR target/48288
7492         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7493         * config/pa/pa.md (iordi3): Use new predicate in expander.
7494         (iorsi3): Likewise.
7495
7496 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7497
7498         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7499         FUNCTION_VALUE_REGNO_P): Remove macros.
7500         * config/mips/mips-protos.h (mips_function_value): Remove.
7501         * config/mips/mips.c (mips_function_value): Rename to...
7502         (mips_function_value_1): ... this. Make static.  Handle receiving
7503         the function type in 'fn_decl_or_type' argument.
7504         (mips_function_value, mips_libcall_value,
7505         mips_function_value_regno_p): New function.
7506         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7507         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7508
7509 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7512         and -mavx256-split-unaligned-store.
7513         (ix86_option_override_internal): Split 32-byte AVX unaligned
7514         load/store by default.
7515         (ix86_avx256_split_vector_move_misalign): New.
7516         (ix86_expand_vector_move_misalign): Use it.
7517
7518         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7519         -mavx256-split-unaligned-store.
7520
7521         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7522         256bit load/store.  Generate unaligned store on misaligned memory
7523         operand.
7524         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7525         256bit load/store.
7526         (*avx_movdqu<avxmodesuffix>): Likewise.
7527
7528         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7529         -mavx256-split-unaligned-store.
7530
7531 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7532
7533         PR target/38598
7534         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7535         Update commentary.
7536
7537 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7538
7539         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7540         opno arguments with an expand_operand.  Use create_input_operand.
7541         (mips_prepare_builtin_target): Delete.
7542         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7543         functions.
7544         (mips_expand_builtin_direct): Use create_output_operand and
7545         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7546         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7547         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7548
7549 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7550
7551         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7552         function.
7553         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7554
7555 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7556
7557         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7558         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7559         basic blocks and call commit_edge_insertions directly.
7560         (fixup_abnormal_edges): Move from here to...
7561         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7562         on the edges and return whether some have actually been inserted.
7563         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7564         compensation code.
7565
7566 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7567
7568         PR rtl-optimization/48144
7569         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7570         (merge_expr_data): ... here.
7571         (av_set_intersect): Rename to av_set_code_motion_filter.
7572         Update all callers.  Call merge_history_vect when an expression
7573         is found in both sets.
7574         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7575
7576 2011-03-26  Alan Modra  <amodra@gmail.com>
7577
7578         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7579         cmodel medium addresses.
7580         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7581         64-bit gpr loads and stores.
7582         (rs6000_secondary_reload_ppc64): New function.
7583         * config/rs6000/rs6000-protos.h: Declare it.
7584         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7585
7586 2011-03-26  Alan Modra  <amodra@gmail.com>
7587
7588         PR target/47487
7589         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7590         GNU Go in traceback table.
7591
7592 2011-03-25  Richard Henderson  <rth@redhat.com>
7593
7594         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7595         if there are exactly 6 operands.
7596         (set_storage_via_setmem): Similarly.
7597
7598 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7599
7600         * collect2.c (write_c_file_stat): Handle backslash
7601         as right-hand directory separator.
7602         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7603         checking just for slash.
7604         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7605         instead of checking for trailing slash.
7606         * gcc.c (record_temp_file): Use filename_cmp instead
7607         of strcmp.
7608         (do_spec_1): Likewise.
7609         (replace_outfile_spec_function): Likewise.
7610         (is_directory): Use filename_ncmp instead of strncmp.
7611         (print_multilib_info): Likewise.
7612         * gcov.c (find_source): Use filename_cmp instead
7613         instead of strcmp.
7614         (make_gcov_file_name): Fix order of slash/backslash
7615         checks.
7616         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7617         (add_standard_paths): Likewise.
7618         * mips-tfile.c (saber_stop): Handle backslash.
7619         * prefix.c (update_path): Use filename_ncmp instead of
7620         strncmp.
7621         * profile.c (output_location): Use filename_cmp instead
7622         of strcmp.
7623         * read-md.c (handle_toplevel_file): Handle backslash.
7624         * tlink.c (frob_extension):  Likewise.
7625         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7626         strcmp.
7627         * tree-dump.c (dequeue_and_dump): Handle backslash.
7628         * tree.c (get_file_function_name): Likewise.
7629         * gengtype.c (read_input_list): Likewise.
7630         (get_file_realbasename): Likewise.
7631         (get_output_file_with_visibility): Use filename_cmp
7632         instead of strcmp.
7633
7634 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7635
7636         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7637         case to VFPv1.
7638
7639 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7640
7641         * fold-const.c (expr_location_or): New function.
7642         (fold_truth_not_expr): Call it.
7643
7644 2011-03-25  Jeff Law  <law@redhat.com>
7645
7646         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7647         va_end.
7648         * c-family/c-common.c (def_fn_type): Likewise.
7649         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7650         * emit-rtl.c (gen_rtvec): Likewise.
7651         * lto/lto-lang.c (def_fn_type): Likewise.
7652
7653 2011-03-25  Richard Guenther  <rguenther@suse.de>
7654
7655         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7656         also generate copies.
7657         (fini_copy_prop): Handle constant values properly.
7658
7659 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7660
7661         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7662         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7663         (hash_loc_operands, compare_loc_operands): Handle
7664         DW_OP_GNU_entry_value.
7665
7666 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7667
7668         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7669         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7670         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7671         comment and use macro TARGET_64BIT_MS_ABI instead.
7672         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7673         and change default behavior for 32-bit MS_ABI.
7674         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7675         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7676         32-bit, too.
7677         (ix86_cfun_abi): Likewise.
7678         (ix86_maybe_switch_abi): Adjust comment.
7679         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7680         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7681         instead of checking for SYSV_ABI.
7682         (ix86_nsaved_sseregs): Likewise.
7683         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7684         to 16 bytes.
7685         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7686         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7687         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7688         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7689         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7690
7691 2011-03-25  Richard Guenther  <rguenther@suse.de>
7692
7693         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7694         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7695         (verify_gimple): Remove.
7696         * tree-cfg.c (verify_gimple_call): Merge verification
7697         from verify_stmts.
7698         (verify_gimple_phi): Merge verification from verify_stmts.
7699         (verify_gimple_label): New function.
7700         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7701         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7702         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7703         (verify_stmts): Rename to verify_gimple_in_cfg.
7704         (verify_gimple_in_cfg): New function.
7705         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7706         * tree-ssa.c (verify_ssa): Likewise.
7707         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7708
7709 2011-03-25  Richard Guenther  <rguenther@suse.de>
7710
7711         * passes.c (init_optimization_passes): Add FRE pass after
7712         early SRA.
7713
7714 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7715             Andrew Stubbs  <ams@codesourcery.com>
7716
7717         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7718         for Cortex-A8.
7719         (arm_movdi_vfp_cortexa8): New pattern.
7720         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7721         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7722         instructions when tuning for Cortex-A8.  Set attribute "arch".
7723         * config/arm/arm.md: Move include arm-tune.md up a bit.
7724         (define_attr "arch"): Add "onlya8" and "nota8" values.
7725         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7726
7727 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7728
7729         PR bootstrap/48282
7730         Revert:
7731         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7732
7733         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7734         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7735         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7736         * passes.c (init_optimization_passes): Move
7737         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7738
7739 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7740
7741         * c-typeck.c (comptypes_internal): Replace target
7742         hook call of comp_type_attributes by version in tree.c file.
7743         * gimple.c (gimple_types_compatible_p_1): Likewise.
7744         * tree-ssa.c (useless_type_conversion_p): Likewise.
7745         * tree.c (build_type_attribute_qual_variant): Likewise.
7746         (attribute_value_equal): New static helper function.
7747         (comp_type_attributes): New function.
7748         (merge_attributes): Use attribute_value_equal for comparison.
7749         (attribute_list_contained): Likewise.
7750         * tree.h (comp_type_attributes): New prototype.
7751
7752 2011-03-25  Richard Guenther  <rguenther@suse.de>
7753
7754         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7755         of complex types at -O0.
7756         (verify_gimple_assign_binary): Likewise.
7757         (verify_gimple_assign_ternary): Likewise.
7758
7759 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7760
7761         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7762         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7763
7764 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7765
7766         PR debug/48041
7767         * dwarf2out.c (output_abbrev_section): Only write table when
7768         abbrev_die_table_in_use > 1.
7769
7770 2011-02-24  Richard Henderson  <rth@redhat.com>
7771
7772         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7773         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7774         (alpha_expand_unaligned_load_words): Use extql.
7775         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7776         (emit_insxl): Handle all modes for consistency.
7777
7778 2011-02-24  Richard Henderson  <rth@redhat.com>
7779
7780         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7781         (alpha_expand_unaligned_load): Likewise.
7782         (alpha_expand_unaligned_store): Likewise.
7783         (alpha_expand_unaligned_load_words): Likewise.
7784         (alpha_expand_unaligned_store_words): Likewise.
7785         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7786         (alpha_split_lock_test_and_set_12): Likewise.
7787         (print_operand, alpha_fold_builtin_extxx): Likewise.
7788         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7789         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7790         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7791         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7792         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7793         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7794         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7795         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7796         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7797         (extwl, extll, extql): Similarly.
7798         (inswh, inslh, insqh): Similarly.
7799         (mskbl, mskwl, mskll, mskql): Similarly.
7800         (mskwh, msklh, mskqh): Similarly.
7801
7802 2011-02-24  Richard Henderson  <rth@redhat.com>
7803
7804         * config/alpha/alpha.md (attribute isa): Add er, ner.
7805         (attribute enabled): Handle them.
7806         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7807
7808 2011-02-24  Richard Henderson  <rth@redhat.com>
7809
7810         * config/alpha/alpha.md (attribute isa): Add vms.
7811         (attribute enabled): Handle it.
7812         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7813         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7814         (*movtf): Rename from *movtf_internal for consistency.
7815         (*movsi): Merge with *movsi_nt_vms.
7816         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7817         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7818         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7819         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7820
7821 2011-02-24  Richard Henderson  <rth@redhat.com>
7822
7823         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7824         (extendqisi2, extendhisi2): Likewise.
7825         (extendqidi2): Simplify BWX/non-BWX expansions.
7826         (extendhidi2): Similarly.
7827
7828 2011-02-24  Richard Henderson  <rth@redhat.com>
7829
7830         * config/alpha/alpha.md (attribute isa): New.
7831         (attribute enabled): New.
7832         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7833         (zero_extendqisi2, zero_extendqidi2): Similarly.
7834         (zero_extendhisi2, zero_extendhidi2): Similarly.
7835         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7836
7837 2011-02-24  Richard Henderson  <rth@redhat.com>
7838
7839         * config/alpha/predicates.md (input_operand): Revert last change;
7840         update comment to mention 32-bit VMS rather than Windows.
7841
7842 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7843
7844         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7845         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7846         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7847         * passes.c (init_optimization_passes): Move
7848         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7849
7850 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7851
7852         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7853
7854 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7855
7856         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7857         correctly.
7858
7859 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7860
7861         PR debug/48204
7862         * simplify-rtx.c (simplify_const_unary_operation): Call
7863         real_convert when changing mode class with FLOAT_EXTEND.
7864
7865 2011-03-24  Nick Clifton  <nickc@redhat.com>
7866
7867         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7868         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7869         * config/rx/rx.c (rx_option_override): Set align_jumps,
7870         align_loops and align_labels if not set by the user.
7871         (rx_align_for_label): New function.
7872         (rx_max_skip_for_label): New function.
7873         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7874         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7875         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7876         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7877         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7878
7879 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7880
7881         PR rtl-optimization/48263
7882         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7883         and original commutative_p handling.  Use maybe_gen_insn.
7884
7885 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7886
7887         * reload.c (find_reloads_subreg_address): Add address_reloaded
7888         parameter and return true there if the full address has been
7889         reloaded.
7890         (find_reloads_toplev): Pass address_reloaded flag.
7891         (find_reloads_address_1): Don't use address_reloaded parameter.
7892
7893 2011-03-24  Jeff Law  <law@redhat.com>
7894
7895         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7896         unused variable "ann".
7897         (remove_unused_locals): Likewise.
7898
7899         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7900         statement.
7901
7902         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7903         after it is freed.
7904
7905 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7906
7907         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7908         for invalid symbolic addresses.
7909         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7910         larl operands.
7911
7912 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7913
7914         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7915         the argument in calls to fold_truth_not_expr.
7916
7917 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7918
7919         * tree.c (record_node_allocation_statistics): New function.
7920         (make_node_stat, copy_node_stat, build_string): Call it.
7921         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7922         (build1_stat, build_omp_clause): Likewise.
7923
7924 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7925
7926         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7927         last commit.
7928
7929 2011-03-24  Richard Guenther  <rguenther@suse.de>
7930
7931         PR tree-optimization/48271
7932         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7933         blocks that still exist.
7934
7935 2011-03-24  Richard Guenther  <rguenther@suse.de>
7936
7937         PR tree-optimization/48270
7938         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7939         not free datarefs before ddrs.
7940
7941 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7942
7943         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7944         from the address built for a reference with variable offset.
7945
7946 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7947
7948         PR target/48237
7949         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7950         alternatives that can be handled with movq or movabsq insn.
7951         (*movdf_internal): Disable for !TARGET_64BIT.
7952         (*movdf_internal_nointeger): Ditto.
7953         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7954
7955 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7956
7957         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7958         (FUNCTION_ARG_ADVANCE): Likewise.
7959         * tm.texi.in: Change references to them to hook references.
7960         * tm.texi: Regenerate.
7961         * targhooks.c (default_function_arg): Eliminate check for target macro.
7962         (default_function_incoming_arg): Likewise.
7963         (default_function_arg_advance): Likewise.
7964         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7965         (function_arg_advance): Likewise.
7966         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7967
7968 2011-03-24  Richard Guenther  <rguenther@suse.de>
7969
7970         PR middle-end/48269
7971         * tree-object-size.c (addr_object_size): Do not double-account
7972         for MEM_REF offsets.
7973
7974 2011-03-24  Diego Novillo  <dnovillo@google.com>
7975
7976         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7977         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7978         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7979         Update all users.
7980         (lto_input_string): Rename from input_string.  Make extern.
7981         Update all users.
7982         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7983         output_string_with_length.
7984         Output 0 to indicate a non-NULL string.  Update all callers to
7985         not emit 0.
7986         (lto_output_string): Rename from output_string.  Make extern.
7987         Update all users.
7988         (lto_output_decl_state_streams): Make extern.
7989         (lto_output_decl_state_refs): Make extern.
7990         * lto-streamer.h (lto_input_string): Declare.
7991         (lto_input_data_block): Declare.
7992         (lto_output_string): Declare.
7993         (lto_output_string_with_length): Declare.
7994         (lto_output_decl_state_streams): Declare.
7995         (lto_output_decl_state_refs): Declare.
7996
7997 2011-03-24  Richard Guenther  <rguenther@suse.de>
7998
7999         PR tree-optimization/46562
8000         * tree.c (build_invariant_address): New function.
8001         * tree.h (build_invariant_address): Declare.
8002         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8003         a renamed function moved ...
8004         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8005         Take valueization callback parameter.
8006         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8007         * gimple-fold.h: New file.
8008         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8009         (ccp_fold, fold_const_aggregate_ref,
8010         fold_ctor_reference, fold_nonarray_ctor_reference,
8011         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8012         get_base_constructor): Move ...
8013         * gimple-fold.c: ... here.
8014         (gimple_fold_stmt_to_constant_1): New function
8015         split out from ccp_fold.  Take a valueization callback parameter.
8016         Valueize all operands.
8017         (gimple_fold_stmt_to_constant): New wrapper function.
8018         (fold_const_aggregate_ref_1): New function split out from
8019         fold_const_aggregate_ref.  Take a valueization callback parameter.
8020         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8021         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8022         invariant POINTER_PLUS_EXPRs to invariant form.
8023         (vn_valueize): New function.
8024         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8025         * tree-vrp.c (vrp_valueize): New function.
8026         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8027         to fold statements to constants.
8028         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8029         function declarations.
8030         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8031         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8032
8033 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8034
8035         * config/h8300/predicates.md (jump_address_operand): Fix register
8036         mode check.
8037
8038 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8039
8040         * doc/invoke.texi (max-stores-to-sink): Document.
8041         * params.h (MAX_STORES_TO_SINK): Define.
8042         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8043         if either vectorization or if-conversion is disabled.
8044         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8045         tree-vect-data-refs.c vect_equal_offsets.
8046         (dr_equal_offsets_p): New function.
8047         (find_data_references_in_bb): Remove static.
8048         * tree-data-ref.h (find_data_references_in_bb): Declare.
8049         (dr_equal_offsets_p): Likewise.
8050         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8051         (vect_drs_dependent_in_basic_block): Update calls to
8052         vect_equal_offsets.
8053         (vect_check_interleaving): Likewise.
8054         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8055         (cond_if_else_store_replacement): Rename to...
8056         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8057         documentation.
8058         (cond_if_else_store_replacement): New function.
8059         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8060         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8061
8062 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8063
8064         PR target/46934
8065         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8066         to subtract lower bound instead of GEN_INT().
8067
8068 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8069
8070         PR other/48179
8071         PR other/48221
8072         PR other/48234
8073         * doc/extend.texi (Alignment): Move section to match order in TOC.
8074         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8075         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8076
8077 2011-03-23  Jeff Law  <law@redhat.com>
8078
8079         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8080         before removing the edge.
8081
8082         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8083         it may have been freed by redirect_branch_edge or
8084         redirect_edge_succ_nodup.
8085
8086 2011-03-23  Richard Guenther  <rguenther@suse.de>
8087
8088         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8089         (check_va_list_escapes): Likewise.
8090         (check_all_va_list_escapes): Likewise.
8091
8092 2011-03-23  Richard Guenther  <rguenther@suse.de>
8093
8094         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8095         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8096         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8097         (alias.o): Likewise.
8098         (ipa-type-escape.o): Remove.
8099         (ipa-struct-reorg.o): Likewise.
8100         (GTFILES): Remove ipa-struct-reorg.c.
8101         * alias.c: Do not include ipa-type-escape.h.
8102         * tree-ssa-alias.c: Likewise.
8103         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8104         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8105         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8106         and ipa-type-escape passes.
8107         * tree-pass.h (pass_ipa_type_escape): Remove.
8108         (pass_ipa_struct_reorg): Likewise.
8109         * ipa-struct-reorg.h: Remove.
8110         * ipa-struct-reorg.c: Likewise.
8111         * ipa-type-escape.h: Likewise.
8112         * ipa-type-escape.c: Likewise.
8113         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8114         (--param struct-reorg-cold-struct-ratio): Likewise.
8115         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8116         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8117         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8118
8119 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8120
8121         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8122         cpu attribute value.
8123         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8124         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8125         * config/s390/s390.c (processor_flags_table): New constant array.
8126         (s390_handle_arch_option): Remove.
8127         (s390_handle_option): Remove s390_handle_arch_option invocations
8128         and OPT_mwarn_framesize_ handling.
8129         (s390_option_override): Remove s390_handle_arch_option invocation.
8130         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8131         warnings.
8132         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8133         * config/s390/s390.opt (s390_tune, s390_arch)
8134         (march=): Replace s390_arch_option enum and values with
8135         processor_type.  Set variable name to s390_arch.  Set
8136         initialization value.
8137         (mtune=): Replace s390_arch_option with processor_type.  Set
8138         variable name to s390_tune.  Set initialization value.
8139
8140 2011-03-23  Julian Brown  <julian@codesourcery.com>
8141
8142         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8143         accesses which are not naturally aligned.
8144
8145 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8146
8147         PR target/47553
8148         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8149
8150 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8151
8152         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8153         parameter from "int" to "enum insn_code".
8154         (expand_operand_type): New enum.
8155         (expand_operand): New structure.
8156         (create_expand_operand): New function.
8157         (create_fixed_operand, create_output_operand): Likewise
8158         (create_input_operand, create_convert_operand_to): Likewise.
8159         (create_convert_operand_from, create_address_operand): Likewise.
8160         (create_integer_operand): Likewise.
8161         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8162         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8163         (expand_insn, expand_jump_insn): Likewise.
8164         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8165         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8166         (expand_movstr, expand_builtin___clear_cache): Likewise.
8167         (expand_builtin_lock_release): Likewise.
8168         * explow.c (allocate_dynamic_stack_space): Likewise.
8169         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8170         and use the default handling in that case.
8171         * expmed.c (check_predicate_volatile_ok): Delete.
8172         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8173         (emit_cstore): Likewise.
8174         * expr.c (emit_block_move_via_movmem): Likewise.
8175         (set_storage_via_setmem, expand_assignment): Likewise.
8176         (emit_storent_insn, try_casesi): Likewise.
8177         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8178         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8179         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8180         (expand_twoval_unop, expand_twoval_binop): Likewise.
8181         (expand_unop_direct, emit_indirect_jump): Likewise.
8182         (emit_conditional_move, vector_compare_rtx): Likewise.
8183         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8184         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8185         (expand_sync_lock_test_and_set): Likewise.
8186         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8187         (emit_unop_insn): Likewise.
8188         (expand_copysign_absneg): Change icode to an insn_code.
8189         (create_convert_operand_from_type): New function.
8190         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8191         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8192         (expand_insn, expand_jump_insn): Likewise.
8193         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8194         than const_int_operand for operand 2.
8195
8196 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8197
8198         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8199         if possible.
8200
8201 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8202
8203         * emit-rtl.c (emit_pattern_before_noloc): New function.
8204         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8205         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8206         (emit_pattern_after_noloc): New function.
8207         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8208         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8209
8210 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8211
8212         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8213         (__ffsDI2): Likewise.
8214
8215 2011-03-22  Richard Henderson  <rth@redhat.com>
8216
8217         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8218         of !TARGET_ABI_OPEN_VMS.
8219         (alpha_trampoline_init, alpha_start_function): Likewise.
8220         (alpha_expand_epilogue, alpha_file_start): Likewise.
8221         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8222         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8223         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8224         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8225         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8226
8227 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8228
8229         * config/s390/s390-opts.h: New.
8230         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8231         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8232         s390_stack_guard): Remove.
8233         (s390_handle_arch_option): Return void.  Take enum
8234         s390_arch_option value instead of string and searching array.
8235         (s390_handle_option): Don't assert that global structures are in
8236         use.  Access variables via opts pointer.  Use error_at.  Don't use
8237         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8238         s390_handle_arch_option.
8239         (s390_option_override): Update call to s390_handle_arch_option.
8240         (s390_emit_prologue): Use %d format for s390_stack_size in
8241         diagnostic.  Use %wd for HOST_WIDE_INT.
8242         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8243         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8244         * config/s390/s390.opt (config/s390/s390-opts.h): New
8245         HeaderInclude entry.
8246         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8247         s390_arch_flags, s390_warn_framesize): New Variable entries.
8248         (s390_arch_option): New Enum and EnumValue entries.
8249         (march=): Use Enum instead of Var.
8250         (mstack-guard=, mstack-size=): Use UInteger and Var.
8251         (mtune=): Use Enum.
8252
8253 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8254
8255         * config/score/score.c (score_handle_option): Don't assert that
8256         global structures are in use.  Access target_flags via opts
8257         pointer.  Use value of -march= option to determine target_flags
8258         settings.
8259         * config/score/score.opt (march=): Use Enum.
8260         (score_arch): New Enum and EnumValue entries.
8261
8262 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8263
8264         * config/mep/mep.c (option_mtiny_specified): Remove.
8265         (mep_option_override): Move register handling for -mivc2 from
8266         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8267         instead of option_mtiny_specified.
8268         (mep_handle_option): Access target_flags via opts pointer.  Don't
8269         assert that global structures are in use.  Defer part of -mivc2
8270         handling and move it to mep_option_override.
8271         * config/mep/mep.opt (IVC2): New Mask entry.
8272         (mivc2): Use Var and Defer instead of Mask.
8273
8274 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8275
8276         * config/v850/v850-opts.h: New.
8277         * config/v850/v850.c (small_memory): Replace with
8278         small_memory_physical_max array.  Make that array static const.
8279         (v850_handle_memory_option): Take integer value of argument.  Take
8280         gcc_options pointer, option text and location.  Return void.
8281         Update for changes to small memory structures.
8282         (v850_handle_option): Access target_flags via opts pointer.  Don't
8283         assert that global structures are in use.  Update calls to
8284         v850_handle_memory_option.
8285         (v850_encode_data_area): Update references to small memory settings.
8286         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8287         (enum small_memory_type): Move to v850-opts.h.
8288         * config/v850/v850.opt (config/v850/v850-opts.h): New
8289         HeaderInclude entry.
8290         (small_memory_max): New Variable entry.
8291         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8292         (mtda, mzda): Likewise.
8293
8294 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8295
8296         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8297         pointer.  Don't assert that global structures are in use.
8298
8299 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8300
8301         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8302         via opts pointer.  Don't assert that global structures are in use.
8303
8304 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8305
8306         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8307         (munix=93): Use Var.
8308         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8309         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8310         * config/pa/pa-opts.h: New.
8311         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8312         (pa_handle_option): Don't assert that global structures are in
8313         use.  Access target_flags via opts pointer.  Don't handle
8314         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8315         OPT_munix_98 here.
8316         (pa_option_override): Handle deferred OPT_mfixed_range_.
8317
8318 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8319
8320         * config/mn10300/mn10300-opts.h: New.
8321         * config/mn10300/mn10300.c (mn10300_processor,
8322         mn10300_tune_string): Remove.
8323         (mn10300_handle_option): Don't assert that global structures are
8324         in use.  Access mn10300_processor via opts pointer.  Don't handle
8325         OPT_mtune_ here.
8326         * config/mn10300/mn10300.h (enum processor_type): Move to
8327         mn10300-opts.h.
8328         (mn10300_processor): Remove.
8329         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8330         HeaderInclude entry.
8331         (mn10300_processor): New Variable entry.
8332         (mtune=): Use Var.
8333
8334 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8335
8336         * config/microblaze/microblaze.c: Don't include opts.h.
8337         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8338         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8339         (mno-clearbss): Use Var and Warn.
8340
8341 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * config/m32r/m32r-opts.h: New.
8344         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8345         (m32r_handle_option): Don't assert that global structures are in
8346         use.  Access target_flags and m32r_cache_flush_func via opts
8347         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8348         OPT_mno_flush_trap here.
8349         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8350         include of m32r-opts.h.
8351         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8352         HeaderInclude entry.
8353         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8354         (mmodel=): Use Enum and Var.
8355         (m32r_model): New Enum and EnumValue entries.
8356         (mno-flush-trap): Use Var.
8357         (msdata=): Use Enum and Var.
8358         (m32r_sdata): New Enum and EnumValue entries.
8359
8360 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8361
8362         * config/m32c/m32c.c: Don't include opts.h.
8363         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8364         m32c_handle_option): Remove.
8365         (m32c_option_override): Check global_options_set.x_target_memregs
8366         instead of target_memregs_set.
8367         * config/m32c/m32c.h (target_memregs): Remove.
8368         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8369         variable.
8370
8371 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8372
8373         * config/iq2000/iq2000-opts.h: New.
8374         * config/iq2000/iq2000.c: Don't include opts.h.
8375         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8376         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8377         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8378         HeaderInclude entry.
8379         (iq2000_tune): New Variable entry.
8380         (march=): Add comment.  Use Enum.
8381         (iq2000_arch): New Enum and EnumValue entries.
8382         (mcpu=): Use Enum and Var.
8383         (iq2000_tune): New Enum and EnumValue entries.
8384
8385 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8386
8387         * config/ia64/ia64-opts.h: New.
8388         * config/ia64/ia64.c (ia64_tune): Remove.
8389         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8390         here.  Use error_at.
8391         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8392         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8393         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8394         HeaderInclude entry.
8395         (ia64_tune): New Variable entry.
8396         (mfixed-range=): Use Defer and Var.
8397         (mtune=): Use Enum and Var.
8398         (ia64_tune): New Enum and EnumValue entries.
8399
8400 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8401
8402         * config/frv/frv-opts.h: New.
8403         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8404         frv-opts.h.
8405         (frv_cpu_type): Remove.
8406         * config/frv/frv.c: Don't include opts.h.
8407         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8408         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8409         (frv_cpu_type): New Variable entry.
8410         (frv_cpu): New Enum and EnumValue entries.
8411
8412 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8413
8414         * config/cris/cris.c (cris_handle_option): Access target_flags via
8415         opts pointer.  Don't assert that global structures are in use.
8416         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8417         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8418
8419 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * config/bfin/bfin-opts.h: New.
8422         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8423         bfin_si_revision, bfin_workarounds): Remove.
8424         (bfin_cpus): Make static const.
8425         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8426         not bfin_lib_id_given.
8427         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8428         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8429         pointer. Use error_at.  Don't assert that global structures are in use.
8430         * config/bfin/bfin.h: Include bfin-opts.h.
8431         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8432         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8433         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8434         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8435         entries.
8436
8437 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8438
8439         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8440         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8441         or -msoft-float here.
8442         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8443         -msoft-float and -mhard-float.
8444         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8445         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8446         msoft-float.
8447         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8448         -msoft-float.
8449         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8450         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8451         not mhard-float.
8452         (LIBGCC_SPEC): Don't handle -msoft-float.
8453         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8454         -mhard-float.
8455         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8456         msoft-float.
8457         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8458         -mfloat-abi=*, not -msoft-float and -mhard-float.
8459         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8460         -msoft-float.
8461         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8462         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8463         mhard-float and msoft-float.
8464         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8465         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8466         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8467         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8468         mhard-float.
8469         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8470         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8471         msoft-float.
8472         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8473         not mhard-float.
8474         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8475         not msoft-float.
8476
8477 2011-03-22  Richard Henderson  <rth@redhat.com>
8478
8479         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8480         TARGET_ABI_WINDOWS_NT.
8481         (alpha_output_function_end_prologue): Likewise.
8482         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8483         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8484         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8485         (trap, *movsi_nt_vms): Likewise.
8486         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8487         (*tablejump_osf_nt_internal): Remove.
8488         * config/alpha/predicates.md (input_operand): Only test Pmode.
8489
8490 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8491
8492         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8493         via opts pointer.  Use error_at.  Don't assert that global
8494         structures are in use.
8495
8496 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8497
8498         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8499         (ix86_handle_option): Access ix86_isa_flags and
8500         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8501         global structures are in use.
8502         (ix86_function_specific_save, ix86_function_specific_restore):
8503         Update ix86_isa_flags_explicit field name.
8504         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8505         (ix86_isa_flags_explicit): Rename TargetSave entry to
8506         x_ix86_isa_flags_explicit.
8507
8508 2011-03-22  Richard Henderson  <rth@redhat.com>
8509
8510         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8511         (alpha_option_override, direct_return): Likewise.
8512         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8513         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8514         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8515         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8516         (alpha_expand_epilogue, alpha_end_function): Likewise.
8517         (alpha_init_libfuncs): Likewise.
8518         (struct machine_function): Remove unicosmk members.
8519         (print_operand) ['t']: Remove.
8520         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8521         unicosmk_output_module_name, unicosmk_output_common,
8522         current_section_align, unicosmk_output_text_section_asm_op,
8523         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8524         unicosmk_section_type_flags, unicosmk_unique_section,
8525         unicosmk_asm_named_section, unicosmk_insert_attributes,
8526         unicosmk_output_align, unicosmk_defer_case_vector,
8527         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8528         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8529         unicosmk_output_ssib, unicosmk_add_call_info_word,
8530         unicosmk_extern_head, unicosmk_output_default_externs,
8531         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8532         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8533         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8534         * config/alpha/alpha-protos.h: Update.
8535         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8536         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8537         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8538         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8539         (*mulsi_se, mulvsi3): Likewise.
8540         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8541         (*divmodsi_internal, call, call_value, realign): Likewise.
8542         (moddi3, umoddi3): Likewise; remove duplicate expander.
8543         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8544         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8545         (*movdi_nofix): Remove r/U alternative.
8546         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8547         * config/alpha/constraints.md ("U"): Remove.
8548         * config/alpha/predicates.md (call_operand"): Don't test
8549         TARGET_ABI_UNICOSMK.
8550
8551 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8552
8553         * target.def (handle_option): Take gcc_options and
8554         cl_decoded_option pointers and location_t.
8555         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8556         * doc/tm.texi: Regenerate.
8557         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8558         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8559         * lto-opts.c (lto_reissue_options): Generate option structure for
8560         targetm.handle_option call.
8561         * opts.c (target_handle_option): Update call to
8562         targetm.handle_option.  Remove assertions about values now passed
8563         down to hook.
8564         * targhooks.c (default_target_handle_option): New.
8565         * targhooks.h (default_target_handle_option): Declare.
8566         * config/alpha/alpha.c: Include opts.h.
8567         (alpha_handle_option): Update to new hook interface.
8568         * config/arm/arm.c: Include opts.h.
8569         (arm_handle_option): Update to new hook interface.
8570         * config/arm/t-arm (arm.o): Update dependencies.
8571         * config/bfin/bfin.c: Include opts.h.
8572         (bfin_handle_option): Update to new hook interface.
8573         * config/cris/cris.c: Include opts.h.
8574         (cris_handle_option): Update to new hook interface.
8575         * config/frv/frv.c: Include opts.h.
8576         (frv_handle_option): Update to new hook interface.
8577         * config/i386/i386.c: Include opts.h.
8578         (ix86_handle_option): Update to new hook interface.
8579         (ix86_valid_target_attribute_inner_p): Generate option structure
8580         for call to ix86_handle_option.
8581         * config/i386/t-i386 (i386.o): Update dependencies.
8582         * config/ia64/ia64.c: Include opts.h.
8583         (ia64_handle_option): Update to new hook interface.
8584         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8585         * config/iq2000/iq2000.c: Include opts.h.
8586         (iq2000_handle_option): Update to new hook interface.
8587         * config/m32c/m32c.c: Include opts.h.
8588         (m32c_handle_option): Update to new hook interface.
8589         * config/m32r/m32r.c: Include opts.h.
8590         (m32r_handle_option): Update to new hook interface.
8591         * config/m68k/m68k.c: Include opts.h.
8592         (m68k_handle_option): Update to new hook interface.
8593         * config/mep/mep.c: Include opts.h.
8594         (mep_handle_option): Update to new hook interface.
8595         * config/microblaze/microblaze.c: Include opts.h.
8596         (microblaze_handle_option): Update to new hook interface.
8597         * config/mips/mips.c: Include opts.h.
8598         (mips_handle_option): Update to new hook interface.
8599         * config/mn10300/mn10300.c: Include opts.h.
8600         (mn10300_handle_option): Update to new hook interface.
8601         * config/pa/pa.c: Include opts.h.
8602         (pa_handle_option): Update to new hook interface.
8603         * config/pdp11/pdp11.c: Include opts.h.
8604         (pdp11_handle_option): Update to new hook interface.
8605         * config/rs6000/rs6000.c: Include opts.h.
8606         (rs6000_handle_option): Update to new hook interface.
8607         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8608         * config/rx/rx.c: Include opts.h.
8609         (rx_handle_option): Update to new hook interface.
8610         * config/s390/s390.c: Include opts.h.
8611         (s390_handle_option): Update to new hook interface.
8612         * config/score/score.c: Include opts.h.
8613         (score_handle_option): Update to new hook interface.
8614         * config/sh/sh.c: Include opts.h.
8615         (sh_handle_option): Update to new hook interface.
8616         * config/sparc/sparc.c: Include opts.h.
8617         (sparc_handle_option): Update to new hook interface.
8618         * config/v850/v850.c: Include opts.h.
8619         (v850_handle_option): Update to new hook interface.
8620
8621 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8622
8623         * gcc.c (driver_unknown_option_callback): Only permit and save
8624         unknown -Wno- options.
8625         (driver_wrong_lang_callback): Save options directly instead of via
8626         driver_unknown_option_callback.
8627
8628 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8629
8630         * combine.c (simplify_set): Try harder to find the best CC mode when
8631         simplifying a nested COMPARE on the RHS.
8632
8633 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8634
8635         * config/alpha/gnu.h: Remove.
8636         * config/arc: Remove directory.
8637         * config/arm/netbsd.h: Remove.
8638         * config/arm/t-pe: Remove.
8639         * config/crx: Remove directory.
8640         * config/i386/netbsd.h: Remove.
8641         * config/m68hc11: Remove directory.
8642         * config/m68k/uclinux-oldabi.h: Remove.
8643         * config/mcore/mcore-pe.h: Remove.
8644         * config/mcore/t-mcore-pe: Remove.
8645         * config/netbsd-aout.h: Remove.
8646         * config/rs6000/gnu.h: Remove.
8647         * config/sh/sh-symbian.h: Remove.
8648         * config/sh/symbian-base.c: Remove.
8649         * config/sh/symbian-c.c: Remove.
8650         * config/sh/symbian-cxx.c: Remove.
8651         * config/sh/symbian-post.h: Remove.
8652         * config/sh/symbian-pre.h: Remove.
8653         * config/sh/t-symbian: Remove.
8654         * config/svr3.h: Remove.
8655         * config/vax/netbsd.h: Remove.
8656         * config.build: Don't handle i[34567]86-*-pe.
8657         * config.gcc: Remove handling of deprecations for most deprecated
8658         targets.
8659         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8660         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8661         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8662         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8663         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8664         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8665         Remove cases.
8666         * config.host: Don't handle i[34567]86-*-pe.
8667         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8668         (ASM_SPEC32): Don't handle -mcall-gnu.
8669         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8670         -mcall-gnu.
8671         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8672         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8673         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8674         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8675         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8676         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8677         conditional on SYMBIAN.
8678         * configure.ac: Don't handle powerpc*-*-gnu*.
8679         * configure: Regenerate.
8680         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8681         * doc/install-old.texi (m6811, m6812): Don't mention.
8682         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8683         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8684         (m68k-uclinuxoldabi): Don't mention.
8685         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8686         Remove.
8687         (-mcall-gnu): Remove.
8688         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8689         families): Remove constraint documentation.
8690
8691 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8692
8693         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8694         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8695         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8696
8697 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8698
8699         PR target/48226
8700         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8701         vector when peeking at the next token for vector, don't expand the
8702         keywords.
8703
8704 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8705
8706         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8707         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8708         * config/avr/avr.c (init_cumulative_args)
8709         (avr_function_arg_advance): Use it.
8710         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8711         sibcall epilogues.
8712         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8713         (avr_function_ok_for_sibcall): ...this new function.
8714         (avr_lookup_function_attribute1): New static Function.
8715         (avr_naked_function_p, interrupt_function_p)
8716         (signal_function_p, avr_OS_task_function_p)
8717         (avr_OS_main_function_p): Use it.
8718         * config/avr/avr.md ("sibcall", "sibcall_value")
8719         ("sibcall_epilogue"): New expander.
8720         ("*call_insn", "*call_value_insn"): New insn.
8721         ("call_insn", "call_value_insn"): Remove
8722         ("call", "call_value", "epilogue"): Change expander to handle
8723         sibling calls.
8724
8725 2011-03-21  Nick Clifton  <nickc@redhat.com>
8726
8727         * doc/invoke.texi (Overall Options): Move closing brace to end of
8728         options list.
8729         (Optimization Options): Add missing @gol.
8730         (Directory Options): Likewise.
8731         (i386 and x86-64 Options): Likewise.
8732         (RS6000 and PowerPC Options): Likewise.
8733         (i386 and x86-64 Windows Options): Likewise.
8734         (V850 Options): Add text missing from descriptions.
8735
8736 2011-03-22  Richard Henderson  <rth@redhat.com>
8737
8738         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8739         (avr_incoming_return_addr_rtx): New.
8740         (emit_push_byte): New.
8741         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8742         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8743         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8744         (emit_pop_byte): New.
8745         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8746         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8747         (INCOMING_RETURN_ADDR_RTX): New.
8748         (INCOMING_FRAME_SP_OFFSET): New.
8749         (ARG_POINTER_CFA_OFFSET): New.
8750         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8751         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8752         (pophi): Remove.
8753
8754         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8755
8756 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8757
8758         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8759         (FUNCTION_ARG_ADVANCE): Likewise.
8760         * tm.texi.in: Change references to them to hook references.
8761         * tm.texi: Regenerate.
8762         * targhooks.c (default_function_arg): Eliminate check for target
8763         macro.
8764         (default_function_incoming_arg): Likewise.
8765         (default_function_arg_advance): Likewise.
8766         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8767         (function_arg_advance): Likewise.
8768         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8769
8770 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8771
8772         * tree.c (build_call_1): New function.
8773         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8774
8775 2011-03-22  Richard Guenther  <rguenther@suse.de>
8776
8777         PR tree-optimization/48228
8778         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8779         for single-arg PHIs.
8780
8781 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8782
8783         PR rtl-optimization/48143
8784         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8785         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8786         sse2_cvtps2pd): Likewise.
8787
8788 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8789
8790         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8791
8792 2011-03-22  Richard Guenther  <rguenther@suse.de>
8793
8794         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8795         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8796         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8797         and REALIGN_LOAD_EXPR.
8798         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8799         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8800         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8801         DOT_PROD_EXPR case ...
8802         (expand_expr_real_2): ... here.
8803         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8804         and REALIGN_LOAD_EXPR.
8805         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8806         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8807         (vect_create_epilog_for_reduction): Likewise.
8808         (vectorizable_reduction): Likewise.
8809         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8810         * tree-vect-stmts.c (vectorizable_load): Likewise.
8811
8812 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8813
8814         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8815
8816 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8817
8818         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8819         handling for PLTOFF/GOTOFF.
8820
8821 2011-03-22  Nick Clifton  <nickc@redhat.com>
8822
8823         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8824         trailing backslash from the end of the macro definition.
8825
8826 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8827
8828         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8829         and PLT unspecs.
8830
8831 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8832
8833         * expr.h (prepare_operand): Move to...
8834         * optabs.h (prepare_operand): ...here and change the insn code
8835         parameter from "int" to "enum insn_code".
8836         (insn_operand_matches): Declare.
8837         * expr.c (init_expr_target): Use insn_operand_matches.
8838         (compress_float_constant): Likewise.
8839         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8840         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8841         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8842         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8843         Likewise.
8844         (gen_cond_trap): Likewise.
8845         (prepare_operand): Likewise.  Change icode to an insn_code.
8846         (insn_operand_matches): New function.
8847         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8848         * reload1.c (gen_reload): Likewise.
8849         * targhooks.c (default_secondary_reload): Likewise.
8850
8851 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8852
8853         * config/alpha/alpha.md (unspec): New define_c_enum.
8854         (unspecv): Ditto.
8855
8856 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8857
8858         PR debug/48214
8859         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8860         between a call and its CALL_ARG_LOCATION note.
8861
8862 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8863
8864         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8865
8866 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8867
8868         PR c/42544
8869         PR c/48197
8870         * c-common.c (shorten_compare): If primopN is first sign-extended
8871         to opN and then zero-extended to result type, set primopN to opN.
8872
8873 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8874
8875         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8876         for barrier handlers.
8877
8878 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8879
8880         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8881         UNSPEC constants to be in the unspec enumeration, and redefine
8882         all UNSPECV constants to be in the unspecv enumeration, so that
8883         dumps print which unspec/unspec_volatile this is.
8884         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8885         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8886         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8887         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8888         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8889
8890         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8891         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8892         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8893         * config/rs6000/sync.md (isync, lwsync): Ditto.
8894
8895 2011-03-21  Richard Guenther  <rguenther@suse.de>
8896
8897         * params.def (lto-min-partition): Fix typo.
8898
8899 2011-03-21  Richard Guenther  <rguenther@suse.de>
8900
8901         PR c/47939
8902         * c-decl.c (grokdeclarator): Drop to the main variant only
8903         for array types.  Drop flag_gen_aux_info check.
8904
8905 2011-03-21  Richard Guenther  <rguenther@suse.de>
8906
8907         PR translation/47911
8908         * params.def (lto-partitions): Fix typo.
8909         (lto-min-partition): Fix wording.
8910
8911 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8912
8913         * config/rs6000/t-freebsd: Remove duplication from file.
8914
8915 2011-03-21  Richard Guenther  <rguenther@suse.de>
8916
8917         PR middle-end/47661
8918         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8919
8920 2011-03-21  Richard Guenther  <rguenther@suse.de>
8921
8922         PR lto/48210
8923         * params.def (lto-partitions): Require at least 1 partition.
8924
8925 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8926
8927         * gthr-solaris.h: Remove.
8928         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8929         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8930         (LIB_SPEC): Likewise.
8931         * config/sol2.opt (threads): Remove.
8932         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8933         (sparc*-*-solaris2*): Likewise.
8934         * configure.ac (enable_threads): Enable solaris support.
8935         * configure: Regenerate.
8936         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8937         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8938         solaris.
8939
8940 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8941
8942         * config.gcc: Obsolete *-*-solaris2.8*.
8943         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8944
8945 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8946
8947         PR bootstrap/48135
8948         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8949         reference.  Solaris 8 perl works.
8950
8951 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8952
8953         PR bootstrap/48135
8954         * doc/install.texi (Prerequisites): Move jar etc. up.
8955         Explain support library version requirements.
8956
8957 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8958
8959         PR bootstrap/48135
8960         * doc/install.texi (Prerequisites): Move Perl to build
8961         requirements.  Always necessary on Solaris 2 with Sun ld.
8962
8963 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8964
8965         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8966         binutils 2.21.
8967         (Specific, i?86-*-solaris2.[89]): Likewise.
8968         (Specific, i?86-*-solaris2.10): Likewise.
8969         (Specific, mips-sgi-irix6): Likewise.
8970         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8971         Update for binutils 2.21.
8972
8973 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8974
8975         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8976         Allow -fuse-linker-plugin for non-default plugin linker.
8977         * configure: Regenerate.
8978
8979 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8980
8981         PR bootstrap/48167
8982         * gengtype.c (files_rules): Added rule for cp/parser.h.
8983
8984 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8985
8986         PR target/48213
8987         * config/s390/s390.c (s390_delegitimize_address): Don't call
8988         lowpart_subreg if orig_x has BLKmode.
8989
8990 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8991
8992         PR target/12171
8993         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8994         * tree.h (attribute_spec): Add new member affects_type_identity.
8995         * attribs.c (empty_attribute_table): Adjust attribute_spec
8996         initializers.
8997         * config/alpha/alpha.c: Likewise.
8998         * config/arc/arc.c: Likewise.
8999         * config/arm/arm.c: Likewise.
9000         * config/avr/avr.c: Likewise.
9001         * config/bfin/bfin.c: Likewise.
9002         * config/crx/crx.c: Likewise.
9003         * config/darwin.h: Likewise.
9004         * config/h8300/h8300.c: Likewise.
9005         * config/i386/cygming.h: Likewise.
9006         * config/i386/i386.c: Likewise.
9007         * config/ia64/ia64.c: Likewise.
9008         * config/m32c/m32c.c: Likewise.
9009         * config/m32r/m32r.c: Likewise.
9010         * config/m68hc11/m68hc11.c: Likewise.
9011         * config/m68k/m68k.c: Likewise.
9012         * config/mcore/mcore.c: Likewise.
9013         * config/mep/mep.c: Likewise.
9014         * config/microblaze/microblaze.c: Likewise.
9015         * config/mips/mips.c: Likewise.
9016         * config/rs6000/rs6000.c: Likewise.
9017         * config/rx/rx.c: Likewise.
9018         * config/sh/sh.c: Likewise.
9019         * config/sol2.h: Likewise.
9020         * config/sparc/sparc.c: Likewise.
9021         * config/spu/spu.c: Likewise.
9022         * config/stormy16/stormy16.c: Likewise.
9023         * config/v850/v850.c: Likewise.
9024
9025 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9026
9027         * simplify-rtx.c (simplify_binary_operation_1): Handle
9028         (xor (and A B) C) case when B and C are both constants.
9029
9030 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9031
9032         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9033
9034 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9035
9036         PR bootstrap/48168
9037         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9038
9039 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9040
9041         PR rtl-optimization/48156
9042         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9043         assume df and df_lr are not NULL.
9044
9045 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9046
9047         PR debug/48023
9048         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9049         between a call and its CALL_ARG_LOCATION note.
9050
9051 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9052
9053         PR debug/48178
9054         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9055         between a call and its corresponding CALL_ARG_LOCATION note.
9056
9057 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9058
9059         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9060         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9061         * haifa-sched.c (setup_ref_regs): Ditto.
9062         * caller-save.c (add_used_regs_1): Ditto.
9063         * dse.c (look_for_hardregs): Ditto.
9064         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9065         * sched-rgn.c (check_live_1): Ditto.
9066
9067 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9068
9069         * c-decl.c (diagnose_mismatched_decls): Give an error for
9070         redefining a typedef with variably modified type.
9071
9072 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9073
9074         * c-decl.c (grokfield): Don't allow typedefs for structures or
9075         unions with no tag by default.
9076         * doc/extend.texi (Unnamed Fields): Update.
9077
9078 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9079
9080         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9081         Rewrite using indirect functions.
9082         (lwp_slwpcb): Ditto.
9083         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9084         (avx_vinsertf128<mode>): Ditto.
9085
9086 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9087
9088         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9089         unspecs.
9090
9091 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9092
9093         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9094         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9095
9096 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9097
9098         PR rtl-optimization/48170
9099         * gcse.c (hoist_code): Remove bogus asserts.
9100
9101 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9102
9103         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9104         computation for prologue/epilogue.
9105
9106 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9107
9108         * Makefile.in (check-consistency): Remove.
9109
9110 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9111
9112         PR debug/48176
9113         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9114         arange_table_in_use is 0, but either text_section_used or
9115         cold_text_section_used is true.  Don't call it if
9116         !info_section_emitted.
9117
9118 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9119
9120         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9121         FUNCTION_VALUE_REGNO_P): Remove.
9122         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9123         Remove.
9124         * config/avr/avr.c (avr_ret_register): Make static inline.
9125         (avr_function_value_regno_p): New function.
9126         (avr_libcall_value): Make static. Add 'func' argument.
9127         (avr_function_value): Make static. Rename 'func' argument to
9128         'fn_decl_or_type', forward it to avr_libcall_value. Call
9129         avr_ret_register function instead of RET_REGISTER macro.
9130         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9131
9132 2011-03-18  Jason Merrill  <jason@redhat.com>
9133
9134         PR c++/23372
9135         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9136
9137 2011-03-18  Richard Guenther  <rguenther@suse.de>
9138
9139         * doc/install.texi (--enable-gold): Remove.
9140         (--with-plugin-ld): Document.
9141         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9142
9143 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9144
9145         PR middle-end/47790
9146         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9147         again after expansion changes.
9148
9149 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9150
9151         * combine.c (try_combine): Do simplification only call of
9152         subst() on i2 even when i1 is present. Update comments.
9153
9154 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9155
9156         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9157         and UNSPEC_PCREL_SYMOFF.
9158
9159 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9160
9161         * config/s390/s390.md: Use define_c_enum for the unspec constant
9162         definitions.
9163
9164 2011-03-18  Richard Henderson  <rth@redhat.com>
9165             Jakub Jelinek  <jakub@redhat.com>
9166
9167         PR bootstrap/48161
9168         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9169         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9170
9171 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9172
9173         PR middle-end/47725
9174         * combine.c (cant_combine_insn_p): Don't check zero/sign
9175         extended hard registers.
9176
9177 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9178
9179         PR middle-end/47725
9180         * combine.c (cant_combine_insn_p): Check zero/sign extended
9181         hard registers.
9182
9183 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9184
9185         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9186         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9187         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9188         Change return type to bool.
9189         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9190
9191 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9192
9193         PR debug/48163
9194         * var-tracking.c (prepare_call_arguments): If CALL target
9195         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9196         pc instead of looking it up using cselib_lookup and use
9197         Pmode for it if x has VOIDmode.
9198         * dwarf2out.c (gen_subprogram_die): If also both first and
9199         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9200
9201         PR debug/48163
9202         * function.c (assign_parms): For data.passed_pointer parms
9203         use MEM of data.entry_parm instead of data.entry_parm itself
9204         as DECL_INCOMING_RTL.
9205         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9206         also when passed and declared mode is the same, DECL_RTL
9207         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9208         a MEM too.
9209
9210 2011-03-16  Jeff Law  <law@redhat.com>
9211
9212         PR rtl-optimization/37273
9213         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9214         handle them like argument loads from stack slots.  Do not double
9215         count memory for memory constants and argument loads from stack slots.
9216
9217 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9218
9219         PR debug/48160
9220         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9221
9222 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9223
9224         PR target/48171
9225         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9226
9227 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9228
9229         PR bootstrap/48153
9230         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9231         if dwarf_strict.
9232         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9233         Clear call_arg_locations and call_arg_loc_last always.
9234
9235         PR middle-end/48152
9236         * var-tracking.c (prepare_call_arguments): If argument needs to be
9237         passed by reference, adjust argtype and mode.
9238
9239 2011-03-17  Richard Guenther  <rguenther@suse.de>
9240
9241         PR middle-end/48134
9242         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9243         a value make sure to fold the statement.
9244
9245 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9246
9247         PR target/43872
9248         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9249         return condition with !cfun->calls_alloca.
9250
9251 2011-03-17  Richard Guenther  <rguenther@suse.de>
9252
9253         PR bootstrap/48148
9254         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9255         origin for decls in other ltrans units.
9256         (input_varpool_node): Likewise.
9257
9258 2011-03-17  Richard Guenther  <rguenther@suse.de>
9259
9260         PR middle-end/48165
9261         * tree-object-size.c (compute_object_offset): Properly return
9262         the offset operand of MEM_REFs as sizetype.
9263
9264 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9265
9266         PR rtl-optimization/48141
9267         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9268         * dse.c: Include params.h.
9269         (active_local_stores_len): New variable.
9270         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9271         to NULL.
9272         (record_store, check_mem_read_rtx): Decrease it when removing
9273         from the chain.
9274         (scan_insn): Likewise.  Increase it when adding to chain, if it
9275         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9276         set active_local_stores to NULL before the addition.
9277         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9278
9279         PR rtl-optimization/48141
9280         * dse.c (record_store): If no positions are needed in an insn
9281         that cannot be deleted, at least unchain it from active_local_stores.
9282
9283 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9284
9285         PR debug/47510
9286         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9287         (lookup_type_die_strip_naming_typedef): ... here.
9288         (get_context_die): Use it.
9289         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9290         the anonymous struct named by the naming typedef.
9291
9292 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9293
9294         PR target/48154
9295         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9296         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9297
9298 2011-03-16  Jeff Law  <law@redhat.com>
9299
9300         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9301         check for operands of conditional.  Allow type to be a pointer.
9302
9303 2011-03-16  Richard Guenther  <rguenther@suse.de>
9304
9305         PR tree-optimization/48149
9306         * fold-const.c (fold_binary_loc): Fold
9307         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9308
9309 2011-03-16  Richard Guenther  <rguenther@suse.de>
9310
9311         PR tree-optimization/26134
9312         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9313         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9314         (non_rewritable_mem_ref_base): Handle complex type component
9315         accesses, constrain offsets for vector and complex extracts
9316         more properly.
9317
9318 2011-03-16  Richard Guenther  <rguenther@suse.de>
9319
9320         PR tree-optimization/48146
9321         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9322         operands avoiding the need for renaming.
9323
9324 2011-03-16  Richard Guenther  <rguenther@suse.de>
9325
9326         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9327         constant folding.  Move MEM_REF canonicalization first.
9328         Rely on fold_const_aggregate_ref for initializer folding.
9329         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9330
9331 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9332
9333         PR middle-end/48136
9334         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9335         arg0/arg1 or their arguments are always fold converted to matching
9336         types.
9337
9338         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9339         to nargs.
9340
9341 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9342
9343         PR lto/46944
9344         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9345         Handle in-tree gold.
9346         (ld_vers): Extract binutils version for gold.
9347         (gcc_cv_ld_hidden): Handle gold here.
9348         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9349         * configure: Regenerate.
9350         * config.in: Regenerate.
9351         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9352         -fuse-linker-plugin otherwise.
9353         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9354         (LINK_COMMAND_SPEC): Use it.
9355         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9356
9357 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9358
9359         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9360         * calls.c: Remove debug.h include.
9361         (emit_call_1): Don't call virtual_call_token debug hook.
9362         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9363         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9364         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9365         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9366         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9367         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9368         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9369         dwarf2out_virtual_call): Remove.
9370         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9371         copy_call_info and virtual_call hooks.
9372         (dwarf2out_init): Don't initialize vcall_insn_table,
9373         debug_dcall_section and debug_vcall_section.
9374         (prune_unused_types): Don't mark nodes from dcall_table.
9375         (dwarf2out_finish): Don't output dcall or vcall tables.
9376         * final.c (final_scan_insn): Don't call direct_call or
9377         virtual_call debug hooks.
9378         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9379         virtual_call_token, copy_call_info and virtual_call hooks.
9380         (debug_nothing_uid): Remove prototype.
9381         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9382         copy_call_info and virtual_call hooks.
9383         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9384         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9385         * debug.c (do_nothing_debug_hooks): Likewise.
9386         (debug_nothing_uid): Remove.
9387         * doc/invoke.texi (-fenable-icf-debug): Remove.
9388         * common.opt (-fenable-icf-debug): Likewise.
9389
9390         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9391         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9392         call's MEM.  Handle functions returning aggregate through a hidden
9393         first pointer.  For virtual calls add clobbered pc to call arguments
9394         chain.
9395         * dwarf2out.c (gen_subprogram_die): Emit
9396         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9397         can't be emitted.
9398
9399         PR debug/45882
9400         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9401         * rtl.h (ENTRY_VALUE_EXP): Define.
9402         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9403         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9404         * print-rtl.c (print_rtx): Likewise.
9405         * gengtype.c (adjust_field_rtx_def): Likewise.
9406         * var-tracking.c (vt_add_function_parameter): Adjust
9407         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9408         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9409         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9410         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9411         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9412
9413         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9414         Call var_location debug hook even on CALL_INSNs.
9415         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9416         * rtl.def (ENTRY_VALUE): New.
9417         * dwarf2out.c: Include cfglayout.h.
9418         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9419         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9420         (struct call_arg_loc_node): New type.
9421         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9422         tail_call_site_count): New variables.
9423         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9424         DW_TAG_GNU_call_site_parameter.
9425         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9426         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9427         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9428         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9429         and DW_AT_GNU_all_source_call_sites.
9430         (mem_loc_descriptor): Handle ENTRY_VALUE.
9431         (add_src_coords_attributes): Don't add enything if
9432         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9433         (dwarf2out_abstract_function): Save and clear call_arg_location,
9434         call_site_count and tail_call_site_count around dwarf2out_decl call.
9435         (gen_call_site_die): New function.
9436         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9437         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9438         (dwarf2out_function_decl): Clear call_arg_locations,
9439         call_arg_loc_last, set call_site_count and tail_call_site_count
9440         to -1 and free block_map.
9441         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9442         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9443         followed by any real instructions.
9444         (dwarf2out_begin_function): Set call_site_count and
9445         tail_call_site_count to 0.
9446         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9447         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9448         attempt to force a DIE for it and worst case remove the attribute.
9449         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9450         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9451         the decl itself.
9452         * var-tracking.c: Include tm_p.h.
9453         (vt_stack_adjustments): For calls call note_register_arguments.
9454         (argument_reg_set): New variable.
9455         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9456         ensure the VALUE is resolved.
9457         (call_arguments): New variable.
9458         (prepare_call_arguments): New function.
9459         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9460         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9461         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9462         always use the best expression.
9463         (vt_expand_loc): Add ignore_cur_loc argument.
9464         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9465         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9466         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9467         note for all calls.
9468         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9469         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9470         argument.  Don't call cselib_preserve_only_values and
9471         cselib_reset_table.
9472         (note_register_arguments): New function.
9473         (vt_initialize): Compute argument_reg_set.  Call
9474         vt_add_function_parameters before processing basic blocks instead of
9475         afterwards.  For calls call prepare_call_arguments before calling
9476         cselib_process_insn.
9477         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9478         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9479         (var-tracking.o): Depend on $(TM_P_H).
9480         * cfglayout.h (insn_scope): New prototype.
9481         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9482         * cfglayout.c (insn_scope): No longer static.
9483         * insn-notes.def (CALL_ARG_LOCATION): New.
9484         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9485         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9486         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9487         nothing for DECL_EXTERNAL BLOCK_VARS.
9488
9489 2011-03-16  Alan Modra  <amodra@gmail.com>
9490
9491         PR target/45844
9492         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9493         create invalid offset address for vsx splat insn.
9494         * config/rs6000/predicates.md (splat_input_operand): New.
9495         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9496
9497 2011-03-15  Xinliang David Li  <davidxl@google.com>
9498
9499         PR c/47837
9500         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9501         (normalize_preds): New function.
9502         (is_use_properly_guarded): Normalize def predicates.
9503
9504 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9505
9506         PR target/46788
9507         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9508         in the output template.
9509
9510 2011-03-15  Richard Guenther  <rguenther@suse.de>
9511
9512         PR middle-end/47650
9513         * tree-pretty-print.c (dump_function_declaration): Properly
9514         dump unprototyped and varargs function types.
9515
9516 2011-03-15  Richard Guenther  <rguenther@suse.de>
9517
9518         PR tree-optimization/13954
9519         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9520         and friends.
9521
9522 2011-03-15  Richard Guenther  <rguenther@suse.de>
9523
9524         PR tree-optimization/48037
9525         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9526         selects into BIT_FIELD_REFs.
9527         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9528         vector select.
9529
9530 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9531
9532         PR tree-optimization/48129
9533         * builtins.c (fold_builtin_snprintf): Convert to type of
9534         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9535         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9536
9537 2011-03-15  Richard Guenther  <rguenther@suse.de>
9538
9539         PR tree-optimization/41490
9540         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9541         value but with VUSE.
9542         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9543         return statements.
9544         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9545         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9546         * tree-tailcall.c (find_tail_calls): Ignore returns.
9547
9548 2011-03-15  Richard Guenther  <rguenther@suse.de>
9549
9550         PR middle-end/48031
9551         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9552         or variable-indexed array accesses when in gimple form.
9553
9554 2011-03-15  Richard Guenther  <rguenther@suse.de>
9555
9556         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9557
9558 2011-03-15  Alan Modra  <amodra@gmail.com>
9559
9560         PR target/48032
9561         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9562         presume symbol_refs without a symbol_ref_decl are suitably
9563         aligned, nor other trees we may see here.  Handle anchor symbols.
9564         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9565         Check cmodel=medium addresses.  Adjust all calls.
9566         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9567         creating cmodel=medium optimized access to locals.
9568         * config/rs6000/constraints.md (R): Pass QImode to
9569         legitimate_constant_pool_address_p.
9570         * config/rs6000/predicates.md (input_operand): Pass mode to
9571         legitimate_constant_pool_address_p.
9572         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9573         Update prototype.
9574
9575 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9576
9577         PR target/48053
9578         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9579         64-bit constants being loaded into registers other than GPRs such
9580         as loading 0 into a VSX register.
9581
9582 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9583
9584         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9585
9586 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9587
9588         PR middle-end/47917
9589         * builtins.c (fold_builtin_snprintf): New function.
9590         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9591         (fold_builtin_4): Likewise.
9592
9593         PR middle-end/38878
9594         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9595         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9596         and C - X == X also strip nops from +/-/p+ operand.
9597         When optimizing -X == C, fold C to arg0's type.
9598
9599         PR debug/47946
9600         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9601         emit it as add_AT_int instead of add_AT_unsigned.
9602
9603 2011-03-14  Tom Tromey  <tromey@redhat.com>
9604
9605         * unwind-dw2.c: Include sys/sdt.h if it exists.
9606         (_Unwind_DebugHook): Use STAP_PROBE2.
9607         * config.in, configure: Rebuild.
9608         * configure.ac: Check for sys/sdt.h.
9609
9610 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9611
9612         * config/i386/i386.md (ROUND_FLOOR): New constant.
9613         (ROUND_CEIL): Ditto.
9614         (ROUND_TRUNC): Ditto.
9615         (ROUND_MXCSR): Ditto.
9616         (ROUND_NO_EXC): Ditto.
9617         (rint<mode>2): Use new defines instead of numerical constants.
9618         (floor<mode>2): Ditto.
9619         (ceil<mode>2): Ditto.
9620         (btrunc<mode>2): Ditto.
9621         * config/i386/i386-builtin-types.def: Define ROUND function type
9622         aliases.
9623         * config/i386/i386.c (enum ix86_builtins): Add
9624         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9625         (struct builtin_description): Add
9626         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9627         (ix86_expand_sse_round): New static function.
9628         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9629         function types.
9630         (ix86_builtin_vectorized_function): Handle
9631         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9632
9633 2011-03-14  Tom Tromey  <tromey@redhat.com>
9634
9635         * c-parser.c (c_parser_asm_string_literal): Clear
9636         warn_overlength_strings.
9637
9638 2011-03-14  Tom Tromey  <tromey@redhat.com>
9639
9640         * c-parser.c (disable_extension_diagnostics): Save
9641         warn_overlength_strings.
9642         (restore_extension_diagnostics): Restore warn_overlength_strings.
9643
9644 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * BASE-VER: Change to 4.7.0.
9647
9648 2011-03-14  Richard Guenther  <rguenther@suse.de>
9649
9650         PR middle-end/48098
9651         * tree.c (build_vector_from_val): Adjust assert to requirements
9652         and reality.
9653
9654 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9655
9656         PR bootstrap/48102
9657         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9658
9659 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9660
9661         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9662         terms of target_flags_explicit. Adjust copyright year.
9663
9664         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9665         * config/rs6000/t-freebsd: New file. Add override for
9666         LIB2FUNCS_EXTRA.
9667
9668 2011-03-13  Chris Demetriou  <cgd@google.com>
9669
9670         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9671         (-fno-diagnostics-show-option): this, to reflect current default.
9672         (-Werror=): Update text about -fno-diagnostics-show-option.
9673
9674 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9675
9676         PR target/48053
9677         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9678         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9679         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9680         mode is not V2DImode or V2DFmode.
9681         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9682         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9683         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9684         registers to 0.
9685         (movdi_internal64): Likewise.
9686
9687 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9688
9689         PR tree-optimization/47127
9690         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9691         parameter.
9692         (set_cloog_options): Same.
9693         (scop_to_clast): Same.
9694         (print_clast_stmt): Do not call cloog_state_malloc and
9695         cloog_state_free.
9696         (print_generated_program): Same.
9697         (gloog): Same.
9698         * graphite-clast-to-gimple.h (cloog_state): Declared.
9699         (scop_to_clast): Adjust declaration.
9700         * graphite.c (cloog_state): Defined here.
9701         (graphite_initialize): Call cloog_state_malloc.
9702         (graphite_finalize): Call cloog_state_free.
9703
9704 2011-03-11  Jason Merrill  <jason@redhat.com>
9705
9706         * attribs.c (lookup_attribute_spec): Take const_tree.
9707         * tree.h: Adjust.
9708
9709 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9710
9711         * config/sparc/sparc.c (sparc_option_override): Use
9712         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9713
9714 2011-03-11  Richard Guenther  <rguenther@suse.de>
9715
9716         PR tree-optimization/48067
9717         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9718         multiplication result will be only used once on the target
9719         stmt.
9720
9721 2011-03-11  Richard Guenther  <rguenther@suse.de>
9722
9723         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9724
9725 2011-03-11  Richard Guenther  <rguenther@suse.de>
9726
9727         PR lto/48073
9728         * tree.c (find_decls_types_r): Do not walk types only reachable
9729         from IDENTIFIER_NODEs.
9730
9731 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9732
9733         PR middle-end/48044
9734         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9735         all vnode->force_output nodes as needed.
9736
9737 2011-03-11  Jason Merrill  <jason@redhat.com>
9738
9739         PR c++/48069
9740         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9741         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9742
9743 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9744
9745         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9746         cgraph_node.
9747
9748 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9749
9750         PR tree-optimization/48063
9751         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9752         inline functions called once if !tree_can_inline_p (node->callers).
9753
9754 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9755
9756         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9757         extra_objs.
9758         * config/score/score3.c: Delete.
9759         * config/score/score3.h: Delete.
9760         * config/score/mul-div.S: Delete.
9761         * config/score/sfp-machine.h: Add new file.
9762         * config/score/constraints.md: Add new file.
9763         * config/score/t-score-softfp: Add new file.
9764         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9765         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9766         (score7_extra_constraint): Delete.
9767         (score7_option_override): Remove unused code.
9768         * config/score/score.c: Remove score3 and score5 define and code.
9769         * config/score/score.h: Remove score3 and score5 define and code.
9770         * config/score/score.md: Remove score3 template and unusual insn.
9771         * config/score/score.opt: Remove score3 and score5 options.
9772
9773 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9774
9775         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9776         when _HPUX_SOURCE is defined.
9777         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9778
9779 2011-03-10  Jason Merrill  <jason@redhat.com>
9780
9781         PR c++/48029
9782         * stor-layout.c (layout_type): Don't set structural equality
9783         on arrays of incomplete type.
9784         * tree.c (type_hash_eq): Handle comparing them properly.
9785
9786 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9787
9788         PR debug/48043
9789         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9790         result mode matches original rtl mode.
9791
9792 2011-03-10  Nick Clifton  <nickc@redhat.com>
9793
9794         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9795         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9796
9797 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9798
9799         PR rtl-optimization/47866
9800         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9801         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9802         if target wasn't scalar.
9803         * function.c (assign_stack_temp_for_type): Assert that neither
9804         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9805         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9806         macro.
9807         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9808
9809 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9810
9811         * config/s390/s390-protos.h (s390_label_align): New prototype.
9812         * config/s390/s390.c (s390_label_align): New function.
9813         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9814
9815 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9816
9817         PR target/47755
9818         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9819         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9820         (output_vec_const_move): Ditto.
9821
9822 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9823
9824         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9825         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9826         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9827         Change 'rclass' argument and result type to reg_class_t.
9828         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9829
9830 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9831
9832         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9833         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9834         (TARGET_MEMORY_MOVE_COST): Define.
9835         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9836
9837 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9838
9839         PR debug/47881
9840         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9841         removed anything.
9842
9843         PR tree-optimization/48022
9844         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9845         for EQ/NE_EXPR.
9846
9847 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9848
9849         PR debug/47991
9850         * var-tracking.c (find_use_val): Return NULL for
9851         cui->sets && cui->store_p BLKmode MEMs.
9852
9853 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9854
9855         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9856         Remove.
9857         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9858         xstormy16_print_operand_address): Remove.
9859         * config/stormy16/stormy16.c (xstormy16_print_operand,
9860         xstormy16_print_operand_address): Make static.
9861         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9862
9863 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9864
9865         PR target/47862
9866         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9867         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9868         before definition.
9869
9870 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9871
9872         PR bootstrap/48000
9873         * cfgloopmanip.c (fix_bb_placements): Return immediately
9874         if FROM is BASE_LOOP's header.
9875
9876 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9877
9878         * gimplify.c (gimplify_function_tree): Fix building calls
9879         to __builtin_return_address.
9880
9881 2011-03-07  Alan Modra  <amodra@gmail.com>
9882
9883         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9884         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9885         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9886         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9887         return_mode args.
9888         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9889         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9890         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9891         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9892         * config/rs6000/rs6000.c
9893         (rs6000_elf_end_indicate_exec_stack): Rename to..
9894         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9895         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9896         (rs6000_file_start): ..here.
9897         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9898         file scope variables.
9899         (call_ABI_of_interest): New function.
9900         (init_cumulative_args): Set above vars when function return value
9901         is a float, vector, or small struct.
9902         (rs6000_function_arg_advance_1): Likewise for function args.
9903         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9904         references float args.
9905
9906 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9907
9908         * doc/cfg.texi: Remove "See" before @ref.
9909         * doc/invoke.texi: Likewise.
9910
9911 2011-03-05  Jason Merrill  <jason@redhat.com>
9912
9913         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9914
9915 2011-03-05  Anthony Green  <green@moxielogic.com>
9916
9917         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9918
9919 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9920
9921         PR rtl-optimization/47899
9922         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9923         to flow_loop_nested_p when moving the loop upward.
9924
9925 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9926
9927         PR target/47719
9928         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9929
9930 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9931
9932         PR tree-optimization/47967
9933         * ipa-cp.c (build_const_val): Return NULL instead of creating
9934         VIEW_CONVERT_EXPR for mismatching sizes.
9935         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9936         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9937         give up on versioning.
9938
9939 2011-03-05  Alan Modra  <amodra@gmail.com>
9940
9941         PR target/47986
9942         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9943         full cmodel medium/large lo_sum + high addresses.
9944
9945 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9946
9947         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9948         pool references in UNSPEC_LTREL_OFFSET.
9949
9950 2011-03-04  Jan Hubicka  <jh@suse.cz>
9951
9952         PR lto/47497
9953         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9954         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9955         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9956         Add node pointers.
9957         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9958         cgraph_add_thunk): Add node pointers.
9959         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9960         associated to right node.
9961         (input_node): Update use of cgraph_same_body_alias
9962         and cgraph_add_thunk.
9963
9964 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9965
9966         * config/i386/i386.opt (mprefer-avx128): New flag.
9967         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9968         modes when the flag -mprefer-avx128 is on.
9969
9970 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9971
9972         * dwarf2out.c (compare_loc_operands): Fix address handling.
9973
9974 2011-03-04  Alan Modra  <amodra@gmail.com>
9975
9976         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9977
9978 2011-03-04  Richard Guenther  <rguenther@suse.de>
9979
9980         PR middle-end/47968
9981         * expmed.c (extract_bit_field_1): Prefer vector modes that
9982         vec_extract patterns can handle.
9983
9984 2011-03-04  Richard Guenther  <rguenther@suse.de>
9985
9986         PR middle-end/47975
9987         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9988
9989 2011-03-04  Richard Henderson  <rth@redhat.com>
9990
9991         * explow.c (emit_stack_save): Remove 'after' parameter.
9992         (emit_stack_restore): Likewise.
9993         * expr.h: Update to match.
9994         * builtins.c, calls.c, stmt.c: Likewise.
9995         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9996         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9997         * function.c (expand_function_end): Insert the emit_stack_save
9998         sequence before parm_birth_insn instead of after.
9999
10000 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10001
10002         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10003         (ssse3_pmaddubsw128): Ditto.
10004         (ssse3_pmaddubsw): Ditto.
10005
10006 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10007
10008         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10009
10010 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR c/47963
10013         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10014         on TYPE_SIZE_UNIT if it is a DECL.
10015
10016         PR debug/47283
10017         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10018         first operand is not is_gimple_mem_ref_addr, try to fold it.
10019         If the operand still isn't is_gimple_mem_ref_addr, clear
10020         MEM_EXPR on op0.
10021
10022 2011-03-03  Richard Guenther  <rguenther@suse.de>
10023
10024         PR middle-end/47283
10025         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10026         match comment.
10027         (refs_may_alias_p_1): For release branches return true if
10028         we are confused by our input.
10029
10030 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10031
10032         * config/s390/s390.c (s390_function_value): Rename to ...
10033         (s390_function_and_libcall_value): ... this.
10034         (s390_function_value): New function.
10035         (s390_libcall_value): New function.
10036         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10037         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10038         target macro definitions.
10039         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10040
10041 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10042
10043         * config/i386/freebsd64.h (CC1_SPEC): Define.
10044         * config/i386/linux64.h (CC1_SPEC): Define.
10045         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10046
10047 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10048
10049         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10050         Remove.
10051         * config/stormy16/stormy16.c: Include reload.h.
10052         (xstormy16_memory_move_cost): New function.
10053         (TARGET_MEMORY_MOVE_COST): Define.
10054
10055 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10056
10057         PR rtl-optimization/47925
10058         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10059         with side effects.  Remove the more-specific check for volatile asms.
10060
10061 2011-03-02  Alan Modra  <amodra@gmail.com>
10062
10063         PR target/47935
10064         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10065         toc relative addresses for valid offsets.
10066
10067 2011-03-01  Richard Guenther  <rguenther@suse.de>
10068
10069         PR tree-optimization/47890
10070         * tree-vect-loop.c (get_initial_def_for_induction): Set
10071         related stmt properly.
10072
10073 2011-03-01  Richard Guenther  <rguenther@suse.de>
10074
10075         PR lto/47924
10076         * lto-streamer.c (lto_record_common_node): Also register
10077         the canonical type.
10078
10079 2011-03-01  Richard Guenther  <rguenther@suse.de>
10080
10081         PR lto/46911
10082         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10083         Do not stream DECL_ABSTRACT_ORIGIN.
10084         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10085         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10086         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10087         Do not stream DECL_ABSTRACT_ORIGIN.
10088         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10089         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10090
10091 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10092
10093         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10094         FUNCTION_VALUE_REGNO_P): Remove.
10095         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10096         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10097         Add 'outgoing' argument.
10098         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10099         function.
10100         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10101         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10102
10103 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10104
10105         PR debug/28047
10106         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10107         (lookup_filename): Likewise.
10108         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10109
10110 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10111             Jakub Jelinek  <jakub@redhat.com>
10112
10113         PR middle-end/47893
10114         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10115         (assign_stack_local_1): Change last argument type to int.
10116         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10117         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10118         don't record padding space into frame_space_list nor use those areas.
10119         (assign_stack_local): Adjust caller.
10120         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10121         of assign_stack_local, pass 0 as last argument.
10122         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10123         callers.
10124
10125 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10126
10127         PR debug/47283
10128         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10129         Use target address_mode and pointer_mode hooks instead of hardcoded
10130         Pmode and ptr_mode.  Handle some simple cases of extending if
10131         POINTERS_EXTEND_UNSIGNED < 0.
10132         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10133         Call convert_debug_memory_address.
10134         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10135         convert_debug_memory_address.
10136
10137         PR middle-end/46790
10138         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10139         * configure: Regenerated.
10140         * config.in: Regenerated.
10141         * varasm.c (default_function_section): Return NULL
10142         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10143
10144 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10145
10146         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10147         the description to match the printed values.
10148
10149 2011-02-28  Richard Guenther  <rguenther@suse.de>
10150
10151         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10152         of the copied scope tree.
10153
10154 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10155
10156         * doc/extend.texi (Function Attributes): Avoid deeply (and
10157         wrongly) nested tables.
10158
10159 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10160
10161         PR middle-end/47903
10162         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10163         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10164         r isn't op0 nor op1.
10165
10166 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10167
10168         * config/avr/avr.md: Remove magic comment for emacs.
10169
10170 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10171
10172         PR target/45261
10173         * config/avr/avr.c (avr_option_override): Use error on bad options.
10174         (avr_help): New function.
10175         (TARGET_HELP): Define.
10176
10177 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10178
10179         PR target/42240
10180         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10181         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10182
10183 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10184
10185         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10186         (ARM Options): Ditto.
10187         (i386 and x86-64 Options): Ditto.
10188         (RX Options): Ditto.
10189         (SPARC Options): Ditto.
10190
10191 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10192
10193         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10194         FreeBSD 6 and later.  Generally use cpu generic.
10195
10196 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10197
10198         * doc/cpp.texi: Update copyright years.
10199
10200 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10201
10202         PR target/46898
10203         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10204
10205 2011-02-25  Jon Beniston  <jon@beniston.com>
10206
10207         PR target/46898
10208         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10209         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10210         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10211         (lm32_block_move_inline): Add type cast to remove warning.
10212         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10213         (gen_int_relational): Move declarations to start of function.
10214
10215 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10216
10217         PR tree-optimization/45470
10218         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10219         can throw internally only.
10220         * tree-vect-stmts.c (vectorizable_call): Likewise.
10221
10222 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10223
10224         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10225         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10226         * config/stormy16/stormy16-protos.h
10227         (xstormy16_preferred_reload_class): Remove.
10228         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10229         static. Change 'rclass' argument and return type to reg_class_t.
10230         (TARGET_PREFERRED_RELOAD_CLASS,
10231         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10232
10233 2011-02-24  Richard Guenther  <rguenther@suse.de>
10234
10235         * lto-streamer-in.c (input_bb): Do not find referenced vars
10236         in debug statements.
10237
10238 2011-02-23  Jason Merrill  <jason@redhat.com>
10239
10240         * common.opt (fabi-version): Document v5 and v6.
10241
10242 2011-02-23  Richard Guenther  <rguenther@suse.de>
10243
10244         PR tree-optimization/47849
10245         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10246
10247 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10248
10249         * opts-common.c (decode_cmdline_option): Print empty string
10250         argument as "" in decoded->orig_option_with_args_text.
10251         * gcc.c (execute): Print empty string argument as ""
10252         in the verbose output.
10253         (do_spec_1): Keep empty string argument.
10254
10255 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10256
10257         * config.gcc: Declare score-* and crx-* obsolete.
10258
10259 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10260
10261         PR rtl-optimization/47763
10262         * web.c (web_main): Ignore naked clobber when replacing register.
10263
10264 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10265
10266         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10267         Remove.
10268
10269 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10270
10271         PR doc/47848
10272         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10273
10274 2011-02-22  Mike Stump  <mikestump@comcast.net>
10275
10276         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10277         assembler.
10278         * configure: Regenerate.
10279
10280 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10281
10282         PR rtl-optimization/46002
10283         * ira-color.c (update_copy_costs): Change class intersection
10284         test to reg_class_contents[] test of 'hard_regno'.
10285
10286 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10287
10288         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10289         than Driver option.
10290         * config/hpux11.opt (mt): Likewise.
10291         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10292         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10293         * config/vax/elf.opt (mno-asm-pic): Likewise.
10294         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10295
10296 2011-02-21  Mike Stump  <mikestump@comcast.net>
10297
10298         PR target/47822
10299         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10300         tree so we can get save the type.
10301         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10302         for CFString instead of trying to use past the end of the builtins.
10303         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10304         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10305         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10306         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10307         Rename to darwin_builtin_cfstring.
10308         (darwin_init_cfstring_builtins): Return the built type.
10309
10310 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10311
10312         PR target/47840
10313         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10314         (_mm256_insert_epi64): Use _mm_insert_epi64.
10315
10316 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10317
10318         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10319         * config/stormy16/stormy16-protos.h
10320         (xstormy16_mode_dependent_address_p): Remove.
10321         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10322         Make static. Change return type to bool. Change argument type to
10323         const_rtx. Remove dead code.
10324         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10325
10326 2011-02-21  Richard Guenther  <rguenther@suse.de>
10327
10328         PR lto/47820
10329         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10330         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10331         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10332         TUs context.
10333         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10334         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10335
10336 2011-02-20  Richard Guenther  <rguenther@suse.de>
10337
10338         PR lto/47822
10339         * tree.c (free_lang_data_in_decl): Clean builtins from
10340         the TU decl BLOCK_VARS.
10341
10342 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10343
10344         PR debug/47620
10345         PR debug/47630
10346         * haifa-sched.c (fix_tick_ready): Skip tick computation
10347         for debug insns.
10348
10349 2011-02-19  Richard Guenther  <rguenther@suse.de>
10350
10351         PR lto/47647
10352         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10353         Remove lazy BLOCK_VARS streaming.
10354         (lto_input_ts_block_tree_pointers): Likewise.
10355         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10356
10357 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10360
10361 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * config/i386/biarch32.h, config/i386/mach.h,
10364         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10365
10366 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10367
10368         PR target/47800
10369         * config/i386/i386.md (peephole2 for shift and plus): Use
10370         operands[1] original mode in the first insn.
10371
10372 2011-02-18  Mike Stump  <mikestump@comcast.net>
10373
10374         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10375
10376 2011-02-18  Jan Hubicka  <jh@suse.cz>
10377
10378         PR middle-end/47788
10379         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10380         to zero when the function is not inlinable at all.
10381
10382 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10383
10384         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10385         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10386         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10387         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10388         * config/pa/t-pa64: Likewise.
10389         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10390
10391 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10392
10393         PR driver/47787
10394         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10395
10396 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10397
10398         PR target/47792
10399         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10400
10401 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10402
10403         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10404         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10405         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10406         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10407         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10408         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10409         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10410         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10411         m32r_legitimate_address_p): New functions.
10412         * config/m32r/constraints.md (constraint "S"): Don't use
10413         STORE_PREINC_PREDEC_P.
10414         (constraint "U"): Don't use LOAD_POSTINC_P.
10415
10416 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10417
10418         PR rtl-optimization/46178
10419         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10420         compute ira_hard_regno_cover_class[].
10421
10422 2011-02-18  Richard Guenther  <rguenther@suse.de>
10423
10424         PR lto/47798
10425         * lto-streamer.h (lto_global_var_decls): Declare.
10426         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10427         statics for global var processing.
10428
10429 2011-02-18  Richard Guenther  <rguenther@suse.de>
10430
10431         PR tree-optimization/47737
10432         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10433         edge dominance check.
10434
10435 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10436
10437         PR debug/47780
10438         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10439         avoid invalid rtx sharing.
10440
10441 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10442
10443         * doc/cpp.texi (Obsolete Features): Add background on the
10444         origin of assertions.
10445
10446 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10447
10448         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10449         objc_abi == 2.
10450         * config/darwin.c (output_objc_section_asm_op): Added support for
10451         ABI v1 and v2.
10452         (is_objc_metadata): New.
10453         (darwin_objc2_section): New.
10454         (darwin_objc1_section): New.
10455         (machopic_select_section): Added support for ABI v1 and v2.
10456         (darwin_emit_objc_zeroed): New.
10457         (darwin_output_aligned_bss): Detect objc metadata and treat it
10458         appropriately.
10459         (darwin_asm_output_aligned_decl_common): Same.
10460         (darwin_asm_output_aligned_decl_local): Same.
10461         * config/darwin-sections.def: Updated for ABI v1 and v2.
10462         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10463         compiling Objective-C code for the NeXT runtime, default to using
10464         ABI version 0 for 32-bit, and version 2 for 64-bit.
10465
10466 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10467
10468         * common.opt (optimize_fast): New Variable.
10469         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10470         instead of local variable ofast.
10471
10472 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10473
10474         * doc/invoke.texi (fobjc-abi-version): Documented.
10475         (fobjc-nilcheck): Documented.
10476         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10477         version.
10478
10479 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10480
10481         PR driver/47390
10482         * common.opt (export-dynamic): New Driver option.
10483         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10484
10485 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10486
10487         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10488
10489 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10490             Jan Hubicka  <jh@suse.cz>
10491
10492         PR debug/47106
10493         PR debug/47402
10494         * cfgexpand.c (account_used_vars_for_block): Remove.
10495         (estimated_stack_frame_size): Use referenced vars.
10496         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10497         that were referenced in the original function.  Test src_fn
10498         rather than cfun.  Drop redundant get_var_ann.
10499         (setup_one_parameter): Drop redundant get_var_ann.
10500         (declare_return_variable): Likewise.
10501         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10502         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10503         * ipa-inline.c (compute_inline_parameters): Do not compute
10504         disregard_inline_limits here.
10505         (compute_inlinable_for_current, pass_inlinable): New.
10506         (pass_inline_parameters): Require PROP_referenced_vars.
10507         * cgraphunit.c (cgraph_process_new_functions): Don't run
10508         compute_inline_parameters explicitly unless function is in SSA form.
10509         (cgraph_analyze_function): Set .disregard_inline_limits.
10510         * tree-sra.c (convert_callers): Compute inliner parameters
10511         only for functions already in SSA form.
10512
10513 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10514
10515         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10516         -mlittle-endian-data.
10517
10518 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10519
10520         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10521         -mno-fpu, not -fpu and -no-fpu.
10522         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10523         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10524
10525 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10526
10527         PR target/43653
10528         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10529         input reload with PLUS RTX.
10530
10531 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10532
10533         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10534         of InverseVar(MDMX).
10535
10536 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10537
10538         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10539         --m4-340.
10540
10541 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10542
10543         * config/mn10300/mn10300.opt (mno-crt0): New.
10544
10545 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10546
10547         * config/m68k/uclinux.opt (static-libc): New Driver option.
10548
10549 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10550
10551         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10552
10553 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10554
10555         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10556         %{muser-extend-enabled}.
10557
10558 2011-02-16  Richard Guenther  <rguenther@suse.de>
10559
10560         PR tree-optimization/47738
10561         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10562         the TODO from tree_predictive_commoning.
10563
10564 2011-02-15  Jeff Law  <law@redhat.com>
10565
10566         Revert
10567         2011-01-25  Jeff Law  <law@redhat.com>
10568
10569         PR rtl-optimization/37273
10570         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10571         handle them like argument loads from stack slots.  Do not double
10572         count memory for memory constants and argument loads from stack slots.
10573
10574 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10575
10576         PR middle-end/47725
10577         * combine.c (cant_combine_insn_p): Revert the last change.
10578
10579 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10580
10581         PR target/47755
10582         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10583         mode for vector constants.  Remove code that checks for TImode.
10584
10585 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10586
10587         PR debug/47106
10588         PR debug/47402
10589         * cgraph.h (compute_inline_parameters): Return void.
10590         * ipa-inline.c (compute_inline_parameters): Adjust.
10591
10592 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10593
10594         PR debug/47106
10595         PR debug/47402
10596         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10597         rather than decl.
10598         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10599         * ipa-inline.c (compute_inline_parameters): Adjust.
10600
10601 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10602
10603         PR debug/47106
10604         PR debug/47402
10605         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10606         Adjust all users.  Pass FN to...
10607         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10608         fn argument.
10609         * ipa-struct-reorg.c: Adjust.
10610         * tree-dfa.c: Adjust.
10611         * tree-into-ssa.c: Adjust.
10612         * tree-sra.c: Adjust.
10613         * tree-ssa-alias.c: Adjust.
10614         * tree-ssa-live.c: Adjust.
10615         * tree-ssa.c: Adjust.
10616         * tree-ssanames.c: Adjust.
10617         * tree-tailcall.c: Adjust.
10618
10619 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10620
10621         PR debug/47106
10622         PR debug/47402
10623         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10624         Adjust all callers.
10625         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10626         * tree-flow-inline.h: Adjust.
10627         * gimple-pretty-print.c: Adjust.
10628         * tree-into-ssa.c: Adjust.
10629         * tree-ssa.c: Adjust.
10630         * cfgexpand.c: Adjust.
10631
10632 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10633
10634         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10635         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10636         (EXTRA_CONSTRAINT): Delete.
10637         * config/iq2000/constraints.md: New file.
10638         * config/iq2000/iq2000.md: Include it.
10639         (define_insn ""): Delete.
10640         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10641         unsupported constraint letters from patterns.
10642         (call_value, call_value_internal1): Likewise.
10643         (call_value_multiple_internal1): Likewise.
10644
10645 2011-02-15  Nick Clifton  <nickc@redhat.com>
10646
10647         * config/mn10300/mn10300.c: Include tm-constrs.h.
10648         (struct liw_data): New data structure describing an LIW candidate
10649         instruction.
10650         (extract_bundle): Use struct liw_data.  Allow small integer
10651         operands for some instructions.
10652         (check_liw_constraints): Use struct liw_data.  Remove swapped
10653         parameter.  Add comments describing the checks.  Fix bug when
10654         assigning the source of liw1 to the source of liw2.
10655         (liw_candidate): Delete.  Code moved into extract_bundle.
10656         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10657         before swapping.
10658         * config/mn10300/predicates.md (liw_operand): New predicate.
10659         Allows registers and small integer constants.
10660         * config/mn10300/constraints.md (O): New constraint.  Accetps
10661         integers in the range -8 to +7 inclusive.
10662         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10663         for moving a small integer into a register.  Give this alternative
10664         LIW attributes.
10665         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10666         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10667         using the J,K,L and M constraints,
10668         (liw): Remove SI mode on second operands to allow for HI and QI
10669         mode values.
10670         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10671         instruction.
10672
10673 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10674
10675         PR middle-end/47725
10676         * combine.c (cant_combine_insn_p): Check zero/sign extended
10677         hard registers.
10678
10679 2011-02-15  Richard Guenther  <rguenther@suse.de>
10680
10681         PR tree-optimization/47743
10682         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10683         for a non-type-compatible VN lookup bail out.
10684
10685 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10686
10687         * config/fr30/constraints.md: New file.
10688         * config/fr30/fr30.md: Include it.
10689         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10690         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10691         (EXTRA_CONSTRAINT): Delete.
10692
10693 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10694
10695         * config/frv/constraints.md: New file.
10696         * config/frv/predicates.md: Include it.
10697         * config/frv/frv.c (reg_class_from_letter): Delete.
10698         (frv_option_override): Don't initialize it.
10699         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10700         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10701         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10702         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10703         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10704         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10705         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10706         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10707         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10708         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10709         (REG_CLASS_FROM_CONSTRAINT): Delete.
10710
10711 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10712
10713         PR middle-end/47581
10714         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10715         if frame size is 0 in a leaf function.
10716
10717 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10718
10719         PR pch/14940
10720         * config/alpha/host-osf.c: New file.
10721         * config/alpha/x-osf: New file.
10722         * config.host (alpha*-dec-osf*): Use it.
10723
10724 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10725
10726         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10727         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10728         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10729         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10730         type to const_rtx.
10731         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10732
10733 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10734
10735         * config/stormy16/constraints.md: New file.
10736         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10737         Use satisfies_constraint_Q and satisfies_constraint_R.
10738         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10739         Delete.
10740         (xstormy16_legitiamte_address_p): Declare.
10741         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10742         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10743         (EXTRA_CONSTRAINT): Delete.
10744         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10745         Un-staticize.
10746         (xstormy16_extra_constraint_p): Delete.
10747
10748 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10749
10750         PR tree-optimization/46494
10751         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10752         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10753         (pass_rtl_loop_done): Add TODO_verify_flow.
10754         * fwprop.c (pass_rtl_fwprop): Likewise.
10755         * modulo-sched.c (pass_sms): Likewise.
10756         * tree-ssa-dom.c (pass_dominator): Likewise.
10757         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10758         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10759         (pass_tree_loop_done): Likewise.
10760         * tree-ssa-pre.c (execute_pre): Likewise.
10761         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10762         * tree-ssa-sink.c (pass_sink_code): Likewise.
10763         * tree-vrp.c (pass_vrp): Likewise.
10764
10765 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10766
10767         * config/v850/constraints.md: New file.
10768         * config/v850/v850.md: Include it.
10769         * config/v850/predicates.md (reg_or_0_operand): Use
10770         satisfies_constraint_G.
10771         (special_symbolref_operand): Use satisfies_constraint_K.
10772         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10773         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10774         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10775         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10776         (EXTRA_CONSTRAINT): Delete.
10777         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10778         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10779         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10780
10781 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10782
10783         PR target/47696
10784         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10785         description.
10786
10787 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10788
10789         * config/mcore/constraints.md: New file.
10790         * config/mcore/mcore.md: Include it.
10791         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10792         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10793         (REG_CLASS_FROM_LETTER): Delete.
10794         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10795         insn_const_int_ok_for_constraint.
10796         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10797         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10798         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10799         (EXTRA_CONSTRAINT): Delete.
10800
10801 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10802
10803         PR ada/41929
10804         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10805         (IS_SIGHANDLER): Define.
10806         (sparc64_is_sighandler): New function, split off from
10807         sparc64_fallback_frame_state.
10808         (sparc_is_sighandler): New function, split off from
10809         sparc_fallback_frame_state.
10810         (sparc64_fallback_frame_state): Merge with ...
10811         (sparc_fallback_frame_state): ... this into ...
10812         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10813         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10814         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10815         stack instead of hardcoded offsets.
10816
10817 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10818
10819         PR target/45808
10820         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10821
10822 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10823
10824         * configure: Regenerate.
10825
10826 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10827
10828         PR driver/45731
10829         * gcc.c (asm_options): Correct spec matching --target-help.
10830
10831 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10832
10833         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10834         to gimple call error.
10835
10836 2011-02-12  Mike Stump  <mikestump@comcast.net>
10837
10838         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10839         comments in backslash regions.
10840
10841 2011-02-12  Mike Stump  <mikestump@comcast.net>
10842             Jakub Jelinek  <jakub@redhat.com>
10843             Iain Sandoe  <iains@gcc.gnu.org>
10844
10845         PR target/47324
10846         * dwarf2out.c (output_cfa_loc): When required, apply the
10847         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10848         (output_loc_sequence): Likewise.
10849         (output_loc_operands_raw): Likewise.
10850         (output_loc_sequence_raw): Likewise.
10851         (output_cfa_loc): Likewise.
10852         (output_loc_list): Suppress register number adjustment when
10853         calling output_loc_sequence()
10854         (output_die): Likewise.
10855
10856 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10857
10858         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10859         Remove macros.
10860         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10861         xtensa_memory_move_cost): New functions.
10862         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10863
10864 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10865
10866         PR lto/47225
10867         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10868         in the current directory.
10869         * configure: Rebuilt.
10870
10871 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10872
10873         * config/darwin.c (darwin_override_options): Add a hunk missed
10874         from the commit of r168571.  Trim comment line lengths and
10875         correct indents of the preceding block.
10876
10877 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10878
10879         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10880         the switch.
10881
10882 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * common.opt (nostartfiles): New Driver option.
10885
10886 2011-02-11  Xinliang David Li  <davidxl@google.com>
10887
10888         PR tree-optimization/47707
10889         * tree-chrec.c (convert_affine_scev): Keep type precision.
10890
10891 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10892
10893         PR tree-optimization/47420
10894         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10895
10896 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10897
10898         PR rtl-optimization/47614
10899         * rtl.h (check_for_inc_dec): Declare.
10900         * dse.c (check_for_inc_dec): Externalize...
10901         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10902         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10903
10904 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10905
10906         PR driver/47678
10907         * gcc.c (main): Do not compile inputs if there were errors in
10908         option handling.
10909         * opts-common.c (read_cmdline_option): Check for wrong language
10910         after other error checks.
10911
10912 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10913
10914         * cgraph.c: Fix comment typos.
10915         * cgraph.h: Likewise.
10916         * cgraphunit.c: Likewise.
10917         * ipa-cp.c: Likewise.
10918         * ipa-inline.c: Likewise.
10919         * ipa-prop.c: Likewise.
10920         * ipa-pure-const.c: Likewise.
10921         * ipa-ref.c: Likewise.
10922         * ipa-reference.c: Likewise.
10923
10924 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10925
10926         PR debug/47684
10927         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10928
10929 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10930
10931         PR testsuite/47400
10932         * doc/sourcebuild.texi (Require Support): Document
10933         dg-require-ascii-locale.
10934
10935 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10936
10937         * doc/lto.texi (Write summary): Fix missing parentheses.
10938
10939 2011-02-10  DJ Delorie  <dj@redhat.com>
10940
10941         * config/m32c/m32c.c (m32c_option_override): Disable
10942         -fcombine-stack-adjustments until flag value tracking and compare
10943         optimization can be rewritten.
10944
10945 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10946
10947         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10948         PROCESSOR_POWER7.
10949         (PROCESSOR_DEFAULT64): Likewise.
10950
10951 2011-02-10  Richard Henderson  <rth@redhat.com>
10952
10953         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10954         change from 2011-02-03.
10955         * config/rx/rx.c (flags_from_code): Likewise.
10956         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10957         is valid, n/pz otherwise.
10958         (rx_select_cc_mode): Return CCmode if Y is not zero.
10959
10960 2011-02-10  Richard Guenther  <rguenther@suse.de>
10961
10962         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10963
10964 2011-02-10  Richard Guenther  <rguenther@suse.de>
10965
10966         PR tree-optimization/47677
10967         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10968
10969 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10970
10971         PR target/47665
10972         * combine.c (make_compound_operation): Only change shifts into
10973         multiplication for SCALAR_INT_MODE_P.
10974
10975 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10976
10977         PR testsuite/47622
10978         Revert
10979         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10980         PR debug/42631
10981         * web.c (entry_register): Don't clobber the number of the
10982         first uninitialized reference in used[].
10983
10984 2011-02-09  Richard Guenther  <rguenther@suse.de>
10985
10986         PR tree-optimization/47664
10987         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10988         all edges again.
10989
10990 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10991
10992         PR target/46481
10993         PR target/47032
10994         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10995         PROCESSOR_POWER7.
10996         (PROCESSOR_DEFAULT64): Same.
10997         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10998
10999 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11000
11001         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11002
11003 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11004
11005         PR middle-end/45505
11006         * tree-sra.c (struct access): New flags grp_scalar_read and
11007         grp_scalar_write.  Changed description of assignment read and write
11008         flags.
11009         (dump_access): Dump new flags, reorder all of them.
11010         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11011         to detect multiple scalar reads.
11012         (analyze_access_subtree): Use the new scalar read write flags instead
11013         of the old flags.  Adjusted comments.
11014
11015 2011-02-08  DJ Delorie  <dj@redhat.com>
11016
11017         PR target/47548
11018         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11019         patterns.
11020
11021 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11022
11023         * config/m68k/uclinux.opt: New.
11024         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11025
11026 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11027
11028         * config/cris/elf.opt (sim): New Driver option.
11029
11030 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11031
11032         * config/xtensa/elf.opt: New.
11033         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11034
11035 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11036
11037         * config/vax/elf.opt: New.
11038         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11039
11040 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11041
11042         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11043
11044 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11045
11046         * config/gnu-user.opt: New.
11047         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11048         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11049         *-*-uclinux*): Use gnu-user.opt.
11050
11051 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11052
11053         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11054         * config/i386/gnu.h (CPP_SPEC): Likewise.
11055
11056 2011-02-08  Ian Lance Taylor  <iant@google.com>
11057
11058         * common.opt (fcx-limited-range): Add SetByCombined flag.
11059         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11060         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11061         (fassociative-math, freciprocal-math): Likewise.
11062         (funsafe-math-optimizations): Likewise.
11063         * opth-gen.awk: Handle SetByCombined.
11064         * optc-gen.awk: Likewise.
11065         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11066         (set_unsafe_math_optimizations_flags): Likewise.
11067         * doc/options.texi (Option properties): Document SetByCombined.
11068
11069 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11070
11071         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11072         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11073         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11074         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11075         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11076
11077 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11078
11079         PR tree-optimization/46834
11080         PR tree-optimization/46994
11081         PR tree-optimization/46995
11082         * graphite-sese-to-poly.c (used_outside_reduction): New.
11083         (detect_commutative_reduction): Call used_outside_reduction.
11084         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11085         translate_scalar_reduction_to_array only when at least one
11086         loop-phi/close-phi tuple has been detected.
11087
11088 2011-02-08  Richard Guenther  <rguenther@suse.de>
11089
11090         PR middle-end/47639
11091         * tree-vect-generic.c (expand_vector_operations_1): Update
11092         stmts here ...
11093         (expand_vector_operations): ... not here.  Cleanup EH info
11094         and the CFG if required.
11095
11096 2011-02-08  Richard Guenther  <rguenther@suse.de>
11097
11098         PR tree-optimization/47641
11099         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11100         require type compatibility.
11101
11102 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11103
11104         * gimple-low.c (lower_function_body): Don't remove the location of
11105         the return statement here.
11106         (lower_gimple_return): Do it here instead but only if the return
11107         statement is actually used twice.
11108
11109 2011-02-08  Richard Guenther  <rguenther@suse.de>
11110
11111         PR tree-optimization/47632
11112         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11113         unused up_to_stmt parameter, return whether cfg-cleanup is
11114         necessary, remove EH info properly.
11115         (forward_propagate_into_gimple_cond): Adjust caller.
11116         (forward_propagate_into_cond): Likewise.
11117         (forward_propagate_comparison): Likewise.
11118         (tree_ssa_forward_propagate_single_use_vars): Make
11119         forward_propagate_comparison case similar to the two others.
11120
11121 2011-02-08  Nick Clifton  <nickc@redhat.com>
11122
11123         * config/mn10300/mn10300.opt (mliw): New command line option.
11124         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11125         (liw_bundling): New automaton.
11126         (liw): New attribute.
11127         (liw_op): New attribute.
11128         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11129         (movsi_internal): Add LIW attributes.
11130         (andsi3): Likewise.
11131         (iorsi3): Likewise.
11132         (xorsi3): Likewise.
11133         (addsi3): Separate register and immediate alternatives.
11134         Add LIW attributes.
11135         (subsi3): Likewise.
11136         (cmpsi): Likewise.
11137         (aslsi3): Likewise.
11138         (lshrsi3): Likewise.
11139         (ashrsi3): Likewise.
11140         (liw): New pattern.
11141         * config/mn10300/mn10300.c (liw_op_names): New
11142         (mn10300_print_operand): Handle 'W' operand descriptor.
11143         (extract_bundle): New function.
11144         (check_liw_constraints): New function.
11145         (liw_candidate): New function.
11146         (mn10300_bundle_liw): New function.
11147         (mn10300_reorg): New function.
11148         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11149         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11150         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11151         __LIW__ or __NO_LIW__.
11152         * doc/invoke.texi: Describe the -mliw command line option.
11153
11154 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11155
11156         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11157         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11158         pthread_mutex_unlock): Remove.
11159         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11160         * config/pa/t-pa64: Likewise.
11161         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11162         shared libc if not linking against libpthread.
11163         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11164
11165 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11166
11167         PR target/47558
11168         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11169         on 10.6 and later to ensure that we always use the unwinder from
11170         the system.  Only add -no_compact_unwind when tarteting darwin
11171         10.6 or later.
11172
11173 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11174
11175         PR target/46997
11176         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11177         (vec_interleave_lowv2sf): Ditto.
11178         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11179         (vec_extract_oddv2sf): Ditto.
11180
11181 2011-02-07  Mike Stump  <mikestump@comcast.net>
11182
11183         PR target/42333
11184         Add __ieee_divdc3 entry point.
11185         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11186         entry point.
11187         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11188         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11189         * config/darwin.c (darwin_rename_builtins): Add.
11190         * config/darwin-protos.h (darwin_rename_builtins): Add.
11191
11192 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11193
11194         PR target/47636
11195         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11196         for the condition.
11197
11198 2011-02-07  Mike Stump  <mikestump@comcast.net>
11199
11200         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11201
11202 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11203
11204         PR target/47534
11205         * config/avr/libgcc.S (exit): Move .endfunc
11206
11207 2011-02-07  Richard Guenther  <rguenther@suse.de>
11208
11209         PR tree-optimization/47615
11210         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11211         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11212         (run_scc_vn): Initialize it.
11213         (visit_reference_op_load): Use it.
11214         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11215
11216 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11217
11218         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11219         DImode trapping arithmetic libfuncs.
11220
11221 2011-02-07  Richard Guenther  <rguenther@suse.de>
11222
11223         PR tree-optimization/47621
11224         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11225         two duplicates ...
11226         (execute_update_addresses_taken): ... here.  Make it more
11227         conservative in what we accept.
11228
11229 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * config/sparc/freebsd.h (ASM_SPEC): Define.
11232         * config/sparc/vxworks.h (ASM_SPEC): Define.
11233
11234 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11235
11236         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11237
11238 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11239
11240         * doc/invoke.texi: Remove reference to compiler internals from
11241         user documentation.
11242
11243         * reg-notes.def: Remove REG_VALUE_PROFILE.
11244         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11245
11246 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11247
11248         PR middle-end/47610
11249         * varasm.c (default_section_type_flags): If decl is NULL,
11250         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11251
11252 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11253
11254         PR debug/42631
11255         * web.c (entry_register): Don't clobber the number of the
11256         first uninitialized reference in used[].
11257
11258 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11259
11260         PR tree-optimization/46194
11261         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11262         (build_classic_dist_vector_1): Do not represent classic distance
11263         vectors when the access functions are variating in different loops.
11264
11265 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11266
11267         * config/mips/iris6.opt: New.
11268         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11269
11270 2011-02-04  Richard Henderson  <rth@redhat.com>
11271             Steve Ellcey  <sje@cup.hp.com>
11272
11273         PR target/46997
11274         * config/ia64/predicates.md (mux1_brcst_element): New.
11275         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11276         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11277         (ia64_unpack_sign): New.
11278         (ia64_expand_unpack): Rewrite using new routines.
11279         (ia64_expand_widen_sum): Ditto.
11280         (ia64_expand_dot_prod_v8qi): Ditto.
11281         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11282         routines, add endian check.
11283         (pmpy2_even): Rename from pmpy2_r, add endian check.
11284         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11285         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11286         (vec_widen_smult_hi_v4hi): Ditto.
11287         (vec_widen_umult_lo_v4hi): Ditto.
11288         (vec_widen_umult_hi_v4hi): Ditto.
11289         (mulv2si3): Change endian checks.
11290         (sdot_prodv4hi): Rewrite with new calls.
11291         (udot_prodv4hi): New.
11292         (vec_pack_ssat_v4hi): Add endian check.
11293         (vec_pack_usat_v4hi): Ditto.
11294         (vec_pack_ssat_v2si): Ditto.
11295         (max1_even): Rename from max1_r, add endian check.
11296         (max1_odd): Rename from max1_l, add endian check.
11297         (*mux1_rev): Format change.
11298         (*mux1_mix): Ditto.
11299         (*mux1_shuf): Ditto.
11300         (*mux1_alt): Ditto.
11301         (*mux1_brcst_v8qi): Use new predicate.
11302         (vec_extract_evenv8qi): Remove endian check.
11303         (vec_extract_oddv8qi): Ditto.
11304         (vec_interleave_lowv4hi): Format change.
11305         (vec_interleave_highv4hi): Ditto.
11306         (mix2_even): Rename from mix2_r, add endian check.
11307         (mix2_odd): Rename from mux2_l, add endian check.
11308         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11309         (vec_extract_evenodd_helper): Format change.
11310         (vec_extract_evenv4hi): Remove endian check.
11311         (vec_extract_oddv4hi): Remove endian check.
11312         (vec_interleave_lowv2si): Format change.
11313         (vec_interleave_highv2si): Format change.
11314         (vec_initv2si): Remove endian check.
11315         (vecinit_v2si): Add endian check.
11316         (reduc_splus_v2sf): Add endian check.
11317         (reduc_smax_v2sf): Ditto.
11318         (reduc_smin_v2sf): Ditto.
11319         (vec_initv2sf): Remove endian check.
11320         (fpack): Add endian check.
11321         (fswap): Add endian check.
11322         (vec_interleave_highv2sf): Add endian check.
11323         (vec_interleave_lowv2sf): Add endian check.
11324         (fmix_lr): Add endian check.
11325         (vec_setv2sf): Format change.
11326         (*vec_extractv2sf_0_be): Use shift to extract operand.
11327         (*vec_extractv2sf_1_be): New.
11328         (vec_pack_trunc_v4hi): Add endian check.
11329         (vec_pack_trunc_v2si): Format change.
11330
11331 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11332
11333         PR inline-asm/23200
11334         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11335         do bb, locus and block comparison and disallow loads if it is not set.
11336         (stmt_is_replaceable_p): New function.
11337         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11338         callers.
11339         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11340         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11341         SSA_NAME_DEF_STMT.
11342         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11343
11344 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11345
11346         * config/rs6000/xilinx.opt: New.
11347         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11348
11349 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11350
11351         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11352
11353 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11354
11355         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11356         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11357         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11358         secondary_reload_info, xtensa_secondary_reload): Remove.
11359         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11360         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11361         (xtensa_preferred_reload_class): Make static. Change return and
11362         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11363         Use CONST_DOUBLE_P predicate.
11364         (xtensa_preferred_output_reload_class): New function.
11365         (xtensa_secondary_reload): Make static.
11366
11367 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11368
11369         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11370         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11371         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11372
11373 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR middle-end/31490
11376         * output.h (SECTION_RELRO): Define.
11377         (SECTION_MACH_DEP): Adjust.
11378         (get_variable_section): New prototype.
11379         * varpool.c (varpool_finalize_named_section_flags): New function.
11380         (varpool_assemble_pending_decls): Call it.
11381         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11382         * cgraphunit.c (cgraph_output_in_order): Call
11383         varpool_finalize_named_section_flags.
11384         * varasm.c (get_section): Allow section flags conflicts between
11385         relro and read-only sections if the section hasn't been declared yet.
11386         Set SECTION_OVERRIDE after diagnosing section type conflict.
11387         (get_variable_section): No longer static.
11388         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11389         readonly sections that need relocations.
11390         (decl_readonly_section_1): New function.
11391         (decl_readonly_section): Use it.
11392
11393         Revert:
11394         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11395                     Steve Ellcey  <sje@cup.hp.com>
11396
11397         PR middle-end/31490
11398         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11399         if section attribute used.
11400
11401 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11402
11403         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11404         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11405         (darwin_init_sections): Remove assertion.
11406
11407 2011-02-03  Nick Clifton  <nickc@redhat.com>
11408
11409         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11410         lt and ge.
11411         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11412         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11413         instead of "n" and "pz".
11414         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11415         CC_FLAG_S.
11416
11417 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11418
11419         PR target/47312
11420         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11421         fma, expand FMA_EXPR as fma{,f,l} call.
11422
11423         PR lto/47274
11424         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11425         copy them into a unsigned char variable and pass address of it to
11426         lto_output_data_stream.
11427
11428         PR target/47564
11429         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11430         around backend_init_target and lang_dependent_init_target calls.
11431         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11432         (verify_cgraph_node): Don't call set_cfun here.  Use
11433         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11434         Set error_found for incorrectly represented calls to thunks.
11435
11436 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11437
11438         PR debug/43092
11439         PR rtl-optimization/43494
11440         * rtl.h (for_each_inc_dec_fn): New type.
11441         (for_each_inc_dec): Declare.
11442         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11443         (for_each_inc_dec_find_inc_dec): New fn.
11444         (for_each_inc_dec_find_mem): New fn.
11445         (for_each_inc_dec): New fn.
11446         * dse.c (struct insn_size): Remove.
11447         (replace_inc_dec, replace_inc_dec_mem): Remove.
11448         (emit_inc_dec_insn_before): New fn.
11449         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11450         (canon_address): Pass mem modes to cselib_lookup.
11451         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11452         (cselib_lookup_from_insn): Likewise.
11453         (cselib_subst_to_values): Likewise.
11454         * cselib.c (find_slot_memmode): New var.
11455         (cselib_find_slot): New fn.  Use it instead of
11456         htab_find_slot_with_hash everywhere.
11457         (entry_and_rtx_equal_p): Use find_slot_memmode.
11458         (autoinc_split): New fn.
11459         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11460         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11461         Deal with autoinc.  Special-case recursion into MEMs.
11462         (cselib_hash_rtx): Likewise.
11463         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11464         address and MEM modes.
11465         (cselib_subst_to_values): Add memmode, pass it on.
11466         Deal with autoinc.
11467         (cselib_lookup): Add memmode argument, pass it on.
11468         (cselib_lookup_from_insn): Add memmode.
11469         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11470         (struct cselib_record_autoinc_data): New.
11471         (cselib_record_autoinc_cb): New fn.
11472         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11473         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11474         (cselib_process_insn): ... here.
11475         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11476         to cselib_lookup.
11477         (add_uses): Likewise, also to cselib_subst_to_values.
11478         (add_stores): Likewise.
11479         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11480         cselib_subst_to_values.
11481         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11482         * gcse.c (do_local_cprop): Adjusted.
11483         * postreload.c (reload_cse_simplify_set): Adjusted.
11484         (reload_cse_simplify_operands): Adjusted.
11485         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11486
11487 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11488
11489         PR tree-optimization/45122
11490         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11491         unsafe assumptions when there's more than one loop exit.
11492
11493 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11494
11495         PR target/47272
11496         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11497         Document using vector double with the load/store builtins, and
11498         that the load/store builtins always use Altivec instructions.
11499
11500         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11501         to use altivec memory instructions, even on VSX.
11502         (vector_altivec_store_<mode>): Ditto.
11503
11504         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11505         function.
11506
11507         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11508         V2DF, V2DI support to load/store overloaded builtins.
11509
11510         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11511         altivec load/store builtins for V2DF/V2DI types.
11512
11513         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11514         set avoid indexed addresses on power6 if -maltivec.
11515         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11516         vector_altivec_load/vector_altivec_store builtins.
11517         (altivec_expand_st_builtin): Ditto.
11518         (altivec_expand_builtin): Add VSX memory builtins.
11519         (rs6000_init_builtins): Add V2DI types to internal types.
11520         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11521         load/store builtins.
11522         (rs6000_address_for_altivec): Insure memory address is appropriate
11523         for Altivec.
11524
11525         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11526         vec_vsx_ld and vec_vsx_st.
11527         (vsx_store_<mode>): Ditto.
11528
11529         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11530         variables to hold long long types for VSX vector memory builtins.
11531         (RS6000_BTI_unsigned_long_long): Ditto.
11532         (long_long_integer_type_internal_node): Ditti.
11533         (long_long_unsigned_type_internal_node): Ditti.
11534
11535         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11536         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11537         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11538
11539         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11540         short cuts.
11541         (vec_vsx_st): Ditto.
11542
11543 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11544
11545         * config/pa/pa-hpux10.opt: New.
11546         * config/hpux11.opt (pthread): New Driver option.
11547         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11548         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11549
11550 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11551
11552         * config/ia64/vms.opt: New.
11553         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11554
11555 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11556
11557         PR target/47580
11558         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11559         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11560         generator functions.
11561         (vsx_floatuns<VSi><mode>2): Ditto.
11562         (vsx_fix_trunc<mode><VSi>2): Ditto.
11563         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11564
11565 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11566
11567         * config/i386/djgpp.opt (posix): New Driver option.
11568
11569 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11570
11571         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11572         Move to the unsupported targets list.
11573
11574 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11575
11576         PR rtl-optimization/47525
11577         * df-scan.c: Update copyright years.
11578         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11579         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11580
11581 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11582
11583         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11584         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11585         (ASM_OUTPUT_ASCII): Remove.
11586         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11587
11588 2011-02-02  Jeff Law  <law@redhat.com>
11589
11590         PR middle-end/47543
11591         * reload.c (find_reloads_address): Handle reg+d address where both
11592         components are invalid by reloading the entire address.
11593
11594 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11595             Richard Guenther  <rguenther@suse.de>
11596
11597         PR tree-optimization/40979
11598         PR bootstrap/47044
11599         * passes.c (init_optimization_passes): After LIM call copy_prop
11600         and DCE to clean up.
11601         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11602
11603 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11604
11605         PR tree-optimization/47576
11606         PR tree-optimization/47555
11607         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11608         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11609         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11610         * tree-scalar-evolution.c (follow_ssa_edge): Use
11611         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11612
11613 2011-02-02  Richard Guenther  <rguenther@suse.de>
11614
11615         PR tree-optimization/47566
11616         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11617
11618 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11619
11620         PR debug/47106
11621         PR debug/47402
11622         * tree-inline.c (declare_return_variable): Remove unused caller
11623         variable.
11624
11625         PR debug/47106
11626         PR debug/47402
11627         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11628         * cfgexpand.c (account_used_vars_for_block): Use them.
11629         * tree-nrv.c (tree_nrv): Likewise.
11630         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11631         (dump_scope_block): Likewise.
11632         (remove_unused_locals): Likewise.
11633
11634         PR debug/47106
11635         PR debug/47402
11636         * tree-inline.c (declare_return_variable): Add result decl to
11637         local decls only once.
11638         * gimple-low.c (record_vars_into): Mark newly-created variables
11639         as referenced.
11640
11641 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11642
11643         PR debug/47498
11644         PR debug/47501
11645         PR debug/45136
11646         PR debug/45130
11647         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11648         debug insns.
11649         (no_real_insns_p, schedule_block, set_priorities): Drop special
11650         treatment of boundary debug insns.
11651         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11652         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11653         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11654         (BOUNDARY_DEBUG_INSN_P): Likewise.
11655         (SCHEDULE_DEBUG_INSN_P): Likewise.
11656         * sched-rgn.c (init_ready_list): Drop special treatment of
11657         boundary debug insns.
11658         * final.c (rest_of_clean_state): Clear notes' BB.
11659
11660 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11661
11662         * config/openbsd.opt (assert=): New Driver option.
11663
11664 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11665
11666         * config/i386/nto.opt: New.
11667         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11668
11669 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11670
11671         * config/i386/netware.opt: New.
11672         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11673
11674 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11675
11676         * config/interix.opt (posix): New Driver option.
11677
11678 2011-02-01  DJ Delorie  <dj@redhat.com>
11679
11680         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11681
11682         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11683         class for A0/A1.
11684
11685 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11686
11687         PR tree-optimization/47561
11688         * toplev.c (process_options): Print the Graphite flags.  Add
11689         flag_loop_flatten to the list of options requiring Graphite.
11690
11691 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * config/i386/cygming.opt (posix): New Driver option.
11694
11695 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11696
11697         * config/arm/vxworks.opt: New.
11698         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11699
11700 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11701
11702         * config/alpha/elf.opt: New.
11703         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11704         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11705
11706 2011-02-01  Richard Guenther  <rguenther@suse.de>
11707
11708         PR tree-optimization/47559
11709         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11710         store-motion on references that can throw.
11711
11712 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11713
11714         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11715         * tree-pass.h (TDF_CSELIB): New macro.
11716         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11717         cselib_lookup): Check for it rather than for TDF_DETAILS.
11718
11719 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11720
11721         PR driver/47547
11722         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11723         is HOST_BIT_BUCKET.
11724
11725         * opts.c (finish_options): Don't add x_aux_base_name if it is
11726         HOST_BIT_BUCKET.
11727
11728 2011-02-01  Richard Guenther  <rguenther@suse.de>
11729
11730         PR tree-optimization/47555
11731         Revert
11732         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11733
11734         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11735
11736 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11737
11738         PR gcc/46692
11739         * config/lm32/t-lm32: Add multilib for all CPU options.
11740
11741 2011-02-01  Richard Guenther  <rguenther@suse.de>
11742
11743         PR tree-optimization/47541
11744         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11745         sure to have a field at offset zero.
11746
11747 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11748
11749         * config/arc/arc.opt (EB, EL): New Driver options.
11750
11751 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11752
11753         * config/alpha/osf5.opt: New.
11754         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11755
11756 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11757
11758         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11759
11760 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11761
11762         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11763         -floop-interchange.
11764         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11765         is an alias of -floop-interchange and that it requires the
11766         Graphite infrastructure.
11767         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11768         flag_loop_interchange based on the value of flag_tree_loop_linear.
11769
11770 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11771             Richard Guenther  <rguenther@suse.de>
11772
11773         PR tree-optimization/47538
11774         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11775         type instead of r1type, except for comparisons.  For right
11776         shifts and comparisons punt if there are mismatches in
11777         sizetype vs. non-sizetype types.
11778
11779 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11780
11781         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11782         avx_runtime.
11783
11784 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11785
11786         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11787         version number.
11788         * configure: Regenerate.
11789
11790 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11791
11792         * configure.ac (gcc_cv_ld_static_option): Define.
11793         (gcc_cv_ld_dynamic_option): Define.
11794         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11795         instead.
11796         (HAVE_LD_STATIC_DYNAMIC): Update message.
11797         (LD_STATIC_OPTION): Define.
11798         (LD_DYNAMIC_OPTION): Define.
11799         * configure: Regenerate.
11800         * config.in: Regenerate.
11801         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11802         HAVE_LD_STATIC_DYNAMIC]: Use them.
11803
11804 2011-01-31  Nick Clifton  <nickc@redhat.com>
11805
11806         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11807         registers inside interrupt handlers if the handler is not a leaf
11808         function.
11809
11810 2011-01-31  Nick Clifton  <nickc@redhat.com>
11811
11812         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11813         reg_renumber returning an INVALID_REGNUM.
11814
11815 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11816
11817         PR libgcj/44341
11818         * doc/install.texi: Document host options discarded when cross
11819         configuring target libraries.
11820
11821 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11822
11823         Reverted:
11824         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11825         PR debug/45136
11826         PR debug/45130
11827         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11828         debug insns.
11829         (no_real_insns_p, schedule_block, set_priorities): Drop special
11830         treatment of boundary debug insns.
11831         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11832         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11833         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11834         (BOUNDARY_DEBUG_INSN_P): Likewise.
11835         (SCHEDULE_DEBUG_INSN_P): Likewise.
11836         * sched-rgn.c (init_ready_list): Drop special treatment of
11837         boundary debug insns.
11838         * final.c (rest_of_clean-state): Clear notes' BB.
11839
11840 2011-01-31  Alan Modra  <amodra@gmail.com>
11841
11842         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11843         toc relative expressions as we do in print_operand_address.
11844
11845 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11846
11847         * doc/extend.texi: Follow spelling conventions.
11848         * doc/invoke.texi: Fix a typo.
11849
11850 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11851
11852         * config/hpux11.opt: New.
11853         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11854         ia64*-*-hpux*): Use hpux11.opt.
11855
11856 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11857
11858         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11859         to tmake_file.
11860
11861 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11862
11863         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11864         support sites.
11865
11866 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11867
11868         * doc/install.texi (Binaries): Remove outdated reference for
11869         Motorola 68HC11/68HC12 downloads.
11870
11871 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11872
11873         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11874         Drepper's paper.
11875
11876 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11877
11878         PR bootstrap/47147
11879         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11880         used by NetBSD.
11881
11882 2011-01-28  Ahmad Sharif  <asharif@google.com>
11883
11884         * value-prof.c (check_counter): Corrected error message.
11885
11886 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11887
11888         * config/arm/arm.c (arm_legitimize_reload_address): New.
11889         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11890         arm_legitimize_reload_address.
11891         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11892
11893 2011-01-28  Ian Lance Taylor  <iant@google.com>
11894
11895         * godump.c (go_define): Ignore macros whose definitions include
11896         two adjacent operands.
11897
11898 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11899
11900         PR target/42894
11901         * varasm.c (force_const_mem): Store copy of x in desc->constant
11902         instead of x itself.
11903         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11904         itself into REG_EQUAL note.
11905
11906 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11907
11908         * config/freebsd.opt (posix, rdynamic): New Driver options.
11909
11910 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11911
11912         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11913         -Bstatic/-Bdynamic.
11914         * configure: Regenerate.
11915
11916 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11917
11918         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11919         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11920
11921 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11922
11923         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11924         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11925         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11926         (s390_preferred_reload_class): Make static. Change return and
11927         'rclass' argument type to reg_class_t.
11928
11929 2011-01-27  Jan Hubicka  <jh@suse.cz>
11930
11931         PR middle-end/46949
11932         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11933         (process_function_and_variable_attributes): Check defined weakrefs.
11934
11935 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11936
11937         PR tree-optimization/47228
11938         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11939         build_ref_for_offset.
11940
11941 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11942
11943         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11944
11945 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11946
11947         PR rtl-optimization/46856
11948         * postreload.c (reload_combine_recognize_const_pattern): Do not
11949         separate cc0 setter and user on cc0 targets.
11950
11951 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11952
11953         PR c/43082
11954         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11955         passed a VOID_TYPE expression, immediately emit an error and
11956         return error_mark_node.
11957
11958 2011-01-26  Jeff Law  <law@redhat.com>
11959
11960         PR rtl-optimization/47464
11961         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11962         rather than may_trap_p as needed.
11963
11964 2011-01-26  DJ Delorie  <dj@redhat.com>
11965
11966         PR rtl-optimization/46878
11967         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11968         setter/user dependency as well.
11969
11970 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11971
11972         PR rtl-optimization/44469
11973         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11974         after removing trivially dead basic blocks.
11975
11976 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11977
11978         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11979         * config/frv/frv.h (LINK_SPEC): Likewise.
11980         * config/i386/netware.h (LINK_SPEC): Likewise.
11981         * config/m68k/linux.h (ASM_SPEC): Likewise.
11982         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11983         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11984         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11985         * config/sparc/linux.h (ASM_SPEC): Likewise.
11986         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11987         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11988
11989 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11990
11991         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11992         * config/frv/frv.h (ASM_SPEC): Likewise.
11993         * config/m68k/linux.h (ASM_SPEC): Likewise.
11994         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11995         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11996         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11997         * config/sparc/linux.h (ASM_SPEC): Likewise.
11998         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11999         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12000
12001 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12002
12003         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12004         * config/frv/frv.h (LINK_SPEC): Likewise.
12005         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12006
12007 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12008
12009         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12010         * config/frv/frv.h (ASM_SPEC): Likewise.
12011         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12012         * config/m68k/linux.h (ASM_SPEC): Likewise.
12013         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12014         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12015         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12016         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12017         * config/sparc/linux.h (ASM_SPEC): Likewise.
12018         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12019         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12020         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12021
12022 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12023
12024         PR target/46997
12025         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12026         (*mux2): Ditto.
12027         (vec_extract_evenodd_help): Ditto.
12028         (vec_extract_evenv4hi): Ditto.
12029         (vec_extract_oddv4hi): Ditto.
12030         (vec_interleave_lowv2si): Ditto.
12031         (vec_interleave_highv2si): Ditto.
12032         (vec_extract_evenv2si): Ditto.
12033         (vec_extract_oddv2si: Ditto.
12034         (vec_pack_trunc_v2si): Ditto.
12035
12036 2011-01-22  Jan Hubicka  <jh@suse.cz>
12037
12038         PR target/47237
12039         * cgraph.h (cgraph_local_info): New field can_change_signature.
12040         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12041         signature can change.
12042         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12043         can change.
12044         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12045         (cgraph_function_versioning): We can not change signature of functions
12046         that don't allow that.
12047         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12048         (lto_input_node): Likewise.
12049         * ipa-inline.c (compute_inline_parameters): Compute
12050         local.can_change_signature.
12051         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12052         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12053         functions that can not change signature.
12054         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12055         init_cumulative_args): Do not use local calling conventions
12056         for functions that can not change signature.
12057
12058 2011-01-22  Jan Hubicka  <jh@suse.cz>
12059
12060         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12061
12062 2011-01-26  Richard Guenther  <rguenther@suse.de>
12063
12064         PR tree-optimization/47190
12065         * cgraphunit.c (process_common_attributes): New function.
12066         (process_function_and_variable_attributes): Use it.
12067
12068 2011-01-26  Richard Guenther  <rguenther@suse.de>
12069
12070         PR lto/47423
12071         * cgraphbuild.c (record_eh_tables): Record reference to personality
12072         function.
12073
12074 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12075
12076         PR debug/45454
12077         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12078         non-debug insns from moving up.
12079
12080 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12081
12082         PR target/40125
12083         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12084         t-dlldir{,-x} fragment for build and add it to tmake_file.
12085         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12086         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12087         * config/i386/t-dlldir: New file.
12088         (SHLIB_DLLDIR): Define.
12089         * config/i386/t-dlldir-x: New file.
12090         (SHLIB_DLLDIR): Define.
12091         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12092         (SHLIB_INSTALL): Use it.
12093
12094 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12095
12096         PR target/47246
12097         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12098         lower bound of the allowed Thumb-2 coprocessor load/store
12099         index range to -256. Add explaining comment.
12100
12101 2011-01-25  Ian Lance Taylor  <iant@google.com>
12102
12103         * godump.c (go_define): Improve lexing of macro expansion to only
12104         accept expressions which match Go spec.
12105
12106 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12107
12108         PR c++/43601
12109         * tree.c (handle_dll_attribute): Handle it.
12110         * doc/extend.texi (@item dllexport): Mention it.
12111         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12112
12113 2011-01-25  Ian Lance Taylor  <iant@google.com>
12114
12115         PR tree-optimization/26854
12116         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12117         (decl_jump_unsafe): Move higher in file, with no other change.
12118         (bind): Set has_jump_unsafe_decl if appropriate.
12119         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12120         (check_earlier_gotos): Likewise.
12121         (c_check_switch_jump_warnings): Likewise.
12122
12123 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12124
12125         * doc/invoke.texi (Warning Options): Add missing hyphen.
12126         (-fprofile-dir): Minor grammatical fixes.
12127         (-fbranch-probabilities): Likewise.
12128
12129 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12130
12131         PR debug/45136
12132         PR debug/45130
12133         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12134         debug insns.
12135         (no_real_insns_p, schedule_block, set_priorities): Drop special
12136         treatment of boundary debug insns.
12137         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12138         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12139         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12140         (BOUNDARY_DEBUG_INSN_P): Likewise.
12141         (SCHEDULE_DEBUG_INSN_P): Likewise.
12142         * sched-rgn.c (init_ready_list): Drop special treatment of
12143         boundary debug insns.
12144         * final.c (rest_of_clean-state): Clear notes' BB.
12145
12146 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12147
12148         * Makefile.in (LAMBDA_H): Removed.
12149         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12150         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12151         lambda-trans.o, and tree-loop-linear.o.
12152         (lto-symtab.o): Remove dependence on LAMBDA_H.
12153         (tree-loop-linear.o): Remove rule.
12154         (lambda-mat.o): Same.
12155         (lambda-trans.o): Same.
12156         (lambda-code.o): Same.
12157         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12158         (tree-vect-slp.o): Same.
12159         * hwint.h (gcd): Moved here.
12160         (least_common_multiple): Same.
12161         * lambda-code.c: Removed.
12162         * lambda-mat.c: Removed.
12163         * lambda-trans.c: Removed.
12164         * lambda.h: Removed.
12165         * tree-loop-linear.c: Removed.
12166         * lto-symtab.c: Do not include lambda.h.
12167         * omega.c (gcd): Removed.
12168         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12169         * tree-data-ref.c (print_lambda_vector): Moved here.
12170         (lambda_vector_copy): Same.
12171         (lambda_matrix_copy): Same.
12172         (lambda_matrix_id): Same.
12173         (lambda_vector_first_nz): Same.
12174         (lambda_matrix_row_add): Same.
12175         (lambda_matrix_row_exchange): Same.
12176         (lambda_vector_mult_const): Same.
12177         (lambda_vector_negate): Same.
12178         (lambda_matrix_row_negate): Same.
12179         (lambda_vector_equal): Same.
12180         (lambda_matrix_right_hermite): Same.
12181         * tree-data-ref.h: Do not include lambda.h.
12182         (lambda_vector): Moved here.
12183         (lambda_matrix): Same.
12184         (dependence_level): Same.
12185         (lambda_transform_legal_p): Removed declaration.
12186         (lambda_collect_parameters): Same.
12187         (lambda_compute_access_matrices): Same.
12188         (lambda_vector_gcd): Same.
12189         (lambda_vector_new): Same.
12190         (lambda_vector_clear): Same.
12191         (lambda_vector_lexico_pos): Same.
12192         (lambda_vector_zerop): Same.
12193         (lambda_matrix_new): Same.
12194         * tree-flow.h (least_common_multiple): Removed declaration.
12195         * tree-parloops.c (lambda_trans_matrix): Moved here.
12196         (LTM_MATRIX): Same.
12197         (LTM_ROWSIZE): Same.
12198         (LTM_COLSIZE): Same.
12199         (LTM_DENOMINATOR): Same.
12200         (lambda_trans_matrix_new): Same.
12201         (lambda_matrix_vector_mult): Same.
12202         (lambda_transform_legal_p): Same.
12203         * tree-pass.h (pass_linear_transform): Removed declaration.
12204         * tree-ssa-loop.c (tree_linear_transform): Removed.
12205         (gate_tree_linear_transform): Removed.
12206         (pass_linear_transform): Removed.
12207         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12208         flag_loop_interchange.
12209
12210 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12211
12212         PR tree-optimization/47265
12213         PR tree-optimization/47443
12214         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12215         if name still has some uses.
12216
12217 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12218
12219         PR tree-optimization/47382
12220         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12221         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12222
12223 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12224
12225         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12226         sjlj_except_unwind_info.
12227
12228 2011-01-25  Richard Guenther  <rguenther@suse.de>
12229
12230         PR tree-optimization/47426
12231         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12232         visible functions results escape.
12233
12234 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12235
12236         PR target/45701
12237         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12238         (arm_get_frame_offsets): Use it.
12239
12240 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12241             Jakub Jelinek  <jakub@redhat.com>
12242
12243         PR tree-optimization/47271
12244         * tree-if-conv.c (bb_postdominates_preds): New.
12245         (if_convertible_bb_p): Call bb_postdominates_preds.
12246         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12247         (predicate_scalar_phi): Call bb_postdominates_preds.
12248
12249 2011-01-25  Nick Clifton  <nickc@redhat.com>
12250
12251         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12252         * config/rx/rx.c (rx_function_value): Likewise.
12253         (rx_promote_function_mode): Likewise.
12254         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12255         in order to make it legitimate.
12256         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12257         make sure that the first operand is the same as the result register.
12258         (addsi3_unspec): Delete.
12259         (subdi3): Do not accept immediate operands.
12260         (subdi3_internal): Likewise.
12261
12262 2011-01-25  Jeff Law  <law@redhat.com>
12263
12264         PR rtl-optimization/37273
12265         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12266         handle them like argument loads from stack slots.  Do not double
12267         count memory for memory constants and argument loads from stack slots.
12268
12269 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12270
12271         PR tree-optimization/47427
12272         PR tree-optimization/47428
12273         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12274         coalesce if the new root var would be TREE_READONLY.
12275
12276 2011-01-25  Richard Guenther  <rguenther@suse.de>
12277
12278         PR middle-end/47414
12279         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12280         correct type for TBAA.
12281
12282 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12283
12284         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12285         (close_phi_written_to_memory): Call for_each_index with
12286         dr_indices_valid_in_loop.
12287
12288 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12289
12290         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12291         when it is initialized.
12292
12293 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12294
12295         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12296         call to graphite_find_data_references_in_stmt.
12297         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12298         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12299         call to graphite_find_data_references_in_stmt.
12300         (analyze_drs_in_stmts): Same.
12301         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12302         in which the scalar analysis of indices is performed.
12303         (create_data_ref): Same.  Update call to dr_analyze_indices.
12304         (find_data_references_in_stmt): Update call to create_data_ref.
12305         (graphite_find_data_references_in_stmt): Same.
12306         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12307         declaration.
12308         (create_data_ref): Same.
12309         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12310         call to create_data_ref.
12311
12312 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12313
12314         * graphite-sese-to-poly.c (build_poly_scop): Move
12315         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12316
12317 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12318
12319         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12320         VAR_DECL, PARM_DECL, and RESULT_DECL.
12321
12322 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12323
12324         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12325         in a reduction PBB.
12326         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12327         that have already been marked as PBB_IS_REDUCTION.
12328
12329 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12330
12331         * graphite-scop-detection.c (same_close_phi_node): New.
12332         (remove_duplicate_close_phi): New.
12333         (make_close_phi_nodes_unique): New.
12334         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12335
12336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12337
12338         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12339         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12340         of both data references to be the same.
12341
12342 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12343
12344         * graphite-dependences.c (build_lexicographical_constraint): Remove
12345         the gdim parameter.
12346         (build_lexicographical_constraint): Adjust call to
12347         ppl_powerset_is_empty.
12348         (dependence_polyhedron): Same.
12349         (graphite_legal_transform_dr): Same.
12350         (graphite_carried_dependence_level_k): Same.
12351         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12352         parameter.
12353         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12354
12355 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12356
12357         * graphite-sese-to-poly.c
12358         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12359         (close_phi_written_to_memory): New.
12360         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12361         and unshare_expr.
12362
12363 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12364
12365         * doc/install.texi: Update the expected version number of PPL to 0.11.
12366         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12367         #if PPL_VERSION_MINOR < 11.
12368
12369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12370
12371         * graphite-dependences.c: Include graphite-cloog-util.h.
12372         (new_poly_ddr): Inlined into dependence_polyhedron.
12373         (free_poly_ddr): Moved close by new_poly_ddr.
12374         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12375         Early return NULL when ppl_powerset_is_empty returns true.
12376         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12377         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12378         (graphite_legal_transform_dr): Call new_poly_ddr.
12379         (graphite_carried_dependence_level_k): Same.
12380         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12381         (dot_transformed_deps_stmt_1): Removed.
12382         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12383         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12384         (dot_deps_1): Call dot_deps_2.
12385         * Makefile.in (graphite-dependences.o): Add missing dependence on
12386         graphite-cloog-util.h.
12387
12388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12389
12390         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12391         (build_lexicographical_constraint): Same.
12392         (dependence_polyhedron_1): Same.
12393         (graphite_legal_transform_dr): Same.
12394         (graphite_carried_dependence_level_k): Same.
12395         * graphite-ppl.c (ppl_powerset_is_empty): New.
12396         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12397         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12398
12399 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12400
12401         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12402         the "a followed by b" relation and document it.
12403
12404 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12405
12406         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12407         iteration when the bag of constraints is empty.
12408
12409 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12410
12411         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12412
12413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12414
12415         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12416         nest and two loop depths as parameters.
12417         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12418         lst_perfect_nestify.
12419
12420 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12421
12422         * graphite-dependences.c (print_pddr): Call
12423         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12424
12425 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12426
12427         * graphite-ppl.c (debug_gmp_value): New.
12428         * graphite-ppl.h (debug_gmp_value): Declared.
12429
12430 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12431
12432         * doc/install.texi: Document availability of cloog-0.16.
12433
12434 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12435
12436         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12437         invalid postdominance info.
12438
12439 2011-01-24  Jan Hubicka  <jh@suse.cz>
12440
12441         PR c/21659
12442         * doc/extend.texi (weak pragma): Drop claim that it must
12443         appear before definition.
12444         * varasm.c (merge_weak, declare_weak): Only sanity check
12445         that DECL is not output at a time it is declared weak.
12446
12447 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12448
12449         * machmode.def: Fixed comments.
12450
12451 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12452
12453         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12454
12455 2011-01-24  Paul Koning  <ni1d@arrl.net>
12456
12457         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12458         WORDS_BIG_ENDIAN.
12459
12460 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12461
12462         PR target/46519
12463         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12464         (block_info): Add scanned and prev.
12465         (move_or_delete_vzeroupper_2): Return if the basic block
12466         has been scanned and the upper 128bit state is unchanged
12467         from the last scan.
12468         (move_or_delete_vzeroupper_1): Return true if the exit
12469         state is changed.
12470         (move_or_delete_vzeroupper): Visit basic blocks using the
12471         work-list based algorithm based on vt_find_locations in
12472         var-tracking.c.
12473
12474         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12475
12476 2011-01-24  Nick Clifton  <nickc@redhat.com>
12477
12478         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12479         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12480         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12481         then define __v850e1__.
12482         * doc/invoke.texi: Document -mv850es.
12483
12484 2011-01-24  Richard Henderson  <rth@redhat.com>
12485
12486         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12487         compound unordered comparisons.
12488         * config/rx/rx.c (rx_split_fp_compare): Remove.
12489         * config/rx/rx-protos.h: Update.
12490         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12491         (cbranchsf4): Don't call rx_split_fp_compare.
12492         (*cbranchsf4): Use rx_split_cbranch.
12493         (*cmpsf): Don't accept "i" constraint.
12494         (*conditional_branch): Only valid after reload.
12495         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12496
12497 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12498
12499         PR target/47385
12500         * config/rs6000/altivec.md (vector constant splitters): Add
12501         support for creating vector single precision constants if -mvsx is
12502         used and we would create the constant using Altivec primitives.
12503
12504 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12505             Richard Sandiford  <rdsandiford@googlemail.com>
12506
12507         PR rtl-optimization/47166
12508         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12509         mechanism for PRE_MODIFY and POST_MODIFY.
12510         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12511         reloadreg.
12512
12513 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12514
12515         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12516
12517 2011-01-22  Jan Hubicka  <jh@suse.cz>
12518
12519         PR lto/47333
12520         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12521
12522 2011-01-22  Jan Hubicka  <jh@suse.cz>
12523
12524         PR tree-optimization/43884
12525         PR lto/44334
12526         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12527         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12528
12529 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12530
12531         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12532         * config/s390/s390.c (s390_register_move_cost,
12533         s390_memory_move_cost): New.
12534         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12535
12536 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12537
12538         PR middle-end/47401
12539         * except.c (sjlj_assign_call_site_values): Move setting the
12540         crtl->uses_eh_lsda flag to ...
12541         (sjlj_mark_call_sites): ... here.
12542         (sjlj_emit_function_enter): Support NULL dispatch label.
12543         (sjlj_build_landing_pads): In a function with no landing pads
12544         that still has must-not-throw regions, generate code to register
12545         a personality function with empty LSDA.
12546
12547 2011-01-21  Richard Henderson  <rth@redhat.com>
12548
12549         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12550
12551         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12552
12553         * compare-elim.c: New file.
12554         * Makefile.in (OBJS-common): Add it.
12555         (compare-elim.o): New.
12556         * common.opt (fcompare-elim): New.
12557         * opts.c (default_options_table): Add OPT_fcompare_elim.
12558         * tree-pass.h (pass_compare_elim_after_reload): New.
12559         * passes.c (init_optimization_passes): Add it.
12560         * recog.h: Protect against re-inclusion.
12561         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12562         * doc/invoke.texi (-fcompare-elim): Document it.
12563         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12564         * doc/tm.texi: Rebuild.
12565
12566 2011-01-22  Nick Clifton  <nickc@redhat.com>
12567
12568         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12569         rx_split_fp_compare.
12570
12571 2011-01-22  Nick Clifton  <nickc@redhat.com>
12572
12573         * config/rx/rx.md (UNSPEC_CONST): New.
12574         (deallocate_and_return): Wrap the amount popped off the stack in
12575         an UNSPEC_CONST in order to stop it being rejected by
12576         -mmax-constant-size.
12577         (pop_and_return): Add a "(return)" rtx.
12578         (call): Drop the immediate operand.
12579         (call_internal): Likewise.
12580         (call_value): Likewise.
12581         (call_value_internal): Likewise.
12582         (sibcall_internal): Likewise.
12583         (sibcall_value_internal): Likewise.
12584         (sibcall): Likewise.  Generate an explicit call using
12585         sibcall_internal.
12586         (sibcall_value): Likewise.
12587         (mov<>): FAIL if a constant operand is not legitimate.
12588         (addsi3_unpsec): New pattern.
12589
12590         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12591         (ok_for_max_constant): New function.
12592         (gen_safe_add): New function.
12593         (rx_expand_prologue): Use gen_safe_add.
12594         (rx_expand_epilogue): Likewise.
12595         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12596         UNSPEC CONSTs.
12597
12598 2011-01-21  Jeff Law  <law@redhat.com>
12599
12600         PR tree-optimization/47053
12601         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12602         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12603         statements are deleted.
12604         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12605         is nonempty, then purge dead edges and cleanup the CFG.
12606
12607 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12608
12609         PR debug/47402
12610         Temporarily revert:
12611         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12612         PR debug/47106
12613         * tree-dfa.c (create_var_ann): Mark variable as used.
12614
12615 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12616
12617         PR middle-end/45566
12618         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12619         notes from other section in hot/cold partitioning even if
12620         last_action is -3.  Increment call_site_base.
12621
12622         PR rtl-optimization/47366
12623         * fwprop.c (forward_propagate_into): Return bool.  If
12624         any changes are made, -fnon-call-exceptions is used and
12625         REG_EH_REGION note is present, call purge_dead_edges
12626         and return true if it purged anything.
12627         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12628         any EH edges were purged.
12629
12630 2011-01-21  Jeff Law  <law@redhat.com>
12631
12632         PR rtl-optimization/41619
12633         * caller-save.c (setup_save_areas): Break out code to determine
12634         which hard regs are live across calls by examining the reload chains
12635         so that it is always used.
12636         Eliminate code which checked REG_N_CALLS_CROSSED.
12637
12638 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12639
12640         PR tree-optimization/47355
12641         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12642         NOP has non-debug uses beyond PHIs in new_bb.
12643
12644 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12645
12646         PR debug/47106
12647         * cfgexpand.c (account_used_vars_for_block): Only account vars
12648         that are annotated as used.
12649         (estimated_stack_frame_size): Don't set TREE_USED.
12650         * tree-dfa.c (create_var_ann): Mark variable as used.
12651
12652 2011-01-21  Richard Guenther  <rguenther@suse.de>
12653
12654         PR middle-end/47395
12655         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12656
12657 2011-01-21  Richard Guenther  <rguenther@suse.de>
12658
12659         PR tree-optimization/47365
12660         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12661         (vn_reference_lookup_pieces): Adjust.
12662         (vn_reference_lookup): Likewise.
12663         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12664         (vn_reference_lookup_3): Only look through kills if in
12665         VN_WALKREWRITE mode.
12666         (vn_reference_lookup_pieces): Adjust.
12667         (vn_reference_lookup): Likewise.
12668         (visit_reference_op_load): Likewise.
12669         (visit_reference_op_store): Likewise.
12670         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12671         (compute_avail): Likewise.
12672         (eliminate): Likewise.
12673
12674 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12675
12676         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12677         DECL_IGNORED_P non-reg vars if they are used.
12678
12679         PR tree-optimization/47391
12680         * varpool.c (const_value_known_p): Return false if
12681         decl is volatile.
12682
12683 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12684
12685         PR bootstrap/47215
12686         * config/i386/i386.c (ix86_local_alignment): Handle
12687         case for va_list_type_node is nil.
12688         (ix86_canonical_va_list_type): Likewise.
12689
12690 2011-01-21  Alan Modra  <amodra@gmail.com>
12691
12692         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12693         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12694
12695 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12696
12697         * config/arm/arm.md (define_attr type): Rename f_load
12698         and f_store to f_fpa_load and f_fpa_store. Update.
12699         (write_conflict): Deal with rename fallout.
12700         (*push_fp_multi): Likewise.
12701         * config/arm/fpa.md (f_load): Use f_fpa_load.
12702         (f_store): Use f_fpa_store.
12703         (*movsf_fpa): Likewise.
12704         (*movdf_fpa): Likewise.
12705         (*movxf_fpa): Likewise.
12706         (*thumb2_movsf_fpa): Likewise.
12707         (*thumb2_movdf_fpa): Likewise.
12708         (*thumb2_movxf_fpa): Likewise.
12709         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12710         f_loadd and f_stored.
12711         (*thumb2_movdi_vfp): Likewise.
12712         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12713         (*thumb2_movsi_vfp): Likewise.
12714         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12715         Use f_loads instead of f_load.
12716         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12717
12718 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12719
12720         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12721         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12722         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12723         (xtensa_mode_dependent_address_p): New function.
12724         (constantpool_address_p): Make static. Change return type to bool.
12725         Change argument type to const_rtx. Use CONST_INT_P predicate.
12726
12727 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12728
12729         PR debug/46583
12730         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12731
12732 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12733
12734         PR debug/47283
12735         * cfgexpand.c (expand_debug_expr): Instead of generating
12736         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12737         etc. handling.
12738
12739 2011-01-20  Richard Guenther  <rguenther@suse.de>
12740
12741         PR middle-end/47370
12742         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12743         the pointer operand of MEM_REFs.
12744
12745 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12746
12747         PR tree-optimization/46130
12748         * ipa-split.c (consider_split): If return_bb contains non-virtual
12749         PHIs other than for retval or if split_function would not adjust it,
12750         refuse to split.
12751
12752 2011-01-20  Richard Guenther  <rguenther@suse.de>
12753
12754         PR tree-optimization/47167
12755         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12756         Revert previous change, only avoid enumeral type changes.
12757
12758 2011-01-19  Mike Stump  <mikestump@comcast.net>
12759
12760         * doc/tm.texi.in (BRANCH_COST): Englishify.
12761         * doc/tm.texi (BRANCH_COST): Likewise.
12762
12763 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12764
12765         PR c++/47291
12766         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12767         (gen_scheduled_generic_parms_dies): New functions.
12768         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12769         generation for the end of CU compilation.
12770         (dwarf2out_finish): Generate template parameters DIEs here.
12771
12772 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12773
12774         PR debug/46240
12775         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12776         debug bind stmt on merge edges.
12777
12778 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12779
12780         PR debug/47079
12781         PR debug/46724
12782         * function.c (instantiate_expr): Instantiate incoming rtl of
12783         implicit arguments, and recurse on VALUE_EXPRs.
12784         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12785         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12786
12787 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12788
12789         * c-parser.c (c_parser_for_statement): Initialize
12790         collection_expression.
12791
12792 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12793
12794         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12795
12796 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12797
12798         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12799         (LINK_SHLIB_SPEC): Don't use %(link_path).
12800         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12801
12802 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12803
12804         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12805         (NO_SHARED_LIB_SUPPORT): Remove.
12806         (LINK_SHLIB_SPEC): Remove one conditional definition.
12807
12808 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12809
12810         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12811         %{call_shared}.
12812         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12813         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12814         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12815         %{call_shared} and conditionals on these options not being passed.
12816         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12817         %{call_shared}.
12818
12819 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12820
12821         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12822         simplify.
12823
12824         * ipa-split.c: Spelling fixes.
12825
12826 2011-01-19  Richard Henderson  <rth@redhat.com>
12827
12828         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12829         (*mulsi3): Likewise.
12830
12831         * longlong.h [__mn10300__] (count_leading_zeros): New.
12832         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12833         [__mn10300__] (add_ssaaaa, subddmmss): New.
12834         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12835         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12836
12837 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12838
12839         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12840
12841 2011-01-19  Richard Henderson  <rth@redhat.com>
12842
12843         * config/mn10300/mn10300.md (addsi3_flags): New.
12844         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12845         (subsi3_flags, subc_internal, subdi3): New.
12846         (subdi3_internal, *subdi3_degenerate): New.
12847         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12848
12849         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12850         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12851         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12852         * config/mn10300/mn10300-protos.h: Update.
12853         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12854         (return_ret): Likewise.  Rename from return_internal_regs.
12855         (return_internal): Remove.
12856
12857         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12858         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12859         (mn10300_legitimate_constant_p): Likewise.
12860         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12861         (mn10300_frame_size): New.
12862         (mn10300_expand_prologue): Use it.
12863         (mn10300_expand_epilogue): Likewise.
12864         (mn10300_initial_offset): Likewise.
12865         * config/mn10300/mn10300-protos.h: Update.
12866         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12867         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12868         (prologue, epilogue, return_internal): Tidy output code.
12869         (mn10300_store_multiple_operation, return): Likewise.
12870         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12871         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12872         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12873         (load_pic, am33_load_pic): New.
12874         (mn10300_load_pic0, mn10300_load_pic1): New.
12875
12876         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12877         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12878         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12879         (cc_flags_for_mode, cc_flags_for_code): New.
12880         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12881         overflow flag is not valid.  Validate that the flags we need
12882         for the comparison are valid.
12883         (mn10300_output_cmp): Remove.
12884         (mn10300_output_add): New.
12885         (mn10300_select_cc_mode): Use cc_flags_for_code.
12886         (mn10300_split_cbranch): New.
12887         (mn10300_match_ccmode): New.
12888         (mn10300_split_and_operand_count): New.
12889         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12890         to the function.
12891         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12892         (addsi3): ... here.  Use mn10300_output_add.
12893         (*addsi3_flags): New.
12894         (*am33_subsi3, *mn10300_subsi3): Merge...
12895         (subsi3): ... here.  Use attribute isa.
12896         (*subsi3_flags): New.
12897         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12898         when possible.
12899         (*am33_andsi3, *mn10300_andsi3): Merge...
12900         (andsi3): ... here.
12901         (*andsi3_flags): New.
12902         (andsi3 splitters): New.
12903         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12904         (iorsi3): ... here.
12905         (*iorsi3_flags): New.
12906         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12907         (xorsi3): ... here.
12908         (*xorsi3_flags): New.
12909         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12910         (one_cmplsi2): ... here.
12911         (*one_cmplsi2_flags): New.
12912         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12913         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12914         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12915         use matching constraints to eliminate a self-comparison.
12916         (*integer_conditional_branch): Rename from integer_conditional_branch.
12917         Use int_mode_flags to match CC_REG.
12918         (*cbranchsi4_btst, *btstsi): New.
12919         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12920         mn10300_split_cbranch.
12921         (*am33_cmpsf): Rename from am33_cmpsf.
12922         (*float_conditional_branch): Rename from float_conditional_branch.
12923         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12924         (zero_extendqisi2): ... here.
12925         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12926         (zero_extendhisi2): ... here.
12927         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12928         (extendqisi2): ... here.
12929         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12930         (extendhisi2): ... here.
12931         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12932         (ashlsi3): ... here.
12933         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12934         (lshrsi3): ... here.
12935         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12936         (ashrsi3): ... here.
12937         (consecutive add peephole): Remove.
12938         * config/mn10300/predicates.md (label_ref_operand): New.
12939         (int_mode_flags): New.
12940         (CCZN_comparison_operator): New.
12941
12942         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12943         (throughput_42_latency_43): New reservation.
12944         (mulsidi3, umulsidi3): New expanders.
12945         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12946         the MDR register to allocation; separately allocate the low and
12947         high parts of the DImode result.
12948         (umulsidi3_internal): Similarly.
12949         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12950         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12951         (udivsi3, umodsi3): Remove.
12952         (udivmodsi4, divmodsi4): New expanders.
12953         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12954         (*divmodsi4): Simiarly.
12955         (ext_internal): New.
12956
12957         * config/mn10300/constraints.md ("z"): New constraint.
12958         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12959         (FIXED_REGISTERS): Don't fix MDR.
12960         (CALL_USED_REGSITERS): Reformat nicely.
12961         (REG_ALLOC_ORDER): Add MDR.
12962         (enum regclass): Add MDR_REGS.
12963         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12964         (IRA_COVER_CLASSES): Add MDR_REGS.
12965         (REGNO_REG_CLASS): Handle MDR_REG.
12966         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12967         (mn10300_register_move_cost): Likewise.
12968         * config/mn10300/mn10300.md (MDR_REG): New.
12969         (*movsi_internal): Handle moves to/from MDR_REGS.
12970
12971         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12972         POST_MODIFY.
12973         (mn10300_secondary_reload): Tidy combination reload classes.
12974         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12975         addresses for AM33.  Allow symbolic offsets for reg+imm.
12976         (mn10300_regno_in_class_p): New.
12977         (mn10300_legitimize_reload_address): New.
12978         * config/mn10300/mn10300.h (enum reg_class): Remove
12979         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12980         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12981         SP_OR_GENERAL_REGS.
12982         (REG_CLASS_NAMES): Update to match.
12983         (REG_CLASS_CONTENTS): Likewise.
12984         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12985         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12986         (REGNO_IN_RANGE_P): Remove.
12987         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12988         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12989         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12990         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12991         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12992         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12993         (REGNO_GENERAL_P): New.
12994         (HAVE_POST_MODIFY_DISP): New.
12995         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12996         (LEGITIMIZE_RELOAD_ADDRESS): New.
12997         * config/mn10300/mn10300-protos.h: Update.
12998
12999         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13000         DATA_REGS for AM33 stack-pointer destination.
13001         (mn10300_preferred_output_reload_class): Likewise.
13002         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13003         into a form appropriate for ...
13004         (TARGET_SECONDARY_RELOAD): New.
13005         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13006         * config/mn10300/mn10300-protos.h: Update.
13007         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13008         reload_insi; use the "A" constraint for the scratch; handle AM33
13009         moves of sp to non-address registers.
13010
13011         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13012         (*movqi_internal): ... here.
13013         (*am33_movhi, *mn10300_movhi): Merge into...
13014         (*movhi_internal): ... here.
13015         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13016         as the source/destination of moves from/to SP.
13017         (movsf): Only allow for AM33-2.
13018         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13019         any integer constant constraint.  Only allow for AM33-2.  Tidy
13020         all of the alternative outputs.
13021         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13022         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13023         for MN103.
13024         (udivsi3, umodsi3): New patterns for MN103 only.
13025
13026 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13027
13028         * doc/tm.texi.in: Spell out that a lack of register class unions
13029         can lead to ICEs.
13030         * doc/tm.texi: Regenerate.
13031
13032 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13033
13034         PR rtl-optimization/47337
13035         * dce.c (check_argument_store): New function.
13036         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13037
13038         PR tree-optimization/47290
13039         * tree-eh.c (infinite_empty_loop_p): New function.
13040         (cleanup_empty_eh): Use it.
13041
13042 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13043
13044         PR target/46997
13045         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13046         (a64_expand_widen_sum): Ditto.
13047         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13048         (vec_extract_evenodd_help): Ditto.
13049         (vec_extract_evenv4hi): Ditto.
13050         (vec_extract_oddv4hi): Ditto.
13051         (vec_extract_evenv2si): Ditto.
13052         (vec_extract_oddv2si): Ditto.
13053         (vec_extract_evenv2sf): Ditto.
13054         (vec_extract_oddv2sf): Ditto.
13055         (vec_pack_trunc_v4hi: Ditto.
13056         (vec_pack_trunc_v2si): Ditto.
13057         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13058         (vec_interleave_highv8qi): Ditto.
13059         (mix1_r): Ditto.
13060         (vec_extract_oddv8qi): Ditto.
13061         (vec_interleave_lowv4hi): Ditto.
13062         (vec_interleave_highv4hi): Ditto.
13063         (vec_interleave_lowv2si): Ditto.
13064         (vec_interleave_highv2si): Ditto.
13065
13066 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13067
13068         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13069         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13070         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13071         (pa_c_mode_for_suffix): New.
13072         (TARGET_EXPAND_BUILTIN): Define.
13073         (TARGET_C_MODE_FOR_SUFFIX): Define.
13074         (pa_builtins): Define.
13075         (pa_init_builtins): Register __float128 type and init new support
13076         builtins.
13077         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13078         * config/pa/quadlib.c (_U_Qfcopysign): New.
13079
13080 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13081
13082         PR middle-end/46894
13083         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13084         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13085         are defined.
13086
13087 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13088
13089         PR tree-optimization/47179
13090         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13091         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13092
13093 2011-01-18  Richard Guenther  <rguenther@suse.de>
13094
13095         PR rtl-optimization/47216
13096         * emit-rtl.c: Include tree-flow.h.
13097         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13098         of replicating it with different semantics.
13099         * Makefile.in (emit-rtl.o): Adjust.
13100
13101 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13102
13103         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13104         (cortex_a9_dp): Handle neon types correctly.
13105
13106 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13107
13108         PR rtl-optimization/47299
13109         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13110         subtarget.  Use normal multiplication if both operands are constants.
13111         * expmed.c (expand_widening_mult): Don't try to optimize constant
13112         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13113         before using it.
13114
13115 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13116
13117         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13118         spacing after 'e.g.', typos, comma, hyphenation.
13119
13120 2011-01-17  Richard Henderson  <rth@redhat.com>
13121
13122         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13123         (rx_restricted_mem_operand): New.
13124         (rx_shift_operand): Use register_operand.
13125         (rx_source_operand, rx_compare_operand): Likewise.
13126         * config/rx/rx.md (addsi3_flags): New expander.
13127         (adddi3): Rewrite as expander.
13128         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13129         (subsi3_flags): New expander.
13130         (subdi3): Rewrite as expander.
13131         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13132
13133         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13134         (rx_init_builtins): Remove sat builtin.
13135         (rx_expand_builtin): Likewise.
13136         * config/rx/rx.md (ssaddsi3): New.
13137         (*sat): Rename from sat.  Represent the CC_REG input.
13138
13139         * config/rx/predicates.md (rshift_operator): New.
13140         * config/rx/rx.c (rx_expand_insv): Remove.
13141         * config/rx/rx-protos.h: Update.
13142         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13143         operand to the canonical position.
13144         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13145         (*bitclr, *bitclr_in_memory): Similarly.
13146         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13147         (insv): Retain the zero_extract in the expansion.
13148
13149         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13150         (bswaphi2, bitinvert, revw): Likewise.
13151
13152         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13153         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13154         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13155         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13156         (bitset, bitset_in_memory): Likewise.
13157         (bitinvert, bitinvert_in_memory): Likewise.
13158         (bitclr, bitclr_in_memory): Likewise.
13159         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13160         (rx_strend, rx_cmpstrn): Likewise.
13161         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13162         (bitop peep2 patterns): Remove.
13163
13164         * config/rx/rx.c (rx_match_ccmode): New.
13165         * config/rx/rx-protos.h: Update.
13166         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13167         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13168         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13169         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13170         (fix_truncsfsi2, floatsisf2): Likewise.
13171         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13172         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13173         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13174         (*subsi3_flags, *xorsi3_flags): New.
13175
13176         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13177
13178         * config/rx/rx.c (rx_print_operand): Remove workaround for
13179         unsplit comparison operations.
13180
13181         * config/rx/rx.md (movsicc): Split after reload.
13182         (*movsicc): Merge *movsieq and *movsine via match_operator.
13183         (*stcc): New pattern.
13184
13185         * config/rx/rx.c (rx_float_compare_mode): Remove.
13186         * config/rx/rx.h (rx_float_compare_mode): Remove.
13187         * config/rx/rx.md (cstoresi4): Split after reload.
13188         (*sccc): New pattern.
13189
13190         * config/rx/predicates.md (label_ref_operand): New.
13191         (rx_z_comparison_operator): New.
13192         (rx_zs_comparison_operator): New.
13193         (rx_fp_comparison_operator): New.
13194         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13195         Validate that the flags are set properly for the comparison.
13196         (rx_gen_cond_branch_template): Remove.
13197         (rx_cc_modes_compatible): Remove.
13198         (mode_from_flags): New.
13199         (flags_from_code): Rename from flags_needed_for_conditional.
13200         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13201         (rx_select_cc_mode): Likewise.
13202         (rx_split_fp_compare): New.
13203         (rx_split_cbranch): New.
13204         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13205         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13206         (*cbranchsf4): Similarly.
13207         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13208         match_operator and rx_split_cbranch.
13209         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13210         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13211         (*cmpsi): Rename from cmpsi.
13212         (*tstsi): Rename from tstsi.
13213         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13214         (*conditional_branch): Rename from conditional_branch.
13215         (*reveresed_conditional_branch): Remove.
13216         (b<code>): Remove expander.
13217         * config/rx/rx-protos.h: Update.
13218
13219         * config/rx/rx.c (rx_compare_redundant): Remove.
13220         * config/rx/rx.md (cmpsi): Don't use it.
13221         * config/rx/rx-protos.h: Update.
13222
13223         * config/rx/rx-modes.def (CC_F): New mode.
13224         * config/rx/rx.c (rx_select_cc_mode): New.
13225         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13226         * config/rx/rx-protos.h: Update.
13227
13228 2011-01-17  Richard Henderson  <rth@redhat.com>
13229
13230         * except.c (dump_eh_tree): Fix stray ; after for statement.
13231
13232 2011-01-17  Richard Guenther  <rguenther@suse.de>
13233
13234         PR tree-optimization/47313
13235         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13236         handling before copying the body.  Properly deal with
13237         by-reference result in SSA form.
13238
13239 2011-01-17  Ian Lance Taylor  <iant@google.com>
13240
13241         PR target/47219
13242         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13243         (struct_value_alias_set): Don't define.
13244         (sparc_option_override): Don't set sparc_sr_alias_set and
13245         struct_value_alias_set.
13246         (save_or_restore_regs): Use gen_frame_mem rather than calling
13247         set_mem_alias_set.
13248         (sparc_struct_value_rtx): Likewise.
13249
13250 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13251
13252         PR target/47318
13253         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13254         (_mm_maskstore_pd): Likewise.
13255         (_mm_maskload_ps): Likewise.
13256         (_mm_maskstore_ps): Likewise.
13257         (_mm256_maskload_pd): Change mask to __m256i.
13258         (_mm256_maskstore_pd): Likewise.
13259         (_mm256_maskload_ps): Likewise.
13260         (_mm256_maskstore_ps): Likewise.
13261
13262         * config/i386/i386-builtin-types.def: Updated.
13263         (ix86_expand_special_args_builtin): Likewise.
13264
13265         * config/i386/i386.c (bdesc_special_args): Update
13266         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13267         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13268         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13269         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13270
13271         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13272         Use <avxpermvecmode> on mask register.
13273         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13274
13275 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13276             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13277             Eric Botcazou  <ebotcazou@adacore.com>
13278
13279         PR target/46655
13280         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13281         if <= USHRT_MAX in 32-bit mode.
13282
13283 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13284
13285         * doc/install.texi (Configuration, Specific): Wrap long
13286         lines in examples.  Allow line wrapping in long options
13287         and URLs where beneficial for PDF output.
13288
13289 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13290
13291         * config/mips/mips.c (mips_classify_symbol): Don't return
13292         SYMBOL_PC_RELATIVE for nonlocal labels.
13293
13294 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13295
13296         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13297
13298 2011-01-15  Jan Hubicka  <jh@suse.cz>
13299
13300         PR tree-optimization/47276
13301         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13302         declarations as needed.
13303
13304 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13305
13306         * common.opt (fdevirtualize): New flag.
13307         * doc/invoke.texi (Option Summary): Document it.
13308         * opts.c (default_options_table): Add devirtualize flag.
13309         * ipa-prop.c (detect_type_change): Return immediately if
13310         devirtualize flag is not set.
13311         (detect_type_change_ssa): Likewise.
13312         (compute_known_type_jump_func): Likewise.
13313         (ipa_analyze_virtual_call_uses): Likewise.
13314
13315 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13316
13317         PR tree-optimization/45934
13318         PR tree-optimization/46302
13319         * ipa-prop.c (type_change_info): New type.
13320         (stmt_may_be_vtbl_ptr_store): New function.
13321         (check_stmt_for_type_change): Likewise.
13322         (detect_type_change): Likewise.
13323         (detect_type_change_ssa): Likewise.
13324         (compute_complex_assign_jump_func): Check for dynamic type change.
13325         (compute_complex_ancestor_jump_func): Likewise.
13326         (compute_known_type_jump_func): Likewise.
13327         (compute_scalar_jump_functions): Likewise.
13328         (ipa_analyze_virtual_call_uses): Likewise.
13329         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13330
13331 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13332
13333         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13334         * config/i386/i386.opt (msse5): New Alias.
13335
13336 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13337
13338         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13339         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13340         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13341         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13342
13343 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13346         -mcpu options.
13347         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13348         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13349         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13350         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13351         Likewise.
13352         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13353
13354 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13355
13356         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13357
13358 2011-01-14  Mike Stump  <mikestump@comcast.net>
13359
13360         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13361         * config/fr30/fr30.md: Likweise
13362         (movsi_push): Likewise.
13363         (movsi_pop): Likewise.
13364         (enter_func): Likewise.
13365         * config/moxie/moxie.md (movsi_push): Likewise.
13366         (movsi_pop): Likewise.
13367
13368 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13369
13370         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13371         %{no_archive} %{exact_version}.
13372         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13373         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13374         %{no_archive} %{exact_version}.
13375         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13376         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13377         * config/mips/vxworks.h: Likewise.
13378
13379 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13380
13381         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13382
13383 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13384
13385         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13386         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13387
13388 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13389
13390         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13391         -nodefaultlib.
13392
13393 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13394
13395         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13396         for mcpu not cpu.
13397         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13398         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13399         not cpu.
13400         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13401         Don't handle -shlib.
13402
13403 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13406         (CC1_SPEC): Don't handle -profile.
13407
13408 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13409
13410         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13411         * config/mips/mips.h (CC1_SPEC): Likewise.
13412
13413 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13414
13415         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13416         * config/mips/mips.h (CC1_SPEC): Likewise.
13417
13418 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13419
13420         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13421         * config/m32r/linux.h (LINK_SPEC): Likewise.
13422         * config/mips/linux.h (LINK_SPEC): Likewise.
13423         * config/mips/linux64.h (LINK_SPEC): Likewise.
13424         * config/sparc/linux.h (LINK_SPEC): Likewise.
13425         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13426         LINK_SPEC): Likewise.
13427         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13428
13429 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13430
13431         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13432         %{version:-v}.
13433         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13434
13435 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13436
13437         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13438         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13439
13440 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13441
13442         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13443
13444 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13445
13446         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13447         supports -Bstatic/-Bdynamic.
13448         * configure: Regenerate.
13449
13450 2011-01-14  Jan Hubicka  <jh@suse.cz>
13451             Jack Howarth  <howarth@bromo.med.uc.edu>
13452
13453         PR target/46037
13454         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13455         when checking debug_info_level. Test write_symbols instead of
13456         debug_hooks->var_location when setting flag_var_tracking_uninit.
13457
13458 2011-01-14  Richard Guenther  <rguenther@suse.de>
13459
13460         PR tree-optimization/47179
13461         * target.def (ref_may_alias_errno): New target hook.
13462         * targhooks.h (default_ref_may_alias_errno): Declare.
13463         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13464         (default_ref_may_alias_errno): New function.
13465         * target.h (struct ao_ref_s): Declare.
13466         * tree-ssa-alias.c: Include target.h.
13467         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13468         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13469         (targhooks.o): Likewise.
13470         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13471         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13472
13473 2011-01-14  Richard Guenther  <rguenther@suse.de>
13474
13475         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13476
13477 2011-01-14  Richard Guenther  <rguenther@suse.de>
13478
13479         PR tree-optimization/47280
13480         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13481         return CFG changes.
13482         (tree_ssa_forward_propagate_single_use_vars): Deal with
13483         CFG changes from associate_plusminus.
13484
13485 2011-01-14  Richard Guenther  <rguenther@suse.de>
13486
13487         PR middle-end/47281
13488         Revert
13489         2011-01-11  Richard Guenther  <rguenther@suse.de>
13490
13491         PR tree-optimization/46076
13492         * tree-ssa.c (useless_type_conversion_p): Conversions from
13493         unprototyped to empty argument list function types are useless.
13494
13495 2011-01-14  Richard Guenther  <rguenther@suse.de>
13496
13497         PR tree-optimization/47286
13498         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13499
13500 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13501
13502         PR middle-end/46823
13503         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13504
13505 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13506
13507         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13508         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13509         * config/xtensa/xtensa.c (xtensa_libcall_value,
13510         xtensa_function_value_regno_p): New functions.
13511         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13512
13513 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13514
13515         PR c++/47213
13516         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13517         PE specific hook.
13518         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13519         New function prototype.
13520         * config/i386/winnt.c (i386_pe_assemble_visibility):
13521         Warn only if attribute was specified by user.
13522
13523 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13524
13525         PR target/47251
13526         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13527         floating point.
13528         (floatunsdidf2_fcfidu): Ditto.
13529
13530 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13531
13532         * config/s390/s390.c (print_operand_address): Replace 'error' with
13533         'output_operand_lossage'.
13534         (print_operand): Likewise.
13535
13536 2011-01-13  Jeff Law  <law@redhat.com>
13537
13538         PR rtl-optimization/39077
13539         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13540         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13541         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13542         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13543         * gcse.c (prune_insertions_deletions): New function.
13544         (compute_pre_data): Use it.
13545
13546 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13547
13548         PR debug/PR46973
13549         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13550         static function.
13551         (prune_unused_types_mark): Use it.
13552
13553 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13554
13555         PR rtl-optimization/45352
13556         * sel-sched.c: Update copyright years.
13557         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13558         in the advancing loop when we have issued issue_rate insns.
13559
13560 2011-01-12  Richard Henderson  <rth@redhat.com>
13561
13562         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13563         (TARGET_MD_ASM_CLOBBERS): New.
13564
13565         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13566         (TARGET_DELEGITIMIZE_ADDRESS): New.
13567
13568         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13569         (clzsi2, *bsch): New patterns.
13570
13571         * config/mn10300/mn10300.md (INT): New mode iterator.
13572         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13573
13574         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13575         flag_split_wide_types.
13576
13577         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13578         (mn10300_trampoline_init): Rewrite without a template, an immediate
13579         load and a direct branch.
13580         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13581
13582 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13583
13584         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13585         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13586         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13587         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13588
13589 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13590
13591         PR debug/47209
13592         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13593         of type.
13594
13595 2011-01-12  Jan Hubicka  <jh@suse.cz>
13596
13597         PR driver/47244
13598         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13599         (PLUGIN_COND_CLOSE): New macro.
13600         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13601
13602 2011-01-12  Richard Guenther  <rguenther@suse.de>
13603
13604         PR lto/47259
13605         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13606         register variables in a MEM_REF.
13607
13608 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13609
13610         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13611         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13612         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13613         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13614         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13615         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13616         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13617         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13618         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13619         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13620         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13621         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13622         * config/gnu-user.h: New.  Copied from linux.h.
13623         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13624         GNU_USER_TARGET_STARTFILE_SPEC.
13625         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13626         GNU_USER_TARGET_ENDFILE_SPEC.
13627         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13628         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13629         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13630         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13631         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13632         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13633         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13634         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13635         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13636         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13637         * config/arm/linux-eabi.h (CC1_SPEC): Use
13638         GNU_USER_TARGET_CC1_SPEC.
13639         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13640         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13641         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13642         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13643         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13644         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13645         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13646         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13647
13648 2011-01-12  Richard Guenther  <rguenther@suse.de>
13649
13650         PR other/46946
13651         * doc/invoke.texi (ffast-math): Document it is turned on
13652         with -Ofast.
13653
13654 2011-01-12  Jan Hubicka  <jh@suse.cz>
13655
13656         PR tree-optimization/47233
13657         * opts.c (common_handle_option): Disable ipa-reference with profile
13658         feedback.
13659
13660 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13661
13662         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13663         error message.
13664
13665 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13666
13667         * c-parser.c (c_lex_one_token): Updated and reindented some
13668         comments.  No changes in code.
13669
13670 2011-01-11  Ian Lance Taylor  <iant@google.com>
13671
13672         * godump.c (go_output_var): Don't output the variable if there is
13673         already a type with the same name.
13674
13675 2011-01-11  Ian Lance Taylor  <iant@google.com>
13676
13677         * godump.c (go_format_type): Don't generate float80.
13678
13679 2011-01-11  Richard Henderson  <rth@redhat.com>
13680
13681         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13682         declaration.  Rewrite for both speed and size.
13683         (mn10300_address_cost_1): Remove.
13684         (mn10300_register_move_cost): New.
13685         (mn10300_memory_move_cost): New.
13686         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13687         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13688         extensions, shifts, BSWAP, CLZ.
13689         (mn10300_wide_const_load_uses_clr): Remove.
13690         (TARGET_REGISTER_MOVE_COST): New.
13691         (TARGET_MEMORY_MOVE_COST): New.
13692         * config/mn10300/mn10300-protos.h: Update.
13693         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13694
13695         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13696         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13697         * config/mn10300/mn10300-protos.h: Update.
13698         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13699         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13700         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13701         (*test_int_bitfield, *test_byte_bitfield): Remove.
13702         (*bit_test, *subreg_bit_test): Remove.
13703         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13704
13705         * config/mn10300/constraints.md ("c"): Rename from "A".
13706         ("A", "D"): New constraint letters.
13707         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13708         (fmssf4, fnmasf4, fnmssf4): Likewise.
13709
13710         * config/mn10300/mn10300.md (isa): New attribute.
13711         (enabled): New attribute.
13712
13713         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13714         (abssf2, negsf2): Define only for hardware fp.
13715         (sqrtsf2): Reformat.
13716         (addsf3, subsf3, mulsf3): Merge expander and insn.
13717
13718         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13719         (DEBUGGER_AUTO_OFFSET): Remove.
13720         (DEBUGGER_ARG_OFFSET): Remove.
13721
13722         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13723         Emit register stores with the same offsets as the hardware.
13724         (mn10300_store_multiple_operation): Don't check that the register
13725         save offsets are monotonic.
13726         * config/mn10300/mn10300-protos.h: Update.
13727
13728         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13729
13730         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13731         in terms of the value on the stack, not the MDR register.
13732
13733 2011-01-11  Jan Hubicka  <jh@suse.cz>
13734
13735         PR lto/45721
13736         PR lto/45375
13737         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13738         (symbol_alias_set_destroy, symbol_alias_set_contains,
13739         propagate_aliases_backward): Declare.
13740         * lto-streamer-out.c (struct sets): New sturcture.
13741         (trivally_defined_alias): New function.
13742         (output_alias_pair_p): Rewrite.
13743         (output_unreferenced_globals): Fix output of alias pairs.
13744         (produce_symtab): Likewise.
13745         * ipa.c (function_and_variable_visibility): Set weak alias destination
13746         as needed in lto.
13747         * varasm.c (symbol_alias_set_t): Remove.
13748         (symbol_alias_set_destroy): Export.
13749         (propagate_aliases_forward, propagate_aliases_backward): New functions
13750         based on ...
13751         (compute_visible_aliases): ... this one; remove.
13752         (trivially_visible_alias): New
13753         (trivially_defined_alias): New.
13754         (remove_unreachable_alias_pairs): Rewrite.
13755         (finish_aliases_1): Reorganize code checking if alias is defined.
13756         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13757         in LTO mode.
13758
13759 2011-01-11  Richard Guenther  <rguenther@suse.de>
13760
13761         PR tree-optimization/46076
13762         * tree-ssa.c (useless_type_conversion_p): Conversions from
13763         unprototyped to empty argument list function types are useless.
13764
13765 2011-01-11  Richard Guenther  <rguenther@suse.de>
13766
13767         PR middle-end/45235
13768         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13769         volatile MEMs as MEM_READONLY_P.
13770
13771 2011-01-11  Richard Guenther  <rguenther@suse.de>
13772
13773         PR tree-optimization/47239
13774         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13775
13776 2011-01-11  Jeff Law  <law@redhat.com>
13777
13778         PR tree-optimization/47086
13779         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13780         IVs from statements that might throw.
13781
13782 2011-01-10  Jan Hubicka  <jh@suse.cz>
13783
13784         PR lto/45375
13785         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13786
13787 2011-01-10  Jan Hubicka  <jh@suse.cz>
13788
13789         PR lto/45375
13790         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13791         when correcting profile.
13792
13793 2011-01-10  Jan Hubicka  <jh@suse.cz>
13794
13795         PR lto/46083
13796         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13797         DECL_FINI_PRIORITY.
13798         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13799         Restore DECL_FINI_PRIORITY.
13800
13801 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13802
13803         * doc/gimple.texi: Fix quoting of multi-word return values in
13804         @deftypefn statements.  Ensure presence of return value.  Wrap
13805         overlong @deftypefn lines.
13806         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13807         descriptions of removed functions.
13808         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13809         of multi-word return value in @deftypefn statement.
13810
13811 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13812
13813         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13814         (Conditional Expressions, Logical Operators)
13815         (Statement and operand traversals): Do not indent smallexample
13816         code.  Fix duplicate function argument in example.
13817
13818 2011-01-10  Jeff Law  <law@redhat.com>
13819
13820         PR tree-optimization/47141
13821         * ipa-split.c (split_function): Handle case where we are
13822         returning a value and the return block has a virtual operand phi.
13823
13824 2011-01-10  Jan Hubicka  <jh@suse.cz>
13825
13826         PR tree-optimization/47234
13827         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13828         (pass_feedback_split_functions): Declare.
13829         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13830         tree-profile.
13831         * ipa-split.c (gate_split_functions): Update comments; disable
13832         split-functions for profile_arc_flag and branch_probabilities.
13833         (gate_feedback_split_functions): New function.
13834         (execute_feedback_split_functions): New function.
13835         (pass_feedback_split_functions): New global var.
13836
13837 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13838
13839         PR lto/46760
13840         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13841         calling gimple_call_set_cannot_inline.
13842
13843 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13844
13845         * config/darwin-sections.def: Remove unused section.
13846
13847 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13848
13849         PR c++/47218
13850         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13851
13852 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13853
13854         PR objc/47232
13855         * c-parser.c (c_parser_declaration_or_fndef): Improved
13856         error message.
13857
13858 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13859
13860         * config/i386/winnt.c (i386_pe_start_function): Make sure
13861         to switch back to function's section.
13862
13863 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13864
13865         PR gcc/46902
13866         PR testsuite/46912
13867         * plugin.c: Move include of dlfcn.h from here...
13868         * system.h: ... to here.
13869
13870 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13871
13872         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13873         file name.
13874         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13875         two extra empty pages in PDF output.
13876
13877 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13878
13879         PR objc/47078
13880         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13881         for error recovery purposes behave as if it was not specified so
13882         that the default type is usd.
13883
13884 2011-01-07  Jan Hubicka  <jh@suse.cz>
13885
13886         PR tree-optmization/46469
13887         * ipa.c (function_and_variable_visibility): Clear needed flags on
13888         nodes with external decls; handle weakrefs merging correctly.
13889
13890 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13891
13892         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13893         not false.
13894
13895 2011-01-07  Jan Hubicka  <jh@suse.cz>
13896
13897         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13898         and no longer claim that gold is required for linker plugin.
13899         * configure: Regenerate.
13900         * gcc.c (PLUGIN_COND): New macro.
13901         (LINK_COMMAND_SPEC): Use it.
13902         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13903         * config.in (HAVE_LTO_PLUGIN): New.
13904         * configure.ac (--with-lto-plugin): New parameter; autodetect
13905         HAVE_LTO_PLUGIN.
13906
13907 2011-01-07  Jan Hubicka  <jh@suse.cz>
13908
13909         PR tree-optimization/46367
13910         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13911         when we can update original.
13912         (cgraph_mark_inline_edge): Sanity check.
13913         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13914
13915 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13916
13917         * config/spu/spu.h (ASM_COMMENT_START): Define.
13918
13919 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13920
13921         PR driver/42445
13922         * gcc.c (%>S): New.
13923         (SWITCH_KEEP_FOR_GCC): Likewise.
13924         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13925         (do_spec_1): Handle "%>".
13926
13927         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13928
13929 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13930
13931         PR target/47201
13932         * config/i386/i386.c (ix86_delegitimize_address): If
13933         simplify_gen_subreg fails, return orig_x.
13934
13935         PR bootstrap/47187
13936         * value-prof.c (gimple_stringop_fixed_value): Handle
13937         lhs of the call properly.
13938
13939 2011-01-07  Jan Hubicka  <jh@suse.cz>
13940
13941         PR lto/45375
13942         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13943
13944 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13945
13946         * target.def (function_switched_text_sections): New hook.
13947         * doc/tm.texi: Regenerated.
13948         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13949         * final.c (default_function_switched_text_sections): New.
13950         (final_scan_insn): Call function_switched_text_sections when a
13951         mid-function section change occurs.
13952         * output.h (default_function_switched_text_sections): Declare.
13953         * config/darwin-protos.h (darwin_function_switched_text_sections):
13954         Likewise.
13955         * config/darwin.c (darwin_function_switched_text_sections): New.
13956         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13957
13958 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13959
13960         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13961         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13962         the secondary code fragment when outputting for DWARF == 2.
13963
13964 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13965
13966         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13967         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13968         Remove.
13969         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13970         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13971
13972 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13973
13974         PR debug/46704
13975         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13976         when it is not empty.
13977
13978 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13979
13980         Bobcat Enablement
13981         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13982         (case ${target}): Add btver1.
13983         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13984         -march=native recognize btver1 processors.
13985         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13986         btver1 def_and_undef
13987         * config/i386/i386.c (struct processor_costs btver1_cost): New
13988         btver1 cost table.
13989         (m_BTVER1): New definition.
13990         (m_AMD_MULTIPLE): Includes m_BTVER1.
13991         (initial_ix86_tune_features): Add btver1 tune.
13992         (processor_target_table): Add btver1 entry.
13993         (static const char *const cpu_names): Add btver1 entry.
13994         (software_prefetching_beneficial_p): Add btver1.
13995         (ix86_option_override_internal): Add btver1 instruction sets.
13996         (ix86_issue_rate): Add btver1.
13997         (ix86_adjust_cost): Add btver1.
13998         * config/i386/i386.h (TARGET_BTVER1): New definition.
13999         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14000         (enum processor_type): Add PROCESSOR_BTVER1.
14001         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14002
14003 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14004
14005         PR target/43309
14006         * config/i386/i386.c (legitimize_tls_address)
14007         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14008         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14009         (tls_initial_exec_64_sun): New pattern.
14010
14011 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14012
14013         * doc/invoke.texi (Overall Options): Improve wording and markup
14014         of the description of -wrapper.
14015
14016 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14017
14018         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14019         rdynamic, threads): New Driver options.
14020
14021 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14022
14023         PR target/38118
14024         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14025         if coming from .tdata.
14026         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14027
14028 2011-01-06  Jan Hubicka  <jh@suse.cz>
14029
14030         PR lto/47188
14031         * collect2.c (main): Do not enable LTOmode when plugin is active.
14032
14033 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14034
14035         PR other/45915
14036         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14037         --version output if supported.
14038         * configure: Regenerate.
14039
14040 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14041
14042         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14043         Driver options.
14044
14045 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14046
14047         PR c/47150
14048         * c-convert.c (convert): When converting a complex expression
14049         other than COMPLEX_EXPR to a different complex type, ensure
14050         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14051         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14052         when converting COMPLEX_TYPE.
14053
14054 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14055
14056         PR tree-optimization/47139
14057         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14058         only the last reduction value is used outside the loop.  Update
14059         documentation.
14060
14061 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14062
14063         * config/rtems.opt: New.
14064         * config.gcc (*-*-rtems*): Use rtems.opt.
14065
14066 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14067
14068         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14069         processors do not support 3DNow instructions.
14070
14071 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14072
14073         * config/spu/spu.c (spu_option_override): Set parameter
14074         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14075
14076 2011-01-05  Jan Hubicka  <jh@suse.cz>
14077
14078         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14079         at the command line.
14080
14081 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14082
14083         PR lto/47162
14084         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14085         deltas on streamed outgoing edges.
14086         (output_node_opt_summary): Output info for outgoing edges only when
14087         the node is in new parameter set.
14088         (output_cgraph_opt_summary): New parameter set, passed to the two
14089         aforementioned functions.  Update its forward declaration and its
14090         callee too.
14091
14092 2011-01-05  Tom Tromey  <tromey@redhat.com>
14093
14094         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14095         operator to c_finish_omp_atomic.
14096         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14097         (build_unary_op): Update.
14098         (build_modify_expr): Update.
14099         (build_asm_expr): Update.
14100
14101 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14102
14103         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14104         newly inserted insns.
14105         (pad_bb): Likewise.
14106         (spu_emit_branch_hint): Likewise.
14107         (insert_hbrp_for_ilb_runout): Likewise.
14108         (spu_machine_dependent_reorg): Call df_finish_pass after
14109         schedule_insns returns.
14110
14111 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14112
14113         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14114
14115 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14116
14117         PR tree-optimization/47005
14118         * tree-sra.c (struct access): Add 'non_addressable' bit.
14119         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14120         (decide_one_param_reduction): Return 0 if the parameter is passed by
14121         reference and one of the accesses in the group is non_addressable.
14122
14123 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14124
14125         PR tree-optimization/47056
14126         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14127         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14128         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14129
14130 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14131
14132         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14133         initializer.  Skip view conversions from aggregate types.
14134
14135 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14136
14137         PR bootstrap/47055
14138         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14139
14140 2011-01-04  Philipp Thomas  <pth@suse.de>
14141
14142         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14143         obvious typo.
14144
14145 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14146
14147         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14148         on empty epilogue sequences.
14149
14150 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14151
14152         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14153         non-static): New Driver options.
14154
14155 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14156
14157         PR driver/47137
14158         * gcc.c (default_compilers[]): Set combinable field to 0
14159         for all assembly languages.
14160
14161 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14162
14163         * config/mips/loongson3a.md: New file.
14164         * config/mips/mips.md: Include loongson3a.md.
14165         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14166         TUNE_LOONGSON_3A.
14167
14168 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14169
14170         PR middle-end/47017
14171         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14172         instead of convert_memory_address_addr_space on the base expression.
14173
14174 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14175
14176         * config/spu/spu.c (spu_option_override): Update error text
14177         for bad -march= / -mtune= values.
14178
14179 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14180
14181         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14182         if branch-hint optimization will be performed.
14183
14184 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14185
14186         PR tree-optimization/47148
14187         * ipa-split.c (split_function): Convert arguments to
14188         DECL_ARG_TYPE if possible.
14189
14190         PR tree-optimization/47155
14191         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14192         when computing uns.
14193
14194         PR rtl-optimization/47157
14195         * combine.c (try_combine): If undobuf.other_insn becomes
14196         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14197         and set *new_direct_jump_p too.
14198
14199 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14200
14201         PR tree-optimization/47021
14202         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14203
14204 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14205
14206         * gcc.c (process_command): Update copyright notice dates.
14207         * gcov.c (print_version): Likewise.
14208         * gcov-dump.c (print_version): Likewise.
14209         * mips-tfile.c (main): Likewise.
14210         * mips-tdump.c (main): Likewise.
14211
14212 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14213
14214         PR tree-optimization/46801
14215         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14216         aggregate fields start at byte boundary instead of the bit-field flag.
14217
14218 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14219
14220         PR driver/47137
14221         * gcc.c (main): Revert revision 168407.
14222
14223 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14224
14225         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14226
14227 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14228
14229         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14230         vector optab to expand vector/scalar shift, update gimple to vector.
14231
14232 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14233
14234         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14235         a thunk.
14236
14237 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14238
14239         PR tree-optimization/46984
14240         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14241         HOST_WIDE_INT.
14242         (cgraph_create_indirect_edge): Fixed line length.
14243         (cgraph_indirect_call_info): Declare.
14244         (cgraph_make_edge_direct) Update declaration.
14245         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14246         (cgraph_create_indirect_edge): Use it.
14247         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14248         callees.
14249         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14250         the new thunk_delta representation.
14251         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14252         HOST_WIDE_INT.
14253         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14254         (ipa_read_indirect_edge_info): Likewise.
14255         * lto-cgraph.c (output_edge_opt_summary): New function.
14256         (output_node_opt_summary): Call it on all outgoing edges.
14257         (input_edge_opt_summary): New function.
14258         (input_node_opt_summary): Call it on all outgoing edges.
14259
14260 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14261
14262         PR driver/47137
14263         * gcc.c (main): Don't check have_o when settting combine_inputs.
14264
14265 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14266
14267         * regrename.c: Add general comment describing the pass.
14268         (struct du_head): Remove 'length' field.
14269         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14270         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14271         Force renaming to the preferred class (if any) in the first pass and do
14272         not consider registers that belong to it in the second pass.
14273         (create_new_chain): Do not set 'length' field.
14274         (scan_rtx_reg): Likewise.
14275
14276 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR tree-optimization/47140
14279         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14280         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14281         to bit_value_binop.
14282
14283         PR rtl-optimization/47028
14284         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14285         parm_birth_insn instead of at the beginning of first bb.
14286
14287 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14288
14289         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14290         Remove the word "see" before "@pxref".
14291         * doc/rtl.texi: Remove the word "see" before "@pxref".
14292
14293 2011-01-01  Jan Hubicka  <jh@suse.cz>
14294
14295         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14296         memory.
14297
14298 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14299
14300         PR target/38662
14301         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14302
14303 \f
14304 Copyright (C) 2011 Free Software Foundation, Inc.
14305
14306 Copying and distribution of this file, with or without modification,
14307 are permitted in any medium without royalty provided the copyright
14308 notice and this notice are preserved.