OSDN Git Service

2011-05-12 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-12  Richard Guenther  <rguenther@suse.de>
2
3         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5         until after simple checks.
6         (gimple_types_compatible_p): Likewise.
7         (iterative_hash_gimple_type): Always hash pointer targets
8         and function return and argument types.
9         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
10         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
11         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
12         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13         completely in the simple compare section.
14         (gimple_register_canonical_type): Query the cache again after
15         registering.
16
17 2011-05-12  Richard Guenther  <rguenther@suse.de>
18
19         PR tree-optimization/48172
20         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
21         the number of iterations from the segment size calculation.
22         (vect_create_cond_for_alias_checks): Adjust.
23
24 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
25
26         PR debug/48967
27         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
28         if validate_subreg fails.
29
30 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
31
32         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
33         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
34         early.
35
36 2011-05-12  DJ Delorie  <dj@redhat.com>
37
38         (rx_builtins): New arrays - holds builtin functions.
39         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
40         created builtin into rx_builtins array.
41         (rx_builtin_decl): New function.
42         (TARGET_BUITLIN_DECL): Define.
43         Include gt-rx.h.
44
45 2011-05-12  DJ Delorie  <dj@redhat.com>
46             Nick Clifton  <nickc@redhat.com>
47
48         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
49         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
50         (rx_is_legitimate_address): Add pre-decrement and post-increment
51         addressing in HImode and QImode.  Fix test for out of range
52         REG+INT addressing.
53         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
54         (rx_align_for_label): Test label before extracting its usage
55         count.
56         (rx_adjust_insn_lengths): Fix selection of insn codes.
57         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
58
59 2011-05-11  Jason Merrill  <jason@redhat.com>
60
61         * tree.c (type_hash_canon): Use struct tree_type_non_common.
62
63 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
64
65         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
66         reindent the subsequent block.
67
68 2011-05-11  Satoru Takabayashi  <satorux@google.com>
69             Paul Pluzhnikov  <ppluzhnikov@google.com>
70
71         * doc/install.texi (Configuration): Document
72         --with-linker-hash-style.
73         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
74         * config.in: Add LINKER_HASH_STYLE.
75         * configure.ac: Add --with-linker-hash-style.
76         * configure: Regenerate.
77
78 2011-05-11  Richard Guenther  <rguenther@suse.de>
79
80         PR middle-end/48964
81         * gimple.c (iterative_hash_canonical_type): Fix typo.
82
83 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
84
85         * config/i386/i386.c (legitimize_tls_address)
86         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
87         expanders directly for TARGET_GNU2_TLS.  Determine pic and
88         __tls_get_addr symbol reference here.  Update call to
89         gen_tls_global_dynamic_{32,64} for added arguments.
90         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
91         expanders directly for TARGET_GNU2_TLS.  Determine
92         __tls_get_addr symbol reference here.  Update call to
93         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
94         unique UNSPEC REG_EQUIV to libcall block.
95         (ix86_tls_get_addr): Declare static.
96         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
97         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
98         Do not determine pic and __tls_get_addr symbol reference here. Do not
99         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
100         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
101         (tls_global_dynamic_64): Add operand 2.  Do not determine
102         __tls_get_addr symbol reference here.  Do not call
103         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
104         (tls_local_dynamic_base64): Ditto for operand 1.
105
106 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
107
108         * function.c (expand_function_start): Initialize stack_check_probe_note
109         only if the generic stack checking mechanism is used.
110
111 2011-05-11  Richard Guenther  <rguenther@suse.de>
112
113         PR tree-optimization/15256
114         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
115         (A & B) | C, combine (A op CST1) op CST2.
116         (tree_ssa_forward_propagate_single_use_vars): Only bother to
117         visit assigns that have uses.
118
119 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
120
121         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
122         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
123         (unpack_ts_type_common_value_fields): ...this.  Update comment.
124         (unpack_value_fields): Adjust for renaming.
125         (lto_input_ts_type_tree_pointers): Split into...
126         (lto_input_ts_type_common_tree_pointer): ...this and...
127         (lto_input_ts_type_non_common_tree_pointers): ...this.
128         (lto_input_tree_pointers): Adjust for above split.
129         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
130         (pack_ts_type_common_value_fields): ...this.  Update comment.
131         (lto_output_ts_type_tree_pointers): Split into...
132         (lto_output_ts_type_common_tree_pointers): ...this and...
133         (lto_output_ts_type_non_common_tree_pointers): ...this.
134         (lto_output_tree_pointers): Adjust for above split.
135         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
136         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
137         * stor-layout.c (vector_type_mode): Adjust location of mode field.
138         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
139         Define.
140         (struct tree_type): Split into...
141         (struct tree_type_common: ...this and...
142         (struct tree_type_with_lang_specific): ...this and...
143         (struct tree_type_non_common): ...this.  Adjust accessor macros
144         accordingly.
145         (TYPE_VALUES_RAW): Define.
146         (union tree_node): Update for above changes.
147         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
148         TS_TYPE_NON_COMMON.
149         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
150         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
151         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
152         * treestructu.def (TS_TYPE): Remove.
153         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
154         Define.
155
156 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
157
158         PR debug/48159
159         * tree-ssa.c (reset_debug_uses): New function.
160         * tree-flow.h (reset_debug_uses): New prototype.
161         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
162         * tree-loop-distribution.c (generate_loops_for_partition): Call
163         reset_debug_uses on the stmts that will be removed.  Keep around
164         all debug stmts, don't count them as bits in partition bitmap.
165         (generate_builtin): Don't count debug stmts or labels as bits in
166         partition bitmap.
167
168 2011-05-11  Richard Guenther  <rguenther@suse.de>
169
170         * gimple.c (gimple_type_hash_1): Merge with ...
171         (gimple_type_hash): ... this.
172         (gtc_visit): Remove mode parameter and simplify accordingly.
173         (gimple_types_compatible_p_1): Likewise.
174         (gimple_types_compatible_p): Likewise.
175         (iterative_hash_gimple_type): Likewise.
176         (visit): Likewise.
177         (gimple_type_eq): Adjust.
178
179 2011-05-11  Revital Eres  <revital.eres@linaro.org>
180
181         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
182         enters the branch create an anti edge in the opposite direction
183         to prevent the creation of reg-moves.
184         * modulo-sched.c: Adjust comment to reflect the fact we are
185         scheduling closing branch.
186         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
187         (stage_count): New field in struct partial_schedule.
188         (calculate_stage_count): New function.
189         (normalize_sched_times): Rename to reset_sched_times and handle
190         incrementing the sched time of the nodes by a constant value
191         passed as parameter.
192         (duplicate_insns_of_cycles): Skip closing branch.
193         (sms_schedule_by_order): Schedule closing branch.
194         (ps_insn_find_column): Handle closing branch.
195         (sms_schedule): Call reset_sched_times and adjust the code to
196         support scheduling of the closing branch.
197         (ps_insert_empty_row): Update calls to normalize_sched_times
198         and rotate_partial_schedule functions.
199
200 2011-05-11  Richard Guenther  <rguenther@suse.de>
201
202         PR middle-end/48953
203         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
204
205 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
206
207         * opts.c (finish_options): Move warning settings from process_options.
208         * toplev.c (process_options): Move warning settings to finish_options.
209
210 2011-05-11  Richard Guenther  <rguenther@suse.de>
211
212         PR tree-optimization/18041
213         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
214         (simplify_bitwise_binary): ... this.  Handle operand conversions
215         by applying them to the result instead.
216         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
217
218 2011-05-11  Richard Guenther  <rguenther@suse.de>
219
220         * gimple.c (gimple_canonical_types_compatible_p): Split out
221         from gimple_types_compatible_p and friends.  Do not recurse
222         to pointed-to types.
223         (gimple_canonical_type_eq): Use it.
224         (iterative_hash_canonical_type): Split out from
225         iterative_hash_gimple_type and friends.  Do not recurse
226         to pointed-to types.
227         (gimple_canonical_type_hash): Use it, allocate the hash here.
228
229 2011-05-11  Revital Eres  <revital.eres@linaro.org>
230
231         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
232         recognizing doloop.
233
234 2011-05-11  Revital Eres  <revital.eres@linaro.org>
235
236         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
237         instead of PREV_INSN.
238
239 2011-05-11  Revital Eres  <revital.eres@linaro.org>
240
241         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
242         * loop-doloop.c (doloop_condition_get): Likewise.
243         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
244         (doloop_end): New.
245         * config/arm/arm.md (*addsi3_compare0): Remove "*".
246
247 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
248
249         * tree.def (CASE_LABEL_EXPR): Add an operand.
250         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
251
252 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
253
254         * c-decl.c (c_override_global_bindings_to_false): Remove.
255         (global_bindings_p): Don't check
256         c_override_global_bindings_to_false.
257         * c-tree.h (c_override_global_bindings_to_false): Remove.
258         * c-typeck.c (composite_type): Don't set
259         c_override_global_bindings_to_false.
260
261 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
262
263         PR target/48857, 48495
264         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
265         (VSX_MODE): Ditto.
266         (VSX_MOVE_MODE): Ditto.
267         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
268         VSX vector types.  Add V2DImode.
269         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
270         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
271         (MODES_TIEABLE_P): Ditto.
272
273         * config/rs6000/rs6000.c (rs6000_emit_move): Use
274         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
275         VSX_VECTOR_MODE.
276         (init_cumulative_args): Ditto.
277         (rs6000_function_arg_boundary): Ditto.
278         (rs6000_function_arg_advance_1): Ditto.
279         (rs6000_function_arg): Ditto.
280         (rs6000_function_ok_for_sibcall): Ditto.
281         (emit_frame_save): Ditto.
282         (rs6000_function_value): Ditto.
283         (rs6000_libcall_value): Ditto.
284
285 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
286
287         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
288         i386/darwin-lib.h to $libgcc_tm_file.
289         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
290
291 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
292
293         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
294
295 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
296
297         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
298         * config/rs6000/rs6000-tables.opt: New file (generated).
299         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
300         rs6000/rs6000-tables.opt to extra_options.
301         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
302         * config/rs6000/rs6000.c (rs6000_select): Remove.
303         (processor_target_table): Move contents to rs6000-cpus.def.
304         (darwin_rs6000_override_options): Check
305         global_options_set.x_rs6000_cpu_index instead of
306         rs6000_select[1].string.
307         (rs6000_option_override_internal): Likewise.
308         (rs6000_handle_option): Don't assert that global structures are in
309         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
310         (rs6000_default_cpu): New variable.
311         (rs6000_file_start): Set it instead of local default_cpu.  Check
312         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
313         global_options_set.x_rs6000_tune_index instead of rs6000_select.
314         (rs6000_darwin_file_start): Check rs6000_default_cpu and
315         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
316         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
317         rs6000_select): Remove.
318         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
319         Remove.
320         (mcpu=, mtune=): Use Var, Init, Enum and Save.
321         * config/rs6000/t-rs6000
322         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
323         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
324         global_options_set.x_rs6000_cpu_index instead of
325         rs6000_select[1].string.
326         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
327         global_options_set.x_rs6000_cpu_index instead of
328         rs6000_select[1].string.
329
330 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
331
332         * config.gcc (libgcc_tm_file): Define instead of including files
333         from ../../libgcc/config/ in tm_file.
334         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
335         * configure: Regenerate.
336         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
337         libgcc_tm.h, cs-libgcc_tm.h): New.
338         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
339         (clean): Remove libgcc_tm.h.
340         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
341         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
342         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
343
344 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
345
346         PR target/48896
347         * config/avr/avr.c (avr_ret_register): Return unsigned int
348         instead of int.
349         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
350         it to avr_libcall_value.
351         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
352         expand_expr.
353         (avr_expand_binop_builtin): Ditto.
354         (avr_expand_unop_builtin): Ditto.
355
356 2011-05-10  DJ Delorie  <dj@redhat.com>
357
358         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
359         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
360         * config/rx/rx.c (rx_align_for_label): Add label and
361         uses_threshold parameters.  Do not align when the label is not
362         used enough.
363         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
364
365 2011-05-10  Richard Guenther  <rguenther@suse.de>
366
367         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
368         a series of conversions and apply foldings similar to what
369         fold-const does.
370         (tree_ssa_forward_propagate_single_use_vars): Call it.
371
372 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
373
374         PR tree-optimization/48611
375         PR tree-optimization/48794
376         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
377         referenced from RESX or EH_DISPATCH arguments.
378
379         PR debug/48928
380         * dfp.c (decimal_to_decnumber): Handle conversion from
381         dconst{1,2,m1,half}.
382
383 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
384
385         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
386         for !flag_prefer_avx128.
387         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
388
389 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
390
391         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
392         (fold_ternary_loc): Use expr_location_or.
393
394 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
395
396         PR debug/48853
397         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
398         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
399         Pmode and mem_mode is not VOIDmode.
400
401 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
402
403         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
404         TYPE_QUAL_RESTRICT): Convert to enum.
405
406 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
407
408         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
409         (const_pow2_1_to_8_operand): Ditto.
410         (const_pow2_1_to_128_operand): Ditto.
411         (const_pow2_1_to_32768_operand): Ditto.
412         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
413         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
414         in insn constraint to check integer value of operand 3.
415         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
416
417         (PINSR_MODE): New mode iterator.
418         (sse2p4_1): New mode attribute.
419         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
420         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
421         iterator.  Use const_int_operand instead of
422         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
423         exact_log2 in insn constraint to check integer value of operand 3.
424
425 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
426
427         * config/i386/sse.md (blendbits): Remove mode attribute.
428         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
429         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
430         Check integer value of operand 3 in insn constraint.
431
432 2011-05-09  Richard Guenther  <rguenther@suse.de>
433
434         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
435         for diagnostics.
436         (lto_symtab_merge): Likewise.  Do not register types here.
437         (lto_symtab_merge_decls_2): Likewise.
438         (lto_symtab_merge_decls_1): Likewise.
439         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
440         * gimple.c (enum gtc_mode): Declare.
441         (gimple_types_compatible_p): Make static.
442
443 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
444
445         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
446         temporary register to match Pmode.
447
448 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
449
450         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
451         and *vec_concatv4si_1_avx.
452
453 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
454
455         PR rtl-optimization/48927
456         * ira-conflicts.c (commutative_constraint_p): Use
457         recog_data.alternative_enabled_p to disable alternatives where
458         "enabled" attribute is false.
459         (get_dup_num): Ditto.
460         * ira-lives.c (single_reg_class): Ditto.
461         (ira_implicitly_set_insn_hard_regs): Ditto.
462
463 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
464
465         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
466         (dataflow_set_preserve_mem_locs): Likewise.
467
468 2011-05-09  Philipp Thomas  <pth@suse.de>
469
470         * config/mep/mep.c (mep_validate_vliw): Syntax description
471         should not be translated.
472
473 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
474
475         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
476         * config/mips/mips-tables.opt: New file (generated).
477         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
478         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
479         MIPS_ARCH_OPTION_NATIVE): Define.
480         * config/mips/mips.c (mips_cpu_info_table): Move contents to
481         mips-cpus.def.
482         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
483         mips_parse_cpu): Remove.
484         (mips_cpu_info_from_opt, mips_default_arch): New.
485         (mips_handle_option): Don't assert that global structures are in
486         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
487         (mips_option_override): Use new variables and functions to set
488         state of these options.  Use strcmp to check for individual CPU names.
489         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
490         definition.
491         * config/mips/mips.opt (march=): Use ToLower and Enum.
492         (mips): Use ToLower, Enum and Var.
493         (mtune=): Use ToLower and Enum.
494         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
495
496 2011-05-08  Jan Hubicka  <jh@suse.cz>
497
498         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
499         Arrange type pairs to be UID ordered.
500         (gimple_lookup_type_leader): Make inline.
501
502 2011-05-09  Nick Clifton  <nickc@redhat.com>
503
504         PR target/48899
505         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
506         PROCESSOR_DEFAULT.
507
508         PR target/48897
509         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
510         variable 's'.
511
512 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
513
514         * combine.c (simplify_comparison): Abstract out parts into...
515         (simplify_compare_const): ... new function.
516         (try_combine): Generalize parallel arithmetic/compare combining
517         to call simplify_compare_const() and CANONICALIZE_COMPARE().
518
519 2011-05-08  Jan Hubicka  <jh@suse.cz>
520
521         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
522         (cgraph_create_virtual_clone): Call hooks once virtual clone
523         is finished.
524         * cgraph.h (cgraph_clone_node): Update prototype.
525         * ipa-cp.c (ipcp_estimate_growth): Use
526         estimate_ipcp_clone_size_and_time.
527         * ipa-inline-transform.c (clone_inlined_nodes): Update.
528         * lto-cgraph.c (input_node): Update.
529         * ipa-inline.c (recursive_inlining): Update.
530         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
531         (evaluate_conditions_for_known_args): Break out from ...
532         (evaluate_conditions_for_edge): ... here.
533         (evaluate_conditions_for_ipcp_clone): New function.
534         (inline_node_duplication_hook): Update clone summary based
535         on parameter map.
536         (estimate_callee_size_and_time): Rename to ...
537         (estimate_node_size_and_time): take NODE instead of EDGE;
538         take POSSIBLE_TRUTHS as argument.
539         (estimate_callee_size_and_time): Update.
540         (estimate_ipcp_clone_size_and_time): New function.
541         (do_estimate_edge_time): Update.
542
543 2011-05-08  Richard Guenther  <rguenther@suse.de>
544
545         PR middle-end/48908
546         PR middle-end/48905
547         * expmed.c (expand_shift_1): Compute adjusted constant shift
548         amount manually.
549
550 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
551
552         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
553
554 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
555
556         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
557
558 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
559
560         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
561
562 2011-05-07  Jan Hubicka  <jh@suse.cz>
563
564         * ipa-inline-transform.c (inline_call): Account when program size
565         decreases.
566         * ipa-inline.c (relative_time_benefit): New function.
567         (edge_badness): Reorganize to be power 2 based; fix thinko when
568         computing badness for negative growth; update comments to match
569         reality; better dumps.
570
571 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
572
573         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
574         type to bool and adjust comment.
575         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
576         (fold_mathfn_compare): Remove calls to global_bindings_p.
577         (fold_inf_compare): Likewise.
578         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
579         * c-tree.h (global_bindings_p): Adjust prototype.
580         * c-decl.c (global_bindings_p): Return bool and simplify.
581
582 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
583
584         PR tree-optimization/48837
585         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
586         when accumulator transformation is performed.
587
588 2011-05-06  Jan Hubicka  <jh@suse.cz>
589
590         * i386.h (ix86_tune_indices): Add
591         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
592         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
593         * i386.c (initial_ix86_tune_features): Add
594         X86_SOFTARE_PREFETCHING_BENEFICIAL.
595         (software_prefetching_beneficial_p): Remove predicate.
596         (ix86_option_override_internal): Use new macro.
597
598 2011-05-06  Jan Hubicka  <jh@suse.cz>
599
600         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
601
602 2011-05-06  Jan Hubicka  <jh@suse.cz>
603
604         * cgraph.c (cgraph_add_thunk): Create real function node instead
605         of alias node; finalize it and mark needed/reachale; arrange visibility
606         to be right and add it into the corresponding same comdat group list.
607         (dump_cgraph_node): Dump thunks.
608         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
609         cgraph_function_with_gimple_body_p,
610         cgraph_first_function_with_gimple_body,
611         cgraph_next_function_with_gimple_body): New functions.
612         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
613         New macros.
614         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
615         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
616         * cgraphunit.c (cgraph_finalize_function): Only look into possible
617         devirtualization when optimizing.
618         (verify_cgraph_node): Verify thunks.
619         (cgraph_analyze_function): Analyze thunks.
620         (cgraph_mark_functions_to_output): Output thunks only in combination
621         with function they are assigned to.
622         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
623         alias into normal node.
624         (assemble_thunks): New functoin.
625         (cgraph_expand_function): Use it.
626         * lto-cgraph.c (lto_output_node): Stream thunks.
627         (input_overwrite_node): Stream in thunks.
628         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
629         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
630         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
631         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
632         (inline_analyze_function): Do not care about thunk jump functions.
633         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
634         * ipa-prop.c (ipa_prop_write_jump_functions): Use
635         cgraph_function_with_gimple_body_p.
636         * passes.c (do_per_function_toporder): Use
637         cgraph_function_with_gimple_body_p.
638         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
639         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
640         (function_called_by_processed_nodes_p): Likewise.
641
642 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
643
644         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
645         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
646         entries.
647         (mabi=): Replace with separate entries for mabi=altivec,
648         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
649         mabi=ieeelongdouble and mabi=ibmlongdouble.
650         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
651         check for -mabi=spe without SPE ABI support here.
652         (rs6000_handle_option): Replace OPT_mabi_ handling with
653         OPT_mabi_altivec and OPT_mabi_spe handling.
654
655 2011-05-06  Cary Coutant  <ccoutant@google.com>
656
657         * dwarf2out.c (contains_subprogram_definition): New function.
658         (should_move_die_to_comdat): Call it.
659
660 2011-05-06  Jeff Law  <law@redhat.com>
661
662         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
663         remove_ctrl_stmt_and_useless_edges.
664         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
665         (fixup_template_block, thread_single_edge): Likewise.
666         (mark_threaded_blocks): Use THREAD_TARGET.
667
668 2011-05-06  Alan Modra  <amodra@gmail.com>
669
670         PR target/48900
671         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
672         const0_rtx as the arg to the dummy __tls_get_addr libcall.
673
674 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
675
676         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
677         constraint modifier to "r".
678
679 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
680
681         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
682         fall through for OPT_mcmodel_.
683
684 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
685
686         * config/s390/s390.c (s390_asm_trampoline_template): Comment
687         instruction sizes.
688         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
689
690 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
691
692         PR target/47930
693         * config/arm/arm.opt (marm): Document it.
694         (mthumb): Reject negative variant.
695
696 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
697
698         PR target/48898
699         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
700         Fix typo in "ccvt" variable name.
701
702 2011-05-06  Tristan Gingold  <gingold@adacore.com>
703
704         PR target/48895
705         * config/vms/vms-ar.c (main): Remove cwd variable.
706
707 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
708
709         PR debug/48902
710         * var-tracking.c (prepare_call_arguments): Move else before #endif.
711
712 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
713
714         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
715         * gimplify.c (gimplify_switch_expr): Likewise.
716         * omp-low.c (expand_omp_sections): Likewise.
717         * tree-eh.c (lower_try_finally_switch): Likewise.
718         (lower_eh_dispatch): Likewise.
719         * tree.h (build_case_label): Declare.
720         * tree.c (build_case_label): Define.
721
722 2011-05-05  Jason Merrill  <jason@redhat.com>
723
724         PR c++/40975
725         * tree-inline.c (copy_tree_r): Use copy_statement_list.
726         (copy_statement_list): Don't recurse.
727         * stor-layout.c (copy_self_referential_tree_r): Don't allow
728         STATEMENT_LIST.
729
730 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
731
732         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
733         through from -mfpu= handling.
734         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
735
736 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
737
738         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
739         POST_MODIFY.
740
741 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
742
743         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
744         for 11.31.
745         (hppa[12]*-*-hpux11*): Ditto.
746         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
747         * config/ia64/hpux-unix2003.h: New.
748         * config/pa/pa-hpux1131.opt: New.
749         * config/pa/pa-hpux1131.h: New.
750         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
751         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
752         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
753
754 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
755
756         PR debug/48853
757         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
758         instead of mode as 3rd argument to recursive call.
759         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
760         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
761         VOIDmode.
762         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
763         don't give up if mode is Pmode and mem_mode is not VOIDmode.
764         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
765         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
766
767 2011-05-05  Julian Brown  <julian@codesourcery.com>
768
769         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
770         parenthesis in D-register case.
771
772 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
773
774         * opt-functions.awk (var_type_struct): Handle Enum options.
775         * optc-gen.awk: Don't check range of variables of character type.
776         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
777         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
778         rs6000_sdata_name, rs6000_explicit_options): Remove.
779         (rs6000_option_override_internal): Check for -malign-power here.
780         Use global_options_set instead of rs6000_explicit_options.
781         (rs6000_parse_fpu_option): Remove.
782         (rs6000_handle_option): Access variables via opts and opts_set
783         pointers.  Use error_at and warning_at.  Add fall-through
784         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
785         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
786         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
787         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
788         here.  Don't use rs6000_parse_fpu_option.
789         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
790         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
791         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
792         (mrecip=): Use Var.
793         (mspe): Use Var and Save.
794         (mtraceback=): Use Enum and Var.
795         (rs6000_traceback_type): New Enum and EnumValue entries.
796         (mfloat-gprs=): Use Enum, Var and Save.
797         (rs6000_float_gprs): New Enum and EnumValue entries.
798         (mlong-double-): use Var and Save.
799         (msched-costly-dep=, minsert-sched-nops=): Use Var.
800         (malign-): Use Enum and Var.
801         (rs6000_alignment_flags): New Enum and EnumValue entries.
802         (mfpu=): Use Enum.
803         (fpu_type_t): New Enum and EnumValue entries.
804         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
805         global_options_set instead of rs6000_explicit_options.
806         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
807         global_options_set instead of rs6000_explicit_options.
808         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
809         global_options_set instead of rs6000_explicit_options.
810         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
811         global_options_set instead of rs6000_explicit_options.
812         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
813         global_options_set instead of rs6000_explicit_options.
814         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
815         global_options_set instead of rs6000_explicit_options.
816         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
817         definition.
818         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
819         global_options_set instead of rs6000_explicit_options.
820         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
821         (rs6000_cmodel): New Enum and EnumValue entries.
822         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
823         global_options_set instead of rs6000_explicit_options.
824         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
825         (mtls-size=): Use Enum and Var.
826         (rs6000_tls_size): New Enum and EnumValue entries.
827
828 2011-05-05  Michael Matz  <matz@suse.de>
829
830         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
831         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
832         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
833         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
834         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
835         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
836         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
837         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
838         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
839         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
840         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
841         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
842         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
843         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
844         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
845         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
846
847 2011-05-05  Richard Guenther  <rguenther@suse.de>
848
849         * expmed.c (expand_variable_shift): Rename to ...
850         (expand_shift_1): ... this.  Take an expanded shift amount.
851         For rotates recurse directly not building trees for the shift amount.
852         (expand_variable_shift): Wrap around expand_shift_1.
853         (expand_shift): Adjust.
854
855 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
856
857         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
858
859 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
860
861         * tree.h (get_pending_sizes): Remove prototype.
862         (put_pending_size): Likewise.
863         (put_pending_sizes): Likewise.
864         * stor-layout.c (pending_sizes): Delete.
865         (get_pending_sizes): Likewise.
866         (put_pending_size): Likewise.
867         (put_pending_sizes): Likewise.
868         (variable_size): Do not call put_pending_size and tidy up.
869         * function.h (struct function): Remove dont_save_pending_sizes_p.
870         * lto-streamer-in.c (input_function): Do not stream it.
871         * lto-streamer-out.c (output_function): Likewise.
872         * tree-inline.c (initialize_cfun): Do not copy it.
873         * c-decl.c (store_parm_decls): Do not set it.
874         * omp-low.c (create_task_copyfn): Likewise.
875         * tree-optimize.c (tree_rest_of_compilation): Likewise.
876
877 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
878
879         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
880         conditions.
881         (*movdf_internal): Ditto.
882         (*movdf_internal_nointeger): Ditto.
883         (*movsf_internal): Ditto.
884
885 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
886
887         * c-decl.c (finish_decl): Don't call get_pending_sizes.
888         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
889         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
890         (c_variable_size): Remove.
891         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
892         call put_pending_sizes.
893         (get_parm_info): Add parameter expr.  Use it to set
894         arg_info->pending_sizes.
895         (store_parm_decls): Use arg_info->pending_sizes instead or calling
896         get_pending_sizes.
897         * c-parser.c (c_parser_parms_declarator): Update call to
898         c_parser_parms_list_declarator.
899         (c_parser_parms_list_declarator): Take parameter expr.  Update
900         call to push_parm_decl.  Update recursive call.  Don't call
901         get_pending_sizes.  Update calls to get_parm_info.
902         (c_parser_objc_method_definition): Update calls to
903         c_parser_objc_method_decl and objc_start_method_definition.
904         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
905         (c_parser_objc_method_decl): Add parameter expr.  Update call to
906         grokparm.
907         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
908         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
909         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
910
911 2011-05-05  Michael Hope  <michael.hope@linaro.org>
912
913         PR pch/45979
914         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
915         __ARM_EABI__ hosts.
916
917 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
918
919         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
920         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
921         (spu_output_mi_thunk): New function.
922
923 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
924
925         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
926         targetm.asm_out.print_operand.
927         * config/sol2.c: Include target.h.
928
929 2011-05-04  Jan Hubicka  <jh@suse.cz>
930
931         * ipa-inline.c (reset_edge_caches): New function.
932         (update_caller_keys): Add check_inlinablity_for; do not
933         reset edge caches; remove now unnecesary loop.
934         (update_callee_keys): Add comments; reset node_growth_cache of callee.
935         (update_all_callee_keys): Likewise.
936         (inline_small_functions): Sanity check cache; update code
937         recomputing it.
938
939 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
940
941         PR rtl-optimization/47612
942         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
943         as the last insn of the sequence to be moved.
944
945 2011-05-04  Tobias Burnus  <burnus@net-b.de>
946
947         PR fortran/48864
948         * doc/invoke.texi (Ofast): Document that it
949         enables Fortran's -fno-protect-parens.
950
951 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
952
953         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
954
955 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
956
957         * stor-layout.c (variable_size): Do not issue errors.
958
959 2011-05-04  Richard Guenther  <rguenther@suse.de>
960
961         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
962         for array-ref indices.
963         (tree_coverage_counter_addr): Likewise.
964         (build_fn_info_type): Use size_int for index types.
965         (build_gcov_info): Likewise.
966
967 2011-05-04  Richard Guenther  <rguenther@suse.de>
968
969         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
970         to build_int_cst.
971         * c-typeck.c (really_start_incremental_init): Use bitsize_int
972         for constructor indices.
973         (push_init_level): Likewise.
974
975 2011-05-04  Richard Guenther  <rguenther@suse.de>
976
977         * explow.c (promote_mode): Move variable declarations before code.
978
979 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
980
981         * tree.h (build_function_type_array): Declare.
982         (build_varargs_function_type_array): Declare.
983         (build_function_type_vec, build_varargs_function_type_vec): Define.
984         * tree.c (build_function_type_array_1): New function.
985         (build_function_type_array): New function.
986         (build_varargs_function_type_array): New function.
987
988 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
989
990         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
991         before setting STMT_VINFO_TYPE.
992
993 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
994
995         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
996         instead of spu_pass_by_reference.
997
998 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
999
1000         * calls.c (emit_library_call_value_1): Invoke
1001         promote_function_mode hook on libcall arguments.
1002         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1003         argument being NULL.
1004         * targhooks.c (default_promote_function_mode): Lisewise.
1005         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1006         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1007
1008         * doc/tm.texi: Document that TYPE argument might be NULL.
1009
1010 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1011
1012         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1013
1014 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1015
1016         From Bernd Schmidt
1017         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1018
1019 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1020
1021         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1022         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1023         Move ...
1024         * mips-tfile.c: ... here.
1025         Don't include coretypes.h, tm.h, filenames.h.
1026         (saber_stop): Remove definition and all calls.
1027         [__SABER__]: Remove.
1028         (__LINE__): Remove default.
1029         (Size_t, Ptrdiff_t): Remove definitions.
1030         Replace by size_t, ptrdiff_t.
1031         [!MIPS_DEBUGGING_INFO]: Remove.
1032         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1033         (progname): Add const.
1034         (STATIC): Remove.
1035         Replace all uses by static.
1036         (ALIGN_SYMTABLE_OFFSET): Remove default.
1037         * mips-tdump.c: Don't include coretypes.h, tm.h.
1038         Remove !MIPS_IS_STAB guard.
1039         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1040         $(TM_H), filenames.h dependencies.
1041         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1042
1043 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1044
1045         From Jie Zhang
1046         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1047         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1048
1049 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1050
1051         From Bernd Schmidt
1052         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1053         account and save/restore RETS.
1054         (PROFILE_BEFORE_PROLOGUE): Define.
1055         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1056         the push insn to use predecrement.
1057
1058 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1059
1060         From Jie Zhang
1061         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1062
1063 2011-05-04  Nick Clifton  <nickc@redhat.com>
1064
1065         * config/mn10300/mn10300.c: Include cfgloop.h.
1066         (DUMP): New macro.
1067         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1068         Lcc or a FLcc insn into the instruction stream.
1069         (mn10300_block_contains_call): New function.  Returns true if the
1070         given basic block contains a CALL insn.
1071         (mn10300_loop_contains_call_insn): New function.  Returns true if
1072         the given loop contains a CALL insn.
1073         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1074         to use the SETLB and Lcc or FLcc insns.
1075         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1076         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1077         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1078         disable the SETLB optimization.
1079         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1080         __SETLB__ or __NO_SETLB__.
1081         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1082         (movsf_internal): Handle MDR register.
1083         (cmpsi): Make visible.
1084         (setlb): New pattern.
1085         (Lcc): New pattern.
1086         (FLcc): New pattern.
1087
1088 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1089
1090         PR target/48860
1091         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1092         for reg<->xmm moves.
1093         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1094         (vec_concatv2di_rex64_sse): Ditto.
1095         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1096         (*vec_extractv2di_1_rex64): Ditto.
1097
1098         Revert:
1099         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1100
1101         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1102         reg<->xmm moves.
1103         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1104
1105 2011-05-04  Richard Guenther  <rguenther@suse.de>
1106
1107         * tree.h (int_const_binop): Remove notrunc argument.
1108         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1109         create integer constants that are properly truncated.
1110         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1111         (const_binop): Remove zero notrunc argument to int_const_binop.
1112         (size_binop_loc): Likewise.
1113         (fold_div_compare): Likewise.
1114         (maybe_canonicalize_comparison_1): Likewise.
1115         (fold_comparison): Likewise.
1116         (fold_binary_loc): Likewise.
1117         (multiple_of_p): Likewise.
1118         * expr.c (store_constructor): Likewise.
1119         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1120         (maybe_fold_stmt_addition): Likewise.
1121         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1122         * stor-layout.c (layout_type): Likewise.
1123         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1124         * tree-sra.c (build_ref_for_offset): Likewise.
1125         (build_user_friendly_ref_for_offset): Likewise.
1126         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1127         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1128         * tree-ssa-loop-niter.c (inverse): Likewise.
1129         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1130         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1131         * tree-switch-conversion.c (check_range): Likewise.
1132         (build_constructors): Likewise.
1133         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1134         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1135         (extract_range_from_assert): Likewise.
1136         (vrp_int_const_binop): Likewise.
1137         (extract_range_from_binary_expr): Likewise.
1138         (extract_range_from_unary_expr): Likewise.
1139         (check_array_ref): Likewise.
1140         (find_case_label_range): Likewise.
1141         (simplify_div_or_mod_using_ranges): Likewise.
1142         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1143         comparing case labels for merging.
1144
1145 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1146
1147         * dwarf2out.c (debug_str_hash_forced): Removed.
1148         (gen_label_for_indirect_string): Removed.
1149         (get_debug_string_label): Removed.
1150         (AT_string_form): Generate label directly.
1151         (output_indirect_string): Test indirect_string_node for
1152         DW_FORM_strp instead of checking label and refcount.
1153         (prune_indirect_string): Removed.
1154         (prune_unused_types): Don't check debug_str_hash_forced or
1155         call prune_indirect_string.
1156
1157 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1158
1159         PR other/48093
1160         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1161
1162 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1163
1164         PR debug/47994
1165         PR debug/47919
1166         * combine.c (try_combine): Skip debug insns at m_split tests.
1167
1168 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1169
1170         PR42288
1171         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1172         when info_section_emitted.
1173
1174 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1175
1176         * config/mips/mips-opts.h: New.
1177         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1178         to mips-opts.h.
1179         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1180         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1181         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1182         via opts pointer.
1183         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1184         mips-opts.h.
1185         (mips_abi, mips_code_readable): Don't declare.
1186         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1187         (mabi=): Use Enum and Var.
1188         (mips_abi): New Enum and EnumValue entries.
1189         (mcode-readable=): Use Enum and Var.
1190         (mips_code_readable_setting): New Enum and EnumValue entries.
1191         (mr10k-cache-barrier=): Use Enum and Var.
1192         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1193
1194 2011-05-03  Jan Hubicka  <jh@suse.cz>
1195
1196         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1197         replace hash by pointer map.
1198         (cgraph_node_set_element_def, cgraph_node_set_element,
1199         const_cgraph_node_set_element, varpool_node_set_element_def,
1200         varpool_node_set_element, const_varpool_node_set_element): Remove.
1201         (free_cgraph_node_set, free_varpool_node_set): New function.
1202         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1203         * tree-emutls.c: Free varpool node set.
1204         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1205         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1206         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1207         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1208         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1209         Move here from ipa.c; implement using pointer_map
1210         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1211         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1212         debug_cgraph_node_set, varpool_node_set_new,
1213         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1214         dump_varpool_node_set, debug_varpool_node_set):
1215         Move to ipa-uitls.c.
1216         * passes.c (ipa_write_summaries): Update.
1217
1218 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1219
1220         From Mike Frysinger:
1221         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1222         bf542/bf544/bf547/bf548/bf549.
1223
1224 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1225
1226         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1227
1228 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1229
1230         From Bernd Schmidt:
1231         * config/bfin/bfin.md (MOVCC): New mode_macro.
1232         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1233         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1234         comments from generated assembly.
1235
1236 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1237
1238         From Bernd Schmidt
1239         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1240         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1241         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1242         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1243         * config/bfin/lib1funcs.asm (___muldi3): New function.
1244
1245 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1246
1247         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1248         build_function_type_list instead of build_function_type.
1249         Rearrange initialization of `args' to do so.
1250
1251 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1252
1253         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1254         instead of build_function_type.
1255
1256 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1257
1258         * config/rs6000/rs6000.c (spe_init_builtins): Call
1259         build_function_type_list instead of build_function_type.
1260         (paired_init_builtins, altivec_init_builtins): Likewise.
1261         (builtin_function_type): Likewise.
1262
1263 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1264
1265         * config/sh/sh.c (sh_media_init_builtins): Call
1266         build_function_type_list instead of build_function_type.
1267
1268 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1269
1270         * config/sparc/sparc.c (sparc_file_end): Call
1271         build_function_type_list instead of build_function_type.
1272
1273 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1274
1275         * config/alpha/alpha.c (alpha_init_builtins): Call
1276         build_function_type_list instead of build_function_type.
1277
1278 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1279
1280         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1281         build_function_type_list instead of build_function_type.
1282
1283 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1284
1285         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1286         build_function_type_list instead of build_function_type.
1287         Delete `endlink' variable.
1288
1289 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1290
1291         * config/avr/avr.c (avr_init_builtins): Call
1292         build_function_type_list instead of build_function_type.
1293
1294 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1295
1296         * config/picochip/picochip.c (picochip_init_builtins): Call
1297         build_function_type_list instead of build_function_type.
1298         Delete `endlink' variable.
1299
1300 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1301
1302         * config/bfin/bfin.c (bfin_init_builtins): Call
1303         build_function_type_list instead of build_function_type.
1304
1305 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1306
1307         From Bernd Schmidt
1308         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1309         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1310
1311 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1312
1313         From Jie Zhang:
1314         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1315         libbffastfp overrides libgcc when -mfast-fp.
1316
1317 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1318
1319         Originally from Bernd Schmidt
1320         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1321         * config/bfin/bfin.c (override_options): Test it and error if
1322         TARGET_FDPIC.
1323
1324 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1325
1326         Originally From Bernd Schmidt
1327         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1328         FD-PIC.
1329
1330 2011-05-03  Jeff Law  <law@redhat.com>
1331
1332         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1333         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1334         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1335         than accessing AUX field directly.  Free the AUX field before
1336         clearing it.
1337         (thread_block, thread_through_loop_header): Likewise.
1338         (thread_single_edge, mark_threaded_blocks): Likewise.
1339         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1340         (register_jump_thread): Do not attempt to thread to a NULL edge.
1341
1342 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1343
1344         * function.c (init_function_start): Call decide_function_section.
1345         * varasm.c (decide_function_section): New function.
1346         (assemble_start_function): When not using
1347         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1348         or first_function_block_is_cold.
1349         * rtl.h (decide_function_section): Declare.
1350
1351 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1352             Jakub Jelinek  <jakub@redhat.com>
1353
1354         PR target/48774
1355         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1356         only succeed if req_mode is the same as set_mode.
1357
1358 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1359
1360         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1361         * genemit.c (gen_exp): Handle RETURN.
1362         * emit-rtl.c (verify_rtx_sharing): Likewise.
1363         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1364         * rtl.c (copy_rtx): RETURN is shared.
1365         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1366         (ret_rtx): New.
1367         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1368         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1369         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1370         * config/cris/cris.c (cris_expand_return): Likewise.
1371         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1372         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1373         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1374         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1375         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1376         Likewise.
1377         * config/v850/v850.c (expand_epilogue): Likewise.
1378         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1379         * config/arm/arm.md (epilogue): Likewise.
1380         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1381         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1382         variable to ret_reg.
1383
1384 2011-05-03  Richard Guenther  <rguenther@suse.de>
1385
1386         PR lto/48846
1387         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1388         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1389         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1390
1391 2011-05-03  Richard Guenther  <rguenther@suse.de>
1392
1393         * c-decl.c (grokdeclarator): Instead of looking at
1394         TREE_OVERFLOW check if the constant fits in the index type.
1395
1396 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1397
1398         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1399         (vec_store_lanes<mode><mode>): Likewise.
1400
1401 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1402
1403         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1404         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1405         convert_optab_index values.
1406         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1407         * genopinit.c (optabs): Initialize the new optabs.
1408         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1409         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1410         (expand_STORE_LANES): New functions.
1411         * tree.h (build_array_type_nelts): Declare.
1412         * tree.c (build_array_type_nelts): New function.
1413         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1414         (vect_model_load_cost): Likewise.
1415         (vect_store_lanes_supported, vect_load_lanes_supported)
1416         (vect_record_strided_load_vectors): Declare.
1417         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1418         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1419         (vect_transform_strided_load): Split out statement recording into...
1420         (vect_record_strided_load_vectors): ...this new function.
1421         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1422         (write_vector_array, create_array_ref): New functions.
1423         (vect_model_store_cost): Add store_lanes_p argument.
1424         (vect_model_load_cost): Add load_lanes_p argument.
1425         (vectorizable_store): Try to use store-lanes functions for
1426         interleaved stores.
1427         (vectorizable_load): Likewise load-lanes and loads.
1428         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1429         to vect_model_store_cost.
1430         (vect_build_slp_tree): Likewise vect_model_load_cost.
1431
1432 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1433
1434         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1435         * hooks.c (hook_bool_mode_uhwi_false): New function.
1436         * target.def (array_mode_supported_p): New hook.
1437         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1438         * doc/tm.texi: Regenerate.
1439         * stor-layout.c (mode_for_array): New function.
1440         (layout_type): Use it.
1441         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1442         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1443
1444 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1445
1446         PR target/48723
1447         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1448         for -fstack-check if the size to allocate is negative.
1449
1450 2011-05-02  Lawrence Crowl  <crowl@google.com>
1451
1452         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1453         (timevar_cond_start): New for starting a timer only when it is not
1454         already running.
1455         (timevar_cond_stop): New for stopping a timer when it was not already
1456         running.
1457
1458         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1459         (timevar_cond_start): New as above.
1460         (timevar_cond_stop): New as above.
1461
1462         * timevar.def: Add start/stop timers for compiler phases,
1463         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1464         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1465         and TV_PHASE_FINALIZE.
1466         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1467         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1468         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1469         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1470         Make unused TV_OVERLOAD into a start/stop timer.
1471
1472         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1473         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1474         to indicate that they are start/stop timers.
1475
1476         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1477         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1478         Move initialization to do_compile.
1479         (do_compile): Add initialization from above.
1480         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1481
1482         * c-decl.c (c_write_global_declarations): Add start/stop of
1483         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1484
1485         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1486         or TV_PARSE_INLINE, as appropriate.
1487         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1488         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1489
1490 2011-05-02  Jason Merrill  <jason@redhat.com>
1491
1492         PR c++/40975
1493         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1494
1495 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1496
1497         PR c/35445
1498         * c-decl.c (finish_decl): Only create a composite if the types are
1499         compatible.
1500
1501 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1502
1503         * config/fr30/fr30-protos.h (Mmode): Don't define.
1504         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1505         definition where used.
1506         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1507         define.  Expand definitions where used.
1508         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1509         Expand definitions where used.
1510         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1511         rx_function_arg, rx_function_arg_advance,
1512         rx_function_arg_boundary): Expand definitions of those macros.
1513         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1514         definition where used.
1515
1516 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1517
1518         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1519         reg<->xmm moves.
1520         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1521         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1522         with *movv2sf_internal_rex64_avx.
1523         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1524         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1525         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1526         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1527         "vex" in "prefix" attribute calculation.
1528         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1529
1530 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1531
1532         PR target/47951
1533         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1534         inputs match the output.
1535
1536 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1537
1538         PR target/47955
1539         * config/m68k/m68k.c (m68k_expand_prologue): Set
1540         current_function_static_stack_size.
1541
1542 2011-05-02   Jan Hubicka  <jh@suse.cz>
1543
1544         * lto-streamer.c (lto_streamer_cache_insert_1,
1545         lto_streamer_cache_lookup, lto_streamer_cache_create,
1546         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1547         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1548
1549 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1550
1551         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1552         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1553         config/m68k/t-opts: New files.
1554         * config/m68k/m68k-tables.opt: New file (generated).
1555         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1556         extra_options and m68k/t-opts to tmake_file.
1557         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1558         (all_isas): Initialize using m68k-isas.def.
1559         (all_microarchs): Initialize using m68k-microarchs.def.
1560         (m68k_find_selection): Remove.
1561         (m68k_handle_option): Don't assert that global structures are in
1562         use.  Use error_at.  Access variables via opts pointer.  Don't
1563         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1564         directly for -m68020-40 and -m68020-60.
1565         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1566         m68k_tune_entry here.
1567         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1568         to m68k-opts.h.
1569         (m68k_library_id_string): Remove declaration.
1570         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1571         (m68k_library_id_string): New Variable.
1572         (march=, mcpu=, mtune=): Use Enum and Var.
1573
1574 2011-05-02  Richard Guenther  <rguenther@suse.de>
1575
1576         * varasm.c (output_constructor_regular_field): Compute zero-based
1577         index with double-ints.  Make sure to ICE instead of producing
1578         wrong code.
1579         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1580         in asserts.  Properly use a signed type.
1581
1582 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1583
1584         * config/i386/sse.md (V): New mode iterator.
1585         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1586         TARGET_SSE2.
1587         (V_256): Rename from AVX256MODE.
1588         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1589         condition to all users.
1590         (VF1): Ditto.
1591         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1592         condition to all users.
1593         (VF_128): Make V4SF mode unconditional.
1594         (VF_256): Rename from AVX256MODEF2P.
1595         (VI4F_128): Rename from SSEMODE4S.
1596         (VI8F_128): Rename from SSEMODE2D.
1597         (VI4F_256): Rename from AVX256MODE8P.
1598         (VI8F_256): Rename from AVX256MODE4P.
1599         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1600         (ssescalarmodesuffix): Remove SF and DF modes.
1601         (SSEMODE124): Remove.
1602         (SSEMODE1248): Ditto.
1603         (SSEMODEF2P): Ditto.
1604         (AVXMODEF2P): Ditto.
1605         (AVXMODEFDP): Ditto.
1606         (AVXMODEFSP): Ditto.
1607         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1608         unconditional.
1609         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1610         unconditional.
1611         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1612         xop_pcmov_<mode>256.  Use V mode iterator.
1613
1614         Adjust RTX patterns globally for renamed mode attributes.
1615
1616 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1617
1618         * haifa-sched.c (sched_emit_insn): Emit insn before first
1619         non-scheduled insn.  Inform back-end about new insn.  Add
1620         new insn to scheduled_insns list.
1621
1622 2011-05-02  Richard Guenther  <rguenther@suse.de>
1623
1624         PR tree-optimization/48822
1625         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1626         (process_scc): Indicate which iteration we start.
1627
1628 2011-05-02  Jan Hubicka  <jh@suse.cz>
1629
1630         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1631         (lto_section_overrun): New.
1632         * lto-section-out.c (append_block): Rename to ...
1633         (lto_append_block): ... this one; export.
1634         (lto_output_1_stream): Move lto lto-streamer.h
1635         (lto_output_data_stream): Update.
1636         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1637         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1638         functions.
1639
1640 2011-05-02  Richard Guenther  <rguenther@suse.de>
1641
1642         * tree.c (tree_code_counts): New global array.
1643         (record_node_allocation_statistics): Count individual tree codes.
1644         (dump_tree_statistics): Dump individual code stats.
1645
1646 2011-05-01  Jan Hubicka  <jh@suse.cz>
1647
1648         * ipa-inline.c (caller_growth_limits): Fix thinko when
1649         looking for largest stack frame.
1650         * ipa-inline.h (dump_inline_summary): Declare.
1651         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1652         on stack usage.
1653         (dump_inline_summary): Export.
1654         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1655
1656 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1657
1658         * reginfo.c (memory_move_cost): Change rclass argument type form
1659         'enum reg_class' to reg_class_t.
1660         * reload.h (memory_move_cost): Update prototype.
1661         * postreload.c reload_cse_simplify_set): Change type dclass var to
1662         reg_class_t.
1663         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1664         Update prototype.
1665         (ira_allocate_and_set_costs): Change aclass argument type form
1666         'enum reg_class' to reg_class_t.
1667         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1668         Change aclass argument type to reg_class_t.
1669         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1670         to reg_class_t.
1671         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1672         memory_move_cost call.
1673
1674         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1675         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1676         Change type tmp var to reg_class_t.
1677
1678 2011-04-30  Jan Hubicka  <jh@suse.cz>
1679
1680         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1681         inlining into function with flatten attribute.
1682         (want_inline_small_function_p): Be more realistic about inlining
1683         cold calls where callee size grows.
1684
1685 2011-04-30  Jan Hubicka  <jh@suse.cz>
1686
1687         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1688         flags.
1689
1690 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1691
1692         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1693         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1694         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1695         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1696         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1697         (print_operand): Rename to...
1698         (sparc_print_operand): ...this. Make static. Adjust
1699         sparc_print_operand function call.
1700         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1701         functions.
1702
1703 2011-04-30  Jan Hubicka  <jh@suse.cz>
1704
1705         PR middle-end/48752
1706         * ipa-inline.c (early_inliner): Disable when doing late
1707         addition of function.
1708
1709 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1710
1711         * dwarf2out.c (get_address_mode): New inline.
1712         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1713         if not dwarf_strict emit
1714         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1715         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1716         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1717         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1718         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1719         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1720         mem_loc_descriptor callers.
1721         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1722         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1723         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1724         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1725         (base_types): New variable.
1726         (get_base_type_offset, calc_base_type_die_sizes,
1727         base_type_for_mode, mark_base_types, base_type_cmp,
1728         move_marked_base_types): New functions.
1729         (calc_die_sizes): Assert that die_offset is 0 or equal to
1730         next_die_offset.
1731         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1732         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1733         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1734         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1735         (gen_subprogram_die): Don't give up on call site parameters
1736         with non-integral or large integral modes.  Adjust
1737         mem_loc_descriptor callers.
1738         (prune_unused_types): Call prune_unused_types_mark on base_types
1739         vector entries.
1740         (resolve_addr): Call mark_base_types.
1741         (dwarf2out_finish): Call move_marked_base_types.
1742
1743         PR tree-optimization/48809
1744         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1745         type.
1746         (gen_inbound_check): Don't compute index_expr - range_min in utype
1747         again, instead reuse SSA_NAME initialized in build_arrays.
1748         Remove two useless gsi_for_stmt calls.
1749
1750 2011-04-29  Jeff Law  <law@redhat.com>
1751
1752         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1753
1754 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1755
1756         * cgraph.h (cgraph_postorder): Remove declaration.
1757         * ipa-utils.h (ipa_free_postorder_info): Declare.
1758         (ipa_reverse_postorder): Likewise.
1759         * cgraphunit.c: Include ipa-utils.h.
1760         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1761         * ipa-inline.c: Include ipa-utils.h.
1762         (ipa_inline): Update call to ipa_reverse_postorder.
1763         * ipa-pure-const.c (propagate_pure_const): Update call to
1764         ipa_reduced_postorder and ipa_print_order.  Call
1765         ipa_free_postorder_info to clean up.
1766         (propagate_nothrow): Likewise.
1767         * ipa-reference.c (propagate): Removed a useless call to
1768         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1769         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1770         * ipa.c: Include ipa-utils.h.
1771         (ipa_profile): Update call to ipa_reverse_postorder.
1772         (cgraph_postorder): Moved to...
1773         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1774         (ipa_utils_print_order): Renamed to ipa_print_order.
1775         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1776         comments.
1777         (ipa_free_postorder_info): New function.
1778         * passes.c: Include ipa-utils.h.
1779         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1780         (ipa_write_summaries): Likewise.
1781         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1782         (cgraphunit.o): Likewise.
1783         (ipa.o): Likewise.
1784         (ipa-inline.o): Likewise.
1785
1786 2011-04-29  Jan Hubicka  <jh@suse.cz>
1787
1788         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1789         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1790         * ipa-inline.h (clause_t): Turn into unsigned int.
1791         * ipa-inline-analysis.c (add_clause): Do more simplification.
1792         (and_predicates): Shortcut more cases.
1793         (predicates_equal_p): Move forward; check that clauses are properly
1794         ordered.
1795         (or_predicates): Shortcut more cases.
1796         (edge_execution_predicate): Rewrite as...
1797         (set_cond_stmt_execution_predicate): ... this function; handle
1798         __builtin_constant_p.
1799         (set_switch_stmt_execution_predicate): New .
1800         (compute_bb_predicates): New.
1801         (will_be_nonconstant_predicate): Update TODO.
1802         (estimate_function_body_sizes): Use compute_bb_predicates
1803         and free them later, always try to estimate if stmt is constant.
1804         (estimate_time_after_inlining, estimate_size_after_inlining):
1805         Gracefully handle optimized out edges.
1806         (read_predicate): Fix off by one error.
1807
1808 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1809
1810         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1811
1812 2011-04-27  Xinliang David Li  <davidxl@google.com>
1813
1814         * tree-profile.c (init_ic_make_global_vars): Set
1815         tls attribute on ic vars.
1816         * coverage.c (coverage_end_function): Initialize
1817         function_list with zero.
1818
1819 2011-04-29  Richard Guenther  <rguenther@suse.de>
1820
1821         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1822         for the type of the result.
1823         (fold_builtin_isascii): Likewise.
1824         (fold_builtin_toascii): Use integer_type_node where appropriate.
1825         (fold_builtin_logb): Likewise.
1826         (fold_builtin_frexp): Likewise.
1827         (fold_builtin_strstr): Likewise.
1828         (fold_builtin_strpbrk): Likewise.
1829         (fold_builtin_fputs): Likewise.
1830         (fold_builtin_sprintf): Likewise.
1831         (fold_builtin_snprintf): Likewise.
1832         (fold_builtin_printf): Likewise.
1833         (do_mpfr_remquo): Use a proper type for the assigned constant.
1834         (do_mpfr_lgamma_r): Likewise.
1835         * dwarf2out.c (resolve_one_addr): Use size_int.
1836         * except.c (init_eh): Likewise.
1837         (assign_filter_values): Use integer_type_node for filter values.
1838         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1839         indices.
1840         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1841         for EH region numbers.
1842         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1843         for the shift amount.
1844
1845 2011-04-29  Richard Guenther  <rguenther@suse.de>
1846
1847         * expr.h (expand_shift): Rename to ...
1848         (expand_variable_shift): ... this.
1849         (expand_shift): Take a constant shift amount.
1850         * expmed.c (expand_shift): Rename to ...
1851         (expand_variable_shift): ... this.
1852         (expand_shift): New wrapper around expand_variable_shift.
1853         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1854         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1855         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1856         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1857         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1858         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1859         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1860         emit_store_flag_1, emit_store_flag): Likewise.
1861         * builtins.c (expand_builtin_signbit): Likewise.
1862         * calls.c (load_register_parameters): Likewise.
1863         * function.c (assign_parm_setup_block): Likewise.
1864         * lower-subreg.c (resolve_shift_zext): Likewise.
1865         * optabs.c (widen_bswap, expand_abs_nojump,
1866         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1867         * spu/spu.c (spu_expand_extv): Likewise.
1868         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1869
1870 2011-04-29  Richard Guenther  <rguenther@suse.de>
1871
1872         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1873         for the remapped region number.
1874         * predict.c (build_predict_expr): Use integer_type_node for the
1875         predict kind.
1876         * fold-const.c (fold_binary_loc): Use integer_type_node for
1877         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1878
1879 2011-04-29  Michael Matz  <matz@suse.de>
1880
1881         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1882         other trees that just builtins.
1883         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1884
1885 2011-04-29  Richard Guenther  <rguenther@suse.de>
1886
1887         * tree-nested.c (get_trampoline_type): Use size_int.
1888         (get_nl_goto_field): Likewise.
1889         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1890         for all indexes.
1891         (lower_eh_constructs_2): Likewise.
1892         (lower_resx): Likewise.
1893         (lower_eh_dispatch): Likewise.
1894         * tree-mudflap.c (mf_build_string): Use size_int.
1895         (mudflap_register_call): Use integer_type_node for the flag.
1896         (mudflap_enqueue_constant): Use size_int.
1897         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1898         instead of rebuilding it.
1899
1900 2011-04-29  Richard Guenther  <rguenther@suse.de>
1901
1902         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1903         Handle OBJ_TYPE_REF.
1904         (find_func_aliases_for_call): Use it more consistently.
1905
1906 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1907
1908         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1909         (rank_for_schedule): Use it.
1910         (schedule_block): Set it.
1911
1912 2011-04-28  David Li  <davidxl@google.com>
1913
1914         * tree.c (crc32_string): Use crc32_byte.
1915         (crc32_byte): New function.
1916         * tree.h (crc32_byte): New function.
1917         * gcov.c (read_graph_file): Handle new cfg_cksum.
1918         (read_count_file): Ditto.
1919         * profile.c (instrument_values): Ditto.
1920         (get_exec_counts): Ditto.
1921         (read_profile_edge_counts): Ditto.
1922         (compute_branch_probabilities): Ditto.
1923         (compute_value_histograms): Ditto.
1924         (branch_prob): Ditto.
1925         (end_branch_prob): Ditto.
1926         * coverage.c (read_counts_file): Ditto.
1927         (get_coverage_counts): Ditto.
1928         (tree_coverage_counter_addr): Ditto.
1929         (coverage_checksum_string): Ditto.
1930         (coverage_begin_output): Ditto.
1931         (coverage_end_function): Ditto.
1932         (build_fn_info_type): Ditto.
1933         (build_fn_info_value): Ditto.
1934         * libgcov.c (gcov_exit): Ditto.
1935         * gcov-dump.c (tag_function): Ditto.
1936         (compute_checksum): Remove.
1937
1938 2011-04-29  Alan Modra  <amodra@gmail.com>
1939
1940         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1941         unspec plus offset.  Tidy macho code.
1942
1943 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1944
1945         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1946         node instead of a decl.  Update all callers.
1947         * cgraph.h: Update declaration.
1948
1949 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1950
1951         PR tree-optimization/48765
1952         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1953         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1954         to indicate if loop aware SLP is being used.  Scan the statements
1955         and update the vectorization factor according to the type of
1956         vectorization before statement analysis.
1957         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1958         pass it to vect_analyze_loop_operations.
1959         (vectorizable_reduction): Set number of copies to 1 in case of pure
1960         SLP statement.
1961         * tree-vect-stmts.c (vectorizable_conversion,
1962         vectorizable_assignment, vectorizable_shift,
1963         vectorizable_operation, vectorizable_type_demotion,
1964         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1965         Likewise.
1966         (vectorizable_condition): Move the check that it is not SLP
1967         vectorization before the number of copies check.
1968         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1969         to vectorize the loop using SLP.
1970
1971 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1972
1973         PR middle-end/48597
1974         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1975         inline asm.
1976
1977 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1978
1979         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1980         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1981         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1982         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1983         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1984         linux*.h headers.
1985         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1986         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1987         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1988         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1989         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1990         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1991         REG_NAME.
1992         * config/i386/linux.h (REG_NAME): Don't define.
1993         * config/i386/linux64.h (REG_NAME): Don't define.
1994         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1995         Undefine before defining.
1996
1997 2011-04-28  Jan Hubicka  <jh@suse.cz>
1998
1999         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2000         nonconstant_names array.
2001         (estimate_function_body_sizes): Build nonconstant_names array; handle
2002         BUILT_IN_CONSTANT_P.
2003
2004 2011-04-28  Richard Guenther  <rguenther@suse.de>
2005
2006         PR bootstrap/48804
2007         Revert
2008         2011-04-28  Richard Guenther  <rguenther@suse.de>
2009
2010         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2011         as late as possible.
2012
2013 2011-04-28  Richard Guenther  <rguenther@suse.de>
2014
2015         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2016         (debug_constraint): Do it here.
2017         (dump_constraints): And here.
2018         (rewrite_constraints): And here.
2019         (dump_constraint_edge): Remove.
2020         (dump_constraint_graph): Rewrite to produce DOT output.
2021         (solve_constraints): Build succ graph as late as possible.
2022         Dump constraint graphs before and after solving.
2023
2024 2011-04-28  Richard Guenther  <rguenther@suse.de>
2025
2026         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2027         New function split out from ...
2028         (find_func_aliases): ... here.  Call it.
2029         (find_func_aliases_for_call): Likewise.
2030
2031 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2032
2033         * internal-fn.h (internal_fn_name_array): Declare.
2034         (internal_fn_flags_array): Likewise.
2035
2036 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2037
2038         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2039         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2040         Move from sse.md.
2041         (ssemodefsuffix): Remove.
2042         (ssevecmodesuffix): New mode attribute.
2043         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2044         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2045         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2046         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2047         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2048         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2049         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2050         ssemodesuffix mode attribute.
2051         (float splitters): Use ssevecmodesuffix mode attribute.
2052         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2053         (sseinsmode): Rename from avxvecmode.
2054         (avxsizesuffix): Rename from avxmodesuffix.
2055         (sseintvecmode): Rename from avxpermvecmode.
2056         (ssedoublevecmode): Rename from ssedoublesizemode.
2057         (ssehalfvecmode): Rename from avxhalfvecmode.
2058         (ssescalarmode): Rename from avxscalarmode.
2059         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2060         templates for ssemodesuffix mode attribute.
2061         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2062         mode attribute.
2063
2064         Adjust RTX patterns globally for renamed mode attributes.
2065
2066 2011-04-27  Jan Hubcika  <jh@suse.cz>
2067
2068         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2069         * ipa-inline-analysis.c: Include alloc-pool.h.
2070         (edge_predicate_pool): New.
2071         (trye_predicate_p): New function
2072         (false_predicate_p): New function.
2073         (add_clause): Sanity check that false clauses are "optimized";
2074         never add clauses to predicate that is already known to be false.
2075         (and_predicate): Use flase_predicate_p.
2076         (evaulate_predicate): Rename to ...
2077         (evaluate_predicate): ... this one; update all callers; assert
2078         that false is not listed among possible truths.
2079         (dump_predicate): Use true_predicate_p.
2080         (account_size_time): Use false_predicate_p.
2081         (evaulate_conditions_for_edge): Rename to ...
2082         (evaluate_conditions_for_edge) ... this one.
2083         (edge_set_predicate): New function.
2084         (inline_edge_duplication_hook): Duplicate edge predicates.
2085         (inline_edge_removal_hook): Free edge predicates.
2086         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2087         (dump_inline_summary): Update.
2088         (estimate_function_body_sizes): Set edge predicates.
2089         (estimate_calls_size_and_time): Handle predicates.
2090         (estimate_callee_size_and_time): Update.
2091         (remap_predicate): Add toplev_predicate; update comment.
2092         (remap_edge_predicates): New function.
2093         (inline_merge_summary): Compute toplev predicate; update.
2094         (read_predicate): New function.
2095         (read_inline_edge_summary): Use it.
2096         (inline_read_section): Likewise.
2097         (write_predicate): New function.
2098         (write_inline_edge_summary): Use it.
2099         (inline_write_summary): Likewise.
2100         (inline_free_summary): Free alloc pool and edge summary vec.
2101
2102 2011-04-27  Richard Guenther  <rguenther@suse.de>
2103
2104         * tree-ssa-structalias.c (changed_count): Remove.
2105         (changed): Use a bitmap.
2106         (unify_nodes): Adjust.
2107         (do_sd_constraint): Likewise.
2108         (do_ds_constraint): Likewise.
2109         (do_complex_constraint): Likewise.
2110         (solve_graph): Likewise.
2111
2112 2011-04-27  Jan Hubicka  <jh@suse.cz>
2113
2114         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2115
2116 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2117
2118         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2119         (avx_vperm2f128_*_operand): Ditto.
2120         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2121         Use avx_vpermilp_parallel in insn condition.
2122         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2123         Use avx_vperm2f128_parallel in insn condition.
2124
2125 2011-04-27  Richard Guenther  <rguenther@suse.de>
2126
2127         * Makefile.in (tree-ssa-structalias.o): Remove
2128         gt-tree-ssa-structalias.h dependency.
2129         (GTFILES): Remove tree-ssa-structalias.c.
2130         * tree.c (allocate_decl_uid): New function.
2131         (make_node_stat): Use it.
2132         (copy_node_stat): Likewise.
2133         * tree.h (allocate_decl_uid): Declare.
2134         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2135         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2136         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2137         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2138         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2139         (struct heapvar_map): Likewise.
2140         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2141         heapvar_insert): Likewise.
2142         (make_heapvar_for): Rename to ...
2143         (make_heapvar): ... this.  Simplify.
2144         (fake_var_decl_obstack): New global var.
2145         (build_fake_var_decl): New function.
2146         (make_constraint_from_heapvar): Adjust.
2147         (handle_lhs_call): Likewise.
2148         (create_function_info_for): Likewise.
2149         (intra_create_variable_infos): Likewise.
2150         (init_alias_vars): Allocate fake_var_decl_obstack.
2151         (init_alias_heapvars, delete_alias_heapvars): Remove.
2152         (compute_points_to_sets): Do not call init_alias_heapvars.
2153         (ipa_pta_execute): Likewise.
2154         (delete_points_to_sets): Free fake_var_decl_obstack.
2155
2156 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2157
2158         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2159         (si_from_UTItype, si_to_UTItype): New functions.
2160         (__udivmodti4): Use them to implement type-punning.
2161         * config/spu/multi3.c (union qword_TItype): New data type.
2162         (si_from_TItype, si_to_TItype): New functions.
2163         (__multi3): Use them to implement type-punning.
2164
2165 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2166
2167         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2168
2169 2011-04-27  Jan Hubicka  <jh@suse.cz>
2170
2171         * ipa-prop.c (function_insertion_hook_holder): New holder.
2172         (ipa_add_new_function): New function.
2173         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2174         Register/deregister holder.
2175
2176 2011-04-27  Richard Guenther  <rguenther@suse.de>
2177
2178         PR tree-optimization/48772
2179         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2180
2181 2011-04-27  Richard Guenther  <rguenther@suse.de>
2182
2183         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2184         TARGET_MEM_REF handling.
2185
2186 2011-04-27  Nick Clifton  <nickc@redhat.com>
2187
2188         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2189         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2190         (REG_CLASS_NAMES): Likewise.
2191         (REG_CLASS_CONTENTS): Likewise.
2192         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2193         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2194         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2195         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2196         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2197         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2198         duplicate register classes.
2199         (frv_class_likely_spilled_p): Likewise.
2200         (frv_register_move_cost): Likewise.
2201
2202         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2203         end of the regno_reg_class array.
2204
2205 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2206
2207         PR c/48742
2208         * c-typeck.c (build_binary_op): Don't wrap arguments if
2209         int_operands is true.
2210
2211 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2212
2213         PR target/48767
2214         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2215         targetm.calls.must_pass_in_stack for void type.
2216
2217 2011-04-26  Jan Hubicka  <jh@suse.cz>
2218
2219         * cgraphbuild.c (build_cgraph_edges): Update call
2220         of cgraph_create_edge and cgraph_create_indirect_edge.
2221         * cgraph.c (cgraph_create_edge_including_clones,
2222         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2223         cgraph_update_edges_for_call_stmt_node): Do not take nest
2224         argument; do not initialize call_stmt_size/time.
2225         (dump_cgraph_node): Do not dump nest.
2226         (cgraph_clone_edge): Do not take loop_nest argument;
2227         do not propagate it; do not clone call_stmt_size/time.
2228         (cgraph_clone_node): Likewise.
2229         (cgraph_create_virtual_clone): Update.
2230         * cgraph.h (struct cgraph_edge): Remove
2231         call_stmt_size/call_stmt_time/loop_nest.
2232         (cgraph_create_edge, cgraph_create_indirect_edge,
2233         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2234         prototype.
2235         * tree-emutls.c (gen_emutls_addr): Update.
2236         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2237         loop_nest; handle indirect calls, too.
2238         (clone_inlined_nodes): Do not care about updating inline summaries.
2239         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2240         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2241         stream call_stmt_size/call_stmt_time/loop_nest.
2242         * ipa-inline.c (edge_badness): Update.
2243         (ipa_inline): dump summaries after inlining.
2244         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2245         New.
2246         (inline_edge_summary): New function.
2247         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2248         (inline_edge_removal_hook): Handle edge summaries.
2249         (inline_edge_duplication_hook): New hook.
2250         (inline_summary_alloc): Alloc hooks.
2251         (initialize_growth_caches): Do not register removal hooks.
2252         (free_growth_caches); Do not free removal hook.
2253         (dump_inline_edge_summary): New function.
2254         (dump_inline_summary): Use it.
2255         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2256         (inline_update_callee_summaries): New function.
2257         (inline_merge_summary): Use it.
2258         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2259         (read_inline_edge_summary): New function.
2260         (inline_read_section): Use it.
2261         (write_inline_edge_summary): New function.
2262         (inline_write_summary): Use it.
2263         (inline_free_summary): Free edge new holders.
2264         * tree-inline.c (copy_bb): Update.
2265
2266 2011-04-26  Jason Merrill  <jason@redhat.com>
2267
2268         * tree-eh.c (lower_try_finally_switch): Create the label along with
2269         the CASE_LABEL_EXPR.
2270
2271 2011-04-26  David S. Miller  <davem@davemloft.net>
2272             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2273
2274         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2275         * configure: Regenerate.
2276
2277 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2278
2279         PR target/48258
2280         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2281         reduction.
2282         (VEC_reduc): New code iterator and splitters for vector reduction.
2283         (VEC_reduc_name): Ditto.
2284         (VEC_reduc_rtx): Ditto.
2285         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2286         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2287
2288         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2289         support for extracting SF on VSX.
2290
2291         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2292         generating xscvspdp.
2293         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2294         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2295         double add, minimum, maximum vector reduction.
2296         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2297         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2298         optimize double vector reduction.
2299         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2300
2301 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2302
2303         * config/fr30/fr30.h (inhibit_libc): Don't define.
2304         * config/m32r/m32r-protos.h: Correct comment.
2305         * config/v850/v850.h (GHS_default_section_names,
2306         GHS_current_section_names): Use tree, not union tree_node *.
2307
2308 2011-04-26  Xinliang David Li  <davidxl@google.com>
2309
2310         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2311         * c-family/c-opts.c (c_common_handle_option): Set
2312         warn_maybe_uninitialized.
2313         * opts.c (common_handle_option): Ditto.
2314         * common.opt:  New option.
2315         * tree-ssa.c (warn_uninit): Add one more parameter.
2316         (warn_uninitialized_var): Pass warning code.
2317         * tree-flow.h: Interface change.
2318
2319
2320 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2321
2322         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2323         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2324         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2325
2326 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2327
2328         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2329         * config/mips/mips.opt (mmips-tfile): Remove.
2330
2331         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2332         mips-tdump reference to ...
2333         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2334         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2335         reference by Tru64 UNIX.
2336
2337 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2338
2339         PR debug/48768
2340         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2341         is error_mark_node, set value to NULL.
2342
2343         PR tree-optimization/48734
2344         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2345         if return value from maybe_fold_*_comparsions isn't something
2346         the code is prepared to handle.
2347
2348 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2349
2350         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2351         mode check.
2352         (ext_QIreg_nomode_operands): Remove.
2353         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2354         (*andsi_1): Ditto.
2355         (*andhi_1): Ditto.
2356
2357 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2358
2359         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2360
2361 2011-04-26  Richard Guenther  <rguenther@suse.de>
2362
2363         * c-typeck.c (build_unary_op): Do not expand array-refs via
2364         pointer arithmetic.  Only adjust qualifiers for function types.
2365
2366 2011-04-26  Richard Guenther  <rguenther@suse.de>
2367
2368         PR middle-end/48694
2369         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2370         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2371         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2372         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2373
2374 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2375
2376         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2377         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2378         * doc/extend.texi: Document __underlying_type.
2379
2380 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2381
2382         * config/rs6000/titan.md (automata_option "progress"): Remove.
2383
2384 2011-04-25  Jeff Law  <law@redhat.com>
2385
2386         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2387
2388 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2389
2390         * system.h (ENUM_BITFIELD): Remove.
2391
2392 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2393             Eric Botcazou  <ebotcazou@adacore.com>
2394
2395         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2396         for STORE_FLAG_VALUE==-1 case.
2397
2398 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2399
2400         PR target/43804
2401         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2402         LEGITIMATE_PIC_OPERAND_P.
2403
2404 2011-04-24  Jan Hubicka  <jh@suse.cz>
2405
2406         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2407         WPA hack.
2408         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2409         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2410         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2411         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2412         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2413         Sanity check predicate length.
2414         (remap_predicate): Likewise; sanity check jump functions.
2415         (inline_read_section, inline_write_summary): Sanity check
2416         predicate length.
2417
2418 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2419
2420         PR other/48748
2421         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2422         __is_literal_type, and __is_trivial; update throughout about
2423         possibly cv-qualified void types.
2424
2425 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2426
2427         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2428         testsuite and make it version agnostic.
2429
2430 2011-04-22  Jan Hubicka  <jh@suse.cz>
2431
2432         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2433
2434 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2435
2436         PR c/48685
2437         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2438         to VOID_TYPE even around MODIFY_EXPR.
2439
2440 2011-04-22  Mike Stump  <mikestump@comcast.net>
2441
2442         * gensupport.c (read_md_rtx): Fix typo in comment.
2443         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2444         comment.
2445
2446 2011-04-22  Jan Hubicka  <jh@suse.cz>
2447
2448         * gengtype.c (open_base_files): Add ipa-inline.h include.
2449         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2450         ipa-prop.c; update all uses.
2451         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2452         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2453         merge summary of inlined function into former caller.
2454         * ipa-inline.c (max_benefit): Remove.
2455         (edge_badness): Compensate for removal of benefits.
2456         (update_caller_keys): Use
2457         reset_node_growth_cache/reset_edge_growth_cache.
2458         (update_callee_keys): Likewise.
2459         (update_all_callee_keys): Likewise.
2460         (inline_small_functions): Do not collect max_benefit; do not reset
2461         estimated_growth; call free_growth_caches and initialize_growth_caches.
2462         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2463         struct size_time_entry): New structures.
2464         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2465         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2466         and estimated_growth.
2467         (edge_growth_cache_entry): New structure.
2468         (node_growth_cache, edge_growth_cache): New global vars.
2469         (estimate_growth): Turn into inline.
2470         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2471         initialize_growth_caches, free_growth_caches): Declare.
2472         (estimate_edge_growth): Rewrite.
2473         (estimate_edge_time): Implement as inline cache lookup.
2474         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2475         functions.
2476         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2477         (NUM_CONDITIONS): New constant.
2478         (predicate_conditions): New enum.
2479         (IS_NOT_CONSTANT): New constant.
2480         (edge_removal_hook_holder): New var.
2481         (node_growth_cache, edge_growth_cache): New global vars.
2482         (true_predicate, single_cond_predicate, false_predicate,
2483         not_inlined_predicate, add_condition, add_clause, and_predicates,
2484         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2485         dump_clause, dump_predicate, account_size_time,
2486         evaulate_conditions_for_edge): New functions.
2487         (inline_summary_alloc): Move to heap.
2488         (inline_node_removal_hook): Clear condition and entry vectors.
2489         (inline_edge_removal_hook): New function.
2490         (initialize_growth_caches, free_growth_caches): New function.
2491         (dump_inline_summary): Update.
2492         (edge_execution_predicate): New function.
2493         (will_be_nonconstant_predicate): New function.
2494         (estimate_function_body_sizes): Compute BB and constantness predicates.
2495         (compute_inline_parameters): Do not clear estimated_growth.
2496         (estimate_edge_size_and_time): New function.
2497         (estimate_calls_size_and_time): New function.
2498         (estimate_callee_size_and_time): New function.
2499         (remap_predicate): New function.
2500         (inline_merge_summary): New function.
2501         (do_estimate_edge_time): New function based on...
2502         (estimate_edge_time): ... this one.
2503         (do_estimate_edge_growth): New function.
2504         (do_estimate_growth): New function based on....
2505         (estimate_growth): ... this one.
2506         (inline_analyze_function): Analyze after deciding on jump functions.
2507         (inline_read_section): New function.
2508         (inline_read_summary): Use it.
2509         (inline_write_summary): Write all the new data.
2510         * ipa-prop.c (ipa_get_param_decl_index): Export.
2511         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2512         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2513         Declare.
2514         (ipa_get_lattice): Move here from ipa-cp.c
2515         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2516         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2517         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2518         cgraph_edge_inlinable_p): Remove.
2519         * cgraphunit.c: Include ipainline.h
2520         (cgraph_process_new_functions): Update call of
2521         compute_inline_parameters.
2522
2523 2011-04-22  Richard Guenther  <rguenther@suse.de>
2524
2525         * tree.c (build_int_cst): Properly create canonicalized integer
2526         constants.
2527         (build_int_cst_type): Remove scary comments.
2528
2529 2011-04-22  Xinliang David Li  <davidxl@google.com>
2530
2531         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2532         by default when -Wno-error is not specified.
2533         * opts-global.c (decode_options): Remove call to
2534         control_warning_options.
2535
2536 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2537
2538         PR tree-optimization/48717
2539         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2540         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2541
2542 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2543
2544         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2545         definition where used.
2546
2547 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2548
2549         PR c/48716
2550         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2551         TREE_STATIC variables declared inside of some OpenMP construct.
2552
2553 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2554
2555         PR middle-end/48585
2556         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2557
2558 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2559
2560         PR c/36750
2561         * c-typeck.c (pop_init_level): Do not warn about initializing
2562         with ` = {0}'.
2563
2564 2011-04-22  Alan Modra  <amodra@gmail.com>
2565
2566         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2567         when returning call_cookie.
2568         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2569         pointers, to functions with no more vector args than the current
2570         function, and some non-local calls for ABI_V4.
2571         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2572         sibcall_nonlocal_aix64): Combine to ..
2573         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2574         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2575         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2576         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2577         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2578         operand.
2579         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2580         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2581         sibcall_value_symbolic_64): Delete.
2582
2583 2011-04-21  Xinliang David Li  <davidxl@google.com>
2584
2585         * cgraph.h: Remove pid.
2586         * cgraph.c: Remove pid.
2587         * value-prof.c (init_node_map): New function.
2588         (del_node_map): New function.
2589         (find_func_by_funcdef_no): New function.
2590         (gimple_ic_transform): Call new function.
2591         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2592         * function.c (get_last_funcdef_no): New function.
2593         * function.h (get_last_funcdef_no): New function.
2594         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2595         to libgcov function.
2596         (tree-profiling): Call node map init and delete function.
2597
2598 2011-04-21  Ian Lance Taylor  <iant@google.com>
2599
2600         * godump.c (go_format_type): Use exported Go name for anonymous
2601         field name.
2602
2603 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2604
2605         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2606         Call builtin_function_type_list instead of builtin_function_type.
2607         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2608
2609 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2610
2611         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2612         build_function_type_list instead of build_function_type.
2613         Delete variable `endlink'.
2614
2615 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2616
2617         * config/s390/s390.c (s390_init_builtins): Call
2618         build_function_type_list instead of build_function_type.
2619
2620 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2621
2622         * config/ia64/ia64.c (ia64_init_builtins): Call
2623         build_function_type_list instead of builtin_function_type.
2624
2625 2011-04-21  Easwaran Raman  <eraman@google.com>
2626
2627         * cfgexpand.c (stack_var): Remove OFFSET...
2628         (add_stack_var): ...and its reference here...
2629         (expand_stack_vars): ...and here.
2630         (stack_var_cmp): Sort by descending order of size.
2631         (partition_stack_vars): Change heuristic.
2632         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2633         (dump_stack_var_partition): Add newline after each partition.
2634
2635 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2636             Jeff Law  <law@redhat.com>
2637
2638         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2639         * gengtype.c (matching_file_name_substitute): Likewise.
2640
2641 2011-04-21  Richard Guenther  <rguenther@suse.de>
2642
2643         PR lto/48703
2644         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2645
2646 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2647
2648         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2649
2650 2011-04-21  Richard Guenther  <rguenther@suse.de>
2651
2652         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2653         file name.
2654
2655 2011-04-21  Richard Guenther  <rguenther@suse.de>
2656
2657         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2658         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2659         Use DECL_P, not SSA_VAR_P.
2660         (ptr_derefs_may_alias_p): Likewise.
2661         (ptr_deref_may_alias_ref_p_1): Likewise.
2662         (decl_refs_may_alias_p): Likewise.
2663         (refs_may_alias_p_1): Likewise.
2664         (ref_maybe_used_by_call_p_1): Likewise.
2665         (call_may_clobber_ref_p_1): Likewise.
2666         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2667         are either MEM_REF or TARGET_MEM_REF.
2668         (indirect_refs_may_alias_p): Likewise.
2669         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2670         for MEM_EXPR of indirect calls.
2671
2672 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2673
2674         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2675         (dst_file_info_struct): Remove flen field.
2676         (lookup_filename): Remove code that set flen field.
2677
2678 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2679
2680         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2681
2682 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2683
2684         PR target/48708
2685         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2686         vec_extract and vec_concat for non-SSE4_1 targets.
2687
2688 2011-04-21  Richard Guenther  <rguenther@suse.de>
2689
2690         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2691         return statements.
2692
2693 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2694
2695         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2696         undefine.
2697         (FILE): Don't undefine.
2698
2699 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2700
2701         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2702         struct rtx_def *.
2703         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2704         struct rtx_def *.
2705         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2706         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2707         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2708         rtx_def *.
2709         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2710         definitions where used.
2711         * config/microblaze/microblaze.h (struct microblaze_args): Use
2712         rtx, not struct rtx_def *.
2713         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2714         rtx_def *.
2715         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2716         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2717         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2718         not struct rtx_def *.
2719         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2720         struct rtx_def *.
2721         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2722         rtx_def *.
2723         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2724
2725 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2726
2727         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2728         operand_equal_p to compare DR_BASE_ADDRESSes.
2729         (vect_check_interleaving): Likewise.
2730
2731 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2732
2733         PR target/46329
2734         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2735         for all Neon struct constants.
2736
2737 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2738
2739         * target.def (legitimate_constant_p): New hook.
2740         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2741         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2742         * doc/tm.texi: Regenerate.
2743         * hooks.h (hook_bool_mode_rtx_true): Declare.
2744         * hooks.c (hook_bool_mode_rtx_true): Define.
2745         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2746         * calls.c (precompute_register_parameters): Replace uses of
2747         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2748         (emit_library_call_value_1): Likewise.
2749         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2750         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2751         * ira-costs.c (scan_one_insn): Likewise.
2752         * recog.c (general_operand, immediate_operand): Likewise.
2753         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2754         * reload1.c (init_eliminable_invariants): Likewise.
2755
2756         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2757         mode argument.
2758         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2759         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2760         argument.
2761         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2762         * config/alpha/predicates.md (input_operand): Update call to
2763         alpha_legitimate_constant_p.
2764
2765         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2766         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2767         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2768         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2769         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2770         (arm_legitimate_constant_p): New functions.
2771         (arm_cannot_force_const_mem): Make static.
2772
2773         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2774
2775         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2776         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2777         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2778         instead of bfin_legitimate_constant_p.
2779         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2780         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2781
2782         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2783
2784         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2785
2786         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2787         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2788         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2789         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2790
2791         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2792         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2793         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2794
2795         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2796         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2797         * config/i386/i386.c (legitimate_constant_p): Rename to...
2798         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2799         argument.
2800         (ix86_cannot_force_const_mem): Update accordingly.
2801         (ix86_legitimate_address_p): Likewise.
2802         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2803         * config/i386/i386.md: Update commentary.
2804
2805         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2806         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2807         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2808         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2809
2810         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2811
2812         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2813         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2814         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2815         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2816
2817         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2818         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2819         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2820
2821         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2822         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2823         (m32r_legitimate_constant_p): New function.
2824
2825         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2826         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2827         LEGITIMATE_CONSTANT_P.
2828         (LEGITIMATE_CONSTANT_P): Delete.
2829         * config/m68k/m68k.c (m68k_expand_prologue): Call
2830         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2831         (m68k_legitimate_constant_p): New function.
2832         * config/m68k/m68k.md: Update comments.
2833
2834         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2835         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2836         (mcore_legitimate_constant_p): New function.
2837
2838         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2839         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2840         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2841         Add a mode argument.
2842         (mep_legitimate_address): Update accordingly.
2843         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2844
2845         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2846         Delete.
2847         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2848         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2849         static.  Check OP's mode for VOIDmode.
2850         (microblaze_legitimate_constant_p): New function.
2851         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2852
2853         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2854         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2855         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2856         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2857         * config/mips/predicates.md: Update comments.
2858
2859         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2860         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2861         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2862         (mmix_legitimate_constant_p): Make static, return a bool, and take
2863         a mode argument.
2864         (mmix_print_operand_address): Update accordingly.
2865
2866         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2867         Delete.
2868         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2869         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2870         static.  Add a mode argument.
2871         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2872
2873         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2874
2875         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2876         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2877         (pa_legitimate_constant_p): New function.
2878
2879         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2880
2881         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2882         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2883         (pdp11_legitimate_constant_p): New function.
2884
2885         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2886         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2887         (rs6000_legitimate_constant_p): New function.
2888
2889         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2890         (rx_legitimate_constant_p): ...this.
2891         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2892         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2893         (rx_legitimate_constant_p): ...this.
2894         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2895         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2896
2897         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2898         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2899         * config/s390/s390.c (legitimate_constant_p): Rename to...
2900         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2901         and add a mode argument.
2902         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2903
2904         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2905
2906         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2907         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2908         (sh_legitimate_constant_p): New function.
2909
2910         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2911         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2912         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2913         (legitimate_constant_p): Rename to...
2914         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2915         argument.
2916         (constant_address_p): Update accordingly.
2917
2918         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2919         argument and return a bool.
2920         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2921         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2923         (spu_rtx_costs): Update accordingly.
2924         * config/spu/predicates.md (vec_imm_operand): Likewise.
2925
2926         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2927
2928         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2929         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2930         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2931
2932         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2933         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2934         * config/vax/vax.c (legitimate_constant_p): Likewise.
2935
2936         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2937         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2938         (xtensa_legitimate_constant_p): New function.
2939
2940 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2941
2942         * target.def (cannot_force_const_mem): Add a mode argument.
2943         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2944         * doc/tm.texi: Regenerate.
2945         * hooks.h (hook_bool_mode_rtx_false): Declare.
2946         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2947         (hook_bool_mode_const_rtx_true): Likewise.
2948         (hook_bool_mode_rtx_false): New function.
2949         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2950         to be non-VOID.  Update call to cannot_force_const_mem.
2951         (find_reloads): Update accordingly.
2952         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2953         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2954         argument.
2955         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2956         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2957         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2958         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2959         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2960         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2961         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2962         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2963         (m68k_cannot_force_const_mem): ...this new function.
2964         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2965         argument.
2966         (mips_const_insns, mips_legitimize_const_move): Update calls.
2967         (mips_secondary_reload_class): Likewise.
2968         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2969         (pa_cannot_force_const_mem): ...this new function.
2970         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2971         (rs6000_cannot_force_const_mem): ...this new function.
2972         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2973         argument.
2974         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2975         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2976         to...
2977         (xtensa_cannot_force_const_mem): ...this new function.
2978
2979 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2980
2981         * config/mips/mips.c (mips16_build_function_stub): Call
2982         build_function_type_list instead of build_function_type.
2983         (mips16_build_call_stub): Likewise.
2984
2985 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2986
2987         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2988         instead of build_function_type.
2989
2990 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2991
2992         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2993         instead of build_function_type.
2994
2995 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2996
2997         PR target/48678
2998         * config/i386/i386.md (insv): Change operand 0 constraint to
2999         "register_operand".  Change operand 1 and 2 constraint to
3000         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3001         * config/i386/sse.md (sse4_1_pinsrb): Export.
3002         (sse2_pinsrw): Ditto.
3003         (sse4_1_pinsrd): Ditto.
3004         (sse4_1_pinsrq): Ditto.
3005         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3006         * config/i386/i386.c (ix86_expand_pinsr): New.
3007
3008 2011-04-20  Easwaran Raman  <eraman@google.com>
3009
3010         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3011         containing union type only with -fstrict-aliasing.
3012
3013 2011-04-20  Jim Meyering  <meyering@redhat.com>
3014
3015         Remove useless if-before-free tests.
3016         * calls.c (expand_call, save_area): Likewise.
3017         * cfgcleanup.c (try_forward_edges): Likewise.
3018         * collect2.c (collect_execute): Likewise.
3019         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3020         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3021         * coverage.c (coverage_checksum_string): Likewise.
3022         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3023         * cselib.c (cselib_init): Likewise.
3024         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3025         (df_set_clean_cfg): Likewise.
3026         * function.c (free_after_compilation): Likewise.
3027         * gcc.c (do_spec_1, main): Likewise.
3028         * gcov.c (create_file_names): Likewise.
3029         * gensupport.c (identify_predicable_attribute): Likewise.
3030         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3031         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3032         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3033         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3034         * ipa-pure-const.c (local_pure_const): Likewise.
3035         * ipa-reference.c (propagate): Likewise.
3036         * ira-costs.c (free_ira_costs): Likewise.
3037         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3038         * matrix-reorg.c (mat_free): Likewise.
3039         * prefix.c (get_key_value): Likewise.
3040         * profile.c (compute_value_histograms): Likewise.
3041         * reload1.c (free_reg_equiv): Likewise.
3042         * sched-deps.c (free_deps): Likewise.
3043         * sel-sched-ir.c (fence_clear): Likewise.
3044         * sese.c (set_rename, if_region_set_false_region): Likewise.
3045         * tree-data-ref.c (free_rdg): Likewise.
3046         * tree-eh.c (lower_try_finally): Likewise.
3047         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3048         * tree-ssa-live.c (delete_var_map): Likewise.
3049         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3050         * tree-ssa-pre.c (phi_trans_add): Likewise.
3051
3052 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3053
3054         PR tree-optimization/48611
3055         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3056         beyond ERT_MUST_NOT_THROW region.
3057
3058 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3059
3060         * config/mips/mips.opt (mfix-24k): New.
3061         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3062         * config/mips/mips.md (length): Increase by 4 for stores if
3063         fixing 24K errata.
3064         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3065         all noreorder if fixing 24K errata.
3066         * doc/invoke.texi: Document mfix-24k.
3067
3068 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3069
3070         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3071         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3072
3073 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3074
3075         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3076         (const_ok_for_op): ... to here.
3077
3078 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3079
3080         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3081         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3082
3083 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3084
3085         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3086
3087 2011-04-20  Richard Guenther  <rguenther@suse.de>
3088
3089         PR tree-optimization/47892
3090         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3091         are if-convertible.
3092
3093 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3094
3095         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3096
3097 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3098
3099         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3100
3101 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3102
3103         PR target/18145
3104
3105         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3106         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3107         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3108         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3109         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3110
3111         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3112         New prototype.
3113
3114         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3115         (avr_asm_named_section, avr_asm_output_aligned_common,
3116         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3117         New functions to update...
3118         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3119         (avr_asm_init_sections): Overwrite section callbacks for
3120         data_section, bss_section.
3121         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3122         from here to...
3123         (avr_file_end): ...here.
3124
3125 2011-04-20  Richard Guenther  <rguenther@suse.de>
3126
3127         PR middle-end/48695
3128         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3129         objects and types here.  Adjust for their offset before comparing.
3130
3131 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3132
3133         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3134         statement per copy.
3135
3136 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3137
3138         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3139         (GIMPLE_H): Include $(INTERNAL_FN_H).
3140         (OBJS-common): Add internal-fn.o.
3141         (internal-fn.o): New rule.
3142         * internal-fn.def: New file.
3143         * internal-fn.h: Likewise.
3144         * internal-fn.c: Likewise.
3145         * gimple.h: Include internal-fn.h.
3146         (GF_CALL_INTERNAL): New gf_mask.
3147         (gimple_statement_call): Put fntype into a union with a new
3148         internal_fn field.
3149         (gimple_build_call_internal): Declare.
3150         (gimple_build_call_internal_vec): Likewise.
3151         (gimple_call_same_target_p): Likewise.
3152         (gimple_call_internal_p): New function.
3153         (gimple_call_internal_fn): Likewise.
3154         (gimple_call_fntype): Return null for internal calls.
3155         (gimple_call_set_fntype): Assert that the function is not internal.
3156         (gimple_call_set_fn): Likewise.
3157         (gimple_call_set_fndecl): Likewise.
3158         (gimple_call_set_internal_fn): New function.
3159         (gimple_call_addr_fndecl): Handle null functions.
3160         (gimple_call_return_type): Likewise null types.
3161         * gimple.c (gimple_build_call_internal_1): New function.
3162         (gimple_build_call_internal): Likewise.
3163         (gimple_build_call_internal_vec): Likewise.
3164         (gimple_call_same_target_p): Likewise.
3165         (gimple_call_flags): Handle calls to internal functions.
3166         (gimple_call_fnspec): New function.
3167         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3168         (gimple_has_side_effects): Handle null functions.
3169         (gimple_rhs_has_side_effects): Likewise.
3170         (gimple_call_copy_skip_args): Handle calls to internal functions.
3171         * cfgexpand.c (expand_call_stmt): Likewise.
3172         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3173         * gimple-fold.c (gimple_fold_call): Handle null functions.
3174         (gimple_fold_stmt_to_constant_1): Don't fold
3175         calls to internal functions.
3176         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3177         functions.
3178         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3179         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3180         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3181         (do_warn_unused_result): Likewise.
3182         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3183         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3184         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3185         the target of a call.
3186         (initialize_hash_element): Update accordingly.
3187         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3188         (iterative_hash_hashable_expr): Handle calls to internal functions.
3189         (print_expr_hash_elt): Likewise.
3190         * tree-ssa-pre.c (can_value_number_call): Likewise.
3191         (eliminate): Handle null functions.
3192         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3193         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3194         (find_func_aliases): Likewise.
3195         * value-prof.c (gimple_ic_transform): Likewise.
3196         (gimple_indirect_call_to_profile): Likewise.
3197         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3198         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3199
3200 2011-04-19  Jan Hubicka  <jh@suse.cz>
3201
3202         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3203         * ipa-inline.c (inline_small_functions): Compute summaries first,
3204         populate heap later.
3205
3206 2011-04-19  Jan Hubicka  <jh@suse.cz>
3207
3208         * cgraph.h (save_inline_function_body): Remove.
3209         * ipa-inline-transform.c: New file, broke out of...
3210         * ipa-inline.c: ... this one; Update toplevel comment.
3211         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3212         make global.
3213         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3214         (cgraph_mark_inline_edge): Rename to inline_call; move to
3215         ipa-inline-transform.c.
3216         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3217         move to ipa-inline-transform.c
3218         (recursive_inlining, inline_small_functions, flatten_function,
3219         ipa_inline, inline_always_inline_functions,
3220         early_inline_small_functions): Update.
3221         (inline_transform): Move to ipa-inline-transform.c.
3222         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3223         Declare.
3224         * Makefile.in (ipa-inline-transform.o): New file.
3225         * cgraphunit.c (save_inline_function_body): Move to
3226         ipa-inline-transform.c
3227
3228 2011-04-19  DJ Delorie  <dj@redhat.com>
3229
3230         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3231         registers if we already know there aren't any.
3232         (m32c_emit_epilogue): Don't emit a barrier here.
3233         (m32c_emit_eh_epilogue): Likewise.
3234         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3235         operands at expand time.
3236         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3237         int" wchar type.
3238         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3239         duplicates.  Provide aliases instead.
3240         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3241         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3242         the compiler.
3243
3244 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3245
3246         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3247         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3248         (general_or_i64_p, sparc_register_move_cost): New function.
3249
3250 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3251
3252         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3253         Add lynx, mipssde.  Sort table.
3254
3255 2011-04-19  Xinliang David Li  <davidxl@google.com>
3256
3257         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3258         not negative.
3259
3260 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3261
3262         PR target/48678
3263         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3264         is a SUBREG with non-MODE_INT mode inside of it.
3265
3266 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3267
3268         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3269         also according to actual contants.
3270         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3271         (gimple_fold_call): Use it.
3272         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3273
3274 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3275
3276         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3277         non-pointer assignments.
3278
3279 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3280
3281         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3282         account anc_offset and otr_type from the indirect edge info.
3283         * ipa-prop.c (get_ancestor_addr_info): New function.
3284         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3285         get_ancestor_addr_info, call it.
3286         (ipa_note_param_call): Do not initialize information about polymorphic
3287         calls, return the indirect call graph edge.  Remove the last
3288         parameter, adjust all callers.
3289         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3290         parameters.  Initialize polymorphic information in the indirect edge.
3291
3292 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3293
3294         PR lto/48148
3295         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3296         the types if they have different enumeration identifiers.
3297
3298 2011-04-19  Jan Hubicka  <jh@suse.cz>
3299
3300         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3301         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3302         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3303         (optimize_function_for_size_p) ... here.
3304
3305 2011-04-19  Richard Guenther  <rguenther@suse.de>
3306
3307         PR lto/48207
3308         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3309         langhook.
3310
3311 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3312
3313         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3314         if DECL_NO_INLINE_WARNING_P is set on the function.
3315
3316 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3317
3318         PR fortran/47976
3319         * reload1.c (inc_for_reload): Return void. All callers changed.
3320         (emit_input_reload_insns): Don't try to delete previous output
3321         reloads to a register, or record spill_reg_store for autoincs.
3322
3323 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3324
3325         * gengtype.h: Updated copyright year.
3326         (struct input_file_st): Add inpisplugin field.
3327         (type_fileloc): New function.
3328         * gengtype.c
3329         (write_typed_struct_alloc_def): Add gcc_assert.
3330         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3331         (write_typed_alloc_defns): Don't output for plugin files.
3332         (input_file_by_name): Clear inpisplugin field.
3333         (main): Set inpisplugin field for plugin files.
3334
3335 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3336
3337         * gengtype-state.c (string_eq): New.
3338         (read_state): Use string_eq instead of strcmp when creating the
3339         state_ident_tab.
3340
3341 2011-04-19  Wei Guozhi  <carrot@google.com>
3342
3343         PR target/47855
3344         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3345         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3346         linkage.
3347         * config/arm/constraints.md (Uu): New constraint.
3348         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3349
3350 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3351
3352         * config.gcc (-*-*-*vms): Added.
3353         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3354         definitions moved.
3355         * config/vms/vms-ld.c: New file.
3356         * config/vms/vms-ar.c: New file.
3357         * config/vms/t-vmsnative: New file.
3358
3359 2011-04-18  Xinliang David Li  <davidxl@google.com>
3360
3361         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3362
3363 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3364
3365         PR middle-end/48661
3366         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3367         if TREE_TYPE (v) is non-NULL.
3368
3369         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3370         gimple_get_virt_mehtod_for_binfo.
3371         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3372         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3373         callers.
3374         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3375
3376 2011-04-18  Michael Matz  <matz@suse.de>
3377             Steve Ellcey  <sje@cup.hp.com>
3378
3379         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3380         use its mode as source mode if it isn't VOIDmode.
3381
3382 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3383
3384         * doc/passes.texi: Fill crossref nodes.
3385
3386 2011-04-18  Jim Meyering  <meyering@redhat.com>
3387
3388         Fix doubled-word typos in comments and strings
3389         * config/alpha/vms-unwind.h: s/for for/for/
3390         * config/arm/unwind-arm.h: Likewise.
3391         * config/microblaze/microblaze.c: Likewise.
3392         * config/sh/constraints.md: s/in in/in/
3393         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3394
3395 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3396
3397         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3398         (AVX_FLOAT_MODE_P): Ditto.
3399         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3400         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3401         (AVX_VEC_FLOAT_MODE_P): Ditto.
3402         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3403         (UNSPEC_MASKSTORE): Ditto.
3404         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3405         Merge from <sse>_movmsk<ssemodesuffix> and
3406         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3407         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3408         iterator.
3409         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3410         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3411         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3412
3413 2011-04-18  Jan Hubicka  <jh@suse.cz>
3414
3415         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3416
3417         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3418         (want_inline_function_called_once_p): Break out the logic from
3419         ipa_inline.
3420         (edge_badness): Ensure that profile is not misupdated.
3421         (lookup_recursive_calls): Prioritize by call frequencies.
3422         (inline_small_functions): Move program size estimates here;
3423         actually process whole queue even when unit growth has been
3424         met. (to properly compute inline_failed reasons and for the
3425         case unit size decrease.) Revisit comments on recursive inlining.
3426         (ipa_inline): Remove unit summary code; first inline hot calls
3427         of functions called once, cold calls next.
3428         (order, nnodes): Remove unused variables.
3429         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3430         (GTFILES): Remove ipa-inline.c
3431         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3432
3433 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3434
3435         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3436
3437 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3438             Richard Earnshaw  <rearnsha@arm.com>
3439
3440         * arm.c (neon_builtin_type_bits): Remove.
3441         (typedef enum neon_builtin_mode): New.
3442         (T_MAX): Don't define.
3443         (typedef enum neon_builtin_datum): Remove bits, codes[],
3444         num_vars and base_fcode.  Add mode, code and fcode.
3445         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3446         VAR10): Change accordingly.
3447         (neon_builtin_data[]): Change accordingly
3448         (arm_init_neon_builtins): Change accordingly.
3449         (neon_builtin_compare): Remove.
3450         (locate_neon_builtin_icode): Remove.
3451         (arm_expand_neon_builtin): Change accordingly.
3452
3453         * arm.h (enum arm_builtins): Move to ...
3454         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3455
3456         * arm.c (arm_builtin_decl): Declare.
3457         (TARGET_BUILTIN_DECL): Define.
3458         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3459         (arm_builtin_decls[]): New.
3460         (arm_init_neon_builtins): Store builtin declarations in
3461         arm_builtin_decls[].
3462         (arm_init_tls_builtins): Likewise.
3463         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3464         (arm_builtin_decl): New.
3465
3466 2011-04-18  Richard Guenther  <rguenther@suse.de>
3467
3468         * tree.c (upper_bound_in_type): Build properly canonicalized
3469         INTEGER_CSTs.
3470         (lower_bound_in_type): Likewise.
3471
3472 2011-04-18  Richard Guenther  <rguenther@suse.de>
3473
3474         * gimple.h (gimple_call_addr_fndecl): New function.
3475         (gimple_call_fndecl): Use it.
3476         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3477         for direct calls.
3478         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3479         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3480
3481 2011-04-18  Richard Guenther  <rguenther@suse.de>
3482
3483         PR middle-end/48650
3484         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3485
3486 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3487
3488         PR lto/48492
3489         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3490         DECL_IN_CONSTANT_POOL without RTL.
3491
3492 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3493             Ira Rosen  <ira.rosen@linaro.org>
3494
3495         PR target/48252
3496         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3497         to match neon_vzip/vuzp/vtrn_internal.
3498         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3499         outputs explicitly dependent on both inputs.
3500         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3501
3502 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3503
3504         PR tree-optimization/48616
3505         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3506         whether the shift is by scalar or vector based on whether all SLP
3507         scalar stmts have the same rhs.
3508
3509 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3510
3511         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3512         memory operands.
3513
3514 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3515
3516         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3517         registers.
3518
3519 2011-04-17  Jan Hubicka  <jh@suse.cz>
3520
3521         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3522         * cgrpahunit.c (cgraph_finalize_function): Do not set
3523         finalized_by_frontend.
3524         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3525         finalized_by_frontend.
3526
3527 2011-04-17  Jan Hubicka  <jh@suse.cz>
3528
3529         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3530         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3531         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3532         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3533         method.
3534         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3535         gimple-fold.c
3536         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3537
3538 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3539
3540         PR lto/48538
3541         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3542         is non-null before accessing it.
3543         (input_cgraph): Remove trailing spaces.
3544
3545 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3546
3547         * params.def (sms-min-sc): New param flag.
3548         * modulo-sched.c (sms_schedule): Use it.
3549         * doc/invoke.texi (sms-min-sc): Document it.
3550
3551 2011-04-17  Jan Hubicka  <jh@suse.cz>
3552
3553         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3554         present, also set gimple_call_set_cannot_inline.
3555         * ipa-inline.c: Update toplevel comment.
3556         (MAX_TIME): Remove.
3557         (cgraph_clone_inlined_nodes): Fix linebreaks.
3558         (cgraph_check_inline_limits): Restructure to ...
3559         (caller_growth_limits): ... this one; be more tolerant
3560         on growth in nested inline chains; add explanatory comment;
3561         fix stack accounting thinko introduced by previous patch.
3562         (cgraph_default_inline_p): Remove.
3563         (report_inline_failed_reason): New function.
3564         (can_inline_edge_p): New function.
3565         (can_early_inline_edge_p): New function.
3566         (leaf_node_p): Move upwards in file.
3567         (want_early_inline_function_p): New function.
3568         (want_inline_small_function_p): New function.
3569         (want_inline_self_recursive_call_p): New function.
3570         (cgraph_edge_badness): Rename to ...
3571         (edge_badness) ... this one; fix linebreaks.
3572         (update_edge_key): Update call of edge_baddness; add
3573         detailed dump about queue updates.
3574         (update_caller_keys): Use can_inline_edge_p and
3575         want_inline_small_function_p.
3576         (cgraph_decide_recursive_inlining): Rename to...
3577         (recursive_inlining): Use can_inline_edge_p and
3578         want_inline_self_recursive_call_p; simplify and remove no longer
3579         valid FIXME.
3580         (cgraph_set_inline_failed): Remove.
3581         (add_new_edges_to_heap): Use can_inline_edge_p and
3582         want_inline_small_function_p.
3583         (cgraph_decide_inlining_of_small_functions): Rename to ...
3584         (inline_small_functions): ... this one; cleanup; use
3585         can/want predicates; cleanup debug ouput; work edges till fibheap
3586         is exhausted and do not stop once unit growth is reached; remove
3587         later loop processing remaining edges.
3588         (cgraph_flatten): Rename to ...
3589         (flatten_function): ... this one; use can_inline_edge_p
3590         and can_early_inline_edge_p predicates.
3591         (cgraph_decide_inlining): Rename to ...
3592         (ipa_inline): ... this one; remove unreachable nodes before
3593         inlining functions called once; simplify the pass.
3594         (cgraph_perform_always_inlining): Rename to ...
3595         (inline_always_inline_functions): ... this one; use
3596         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3597         (cgraph_decide_inlining_incrementally): Rename to ...
3598         (early_inline_small_functions): ... this one; simplify
3599         using new predicates; cleanup; make dumps prettier.
3600         (cgraph_early_inlining): Rename to ...
3601         (early_inliner): newer inline regular functions into always-inlines;
3602         fix updating of call stmt summaries.
3603         (pass_early_inline): Update for new names.
3604         (inline_transform): Fix formating.
3605         (gate_cgraph_decide_inlining): Rename to ...
3606         (pass_ipa_inline): ... this one.
3607         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3608         * ipa-inline-analysis.c (dump_inline_summary): Update.
3609         (compute_inline_parameters): Do not compute disregard_inline_limits;
3610         look for mismatching arguments.
3611         (estimate_growth): Fix handlig of non-trivial self recursion.
3612         (inline_read_summary): Do not read info->disregard_inline_limits.
3613         (inline_write_summary): Do not write info->disregard_inline_limits.
3614         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3615         and move all checks into can_inline_edge_p predicate; re-enable code
3616         comparing optimization levels.
3617         (expand_call_inline): Do not test inline_forbidden_into_p.
3618         * Makefile.in (ipa-inline.o): Update arguments.
3619
3620 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3621
3622         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3623
3624 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3625
3626         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3627
3628 2011-04-17  Michael Matz  <matz@suse.de>
3629
3630         PR tree-optimization/48622
3631         PR lto/48645
3632         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3633         in same order as they're written.
3634
3635 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3636
3637         * config/pa/predicates.md: Reorganize and simplify predicates.
3638         Eliminate duplicate code checks.
3639         (arith_operand): Rename to arith14_operand
3640         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3641         * config/pa/pa.md: Use renamed operands.
3642         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3643         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3644         arith11_operand, adddi3_operand, indexed_memory_operand,
3645         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3646         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3647         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3648         move_dest_operand, move_src_operand, prefetch_cc_operand,
3649         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3650         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3651         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3652         div_operand, int5_operand, movb_comparison_operator,
3653         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3654         arith_double_operand, ireg_operand, lhs_lshift_operand,
3655         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3656         integer_store_memory_operand): Likewise.
3657         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3658         (integer_store_memory_operand, read_only_operand,
3659         function_label_operand, borx_reg_operand,
3660         non_hard_reg_operand): Likewise.
3661         (eq_neq_comparison_operator): Delete unused operator.
3662         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3663         function_label_operand.
3664         (emit_move_sequence): Likewise.
3665
3666 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3667
3668         * config/i386/sse.md (sseunpackmode): New mode attribute.
3669         (ssepackmode): Ditto.
3670         (vec_pack_trunc_<mode>): Macroize expander from
3671         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3672         (vec_unpacks_lo_<mode>): Macroize expander from
3673         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3674         (vec_unpacks_hi_<mode>): Macroize expander from
3675         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3676         (vec_unpacku_lo_<mode>): Macroize expander from
3677         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3678         (vec_unpacku_hi_<mode>): Macroize expander from
3679         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3680         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3681         ix86_expand_sse4_unpack.
3682         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3683
3684 2011-04-16  Jan Hubicka  <jh@suse.cz>
3685
3686         * cgraphbuild.c: Include ipa-inline.h.
3687         (reset_inline_failed): Use initialize_inline_failed.
3688         * cgraph.c: Include ipa-inline.h.
3689         (cgraph_create_node_1): Do not initialize estimated_growth.
3690         (initialize_inline_failed): More to ipa-inline-analysis.c
3691         (dump_cgraph_node): Do not dump inline flags.
3692         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3693         and disregard_inline_limits flags.
3694         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3695         time, size, estimated_growth.
3696         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3697         Update.
3698         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3699         DECL_DISREGARD_INLINE_LIMITS.
3700         (cgraph_analyze_function): Do not initialize
3701         node->local.disregard_inline_limits.
3702         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3703         inlinable, versionable and disregard_inline_limits.
3704         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3705         cgraph_check_inline_limits, cgraph_default_inline_p,
3706         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3707         add_new_edges_to_heap): Update.
3708         (cgraph_decide_inlining_of_small_function): Update; set
3709         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3710         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3711         cgraph_decide_inlining_incrementally): Update.
3712         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3713         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3714         time, size and estimated_growth parameters.
3715         (estimate_edge_growth): Update.
3716         (initialize_inline_failed): Declare.
3717         * ipa-split.c: Include ipa-inline.h
3718         (execute_split_functions): Update.
3719         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3720         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3721         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3722         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3723         estimated_growth to INT_MIN.
3724         (inline_node_duplication_hook): Likewise.
3725         (dump_inline_summary): Dump new fields.
3726         (compute_inline_parameters): Update.
3727         (estimate_edge_time, estimate_time_after_inlining,
3728         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3729         inline_write_summary):
3730         (initialize_inline_failed): Move here from cgraph.c.
3731         * tree-sra.c: Include ipa-inline.h.
3732         (ipa_sra_preliminary_function_checks): Update.
3733         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3734         ipa-inline.h.
3735
3736 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3737
3738         * config/i386/sse.md (V16): New mode iterator.
3739         (VI1, VI8): Ditto.
3740         (AVXMODEQI, AVXMODEDI): Remove.
3741         (sse2, sse3): New mode attribute.
3742         (mov<mode>): Use V16 mode iterator.
3743         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3744         (push<mode>1): Use V16 mode iterator.
3745         (movmisalign<mode>): Ditto.
3746         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3747         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3748         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3749         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3750         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3751         avx_movdqu<avxmodesuffix>.
3752         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3753         *avx_movdqu<avxmodesuffix>.
3754         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3755         avx_lddqu<avxmodesuffix>.
3756         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3757         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3758         avx_movnt<AVXMODEDI:mode>.
3759         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3760         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3761
3762 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3763
3764         PR target/48629
3765         * haifa-sched.c (prune_ready_list, schedule_block): Use
3766         sched_pressure_p rather than flag_sched_pressure.
3767
3768 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3769
3770         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3771         cgraph_get_node instead of cgraph_get_create_node.
3772
3773 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3774
3775         * cfgexpand.c (expand_debug_expr): Use
3776         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3777
3778 2011-04-15  Michael Matz  <matz@suse.de>
3779
3780         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3781         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3782         * function.c (gimplify_parameters): Ditto.
3783         * gimplify.c (gimplify_vla_decl): Ditto.
3784
3785         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3786         (gimple_call_set_alloca_for_var): New inline function.
3787         (gimple_call_alloca_for_var_p): Ditto.
3788         * gimple.c (gimple_build_call_from_tree): Remember
3789         CALL_ALLOCA_FOR_VAR_P state.
3790         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3791
3792         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3793         calls if they were for VLA objects.
3794
3795 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3796
3797         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3798         of ADR_EXPRs.
3799
3800 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3801
3802         PR middle-end/48601
3803         * tree-emutls.c (lower_emutls_function_body): Call
3804         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3805         result is non-NULL.
3806
3807 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3808
3809         * c-decl.c (detect_field_duplicates): Call
3810         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3811
3812 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3813
3814         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3815         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3816         * ipa-pure-const.c (check_stmt): Call it.
3817         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3818
3819 2011-04-15  Richard Guenther  <rguenther@suse.de>
3820
3821         PR tree-optimization/48290
3822         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3823         Properly decide inhibiting propagation based on the valueized
3824         operand.  Do loop-closed SSA form preserving here ...
3825         (init_copy_prop): ... not here.
3826
3827 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3828
3829         PR target/48612
3830         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3831         (*ieee_smax<mode>3): Likewise.
3832
3833 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3834
3835         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3836         Replace match_operand with match_dup for the third operand in
3837         these expanders.
3838
3839 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3840
3841         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3842         to track processing of conditionals.  Update all callers.
3843         (try_combine, simplify_if_then_else): Update.
3844
3845 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3846
3847         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3848         -fsched-pressure.
3849
3850 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3851
3852         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3853         instead of match_operand for operand 3.
3854
3855 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3856
3857         * recog.h (insn_operand_data): Add an "allows_mem" field.
3858         * genoutput.c (output_operand_data): Initialize it.
3859         * optabs.c (maybe_legitimize_operand_same_code): New function.
3860         (maybe_legitimize_operand): Use it when matching the original
3861         op->value.
3862
3863 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3864
3865         * gimplify.c: Fix issues in comments throughout.
3866         (voidify_wrapper_expr): Fix long line.
3867         (build_stack_save_restore): Likewise.
3868         (gimplify_loop_expr): Likewise.
3869         (gimplify_compound_lval): Likewise.
3870         (gimplify_init_ctor_eval): Likewise.
3871         (gimplify_modify_expr_rhs): Likewise.
3872         (omp_notice_threadprivate_variable): Likewise.
3873
3874 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3875
3876         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3877         original one if this is not a builtin function.
3878
3879 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3880
3881         PR target/48605
3882         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3883         offset it as needed based on top 2 bits in operands[3], change
3884         MEM mode to SFmode and mask those 2 bits away from operands[3].
3885
3886 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3887
3888         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3889         change from objc_declare_protocols() to objc_declare_protocol().
3890
3891 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3892
3893         * config/i386/sse.md (sse4_1): New mode attribute.
3894         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3895         avx_blend<ssemodesuffix><avxmodesuffix> and
3896         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3897         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3898         avx_blendv<ssemodesuffix><avxmodesuffix> and
3899         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3900         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3901         avx_dp<ssemodesuffix><avxmodesuffix> and
3902         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3903         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3904         (sse4_1_packusdw): Merge with *avx_packusdw.
3905         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3906         (sse4_1_pblendw): Merge with *avx_pblendw.
3907         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3908         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3909         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3910         VF mode iterator.
3911         (sse4_1_round<ssescalarmodesuffix>): Merge with
3912         *avx_round<ssescalarmodesuffix>.
3913         (aesenc): Merge with *avx_aesenc.
3914         (aesenclast): Merge with *avx_aesenclast.
3915         (aesdec): Merge with *avx_aesdec.
3916         (aesdeclast): Merge with *avx_aesdeclast.
3917         (pclmulqdq): Merge with *pclmulqdq.
3918         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3919         New predicate.
3920         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3921
3922 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3923
3924         PR middle-end/48608
3925         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3926         (align_local_variable): This.  Update DECL_ALIGN.
3927         (add_stack_var): Updated.
3928         (expand_one_stack_var): Likewise.
3929
3930 2011-04-14  Richard Guenther  <rguenther@suse.de>
3931
3932         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3933         Remove.
3934         (dse_initialize_block_local_data, dse_leave_block,
3935         record_voperand_set, get_stmt_uid): Likewise.
3936         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3937         (dse_optimize_stmt): Remove voperand set handling code.
3938         Simplify and improve to handle any kind of killing stmt.
3939         (dse_record_phi): Remove.
3940         (dse_enter_block): Simplify.
3941         (tree_ssa_dse): Likewise.
3942         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3943
3944 2011-04-14  Jan Hubicka  <jh@suse.cz>
3945
3946         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3947         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3948         (cgraph_local_info): Remove inline_summary.
3949         * ipa-cp.c: Include ipa-inline.h.
3950         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3951         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3952         accesor.
3953         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3954         (input_overwrite_node): Do not set inline summary.
3955         (input_node): Do not stream inline summary.
3956         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3957         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3958         growth; we do not have inline parameters computed for that anyway.
3959         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3960         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3961         (inline_summary_t): New type and VECtor.
3962         (debug_inline_summary, dump_inline_summaries): Declare.
3963         (inline_summary): Use VOCtor.
3964         (estimate_edge_growth): Kill hack computing call stmt size directly.
3965         * lto-section-in.c (lto_section_name): Add inline section.
3966         * ipa-inline-analysis.c: Include lto-streamer.h
3967         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3968         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3969         (inline_summary_vec): Define.
3970         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3971         dump_inline_summaries): New functions.
3972         (estimate_function_body_sizes): Properly compute size/time of outgoing
3973         calls.
3974         (compute_inline_parameters): Alloc inline_summary; do not compute
3975         size/time of incomming calls.
3976         (estimate_edge_time): Avoid missing time summary hack.
3977         (inline_read_summary): Read inline summary info.
3978         (inline_write_summary): Write inline summary info.
3979         (inline_free_summary): Free all hooks and inline summary vector.
3980         * lto-streamer.h: Add LTO_section_inline_summary section.
3981         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3982         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3983
3984 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3985
3986         * tree-vectorizer.h (vect_strided_store_supported): Add a
3987         HOST_WIDE_INT argument.
3988         (vect_strided_load_supported): Likewise.
3989         (vect_permute_store_chain): Return void.
3990         (vect_transform_strided_load): Likewise.
3991         (vect_permute_load_chain): Delete.
3992         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3993         count argument.  Check that the count is a power of two.
3994         (vect_strided_load_supported): Likewise.
3995         (vect_permute_store_chain): Return void.  Update after above changes.
3996         Assert that the access is supported.
3997         (vect_permute_load_chain): Likewise.
3998         (vect_transform_strided_load): Return void.
3999         * tree-vect-stmts.c (vectorizable_store): Update calls after
4000         above interface changes.
4001         (vectorizable_load): Likewise.
4002         (vect_analyze_stmt): Don't check for strided powers of two here.
4003
4004 2011-04-14  Richard Guenther  <rguenther@suse.de>
4005
4006         PR tree-optimization/48590
4007         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4008         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4009         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4010         BUILT_IN_STACK_SAVE.
4011         * tree-ssa-dce.c (propagate_necessity): Handle
4012         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4013
4014 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4015
4016         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4017         objc_declare_class.
4018
4019 2011-04-14  Richard Guenther  <rguenther@suse.de>
4020
4021         * tree.h (get_object_alignment_1): Declare.
4022         * builtins.c (get_object_alignment_1): Split out worker from ...
4023         (get_object_alignment): ... here.
4024         * fold-const.c (get_pointer_modulus_and_residue): Use
4025         get_object_alignment_1.
4026
4027 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4028
4029         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4030         type parameter.
4031         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4032         parameter.  Generalise code to handle arrays as well as vectors.
4033         (vect_setup_realignment): Update accordingly.
4034         * tree-vect-stmts.c (vectorizable_store): Likewise.
4035         (vectorizable_load): Likewise.
4036
4037 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4038
4039         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4040         within the per-copy loop.
4041
4042 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4043
4044         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4045         in the dump file.
4046
4047 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4048
4049         * doc/options.texi (Negative): Explicitly mention that the
4050         Negative chain must be circular.
4051
4052 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4053
4054         * function.h (block_chainon): Declare.
4055         * function.c (block_chainon): Define.
4056
4057 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4058             Eric Weddington  <eric.weddington@atmel.com>
4059             Georg-Johann Lay <avr@gjlay.de>
4060
4061         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4062         New Includes
4063         (avr_init_builtins, avr_expand_builtin,
4064         avr_expand_delay_cycles, avr_expand_unop_builtin,
4065         avr_expand_binop_builtin ): New functions.
4066         (avr_builtin_id): New enum
4067         (struct avr_builtin_description): New struct
4068         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4069         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4070
4071         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4072         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4073         UNSPECV_DELAY_CYCLES): new enumeration values
4074         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4075         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4076         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4077         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4078         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4079         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4080         "fmulsu"): New insns
4081
4082         * config/avr/avr-c.c: fix line endings
4083         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4084         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4085         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4086         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4087         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4088
4089         * doc/extend.texi (AVR Built-in Functions): New node
4090         (Target Builtins): Add documentation of AVR
4091         built-in functions.
4092
4093 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4094
4095         PR target/44643
4096         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4097         alone. Error if non-const data has attribute progmem.
4098
4099 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4100
4101         * tree.h (struct tree_constructor): Include tree_typed instead of
4102         tree_common.
4103         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4104         TS_TYPED instead of TS_COMMON.
4105
4106 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4107
4108         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4109         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4110         (sse2_psadbw): Merge with *avx_psadbw.
4111         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4112         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4113         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4114         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4115         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4116         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4117         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4118         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4119         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4120         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4121         (ssse3_palignrti): Merge with *avx_palignrti.
4122
4123 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4124
4125         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4126         * tree-ssanames.c (fini_ssanames): VEC_free it.
4127         (make_ssa_name_fn): Update for VECness of free_ssanames.
4128         (release_ssa_name, release_dead_ssa_names): Likewise.
4129         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4130         tree_common.
4131         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4132         TS_TYPED instead of TS_COMMON.
4133
4134 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4135
4136         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4137         statistics_counter_event.
4138         * tree-ssa-copyrename.c (stats): Define.
4139         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4140         statistics_counter_event.
4141         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4142         (bswap_stats, widen_mul_stats): Define.
4143         (insert_reciprocals): Increment rdivs_inserted.
4144         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4145         rfuncs_inserted.  Add calls to statistics_counter_event.
4146         (execute_cse_sincos_1): Increment inserted.
4147         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4148         statistics_counter_event.
4149         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4150         of bswap_stats.  Add calls to statistics_counter_event.
4151         (convert_mult_to_widen): Increment widen_mults_inserted.
4152         (convert_plusminus_to_widen): Increment maccs_inserted.
4153         (convert_mult_to_fma): Increment fmas_inserted.
4154         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4155         calls to statistics_counter_event.
4156
4157 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4158
4159         PR rtl-optimization/48455
4160         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4161         `temp_costs->mem_cost'.
4162
4163 2011-04-13  Jan Hubicka  <jh@suse.cz>
4164
4165         * ipa-inline.h: New file.
4166         * ipa-inline-analysis.c: New file. Broken out of ...
4167         * ipa-inline.c: ... this file; update toplevel comment;
4168         include ipa-inline.h
4169         (inline_summary): Move to ipa-inline.h
4170         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4171         ipa-inline-analysis.c.
4172         (cgraph_estimate_time_after_inlining): Rename to
4173         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4174         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4175         to estimate_edge_growth.
4176         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4177         rename to estimate_size_after_inlining.
4178         (cgraph_mark_inline_edge): Update for new naming convention.
4179         (cgraph_check_inline_limits): Likewise.
4180         (cgraph_edge_badness): Likewise.
4181         (cgraph_decide_recursive_inlining): Likewise.
4182         (cgraph_decide_inlining_of_small_functions): Likewise.
4183         (cgraph_decide_inlining_incrementally): Likewise.
4184         (cgraph_estimate_growth): Rename to estimate_growth; move to
4185         ipa-inline-analysis.c.
4186         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4187         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4188         (compute_inline_parameters): Likewise.
4189         (compute_inline_parameters_for_current): Likewise.
4190         (pass_inline_parameters): Likewise.
4191         (inline_indirect_intraprocedural_analysis): Likewise.
4192         (analyze_function): Rename to inline_analyze_function; likewise.
4193         (add_new_function): Move to ipa-inline-analysis.c.
4194         (inline_generate_summary): Likewise.
4195         (inline_read_summary): Likewise.
4196         (inline_write_summary): Likewise.
4197         * Makefile.in (ipa-inline-analysis.c): New file.
4198
4199 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4200
4201         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4202         * configure: Regenerate.
4203
4204 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4205
4206         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4207         instead of tree_common.
4208         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4209         Likewise.
4210         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4211         TS_TYPED rather than TS_COMMON.
4212         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4213
4214 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4215
4216         PR target/45263
4217         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4218         r20 around calls of __tablejump_elpm__
4219
4220 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4221
4222         PR middle-end/48591
4223         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4224         NULL.
4225         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4226
4227 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4228
4229         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4230         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4231         (cfi_vec): New typedef.
4232         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4233         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4234         (cie_cfi_vec): New static variable.
4235         (cie_cfi_head): Delete.
4236         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4237         declaration changed. Use vector rather than list operations.
4238         (new_cfi): Don't initialize the dw_cfi_next field.
4239         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4240         rather than list operations.
4241         (lookup_cfa): Use vector rather than list operations.
4242         (output_cfis): New argument upto. Accept a cfi_vec rather than
4243         a dw_cfi_ref list head as argument. All callers changed.
4244         Iterate over the vector using upto as a maximum index.
4245         (output_all_cfis): New static function.
4246         (output_fde): Use vector rather than list operations. Use the
4247         new upto argument for output_cfis rather than manipulating a
4248         list.
4249         (dwarf2out_begin_prologue): Change initializations to match
4250         new struct members.
4251         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4252         from the vector length rather than searching for the end of a list.
4253         Use output_all_cfis.
4254         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4255
4256 2011-04-13  Nick Clifton  <nickc@redhat.com>
4257
4258         * config/rx/rx.md (movmemsi): Do not use this pattern when
4259         volatile pointers are involved.
4260
4261 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4262
4263         * config/i386/sse.md (pinsrbits): Remove.
4264         (sse2_packsswb): Merge with *avx_packsswb.
4265         (sse2_packssdw): Merge with *avx_packssdw.
4266         (sse2_packuswb): Merge with *avx_packuswb.
4267         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4268         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4269         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4270         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4271         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4272         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4273         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4274         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4275         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4276         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4277         (sse2_loadld): Merge with *avx_loadld.
4278         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4279         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4280         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4281         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4282         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4283
4284 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4285
4286         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4287         calling TREE_CHAIN.
4288         * print-tree.c (print_node): Likewise.
4289         * tree-inline.c (copy_tree_r): Likewise.
4290         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4291         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4292         instead of TS_COMMON.
4293         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4294         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4295         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4296         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4297         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4298         ...and these...
4299         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4300         * tree.h: ...here.
4301         (TREE_CHAIN): Check for a TS_COMMON structure.
4302         (TREE_TYPE): Check for a TS_TYPED structure.
4303
4304 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4305
4306         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4307         cgraph_get_create_node instead of cgraph_node.
4308
4309 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4310
4311         * c-parser.c (c_parser_initelt): Updated call to
4312         objc_build_message_expr.
4313         (c_parser_postfix_expression): Likewise.
4314
4315 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4316
4317         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4318         MASK_MS_BITFIELD_LAYOUT bit.
4319
4320 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4321
4322         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4323         assert it is always true.
4324         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4325         moves.
4326
4327 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4328
4329         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4330         compiling Objective-C to be more efficient.
4331
4332 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4333
4334         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4335         argv_copied.
4336
4337 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4338
4339         * recog.h, genoutput.c, optabs.c: Revert last patch.
4340
4341 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4342
4343         PR target/48090
4344         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4345
4346 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4347
4348         * recog.h (insn_operand_data): Add an "allows_mem" field.
4349         * genoutput.c (output_operand_data): Initialize it.
4350         * optabs.c (maybe_legitimize_operand_same_code): New function.
4351         (maybe_legitimize_operand): Use it when matching the original
4352         op->value.
4353
4354 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4355
4356         * genpreds.c (process_define_predicate): Move most processing
4357         to gensupport.c.  Continue to validate the expression.
4358         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4359         (process_define_predicate): Move processing to gensupport.c.
4360         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4361         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4362         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4363         argument.
4364         (valid_predicate_name_p): New function, split out from old
4365         genpreds.c:process_define_predicate.
4366         (process_define_predicate): New function, combining code from
4367         old genpreds.c and genrecog.c functions.
4368         (process_rtx): Call it for DEFINE_PREDICATE and
4369         DEFINE_SPECIAL_PREDICATE.
4370
4371 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4372
4373         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4374         size of a '%A' memory reference.
4375         (T_DREG, T_QREG): New neon_builtin_type_bits.
4376         (arm_init_neon_builtins): Assert that the load and store operands
4377         are neon_struct_operands.
4378         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4379         (NEON_ARG_MEMORY): New builtin_arg.
4380         (neon_dereference_pointer): New function.
4381         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4382         Handle NEON_ARG_MEMORY.
4383         (arm_expand_neon_builtin): Update after above interface changes.
4384         Use NEON_ARG_MEMORY for loads and stores.
4385         * config/arm/predicates.md (neon_struct_operand): New predicate.
4386         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4387         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4388         (V_four_elem): Tweak formatting.
4389         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4390         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4391         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4392         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4393         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4394         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4395         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4396         Use %A in the output template.
4397         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4398         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4399         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4400         the width of the memory access.  Remove post-increment.
4401         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4402
4403 2011-04-12  Nick Clifton  <nickc@redhat.com>
4404
4405         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4406         instruction for interrupt handlers if the target is the basic V850
4407         architecture.
4408         (expand_epilogue): Likewise.
4409
4410 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4411
4412         PR rtl-optimization/48549
4413         * combine.c (propagate_for_debug): Also stop after BB_END of
4414         this_basic_block.  Process LAST and just stop processing after it.
4415         (combine_instructions): If last_combined_insn has been deleted,
4416         set last_combined_insn to its PREV_INSN.
4417
4418 2011-04-12  Richard Guenther  <rguenther@suse.de>
4419
4420         PR tree-optimization/46076
4421         * gimple.h (struct gimple_statement_call): Add fntype field.
4422         (gimple_call_fntype): Adjust.
4423         (gimple_call_set_fntype): New function.
4424         * gimple.c (gimple_build_call_1): Set the call function type.
4425         * gimplify.c (gimplify_call_expr): Preserve the function
4426         type the frontend used for the call.
4427         (gimplify_modify_expr): Likewise.
4428         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4429         function type.
4430         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4431         function type.
4432         * tree-ssa.c (useless_type_conversion_p): Function pointer
4433         conversions are useless.
4434
4435 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4436
4437         * cgraph.h (cgraph_node): Remove function declaration.
4438         (cgraph_create_node): Declare.
4439         (cgraph_get_create_node): Likewise.
4440         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4441         Updated all callers.
4442         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4443         the decl does not already exist.  Call cgraph_get_create_node instead
4444         of cgraph_node.
4445         (cgraph_get_create_node): New function.
4446         (cgraph_same_body_alias): Update comment.
4447         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4448         assert it does not return NULL.
4449         (cgraph_update_edges_for_call_stmt): Likewise.
4450         (cgraph_clone_edge): Likewise.
4451         (cgraph_create_virtual_clone): Likewise.
4452         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4453         instead of cgraph_node.
4454         (cgraph_add_new_function): Call cgraph_create_node or
4455         cgraph_get_create_node instead of cgraph_node.
4456         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4457         instead of cgraph_node.
4458         (record_eh_tables): Likewise.
4459         (mark_address): Likewise.
4460         (mark_load): Likewise.
4461         (build_cgraph_edges): Call cgraph_get_create_node instead
4462         of cgraph_node.
4463         (rebuild_cgraph_edges): Likewise.
4464         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4465         instead of cgraph_node.
4466         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4467         cgraph_node.
4468         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4469         cgraph_create_node instead of cgraph_node.
4470         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4471         of cgraph_node.
4472         * lto-cgraph.c (input_node): Likewise.
4473         * lto-streamer-in.c (input_function): Likewise.
4474         * varasm.c (mark_decl_referenced): Likewise.
4475         (assemble_alias): Likewise.
4476
4477 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4478
4479         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4480         instead of cgraph_node and assert it does not return NULL.
4481         * lto-streamer-in.c (lto_read_body): Likewise.
4482         * omp-low.c (new_omp_context): Likewise.
4483         (create_task_copyfn): Likewise.
4484         * tree-emutls.c (lower_emutls_function_body): Likewise.
4485         * matrix-reorg.c (transform_allocation_sites): Likewise.
4486
4487 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4488
4489         PR c/48552
4490         * c-typeck.c (build_asm_expr): Error out on attempts to use
4491         void type outputs or inputs for constraints that allow reg or
4492         don't allow memory.
4493
4494 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4495             Richard Earnshaw  <rearnsha@arm.com>
4496
4497         PR target/48250
4498         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4499         to use sign-magnitude offsets. Reject unsupported unaligned
4500         cases. Add detailed description in comments.
4501         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4502         condition from TARGET_32BIT to TARGET_ARM.
4503
4504 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4505
4506         * tree.h (struct typed_tree): New.
4507         (struct tree_common): Include it instead of tree_base.
4508         (TREE_TYPE): Update for new location of type field.
4509         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4510         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4511         (union tree_node): Add typed field.
4512         * treestruct.def (TS_TYPED): New.
4513         * lto-streamer.c (check_handled_ts_structures): Handle it.
4514         * tree.c (MARK_TS_TYPED): New macro.
4515         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4516
4517 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4518
4519         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4520         (force_nonfallthru): Do not alter the loop nest if no basic block
4521         was created.
4522
4523 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4524
4525         * config/i386/sse.md (VI): New mode iterator.
4526         (SSEMODEI): Remove.
4527         (AVX256MODEI): Ditto.
4528         (AVXMODEF4P): Ditto.
4529         (avxvecpsmode): Ditto.
4530         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4531         (sse2_andnot<mode>3): New expander.
4532         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4533         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4534         (<any_logic:code><mode>3): Use VI mode iterator.
4535         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4536         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4537         (*andnottf3): Handle AVX three-operand constraints.
4538         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4539
4540 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4541             Robert Millan  <rmh@gnu.org>
4542
4543         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4544         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4545         GNU_USER_DYNAMIC_LINKER64): Define.
4546         (REG_NAME): Don't undefine.
4547         (MD_UNWIND_SUPPORT): Undefine.
4548         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4549         (REG_NAME): Don't undefine.
4550         (MD_UNWIND_SUPPORT): Undefine.
4551         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4552
4553 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4554
4555         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4556         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4557
4558 2011-04-11  Xinliang David Li  <davidxl@google.com>
4559
4560         * value-profile.c (check_ic_target): New function.
4561         (gimple_ic_transform): Sanity check indirect call target.
4562         * gimple-low.c (gimple_check_call_args): Interface change.
4563         (gimple_check_call_matching_types): New function.
4564         * tree-inline.c (tree_can_inline_p): Call new function.
4565
4566 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4567
4568         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4569         tree-pretty-print.h & realmpfr.h.
4570
4571 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4572
4573         PR middle-end/48464
4574         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4575         (setup_allocno_and_important_classes): Ditto.
4576
4577 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4578
4579         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4580         GNU_USER_DYNAMIC_LINKER.
4581         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4582         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4583         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4584         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4585         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4586         GNU_USER_TARGET_OS_CPP_BUILTINS.
4587         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4588         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4589         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4590         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4591         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4592         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4593         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4594         GNU_USER_TARGET_OS_CPP_BUILTINS.
4595         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4596         GNU_USER_DYNAMIC_LINKER.
4597         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4598         GNU_USER_TARGET_OS_CPP_BUILTINS.
4599         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4601         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4602         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4603         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4604         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4605         GNU_USER_DYNAMIC_LINKER64): Remove.
4606         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4607         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4608         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4609         GNU_USER_DYNAMIC_LINKER.
4610         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4611         GNU_USER_TARGET_OS_CPP_BUILTINS.
4612         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4613         GNU_USER_TARGET_OS_CPP_BUILTINS.
4614         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4615         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4616         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4617         GNU_USER_TARGET_OS_CPP_BUILTINS.
4618         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4619         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4620         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4621         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4622         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4623         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4624         GNU_USER_DYNAMIC_LINKER.
4625         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4626         GNU_USER_TARGET_OS_CPP_BUILTINS.
4627         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4628         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4629         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4630         GNU_USER_DYNAMIC_LINKER.
4631         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4632         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4633         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4634         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4635         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4636         GNU_USER_DYNAMIC_LINKER.
4637         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4638         GNU_USER_DYNAMIC_LINKERN32.
4639         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4640         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4641         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4642         GNU_USER_DYNAMIC_LINKER32.
4643         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4644         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4645         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4646         GNU_USER_DYNAMIC_LINKER.
4647         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4648         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4649         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4650         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4651         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4652         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4653         GNU_USER_DYNAMIC_LINKER32.
4654         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4655         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4656         GNU_USER_DYNAMIC_LINKER.
4657         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4658         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4659         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4660         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4661         GNU_USER_DYNAMIC_LINKER64.
4662         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4663         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4664         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4665         GNU_USER_DYNAMIC_LINKER.
4666         * config/sparc/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/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4671         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4672         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4673         GNU_USER_DYNAMIC_LINKER32.
4674         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4675         GNU_USER_DYNAMIC_LINKER64.
4676         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4677         GNU_USER_DYNAMIC_LINKER64.
4678         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4679         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4680         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4681         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4682         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4683
4684 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4685
4686         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4687         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4688         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4689         GNU_USER_DYNAMIC_LINKER.
4690         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4691         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4692         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4693         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4694         GNU_USER_DYNAMIC_LINKER64.
4695         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4696         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4697         GNU_USER_LINK_EMULATION.
4698         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4699         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4700         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4701         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4702         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4703         CPP_SPEC, CC1_SPEC): Remove.
4704         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4705         (GNU_USER_DYNAMIC_LINKER): Define.
4706         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4707         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4708         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4709         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4710         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4711         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4712         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4713         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4714         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4715         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4716         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4717         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4718         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4719         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4720         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4721         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4722         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4723         GNU_USER_DYNAMIC_LINKER.
4724         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4725         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4726         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4727         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4728         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4729         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4730         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4731         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4732         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4733         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4734
4735 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4736
4737         PR target/9601
4738         PR target/11772
4739         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4740         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4741         comment.
4742         (ix86_is_msabi_thiscall): Removed.
4743         (ix86_is_type_thiscall): Likewise.
4744         (ix86_get_callcvt): New function.
4745         (ix86_comp_type_attributes): Simplify check.
4746         (ix86_function_regparm): Use ix86_get_callcvt for calling
4747         convention attribute checks.
4748         (ix86_return_pops_args): Likewise.
4749         (ix86_static_chain): Likewise.
4750         (x86_this_parameter): Likewise.
4751         (x86_output_mi_thunk): Likewise.
4752         (ix86_function_type_abi): Optimize check for types without attributes.
4753         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4754         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4755         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4756         by flag-values.
4757         (IX86_BASE_CALLCVT): Helper macro.
4758         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4759         Use ix86_get_callcvt for calling convention attribute checks and avoid
4760         symbol-decoration for stdcall in TARGET_RTD case.
4761         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4762         Likewise.
4763         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4764         for declaration.
4765
4766 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4767
4768         * config/i386/sse.md (VI_128): New mode iterator.
4769         (VI12_128): Rename from SSEMODE12.
4770         (VI14_128): Rename from SSEMODE14.
4771         (VI124_128): New mode iterator.
4772         (VI24_128): Rename from SSEMODE248.
4773         (VI248_128): Rename from SSEMODE248.
4774         (SSEMODE124C8): Remove.
4775         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4776         (*sse2_<plusminus_insn><mode>3): Merge with
4777         *avx_<plusminus_insn><mode>3.
4778         (*mulv8hi3): Merge with *avx_mulv8hi3.
4779         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4780         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4781         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4782         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4783         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4784         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4785         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4786         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4787         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4788         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4789         (*<smaxmin:code>v8hi3): Ditto.
4790         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4791         (*<smaxmin:code>v16qi3): Ditto.
4792         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4793         (*sse2_eq<mode>3): Ditto.
4794         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4795         (*sse2_gt<mode>3): Ditto.
4796         (vcondv2di): Split out of vcond<mode>.
4797         (vconduv2di): Split out of vcondu<mode>.
4798
4799 2011-04-11  Richard Guenther  <rguenther@suse.de>
4800
4801         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4802         before calling tree_low_cst.
4803
4804 2011-04-11  Richard Guenther  <rguenther@suse.de>
4805
4806         * stor-layout.c (layout_type): Compute all array index size operations
4807         in the original type.
4808         (initialize_sizetypes): Add comment.
4809         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4810
4811 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4812
4813         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4814
4815 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4816
4817         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4818         of cgraph_node, handle NULL return value.
4819         (cgraph_global_info): Likewise.
4820         (cgraph_rtl_info): Likewise.
4821         * tree-inline.c (estimate_num_insns): Likewise.
4822         * gimplify.c (unshare_body): Likewise.
4823         (unvisit_body): Likewise.
4824         (gimplify_body): Likewise.
4825         * predict.c (optimize_function_for_size_p): Likewise.
4826         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4827         (call_may_clobber_ref_p_1): Likewise.
4828         * varasm.c (function_section_1): Likewise.
4829         (assemble_start_function): Likewise.
4830
4831 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4832
4833         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4834         of cgraph_node.
4835         * final.c (rest_of_clean_state): Likewise.
4836         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4837         * passes.c (pass_init_dump_file): Likewise.
4838         (execute_all_ipa_transforms): Likewise.
4839         (function_called_by_processed_nodes_p): Likewise.
4840         * predict.c (maybe_hot_frequency_p): Likewise.
4841         (probably_never_executed_bb_p): Likewise.
4842         (compute_function_frequency): Likewise.
4843         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4844         (unnest_nesting_tree_1): Likewise.
4845         (lower_nested_functions): Likewise.
4846         * tree-optimize.c (execute_fixup_cfg): Likewise.
4847         (tree_rest_of_compilation): Likewise.
4848         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4849         * tree-sra.c (ipa_early_sra): Likewise.
4850         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4851         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4852         * ipa.c (record_cdtor_fn): Likewise.
4853         * ipa-inline.c (cgraph_early_inlining): Likewise.
4854         (compute_inline_parameters_for_current): Likewise.
4855         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4856         * ipa-pure-const.c (local_pure_const): Likewise.
4857         * ipa-split.c (split_function): Likewise.
4858         (execute_split_functions): Likewise.
4859         * cgraphbuild.c (build_cgraph_edges): Likewise.
4860         (rebuild_cgraph_edges): Likewise.
4861         (cgraph_rebuild_references): Likewise.
4862         (remove_cgraph_callee_edges): Likewise.
4863         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4864         (verify_cgraph_node): Likewise.
4865         (cgraph_analyze_functions): Likewise.
4866         (cgraph_preserve_function_body_p): Likewise.
4867         (save_inline_function_body): Likewise.
4868         (save_inline_function_body): Likewise.
4869         * tree-inline.c (copy_bb): Likewise.
4870         (optimize_inline_calls): Likewise.
4871
4872 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4873
4874         PR tree-optimization/48195
4875         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4876         ipa_check_create_edge_args.
4877         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4878         ipa_check_create_edge_args.
4879         * ipa-inline.c (inline_generate_summary): Do not call
4880         ipa_check_create_node_params and ipa_check_create_edge_args.
4881         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4882         ipa_check_create_edge_args.
4883
4884 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4885
4886         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4887         instead of loop.
4888         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4889         * function.c (record_hard_reg_sets): Likewise.
4890         * ira.c (compute_regs_asm_clobbered): Likewise.
4891         * sched-deps.c (sched_analyze_1): Likewise.
4892         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4893
4894 2011-04-09  Xinliang David Li  <davidxl@google.com>
4895
4896         PR tree-optimization/PR48484
4897         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4898         has_valid_pred lazily
4899
4900 2011-04-09  Duncan Sands  <baldrick@free.fr>
4901
4902         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4903
4904 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4905
4906         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4907         cost of I0 to zero at the end, if any.
4908
4909 2011-04-08  Xinliang David Li  <davidxl@google.com>
4910
4911         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4912         to insane profile data.
4913
4914 2011-04-08  Xinliang David Li  <davidxl@google.com>
4915
4916         * ipa-cp.c (ipcp_update_profiling): Correct
4917          negative scale factor due to insane profile data.
4918
4919 2011-04-08  Xinliang David Li  <davidxl@google.com>
4920
4921         * final.c (dump_basic_block_info): New function.
4922         (final): Dump basic block.
4923         (final_scan_insn): Remove old dump.
4924
4925 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4926
4927         PR target/47829
4928         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4929         crtbegin/crtend.
4930
4931 2011-04-08  Michael Matz  <matz@suse.de>
4932
4933         PR middle-end/48389
4934         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4935         functions.
4936         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4937         * rtl.h (rebuild_jump_labels_chain): Declare.
4938         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4939         insns inserted on edges.
4940
4941 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4942
4943         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4944         * config/arm/arm-arches.def: New.
4945         * config/arm/arm-opts.h: New.
4946         * config/arm/genopt.sh: New.
4947         * config/arm/arm-tables.opt: New (generated).
4948         * config/arm/arm.c (arm_handle_option, arm_target_help,
4949         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4950         (all_architectures): Get most table contents from arm-arches.def.
4951         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4952         arm_selected_tune here.
4953         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4954         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4955         (march=, mcpu=, mtune=): Use Enum and Var.
4956         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4957         (arm.o): Update dependencies.
4958
4959 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4960
4961         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4962         of header_file.
4963         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4964         (write_typed_alloc_defns): Likewise.
4965         (main): Calls write_typed_alloc_defns with output_header.
4966
4967 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4968
4969         PR inline-asm/48435
4970         * ira-color.c (setup_profitable_hard_regs): Add comments.
4971         Don't take prohibited hard regs into account.
4972         (setup_conflict_profitable_regs): Rename to
4973         get_conflict_profitable_regs.
4974         (check_hard_reg_p): Check prohibited hard regs.
4975
4976 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4977
4978         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4979         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4980         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4981
4982 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4983
4984         PR target/48366
4985         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4986         move from floating point to shift amount register.
4987         (emit_move_sequence): Remove secondary reload support for floating
4988         point to shift amount amount register copies.
4989         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4990         amount register copies.
4991         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4992         register, return false if mode isn't a scalar integer mode.
4993         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4994
4995 2011-04-08  Richard Guenther  <rguenther@suse.de>
4996
4997         * gimple.c (gimple_call_flags): Remove kludge.
4998
4999 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5000
5001         * sel-sched.c (sel_region_init): Move call to
5002         sel_setup_region_sched_flags after setup_current_loop_nest.
5003
5004 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5005
5006         PR rtl-optimization/48272
5007         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5008         init_insn_reg_pressure_info.  Adjust a caller.
5009         * sched-int.h (init_insn_reg_pressure_info): Declare.
5010         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5011         when sched-pressure is enabled.
5012
5013 2011-04-08  Richard Guenther  <rguenther@suse.de>
5014
5015         * gimple.c (gimple_set_modified): Do not queue calls to
5016         MODIFIED_NORETURN_CALLS here ...
5017         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5018
5019 2011-04-08  Richard Guenther  <rguenther@suse.de>
5020
5021         PR lto/48467
5022         * toplev.c (lang_dependent_init): Do not open asm_out_file
5023         in WPA mode, nor perform debug machinery initialization.
5024         (finalize): Do not unlink asm_out_file in WPA mode.
5025
5026 2011-04-08  Richard Guenther  <rguenther@suse.de>
5027
5028         * gimple.h (gimple_call_fntype): New function.
5029         (gimple_call_return_type): Use it.
5030         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5031         * gimple-low.c (gimple_check_call_args): Likewise.
5032         * gimple.c (gimple_call_flags): Likewise.
5033         (gimple_call_arg_flags): Likewise.
5034         (gimple_call_return_flags): Likewise.
5035         * tree-cfg.c (verify_gimple_call): Likewise.
5036         (do_warn_unused_result): Likewise.
5037         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5038         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5039
5040 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5041
5042         PR rtl-optimization/48235
5043         * sel-sched.c (code_motion_process_successors): Recompute the last
5044         insn in basic block if control flow changed.
5045         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5046         Update condition for ilist_remove.
5047
5048 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5049
5050         PR rtl-optimization/48302
5051         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5052         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5053         it to record added preheader blocks.
5054         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5055         on to sel_add_loop_preheaders.
5056         (sel_region_init): Move call to setup_current_loop_nest after
5057         sel_init_bbs.
5058
5059 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5060
5061         PR target/48273
5062         * cfgloop.h (loop_has_exit_edges): New helper.
5063         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5064         non-clonable.
5065         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5066         that have no exit edges.
5067
5068 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5069
5070         PR rtl-optimization/48442
5071         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5072         all callers.  Adjust assert.
5073
5074 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5075
5076         PR tree-optimization/48377
5077         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5078         is_packed to true even for types with smaller TYPE_ALIGN than
5079         TYPE_SIZE.
5080
5081 2011-04-08  Richard Guenther  <rguenther@suse.de>
5082
5083         PR bootstrap/48513
5084         * doc/tm.texi: Re-generate.
5085
5086 2011-04-08  Wei Guozhi  <carrot@google.com>
5087
5088         PR target/47855
5089         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5090         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5091         * config/arm/arm.md (*push_multi): Change the length computation to
5092         call a C function.
5093
5094 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5095
5096         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5097         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5098         * doc/tm.texi: Regenerate.
5099         * system.h (ASM_OUTPUT_BSS): Poison.
5100         * varasm.c (asm_output_bss): Remove function.
5101         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5102
5103         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5104         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5105         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5106         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5107         Likewise.
5108         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5109         Likewise.
5110         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5111         Likewise.
5112         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5113
5114 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5115
5116         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5117         EnumValue lines.
5118
5119 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5120
5121         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5122         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5123         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5124         OPT_mcpu32.
5125         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5126         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5127         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5128         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5129         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5130         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5131         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5132         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5133         options.  Don't map other m68k options manually.  Don't handle
5134         old-style options as canonical.
5135         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5136         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5137
5138 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5139
5140         * basic-block.h (force_nonfallthru): Move to...
5141         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5142         (force_nonfallthru): ...here.
5143         * cfghooks.c (force_nonfallthru): New function.
5144         * cfgrtl.c (force_nonfallthru): Rename into...
5145         (rtl_force_nonfallthru): ...this.
5146         (commit_one_edge_insertion): Do not set AUX field.
5147         (commit_edge_insertions): Do not discover new basic blocks.
5148         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5149         (cfg_layout_rtl_cfg_hooks): Likewise.
5150         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5151         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5152         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5153
5154 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5155
5156         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5157         Remove macros.
5158
5159 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5160
5161         * config/i386/sse.md: Update copyright year.
5162         (avxcvtvecmode): Remove.
5163         (sse_movhlps): Merge with *avx_movhlps.
5164         (sse_movlhps): Merge with *avx_movlhps.
5165         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5166         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5167         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5168         (sse_loadhps): Merge with *avx_loadhps.
5169         (sse_storelps): Merge with *avx_storelps.
5170         (sse_loadlps): Merge with *avx_loadlps.
5171         (sse_movss): Merge with *avx_movss.
5172         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5173         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5174         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5175         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5176         (vec_set<mode>_0): Ditto.
5177         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5178         (sse4_1_insertps): Merge with *avx_insertps.
5179         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5180         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5181         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5182         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5183         (sse2_storehpd): Merge with *avx_storehpd.
5184         (sse2_loadhpd): Merge with *avx_loadhpd.
5185         (sse2_loadlpd): Merge with *avx_loadlpd.
5186         (sse2_movsd): Merge with *avx_movsd.
5187         (*vec_concatv2df): Merge with *vec_concatv2df.
5188
5189 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5190
5191         PR debug/48343
5192         * combine.c (combine_instructions): Add last_combined_insn,
5193         update it if insn is after it, pass it to all try_combine calls.
5194         (try_combine): Add last_combined_insn parameter, pass it instead of
5195         i3 to propagate_for_debug.
5196
5197 2011-04-07  Nick Clifton  <nickc@redhat.com>
5198
5199         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5200         to handle MDR <-> data register transfers.
5201         (movhi_internal): Likewise.
5202
5203 2011-04-07  Alan Modra  <amodra@gmail.com>
5204
5205         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5206         previous stack info.
5207
5208 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5209
5210         PR target/43920
5211         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5212         flow_find_cross_jump.  Swap variables to implement backward replacement.
5213         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5214
5215 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5216
5217         PR target/43920
5218         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5219         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5220         and bb2.
5221         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5222         src1 or src2.  Redirect edges to the last basic block.  Update
5223         frequency and count on multiple basic blocks in case of fallthru.
5224
5225 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5226
5227         PR target/43920
5228         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5229         function.
5230         (old_insns_match_p): Change return type.  Replace return false/true
5231         with return dir_none/dir_both.  Use can_replace_by.
5232         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5233         direction from dir_p.  Register replacement direction in dir, last_dir
5234         and afterlast_dir.  Handle new return type of old_insns_match_p using
5235         merge_dir.  Return replacement direction in dir_p.
5236         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5237         return type of old_insns_match_p.
5238         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5239         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5240         flow_find_cross_jump.
5241         * basic-block.h (enum replace_direction): New type.
5242         (flow_find_cross_jump): Add parameter to declaration.
5243
5244 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5245
5246         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5247         (AVXMODEDCVTPS2DQ): Ditto.
5248         (VEC_FLOAT_MODE): Ditto.
5249         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5250         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5251         (<any_logic:code><mode>3): Use VF mode iterator.
5252         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5253         Use VF mode iterator.
5254         (copysign<mode>3): Use VF mode iterator.
5255         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5256         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5257         (*<any_logic:code><MODEF:mode>3): Merge with
5258         *avx_<any_logic:code><MODEF:mode>3.
5259         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5260         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5261         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5262         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5263         (sse2_cvtdq2ps): Use %v modifier.
5264         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5265         (avx_cvtps2dq<avxmodesuffix>): Remove.
5266         (sse2_cvtps2dq): Use %v modifier.
5267         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5268         (avx_cvttps2dq<avxmodesuffix>): Remove.
5269         (sse2_cvttps2dq): Use %v modifier.
5270         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5271         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5272         (sse2_cvtsd2siq): Fix insn template.
5273         (sse2_cvtsd2siq_2): Ditto.
5274         (sse2_cvttsd2siq): Ditto.
5275         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5276         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5277
5278 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5279
5280         * gcov-io.c: Use GCC Runtime Library Exception.
5281
5282 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5283
5284         PR debug/48466
5285         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5286         as base_reg whatever register reg has been eliminated to, instead
5287         of hardcoding STACK_POINTER_REGNUM.
5288
5289 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5290
5291         * doc/tm.texi.in: Document C target hooks as separate from general
5292         target hooks.
5293         * doc/tm.texi: Regenerate.
5294         * genhooks.c (struct hook_desc): Add docname field.
5295         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5296         docname field.
5297         (hook_array): Include c-target.def.
5298         (emit_documentation): Use docname field in output.
5299         (emit_init_macros): Take docname argument.  Only emit definitions
5300         for hooks matching docname.
5301         (main): Expect additional arguments in all cases.  Pass argument
5302         to emit_init_macros.
5303         * target.def: Move initial macro definitions and comments to
5304         target-hooks-macros.h.
5305         (gcc_targetcm): Move to c-family/c-target.def.
5306         * target.h (targetcm): Move declaration to c-family/c-target.h.
5307         * targhooks.c (default_handle_c_option): Move to
5308         c-family/c-opts.c.
5309         * targhooks.h (default_handle_c_option): Move declaration to
5310         c-family/c-common.h.
5311         * target-hooks-macros.h: New file.
5312         * config.gcc (target_has_targetcm): Define and use to add to
5313         c_target_objs and cxx_target_objs.
5314         * config/default-c.c: New file.
5315         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5316         of target.h and target-def.h.
5317         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5318         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5319         darwin_check_cfstring_format_arg): Make static.
5320         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5321         TARGET_STRING_OBJECT_REF_TYPE_P,
5322         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5323         * config/darwin-protos.h (darwin_objc_construct_string,
5324         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5325         declare.
5326         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5327         TARGET_STRING_OBJECT_REF_TYPE_P,
5328         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5329         * config/t-darwin (darwin-c.o): Update dependencies.
5330         * system.h (TARGET_HAS_TARGETCM): Poison.
5331         * Makefile.in (TARGET_H): Update.
5332         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5333         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5334         (default-c.o): New target.
5335         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5336         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5337         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5338         c-target.def.
5339         (build/genhooks.o): Update dependencies.
5340
5341 2011-04-06  Richard Guenther  <rguenther@suse.de>
5342
5343         * ipa-inline.c (enum inlining_mode): Remove.
5344         (cgraph_flatten): Use some other token.
5345         (cgraph_edge_early_inlinable_p): New function, split out from ...
5346         (cgraph_perform_always_inlining): New function, split out from ...
5347         (cgraph_decide_inlining_incrementally): ... here.
5348         (cgraph_mark_inline_edge): Adjust.
5349         (cgraph_early_inlining): Re-structure.
5350         (pass_early_inline): Require SSA form.
5351
5352 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5353             Julian Brown  <julian@codesourcery.com>
5354             Mark Shinwell  <shinwell@codesourcery.com>
5355
5356         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5357         LO_REGS only for Thumb-1.
5358         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5359         be used in short instructions when optimising for size on Thumb-2.
5360
5361 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5362
5363         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5364         associated with user returns to be preserved.
5365
5366 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5367
5368         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5369         symbol_queue_size, DBXOUT_DECR_NESTING,
5370         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5371         if XCOFF_DEBUGGING_INFO.
5372
5373 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5374
5375         * config/i386/i386.md (attribute isa): New.
5376         (attribute enabled): New.
5377         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5378         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5379         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5380         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5381         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5382         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5383         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5384         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5385
5386         * config/i386/sse.md (VF): New mode iterator.
5387         (VF1): Ditto.
5388         (VF2): Ditto.
5389         (VF_128): Ditto.
5390         (SSEMODEF4): Remove.
5391         (attribute sse): Handle V8SF and V4DF modes.
5392         (<absneg:code><mode>2): Use VF mode iterator.
5393         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5394         mode iterator.
5395         (<plusminus_insn><mode>3): Use VF mode iterator.
5396         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5397         Use VF mode iterator.
5398         (<sse>_vm<plusminus_insn><mode>3): Merge with
5399         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5400         (mul<mode>3): Use VF mode iterator.
5401         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5402         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5403         mode iterator.
5404         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5405         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5406         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5407         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5408         mode iterator.
5409         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5410         Use VF1 mode iterator.
5411         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5412         (sqrt<VF2:mode>2): New expander.
5413         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5414         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5415         and sqrtv2df2.  Use VF mode iterator.
5416         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5417         mode iterator.
5418         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5419         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5420         Use VF1 mode iterator.
5421         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5422         (<smaxmin:code><mode>3): Use VF mode iterator.
5423         (*<smaxmin:code><mode>3_finite): Merge with
5424         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5425         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5426         (<sse>_vm<smaxmin:code><mode>2): Merge with
5427         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5428         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5429         mode iterator.
5430         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5431         mode iterator.
5432         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5433         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5434         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5435         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5436         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5437         VF mode iterator.
5438         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5439         Use VF_128 mode iterator.
5440         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5441         mode iterator.
5442         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5443         VF_128 mode iterator.
5444         (vcond<mode>): Use VF mode iterator.
5445         * config/i386/predicates.md (sse_comparison_operator): Merge with
5446         avx_comparison_float_operator.  Do not declare as special_predicate.
5447         * config/i386/i386.c (struct builtin_description): Update for renamed
5448         compare patterns.
5449         (ix86_expand_args_builtin): Ditto.
5450         (ix86_expand_sse_compare_mask): Ditto.
5451
5452 2011-04-06  Richard Guenther  <rguenther@suse.de>
5453
5454         * tree-inline.c (estimate_num_insns): For calls simply account
5455         for all passed arguments and a used return value.
5456
5457 2011-04-06  Richard Guenther  <rguenther@suse.de>
5458
5459         PR tree-optimization/47663
5460         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5461         call_stmt_time fields.
5462         (cgraph_edge_inlinable_p): Declare.
5463         (cgraph_edge_recursive_p): New inline function.
5464         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5465         (cgraph_clone_edge): Copy it.
5466         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5467         Account for call stmt time.
5468         (cgraph_estimate_time_after_inlining): Take edge argument.
5469         (cgraph_estimate_edge_growth): Account call stmt size.
5470         (cgraph_estimate_size_after_inlining): Take edge argument.
5471         (cgraph_mark_inline_edge): Adjust.
5472         (cgraph_check_inline_limits): Likewise.
5473         (cgraph_recursive_inlining_p): Remove.
5474         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5475         (cgraph_decide_recursive_inlining): Take edge argument and
5476         adjust.
5477         (cgraph_decide_inlining_of_small_functions): Do not avoid
5478         diags for recursive inlining here.
5479         (cgraph_flatten): Adjust.
5480         (cgraph_decide_inlining_incrementally): Likewise.
5481         (estimate_function_body_sizes): Remove call cost handling.
5482         (compute_inline_parameters): Initialize caller edge call costs.
5483         (cgraph_estimate_edge_growth): New function.
5484         (cgraph_estimate_growth): Use it.
5485         (cgraph_edge_badness): Likewise.
5486         (cgraph_check_inline_limits): Take an edge argument.
5487         (cgraph_decide_inlining_of_small_functions): Adjust.
5488         (cgraph_decide_inlining): Likewise.
5489         * tree-inline.c (estimate_num_insns): Only account for call
5490         return value if it is used.
5491         (expand_call_inline): Avoid diagnostics on recursive inline
5492         functions here.
5493         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5494         (input_edge): Input edge call costs.
5495
5496 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5497
5498         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5499
5500 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5501
5502         * doc/invoke.texi (Spec Files): Fix typo.
5503
5504 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5505
5506         * profile.c (branch_prob): Move declaration of local variable.  Remove
5507         obsolete ??? comment.  Expand the location explicitly instead of using
5508         the LOCATION_FILE and LOCATION_LINE macros.
5509
5510 2011-04-06  Wei Guozhi  <carrot@google.com>
5511
5512         PR target/47855
5513         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5514         (arm_cond_branch): Likewise.
5515         (arm_cond_branch_reversed): Likewise.
5516         (arm_jump): Likewise.
5517         (push_multi): Likewise.
5518         * config/arm/constraints.md (Py): New constraint.
5519
5520 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5521
5522         PR bootstrap/48471
5523         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5524         Move these...
5525         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5526         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5527         #ifdef DBX_DEBUGGING_INFO.
5528
5529 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5530
5531         PR bootstrap/48403
5532         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5533         if old and new states differ.
5534
5535 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5536
5537         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5538         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5539         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5540         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5541         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5542         mcfv4e): Use Alias.
5543         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5544         ColdFire options to -mcpu= options.
5545
5546 2011-04-05  Jeff Law  <law@redhat.com>
5547
5548         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5549         check if BB is a successor of LOOP->header and return
5550         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5551
5552 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5553
5554         * cprop.c (struct reg_use): Remove.
5555         (reg_use_table): Make an array of RTX.
5556         (find_used_regs, constprop_register, local_cprop_pass,
5557         bypass_block): Simplify users of reg_use_table.
5558         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5559         on one of the uses found by find_used_regs.
5560
5561 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5562
5563         PR bootstrap/48469
5564         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5565         declaration.
5566
5567 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5568
5569         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5570         as an rtx.
5571         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5572
5573 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5574
5575         PR middle-end/48441
5576         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5577
5578 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5579
5580         * combine.c: Include obstack.h.
5581         (struct insn_link): Define.
5582         (uid_log_links): Adjust type.
5583         (FOR_EACH_LOG_LINK): New macro.
5584         (insn_link_obstack): Declare.
5585         (alloc_insn_link): Define.
5586         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5587         type of link variables.
5588         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5589         (try_combine, record_promoted_values, distribute_notes): Likewise.
5590         (distribute_links): Likewise.  Tweak prototype.
5591         (clear_log_links): Delete.
5592         (adjust_for_new_dest): Call alloc_insn_link.
5593         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5594
5595 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5596
5597         * gcse.c (modify_mem_list): Convert to an array of VECs.
5598         (canon_modify_mem_list, compute_transp): Tweak formatting.
5599         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5600         (load_killed_in_block_p): Likewise.
5601         (record_last_mem_set_info): Likewise.
5602         (clear_modify_mem_tables): Likewise.
5603
5604 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5605
5606         PR middle-end/48461
5607         * function.c (emit_use_return_register_into_block): Only define if
5608         HAVE_return.
5609
5610 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5611
5612         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5613
5614 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5615
5616         * config/rx/rx-opts.h: New.
5617         * config/rx/rx.c (rx_cpu_type): Remove.
5618         (rx_handle_option): Don't assert that global structures are in
5619         use.  Access variables via opts pointer.  Defer most handling of
5620         OPT_mint_register_.  Use error_at.
5621         (rx_option_override): Handle deferred OPT_mint_register_ here.
5622         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5623         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5624         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5625         (rx_cpu_types): New Enum and EnumValue entries.
5626         (mint-register=): Use Defer and use Var accordingly.
5627
5628 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5629
5630         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5631         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5632         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5633         Move these...
5634         (debug_free_queue, debug_nesting, symbol_queue_index):
5635         ...and these...
5636         * dbxout.c: ...to here.  Make static.
5637
5638 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5639
5640         * gcse.c (modify_pair): Define.  Define a VEC of it.
5641         (canon_modify_mem_list): Convert to an array of VECs.
5642         (free_insn_expr_list_list): Delete.
5643         (clear_modify_mem_tables): Call VEC_free instead.
5644         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5645         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5646         (canon_list_insert, compute_transp): Likewise.
5647
5648 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5649
5650         PR target/43920
5651         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5652         for size.
5653
5654 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5655
5656         PR target/43920
5657         * function.c (emit_use_return_register_into_block): New function.
5658         (thread_prologue_and_epilogue_insns): Use
5659         emit_use_return_register_into_block.
5660
5661 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5662
5663         PR target/43920
5664         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5665         insn.
5666
5667 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5668
5669         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5670
5671 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5672
5673         * config/arm/arm.md (define_constants for unspec): Replace with
5674         define_c_enum.
5675         (define_constants for unspecv): Replace with define_c_enum.
5676         * config/arm/neon.md (define_constants for unspec): Replace with
5677         define_c_enum.
5678
5679 2011-04-04  Richard Henderson  <rth@redhat.com>
5680
5681         PR bootstrap/48400
5682         * dwarf2out.c (output_line_info): Always emit line info from
5683         at least one section.
5684         (dwarf2out_init): Create text_section_line_info here ...
5685         (set_cur_line_info_table): ... not here.
5686
5687 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5688
5689         PR target/48380
5690         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5691         not called.
5692
5693         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5694
5695 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5696
5697         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5698         (expr_equiv_p): Remove.
5699         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5700         (hash_scan_set): Update call to insert_set_in_table.
5701         (dump_hash_table): Dump <dest, src> pair.
5702         (lookup_set): Simplify.  Lookup <dest, src> pair.
5703         (compute_transp): Remove, fold heavily simplified code into...
5704         (compute_local_properties): ...here.  Expect COMP and TRANSP
5705         unconditionally.
5706         (find_avail_set): Take set directly from struct expr.
5707         (find_bypass-set): Likewise.
5708         (bypass_block): Likewise.
5709         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5710
5711         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5712         checks on form of COND from find_implicit_sets to here.
5713         (find_implicit_sets): Cleanup control flow. Split critical edges
5714         if it exposes implicit sets.  Allocate/resize implicit_sets as
5715         necessary.
5716         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5717         changed something.  Run df_analyze after find_implicit_sets if any
5718         edges were split.  Do not allocate implicit_sets here.
5719
5720         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5721         (gcse_obstack): Renamed to cprop_obstack.
5722         (GNEW, GNEWVEC, GNEWVAR): Remove.
5723         (gmalloc): Remove.
5724         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5725         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5726         (gcse_alloc): Likewise, and rename to cprop_alloc.
5727         (alloc_gcse_men, free_gcse_mem): Remove.
5728         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5729         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5730         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5731
5732         * cprop.c (oprs_not_set_p): Remove.
5733         (mark_set, mark_clobber): Remove.
5734         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5735         (reg_not_set_p): New function.
5736         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5737         (cprop_insn): Likewise.
5738         (cprop_jump): Use FOR_EACH_EDGE.
5739
5740 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5741
5742         PR bootstrap/48403
5743         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5744         (rank_for_schedule): Use scheduled_insns vector instead of
5745         last_scheduled_insn.
5746         (ok_for_early_queue_removal): Likewise.
5747         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5748         we have a dbg_cnt.
5749         (choose_ready): Likewise.
5750         (commit_schedule): Use VEC_iterate.
5751         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5752         a dbg_cnt, use it and ensure the first insn is in the ready list.
5753         (haifa_sched_init): Allocate scheduled_insns.
5754         (sched_extend_ready_list): Don't allocate it; reserve space.
5755         (haifa_sched_finish): Free it.
5756
5757 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5758
5759         * optc-gen.awk: Always remove type from Variable entry before
5760         recording in var_seen.
5761
5762 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5763
5764         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5765         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5766         call to tidy_fallthru_edges.
5767
5768 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5769
5770         * doc/options.texi (ToLower): Document.
5771         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5772         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5773         * opts.h (cl_option): Add cl_tolower field.
5774         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5775         arguments with lowercase strings.
5776         * config/rx/rx.opt (mcpu=): Add ToLower.
5777         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5778         argument.
5779
5780 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5781
5782         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5783
5784 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5785
5786         * config/vax/vax.c: Include reload.h.
5787
5788 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5789
5790         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5791         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5792         (sparc_preferred_reload_class): New function.
5793
5794 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5795
5796         PR debug/48401
5797         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5798         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5799
5800 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5801
5802         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5803         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5804
5805 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5806
5807         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5808         (ASM_OUTPUT_ALIGNED_BSS): Define.
5809
5810 2011-04-03  Michael Matz  <matz@suse.de>
5811
5812         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5813         and next_slot members.
5814         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5815         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5816         (lto_streamer_cache_append): Declare.
5817         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5818         unsigned index, remove offset parameter, ensure that we append
5819         or update existing entries.
5820         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5821         parameter, update next_slot for append.
5822         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5823         parameter.
5824         (lto_streamer_cache_insert_at): Likewise.
5825         (lto_streamer_cache_append): New function.
5826         (lto_streamer_cache_lookup): Use unsigned index.
5827         (lto_streamer_cache_get): Likewise.
5828         (lto_record_common_node): Don't test tree_node_can_be_shared.
5829         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5830         (lto_streamer_cache_delete): Don't free offsets member.
5831         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5832         (lto_output_string_with_length): Use lto_output_data_stream.
5833         (lto_output_tree_header): Remove ix parameter, don't write it.
5834         (lto_output_builtin_tree): Likewise.
5835         (lto_write_tree): Adjust callers to above, don't track and write
5836         offset, write unsigned index.
5837         (output_unreferenced_globals): Don't emit all global vars.
5838         (write_global_references): Use unsigned indices.
5839         (lto_output_decl_state_refs): Likewise.
5840         (write_symbol): Likewise.
5841         * lto-streamer-in.c (lto_input_chain): Move earlier.
5842         (input_function): Use unsigned index.
5843         (input_alias_pairs): Don't read and then ignore all global vars.
5844         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5845         don't pass it back, use lto_streamer_cache_append.
5846         (lto_register_var_decl_in_symtab): Use unsigned index.
5847         (lto_register_function_decl_in_symtab): Likewise.
5848         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5849         index.
5850         (lto_get_builtin_tree): Don't read index, use
5851         lto_streamer_cache_append.
5852         (lto_read_tree): Adjust call to lto_materialize_tree.
5853
5854         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5855         don't use function calls in arguments to MIN.
5856
5857         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5858         twice.
5859
5860         * gimple.c (gimple_type_leader_entry): Mark deletable.
5861
5862 2011-04-03  Alan Modra  <amodra@gmail.com>
5863
5864         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5865
5866 2011-04-03  Michael Matz  <matz@suse.de>
5867
5868         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5869         an integer.
5870         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5871
5872 2011-04-03  Michael Matz  <matz@suse.de>
5873
5874         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5875         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5876         without function context.
5877         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5878         current_function_decl and cfun.
5879
5880 2011-04-03  Michael Matz  <matz@suse.de>
5881
5882         * tree.c (decl_init_priority_insert): Don't create entry for
5883         default priority.
5884         (decl_fini_priority_insert): Ditto.
5885         (fields_compatible_p, find_compatible_field): Remove.
5886         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5887         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5888
5889 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5890
5891         * combine.c (try_combine): Remove useless local variable.
5892
5893 2011-04-03  Richard Guenther  <rguenther@suse.de>
5894             Ira Rosen  <ira.rosen@linaro.org>
5895
5896         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5897         non-variable offsets and compare the remaining bases of the two
5898         accesses instead of looking for exact same data-ref.
5899
5900 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5901
5902         PR target/48416
5903         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5904
5905         * i386.c (ix86_is_msabi_thiscall): New helper function.
5906         (ix86_is_type_thiscall): New helper function.
5907         (ix86_comp_type_attributes): Handle thiscall for method-functions
5908         special.
5909         (init_cumulative_args): Likewise.
5910         (find_drap_reg): Likewise.
5911         (ix86_static_chain): Likewise.
5912         (x86_this_parameter): Likewise.
5913         (x86_output_mi_thunk): Likewise.
5914
5915 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5916             Nicolas Setton  <setton@adacore.com>
5917             Eric Botcazou  <ebotcazou@adacore.com>
5918
5919         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5920         (add_gnat_descriptive_type_attribute): New function.
5921         (gen_array_type_die): Call it.
5922         (gen_enumeration_type_die): Likewise.
5923         (gen_struct_or_union_type_die): Likewise.
5924         (modified_type_die): Likewise.
5925         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5926         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5927         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5928
5929 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5930
5931         PR bootstrap/48148
5932         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5933         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5934
5935         Revert:
5936         2011-03-17  Richard Guenther  <rguenther@suse.de>
5937
5938         PR bootstrap/48148
5939         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5940         origin for decls in other ltrans units.
5941         (input_varpool_node): Likewise.
5942
5943 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5944
5945         PR middle-end/48335
5946         * expr.c (expand_assignment): Handle all possibilities
5947         if TO_RTX is CONCAT.
5948         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5949         (store_split_bit_field): If SUBREG_REG (op0) or
5950         op0 itself has smaller mode than word, return it
5951         for offset 0 and const0_rtx for out-of-bounds stores.
5952         If word is const0_rtx, skip it.
5953
5954 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5955
5956         * config/h8300/h8300.c (print_operand_address): Rename to...
5957         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5958         Call h8300_print_operand and h8300_print_operand_address instead of
5959         print_operand and print_operand_address. Declare.
5960         (print_operand): Renake to...
5961         (h8300_print_operand): ...this. Make static. Adjust comments.
5962         Call h8300_print_operand instead of print_operand. Declare.
5963         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5964         (h8300_register_move_cost): Likewise.
5965         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5966         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5967         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5968         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5969         * config/h8300/h8300-protos.h (print_operand): Delete.
5970         (print_operand_address): Delete.
5971
5972 2011-04-01  Richard Henderson  <rth@redhat.com>
5973
5974         PR 48400
5975         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5976         in strict mode before dwarf4.  Re-order tests to early out
5977         before switching sections.
5978
5979 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5980
5981         * config/h8300/constraints.md: New file.
5982         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5983         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5984         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5985         * config/h8300/predicates.md (bit_operand): Likewise.
5986         (incdec_operand): Use satisfies_constraint_M and
5987         satisfies_constraint_O.  Don't use C code block.
5988         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5989         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5990         (compute_mov_length): Use satisfies_constraint_G.
5991         (fix_bit_operand): Use satisfies_constraint_U.
5992         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5993         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5994         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5995         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5996         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5997         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5998         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5999         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6000         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6001         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6002         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6003         (EXTRA_MEMORY_CONSTRAINT): Delete.
6004
6005 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6006             Michael Meissner  <meissner@linux.vnet.ibm.com>
6007
6008         PR target/48262
6009         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6010         operands, as per the specifications.
6011
6012         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6013         (vec_extract_evenv4sf): Ditto.
6014         (vec_extract_evenv8hi): Ditto.
6015         (vec_extract_evenv16qi): Ditto.
6016         (vec_extract_oddv4si): Ditto.
6017
6018 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6019
6020         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6021         high_pc attribute if the CU has no associated code. Only output
6022         DW_AT_entry_pc for CU if not generating strict dwarf and
6023         dwarf_version < 4.
6024
6025 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6026
6027         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6028         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6029         out of ...
6030         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6031         * final.c (final_start_function): Call the new function rather
6032         than using a NULL argument for dwarf2out_frame_debug.
6033
6034         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6035         that contains the prologue.
6036
6037         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6038         changed.  Print it in debugging output.
6039
6040         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6041
6042         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6043         Split most of the code into...
6044         (begin_move_insn): ... here.  New function.
6045         (ebb_sched_info): Add a pointer to it.
6046         * haifa-sched.c (scheduled_insns): New static variable.
6047         (sched_extend_ready_list): Allocate it.
6048         (schedule_block): Use it to record the order of scheduled insns.
6049         Perform RTL changes to move insns only after all scheduling
6050         decisions have been made.
6051         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6052         begin_move_insn field.
6053         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6054         * sched-int.h (struct haifa_sched_info): Remove second argument
6055         from begin_schedule_ready hook.  Add new member begin_move_insn.
6056         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6057         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6058
6059         * haifa-sched.c (prune_ready_list): New function, broken out of
6060         schedule_block.
6061         (schedule_block): Use it.
6062
6063 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6064
6065         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6066
6067 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6068
6069         * config.gcc (*-*-mingw*): Allow as option the
6070         posix threading model.
6071         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6072         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6073         definition.
6074         (CPP_SPEC): Add pthread/no-pthread handling.
6075         (LIB_SPEC): Likewise.
6076         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6077         (LIB_SPEC): Likewise.
6078         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6079         flag to pass -pthread option for shared libgcc build.
6080         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6081         for shared libgcc build.
6082         * config/i386/t-mingw-pthread: New file.
6083         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6084         New define to enable use of library pthread by default.
6085         * config/i386/mingw.opt (pthread): New driver option.
6086         (no-pthread): New driver option.
6087         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6088         * config/i386/mingw-w64.opt: Likewise.
6089
6090 2011-04-01  Gary Funck <gary@intrepid.com>
6091
6092         * c-decl.c (grokdeclarator): Fix formatting.
6093
6094 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6095
6096         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6097         instead of n_operands.
6098         (set_storage_via_setmem): Likewise.
6099         * optabs.c (maybe_gen_insn): Likewise.
6100         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6101         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6102         (mips_expand_builtin_direct): Likewise.
6103         * config/spu/spu.c (expand_builtin_args): Likewise.
6104
6105 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6106
6107         * recog.h (insn_data_d): Add n_generator_args.
6108         * genoutput.c (data): Likewise.
6109         (output_insn_data): Print it.
6110         (max_opno, num_dups): Delete.
6111         (scan_operands): Just fill in "d->operand[...]".
6112         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6113
6114 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6115
6116         * gensupport.h (pattern_stats): New structure.
6117         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6118         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6119         (max_operand_1, max_operand_vec): Delete.
6120         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6121
6122 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6123
6124         * emit-rtl.c (emit_pattern_after_setloc): New function.
6125         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6126         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6127         (emit_pattern_after): New function.
6128         (emit_insn_after, emit_jump_insn_after): Call it.
6129         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6130         (emit_pattern_before_setloc): New function.
6131         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6132         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6133         Likewise.
6134         (emit_pattern_before): New function.
6135         (emit_insn_before, emit_jump_insn_before): Call it.
6136         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6137
6138 2011-03-31  Richard Henderson  <rth@redhat.com>
6139
6140         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6141         (dw_separate_line_info_entry): Remove.
6142         (enum dw_line_info_opcode): New.
6143         (dw_line_info_entry): Use it.
6144         (dw_line_info_table, dw_line_info_table_p): New.
6145         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6146         (line_info_table, line_info_label_num): Remove.
6147         (line_info_table_in_use): Remove.
6148         (separate_line_info_table): Remove.
6149         (separate_line_info_table_allocated): Remove.
6150         (separate_line_info_table_in_use): Remove.
6151         (LINE_INFO_TABLE_INCREMENT): Remove.
6152         (line_info_label_num): New.
6153         (cur_line_info_table): New.
6154         (text_section_line_info, cold_text_section_line_info): New.
6155         (separate_line_info): New.
6156         (SEPARATE_LINE_CODE_LABEL): Remove.
6157         (print_dwarf_line_table): Remove.
6158         (debug_dwarf): Don't dump it.
6159         (output_one_line_info_table): New.
6160         (output_line_info): Use it.
6161         (new_line_info_table): New.
6162         (set_cur_line_info_table): New.
6163         (dwarf2out_switch_text_section): Use it.
6164         (dwarf2out_begin_function): Likewise.
6165         (push_dw_line_info_entry): New.
6166         (dwarf2out_source_line): Rewrite for new line info tables.
6167         (dwarf2out_init): Remove dead initailizations.
6168
6169 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6170
6171         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6172         various flags.
6173         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6174         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6175         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6176         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6177         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6178         * opt-functions.awk (flag_init, switch_bit_fields): New.
6179         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6180         generate CL_MISSING_OK or CL_SAVE.
6181         * optc-gen.awk: Update to generate bit-field output as well as
6182         flags field.
6183         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6184         bit-field instead of CL_REJECT_DRIVER flag.
6185         * opts-common.c (generate_canonical_option,
6186         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6187         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6188         instead of CL_REJECT_NEGATIVE flag.
6189         * toplev.c (print_switch_values): Use cl_report bit-field instead
6190         of CL_REPORT flag.
6191
6192 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6193
6194         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6195         a zero minimum index only if it is redundant.
6196
6197 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6198
6199         PR rtl-optimization/48381
6200         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6201         instead of ira_class_hard_reg_index for calculating conflicting
6202         hard registers.
6203
6204 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6205
6206         * cprop.c: Clean up hash table building.
6207         (reg_avail_info): Remove.
6208         (oprs_available_p): Remove.
6209         (record_last_reg_set_info): Remove.
6210         (record_last_set_info): Remove.
6211         (reg_available_p): New function.
6212         (gcse_constant_p): Do not treat unfolded conditions as constants.
6213         (make_set_regs_unavailable): New function.
6214         (hash_scan_set): Simplify with new reg_available_p.
6215         (compute_hash_table_work): Traverse insns stream only once.
6216         Do not compute reg_avail_info. Traverse insns in reverse order.
6217         Record implicit sets after recording explicit sets from the block.
6218
6219 2011-03-31  Michael Matz  <matz@suse.de>
6220
6221         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6222
6223 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6224
6225         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6226         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6227         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6228         (h8300_mode_dependent_address_p): New function.
6229         (h8300_get_index): Make static.
6230
6231 2011-03-31  Jeff Law  <law@redhat.com>
6232
6233         * reload1.c (elimination_effects): Fix typo in recent change.
6234
6235         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6236         typo potentially leading to null pointer dereference.
6237
6238         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6239         (setup_save_areas): Corresponding changes to avoid useless
6240         assignments.
6241
6242         * jump.c (reversed_comparison_code_parts): Avoid successive return
6243         statements when REVERSE_CONDITION is defined.
6244
6245         * expr.c (expand_assignment): Avoid useless assignments.
6246         (expand_expr_real_1): Likewise.
6247         (expand_expr_real_2): Avoid useless statements.
6248
6249         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6250
6251         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6252
6253         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6254         statements.
6255
6256         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6257
6258 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6259
6260         PR target/47109
6261         * doc/tm.texi.in (TARGET_VERSION): Remove.
6262         * doc/tm.texi: Regenerate.
6263         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6264         * collect2.c (main): Don't use TARGET_VERSION.
6265         * mips-tdump.c (main): Don't use TARGET_VERSION.
6266         * mips-tfile.c (main): Don't use TARGET_VERSION.
6267         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6268         * config/rs6000/vxworksae.h: Remove.
6269         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6270         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6271         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6272         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6273         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6274         * config/arm/arm.h (TARGET_VERSION): Remove.
6275         * config/arm/coff.h (TARGET_VERSION): Remove.
6276         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6277         * config/arm/elf.h (TARGET_VERSION): Remove.
6278         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6279         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6280         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6281         * config/arm/pe.h (TARGET_VERSION): Remove.
6282         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6283         * config/arm/semi.h (TARGET_VERSION): Remove.
6284         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6285         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6286         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6287         * config/avr/avr.h (TARGET_VERSION): Remove.
6288         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6289         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6290         * config/frv/frv.h (TARGET_VERSION): Remove.
6291         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6292         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6293         * config/i386/darwin.h (TARGET_VERSION): Remove.
6294         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6295         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6296         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6297         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6298         * config/i386/gnu.h (TARGET_VERSION): Remove.
6299         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6300         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6301         * config/i386/linux.h (TARGET_VERSION): Remove.
6302         * config/i386/linux64.h (TARGET_VERSION): Remove.
6303         * config/i386/lynx.h (TARGET_VERSION): Remove.
6304         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6305         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6306         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6307         * config/i386/netware.h (TARGET_VERSION): Remove.
6308         * config/i386/nto.h (TARGET_VERSION): Remove.
6309         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6310         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6311         * config/ia64/elf.h (TARGET_VERSION): Remove.
6312         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6313         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6314         * config/ia64/linux.h (TARGET_VERSION): Remove.
6315         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6316         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6317         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6318         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6319         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6320         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6321         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6322         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6323         * config/m68k/linux.h (TARGET_VERSION): Remove.
6324         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6325         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6326         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6327         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6328         * config/mep/mep.h (TARGET_VERSION): Remove.
6329         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6330         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6331         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6332         * config/mips/linux.h (TARGET_VERSION): Remove.
6333         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6334         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6335         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6336         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6337         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6338         * config/pa/pa.h (TARGET_VERSION): Remove.
6339         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6340         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6341         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6342         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6343         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6344         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6345         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6346         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6347         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6348         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6349         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6350         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6351         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6352         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6353         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6354         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6355         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6356         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6357         * config/s390/linux.h (TARGET_VERSION): Remove.
6358         * config/s390/s390.h (TARGET_VERSION): Remove.
6359         * config/s390/tpf.h (TARGET_VERSION): Remove.
6360         * config/score/score.h (TARGET_VERSION): Remove.
6361         * config/sh/linux.h (TARGET_VERSION): Remove.
6362         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6363         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6364         * config/sh/sh.h (TARGET_VERSION): Remove.
6365         * config/sh/sh64.h (TARGET_VERSION): Remove.
6366         * config/sh/superh.h (TARGET_VERSION): Remove.
6367         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6368         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6369         * config/sparc/linux.h (TARGET_VERSION): Remove.
6370         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6371         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6372         TARGET_NAME32, TARGET_NAME): Remove.
6373         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6374         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6375         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6376         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6377         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6378         * config/spu/spu.h (TARGET_VERSION): Remove.
6379         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6380         * config/v850/v850.h (TARGET_VERSION): Remove.
6381         * config/vax/linux.h (TARGET_VERSION): Remove.
6382         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6383         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6384         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6385
6386 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6387
6388         PR target/48142
6389         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6390         frame-related from frame-unrelated adjustments to the stack pointer.
6391
6392 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6393
6394         * common.opt (fdebug-types-section): Move earlier.
6395         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6396
6397 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6398
6399         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6400         var.
6401
6402 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6403
6404         * tree.h (CASE_CHAIN): Define.
6405         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6406         (gimple_redirect_edge_and_branch): Likewise.
6407
6408 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6409
6410         PR middle-end/48367
6411         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6412         calculation.
6413
6414 2011-03-30  Jeff Law  <law@redhat.com>
6415
6416         * PR bootstrap/48371
6417         * reload1.c (reload): Fix botch in last change.
6418
6419         * reload.h (struct reload): Fix typo introduced in last change.
6420
6421 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6422
6423         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6424         Undocumented.  Remove help text.
6425         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6426         -mhard-float.
6427
6428 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6429
6430         * doc/options.texi (NegativeAlias): Document.
6431         (Alias): Mention NegativeAlias.
6432         * opt-functions.awk: Handle NegativeAlias.
6433         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6434         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6435         * opts.h (CL_NEGATIVE_ALIAS): Define.
6436         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6437         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6438         OPT_mspe_.
6439         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6440         Alias entries.
6441         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6442         mno-spe and mno-isel instead of mspe=no and -misel=no.
6443
6444 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6445
6446         * common.opt (fdebug-types-section): New flag.
6447         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6448         * dwarf2out.c (use_debug_types): New define.
6449         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6450         (print_die): Guard output of type unit signatures using
6451         use_debug_types.
6452         (build_abbrev_table): Replace assert of dwarf_version >= 4
6453         with assert on use_debug_types.
6454         (size_of_die): Likewise.
6455         (unmark_dies): Likewise.
6456         (value_format): Decide AT_ref_external form on use_debug_types.
6457         (output_die): Replace dwarf_version version check guard with
6458         use_debug_types where appropriate.
6459         (modified_type_die): Likewise.
6460         (gen_reference_type_die): Likewise.
6461         (dwarf2out_start_source_file): Likewise.
6462         (dwarf2out_end_source_file): Likewise.
6463         (prune_unused_types_walk_attribs): Likewise.
6464         (dwarf2out_finish): Likewise.
6465
6466 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6467
6468         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6469
6470 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6471
6472         PR rtl-optimization/48332
6473         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6474         mode of input operand N and modeN to its actual mode.
6475
6476 2011-03-30  Jeff Law  <law@redhat.com>
6477
6478         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6479         define accessor macro.
6480         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6481         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6482         (reg_equiv_init): Likewise.
6483         (reg_equivs_size): New variable.
6484         (reg_equiv_init_size): Remove.
6485         (allocate_initial_values): Move prototype to here from....
6486         * integrate.h (allocate_initial_values): Remove prototype.
6487         * integrate.c: Include reload.h.
6488         (allocate_initial_values): Corresponding changes.
6489         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6490         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6491         (update_equiv_regs): Corresponding changes.
6492         (ira): Corresponding changes.
6493         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6494         (push_secondary_reload): Corresponding changes.
6495         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6496         (make_memloc, find_reloads_address): Corresponding changes.
6497         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6498         (find_reloads_address_1): Corresponding changes.
6499         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6500         (refers_to_regno_for_reload_p): Corresponding changes.
6501         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6502         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6503         * reload1.c: Include ggc.h.
6504         (grow_reg_equivs): New function.
6505         (replace_pseudos_in, reload): Corresponding changes.
6506         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6507         (eliminate_regs_1, elimination_effects): Corresponding changes.
6508         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6509         (delete_output_reload): Likewise.
6510         * caller-save.c (mark_referenced_regs): Corresponding changes.
6511         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6512         * frv/predicates.md (frv_load_operand): Corresponding changes.
6513         * microblaze/microblaze.c (double_memory_operand): Corresponding
6514         changes.
6515         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6516         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6517         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6518         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6519         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6520         changes.
6521         * pa/pa.c (emit_move_sequence): Corresponding changes.
6522         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6523
6524 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6525
6526         PR target/47551
6527         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6528         structure modes.  Don't check neon_vector_mem_operand for
6529         vector or structure modes.
6530
6531 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6532             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6533
6534         PR target/43590
6535         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6536         operand 1 and reshuffle the operands to match.
6537         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6538
6539 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6540
6541         PR driver/48208
6542         * config/c.opt (F): Added 'Driver' to -F option.
6543
6544         PR driver/48260
6545         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6546           handler function.
6547         * config/darwin.opt: Added '-arch' option.
6548
6549 2011-03-30  Nick Clifton  <nickc@redhat.com>
6550
6551         * config/rx/rx.md: Add peepholes and patterns to combine
6552         extending loads and simple arithmetic instructions.
6553         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6554         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6555         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6556         modes to use pre-decrement and post-increment addressing.
6557         (rx_is_restricted_memory_address): Add range checking of REG+INT
6558         addresses.
6559         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6560         (rx_memory_move_cost): Adjust cost of stores.
6561         (rx_adjust_insn_length): New function.
6562
6563 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6564
6565         PR c/48305
6566         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6567         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6568         matching arg00/arg01 types.
6569
6570 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6571
6572         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6573         last_location to UNKNOWN_LOCATION.
6574
6575 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6576
6577         PR target/48349
6578         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6579         FLOAT_SSE_REGS.
6580
6581 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6582             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6583
6584         PR bootstrap/48337
6585         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6586         Init(PROCESSOR_V7).
6587         (sparc_cpu): Likewise.
6588         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6589         PROCESSOR_V7.
6590
6591 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6592
6593         PR target/48336
6594         PR middle-end/48342
6595         PR rtl-optimization/48345
6596         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6597         hard regs for given mode from profitable regs when doing secondary
6598         allocation.
6599
6600 2011-03-29  Jeff Law  <law@redhat.com>
6601
6602         PR bootstrap/48327
6603         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6604         do_not_duplicate field.
6605         (lookup_redirection_data): Corresponding changes.
6606         (create_duplicates): Always create a template block.
6607         (redirect_edges): Remove code which reused the original block
6608         when it was going to become unreachable code.
6609         (thread_block): Don't set do_not_duplicate field.
6610
6611 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6612
6613         * lto-opts.c (register_user_option_p, lto_register_user_option):
6614         Make type argument unsigned.
6615         * lto-streamer.h (lto_register_user_option): Make type argument
6616         unsigned.
6617         * opth-gen.awk: Make CL_* macros unsigned.
6618         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6619         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6620         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6621         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6622         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6623         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6624         (find_opt): Make lang_mask argument unsigned.
6625
6626 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6627
6628         PR rtl-optimization/48331
6629         PR rtl-optimization/48334
6630         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6631         for any used algorithm.
6632
6633 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6634
6635         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6636         to parent_max.
6637
6638 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6639
6640         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6641         (alpha_option_override): Don't set alpha_sr_alias_set.
6642         (emit_frame_store_1): Use gen_frame_mem rather than calling
6643         set_mem_alias_set.
6644         (alpha_expand_epilogue): Ditto.
6645
6646 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6647
6648         PR tree-optimization/48290
6649         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6650         vectorization, check that relevant phis in the basic block after
6651         the inner loop are really inner loop's exit phis.
6652
6653 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6654
6655         PR debug/48190
6656         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6657         (cached_dw_loc_list_def): New structure.
6658         (cached_dw_loc_list): New typedef.
6659         (cached_dw_loc_list_table): New variable.
6660         (cached_dw_loc_list_table_hash): New function.
6661         (cached_dw_loc_list_table_eq): Likewise.
6662         (add_location_or_const_value_attribute): Take a bool cache_p.
6663         Cache the list when the parameter is true.
6664         (gen_formal_parameter_die): Update caller.
6665         (gen_variable_die): Likewise.
6666         (dwarf2out_finish): Likewise.
6667         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6668         while generating debug info for the decl.
6669         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6670         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6671         (resolve_addr): Cache the result of resolving a chain of
6672         location lists.
6673
6674 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6675
6676         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6677         conflict object hard regset nodes have intersecting hard reg sets.
6678
6679         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6680         after regstat_init_n_sets_and_refs.
6681
6682         * ira.c: Add more comments at the top.
6683         (setup_stack_reg_pressure_class, setup_pressure_classes):
6684         Add comments how we compute the register pressure classes.
6685         (setup_allocno_and_important_classes): Add more comments.
6686         (setup_class_translate_array, reorder_important_classes)
6687         (setup_reg_class_relations): Add comments.
6688
6689         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6690         start of the file.
6691
6692         * ira-color.c: Add 2011 to the Copyright line.
6693         (assign_hard_reg):  Add more comments.
6694         (improve_allocation): Ditto.
6695
6696         * ira-costs.c: Add 2011 to the Copyright line.
6697         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6698         comments.
6699         (setup_regno_cost_classes_by_mode): Ditto.
6700
6701         Initial patches from ira-improv branch:
6702
6703         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6704
6705         * ira-build.c (ira_create_object): Remove initialization of
6706         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6707         (ira_create_allocno): Remove initialization of
6708         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6709         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6710         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6711         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6712         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6713         Initialize ALLOCNO_ADD_DATA.
6714         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6715         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6716         ALLOCNO_REG.
6717         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6718         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6719
6720         * ira.c (ira_reallocate): Remove.
6721         (setup_pressure_classes): Call
6722         ira_init_register_move_cost_if_necessary.  Use
6723         ira_register_move_cost instead of ira_get_register_move_cost.
6724         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6725         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6726
6727         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6728         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6729         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6730         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6731         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6732         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6733         Fix formatting.
6734         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6735         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6736         (struct allocno_color_data): New.
6737         (allocno_color_data_t): New typedef.
6738         (allocno_color_data): New definition.
6739         (ALLOCNO_COLOR_DATA): New macro.
6740         (struct object_color_data): New.
6741         (object_color_data_t): New typedef.
6742         (object_color_data): New definition.
6743         (OBJECT_COLOR_DATA): New macro.
6744         (update_copy_costs, calculate_allocno_spill_cost): Call
6745         ira_init_register_move_cost_if_necessary.  Use
6746         ira_register_move_cost instead of ira_get_register_move_cost.
6747         (move_spill_restore, update_curr_costs): Ditto.
6748         (allocno_spill_priority): Make it inline.
6749         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6750         (struct coalesce_data, coalesce_data_t): New.
6751         (allocno_coalesce_data): New definition.
6752         (ALLOCNO_COALESCE_DATA): New macro.
6753         (merge_allocnos, coalesced_allocno_conflict_p): Use
6754         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6755         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6756         (coalesce_allocnos): Ditto.
6757         (setup_coalesced_allocno_costs_and_nums): Ditto.
6758         (collect_spilled_coalesced_allocnos): Ditto.
6759         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6760         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6761         (coalesce_spill_slots): Ditto.
6762         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6763         free allocno_coalesce_data.
6764
6765         * ira-conflicts.c: Fix formatting.
6766         (process_regs_for_copy): Call
6767         ira_init_register_move_cost_if_necessary.  Use
6768         ira_register_move_cost instead of ira_get_register_move_cost.
6769         (build_object_conflicts): Optimize.
6770
6771         * ira-costs.c (record_reg_classes): Optimize.  Call
6772         ira_init_register_move_cost_if_necessary.  Use
6773         ira_register_move_cost, ira_may_move_in_cost, and
6774         ira_may_move_out_cost instead of ira_get_register_move_cost and
6775         ira_get_may_move_cost.
6776         (record_address_regs): Ditto.
6777         (scan_one_insn): Optimize.
6778         (find_costs_and_classes): Optimize.
6779         (process_bb_node_for_hard_reg_moves): Call
6780         ira_init_register_move_cost_if_necessary.  Use
6781         ira_register_move_cost instead of ira_get_register_move_cost.
6782
6783         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6784         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6785         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6786         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6787         definitions.
6788         (ira_initiate_emit_data, ira_finish_emit_data)
6789         (create_new_allocno): New functions.
6790         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6791         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6792         Use ira_register_move_cost instead of ira_get_register_move_cost.
6793
6794         * ira-int.h: Fix some comments.
6795         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6796         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6797         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6798         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6799         add_data.
6800         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6801         bitfield after mode.  Make hard_regno a short int.  Make
6802         hard_regno short.  Remove first_coalesced_allocno and
6803         next_coalesced_allocno.  Move mem_optimized_dest_p,
6804         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6805         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6806         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6807         temp, colorable_p.  Add new member add_data.
6808         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6809         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6810         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6811         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6812         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6813         (ALLOCNO_ADD_DATA): New macro.
6814         (ira_emit_data_t): New typedef.
6815         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6816         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6817         from struct ira_allocno.
6818         (ALLOCNO_EMIT_DATA): New macro.
6819         (ira_allocno_emit_data, allocno_emit_reg): New.
6820         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6821         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6822         (OBJECT_ADD_DATA): New macro.
6823         (ira_reallocate): Remove.
6824         (ira_initiate_emit_data, ira_finish_emit_data): New.
6825         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6826         (ira_init_register_move_cost_if_necessary): New.
6827         (ira_object_conflict_iter_next): Merge into
6828         ira_object_conflict_iter_cond.
6829         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6830
6831         * ira-live.c (process_single_reg_class_operands): Call
6832         ira_init_register_move_cost_if_necessary.  Use
6833         ira_register_move_cost instead of ira_get_register_move_cost.
6834
6835         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6836
6837         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6838
6839         * ira-costs.c: Fix formatting.
6840         (cost_classes, cost_classes_num): Remove.
6841         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6842         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6843         (cost_classes_del, cost_classes_htab): New.
6844         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6845         (initiate_regno_cost_classes, setup_cost_classes): New.
6846         (setup_regno_cost_classes_by_aclass): New.
6847         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6848         (record_reg_classes): Use regno_cost_classes instead of
6849         cost_classes.  Move checking opposite operand up.
6850         (record_address_regs): Use regno_cost_classes
6851         instead of cost_classes.
6852         (scan_one_insn): Ditto.  Use always general register.
6853         (print_allocno_costs): Use regno_cost_classes instead of
6854         cost_classes.
6855         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6856         (find_costs_and_classes): Set up cost classes for each registers.
6857         Use also their mode for this.  Use regno_cost_classes instead of
6858         cost_classes.
6859         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6860         cost_classes.
6861         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6862         (ira_costs, ira_set_pseudo_classes): Call
6863         initiate_regno_cost_classes and finish_regno_cost_classes.
6864
6865         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6866
6867         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6868
6869         * target.def (ira_cover_classes): Remove.
6870
6871         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6872
6873         * doc/tm.texi.in: Ditto.
6874
6875         * ira-conflicts.c: Remove mentioning cover classes from the file.
6876         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6877         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6878
6879         * targhooks.c (default_ira_cover_classes): Remove.
6880
6881         * targhooks.h (default_ira_cover_classes): Ditto.
6882
6883         * haifa-sched.c: Remove mentioning cover classes from the file.
6884         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6885         ira_pressure_classes and ira_pressure_classes_num instead of
6886         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6887         sched_regno_pressure_class instead of sched_regno_cover_class.
6888         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6889         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6890
6891         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6892         classes from the file.
6893         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6894         (struct object_hard_regs, struct object_hard_regs_node): New.
6895         (struct ira_object): New members profitable_hard_regs,
6896         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6897         (struct ira_allocno): Rename cover_class to aclass.  Rename
6898         cover_class_cost and updated_cover_class_cost to class_cost and
6899         updated_class_cost.  Remove splay_removed_p and
6900         left_conflict_size.  Add new members colorable_p.
6901         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6902         (ALLOCNO_COLORABLE_P): New macro.
6903         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6904         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6905         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6906         (OBJECT_...): Rename parameter C to O.
6907         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6908         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6909         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6910         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6911         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6912         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6913         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6914         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6915         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6916         x_ira_reg_class_subunion.
6917         (ira_max_memory_move_cost, ira_max_register_move_cost)
6918         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6919         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6920         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6921         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6922         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6923         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6924         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6925         (ira_tune_allocno_costs_and_cover_classes): Rename to
6926         ira_tune_allocno_costs.
6927         (ira_debug_hard_regs_forest): New.
6928         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6929         (ira_object_conflict_iter_next): Fix comments.
6930         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6931         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6932         cover_class to aclass.
6933         (ira_allocate_and_accumulate_costs): Ditto.
6934         (ira_allocate_and_set_or_copy_costs): Ditto.
6935
6936         * opts.c (decode_options): Remove ira_cover_class check.
6937
6938         * ira-color.c: Remove mentioning cover classes from the file.  Use
6939         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6940         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6941         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6942         (splay-tree.h): Remove include.
6943         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6944         before copy_freq_compare_func.
6945         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6946         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6947         New definitions.
6948         (hard_regs_roots, hard_regs_node_vec): Ditto.
6949         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6950         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6951         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6952         (create_new_object_hard_regs_node): Ditto.
6953         (add_new_object_hard_regs_node_to_forest): Ditto.
6954         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6955         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6956         Ditto.
6957         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6958         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6959         (remove_unused_object_hard_regs_nodes): Ditto.
6960         (enumerate_object_hard_regs_nodes): Ditto.
6961         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6962         (object_hard_regs_subnode_t): Ditto.
6963         (struct object_hard_regs_subnode): Ditto.
6964         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6965         (setup_object_hard_regs_subnode_index): Ditto.
6966         (get_object_hard_regs_subnodes_num): Ditto.
6967         (form_object_hard_regs_nodes_forest): Ditto.
6968         (finish_object_hard_regs_nodes_tree): Ditto.
6969         (finish_object_hard_regs_nodes_forest): Ditto.
6970         (allocnos_have_intersected_live_ranges_p): Rename to
6971         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6972         (pseudos_have_intersected_live_ranges_p): Rename to
6973         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6974         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6975         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6976         (update_copy_costs): Remove assert.  Skip cost update if the hard
6977         reg does not belong the class.
6978         (assign_hard_reg): Process only profitable hard regs.
6979         (uncolorable_allocnos_num): Make it scalar.
6980         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6981         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6982         and ira_reg_class_max_nregs.
6983         (bucket_allocno_compare_func): Check frequency first.
6984         (sort_bucket): Add compare function as a parameter.
6985         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6986         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6987         (push_allocno_to_stack): Rewrite for checking new allocno
6988         colorability.
6989         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6990         (push_only_colorable): Pass new parameter to sort_bucket.
6991         (push_allocno_to_spill): Remove.
6992         (allocno_spill_priority_compare): Make it inline and rewrite.
6993         (splay_tree_allocate, splay_tree_free): Remove.
6994         (allocno_spill_sort_compare): New function.
6995         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6996         build and use splay tree.  Choose first allocno in uncolorable
6997         allocno bucket to spill.  Remove setting spill cost.
6998         (all_conflicting_hard_regs): Remove.
6999         (setup_allocno_available_regs_num): Check only profitable hard
7000         regs.  Print info about hard regs nodes.
7001         (setup_allocno_left_conflicts_size): Remove.
7002         (put_allocno_into_bucket): Don't call
7003         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7004         (improve_allocation): New.
7005         (color_allocnos): Call setup_profitable_hard_regs,
7006         form_object_hard_regs_nodes_forest, improve_allocation,
7007         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7008         (print_loop_title): Use pressure classes.
7009         (color_allocnso): Ditto.
7010         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7011         and allocnos_for_spilling.
7012         (ira_sort_regnos_for_alter_reg): Don't setup members
7013         {first,next}_coalesced_allocno.
7014         (color): Remove allocating and freeing removed_splay_allocno_vec.
7015         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7016         prohibited_class_mode_regs.
7017
7018         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7019         formatting.
7020         (update_allocno_pressure_excess_length): Use pressure classes.
7021         (inc_register_pressure, dec_register_pressure): Check for pressure
7022         class.
7023         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7024         pressure class.  Use ira_reg_class_nregs instead of
7025         ira_reg_class_max_nregs.
7026         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7027         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7028         (single_reg_class): Use ira_reg_class_nregs instead of
7029         ira_reg_class_max_nregs.
7030         (process_bb_node_lives): Use pressure classes.
7031
7032         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7033         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7034         (change_loop): Use pressure classes.
7035         (modify_move_list): Call ira_set_allocno_class instead of
7036         ira_set_allocno_cover_class.
7037
7038         * ira-build.c: Remove mentioning cover classes from the file.  Use
7039         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7040         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7041         ALLOCNO_UPDATED_CLASS_COST instead of
7042         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7043         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7044         (ira_create_allocno): Remove initialization of
7045         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7046         ALLOCNO_COLORABLE_P.
7047         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7048         Update conflict regs for the objects.
7049         (create_cap_allocno): Remove assert.  Don't propagate
7050         ALLOCNO_AVAILABLE_REGS_NUM.
7051         (ira_free_allocno_costs): New function.
7052         (finish_allocno): Change a part of code into call of
7053         ira_free_allocno_costs.
7054         (low_pressure_loop_node_p): Use pressure classes.
7055         (object_range_compare_func): Don't compare classes.
7056         (setup_min_max_conflict_allocno_ids): Ditto.
7057
7058         * loop-invariant.c: Remove mentioning cover classes from the file.
7059         Use ira_pressure_classes and ira_pressure_classes_num instead of
7060         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7061         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7062         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7063         Use reg_allocno_class instead of reg_cover_class.
7064         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7065         STACK_REG_COVER_CLASS.
7066         (get_regno_cover_class): Rename to get_regno_pressure_class.
7067         (move_loop_invariants): Initialize and finalize regstat.
7068
7069         * ira.c: Remove mentioning cover classes from the file.  Add
7070         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7071         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7072         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7073         setup_class_subset_and_memory_move_costs.
7074         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7075         (setup_cover_and_important_classes): Rename to
7076         setup_allocno_and_important_classes.
7077         (setup_class_translate_array): New.
7078         (setup_class_translate): Call it for allocno and pressure classes.
7079         (cover_class_order): Rename to allocno_class_order.
7080         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7081         of ira_class_translate.
7082         (reorder_important_classes): Set up ira_important_class_nums.
7083         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7084         (print_class_cover): Rename to print_classes.  Add parameter.
7085         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7086         Print pressure classes too.
7087         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7088         setup_reg_subclasses.
7089         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7090         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7091         (setup_prohibited_class_mode_regs): Use
7092         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7093         (clarify_prohibited_class_mode_regs): New function.
7094         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7095         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7096         (ira_init_once): Initialize them.
7097         (free_register_move_costs): Process them.
7098         (ira_init): Move calls of find_reg_classes and
7099         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7100         Call clarify_prohibited_class_mode_regs.
7101         (ira_no_alloc_reg): Remove.
7102         (too_high_register_pressure_p): Use pressure classes.
7103
7104         * sched-deps.c: Remove mentioning cover classes from the file.
7105         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7106         ira_pressure_classes and ira_pressure_classes_num instead of
7107         ira_reg_class_cover_size and ira_reg_class_cover.
7108         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7109         sched_regno_pressure_class instead of sched_regno_cover_class.
7110         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7111         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7112
7113         * ira.h: Add 2010 to Copyright.
7114         (ira_no_alloc_reg): Remove external.
7115         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7116         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7117         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7118         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7119         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7120         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7121         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7122         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7123         x_ira_no_alloc_regs.
7124         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7125         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7126         ira_allocno_classes_num and ira_allocno_classes.
7127         (ira_class_translate): Rename to ira_allocno_class_translate.
7128         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7129         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7130         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7131         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7132         (ira_no_alloc_regs): New.
7133
7134         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7135         classes from the file.  Use ALLOCNO_CLASS instead of
7136         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7137         ALLOCNO_COVER_CLASS_COST.
7138         (regno_cover_class): Rename to regno_aclass.
7139         (record_reg_classes): Use ira_reg_class_subunion instead of
7140         ira_reg_class_union.
7141         (record_address_regs): Check overflow.
7142         (scan_one_insn): Ditto.
7143         (print_allocno_costs): Print total mem cost fore regional allocation.
7144         (print_pseudo_costs): Use REG_N_REFS.
7145         (find_costs_and_classes): Use classes intersected with them on the
7146         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7147         ira_reg_class_union.  Use ira_allocno_class_translate and
7148         regno_aclass instead of ira_class_translate and regno_cover_class.
7149         Modify code for finding regno_aclass.  Setup preferred classes for
7150         the next pass.
7151         (setup_allocno_cover_class_and_costs): Rename to
7152         setup_allocno_class_and_costs.  Use regno_aclass instead of
7153         regno_cover_class.  Use ira_set_allocno_class instead of
7154         ira_set_allocno_cover_class.
7155         (init_costs, finish_costs): Use regno_aclass instead of
7156         regno_cover_class.
7157         (ira_costs): Use setup_allocno_class_and_costs instead of
7158         setup_allocno_cover_class_and_costs.
7159         (ira_tune_allocno_costs_and_cover_classes): Rename to
7160         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7161         by processing objects.  Use ira_reg_class_max_nregs instead of
7162         ira_reg_class_nregs.
7163
7164         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7165
7166         * sched-int.h: Remove mentioning cover classes from the file.
7167         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7168
7169         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7170         classes from the file.
7171         (struct reg_pref): Rename coverclass into allocnoclass.
7172         (reg_cover_class): Rename to reg_allocno_class.
7173
7174         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7175
7176         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7177
7178         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7179
7180         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7181
7182         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7183
7184         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7185
7186         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7187
7188         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7189
7190         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7191
7192         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7193
7194         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7195         (i386_ira_cover_classes): Ditto.
7196
7197         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7198
7199         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7200
7201         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7202
7203         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7204
7205         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7206
7207         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7208
7209         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7210         (mips_ira_cover_classes): Ditto.
7211
7212         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7213
7214         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7215
7216         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7217
7218         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7219
7220         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7221
7222         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7223         (IRA_COVER_CLASSES_VSX): Ditto.
7224
7225         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7226         (rs6000_ira_cover_classes): Ditto.
7227
7228         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7229
7230         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7231
7232         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7233
7234         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7235
7236         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7237
7238         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7239
7240         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7241
7242         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7243
7244         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7245
7246         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7247
7248 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7249
7250         PR debug/48253
7251         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7252         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7253         dw_fde_unlikely_section_end_label, cold_in_std_section,
7254         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7255         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7256         fields.
7257         (output_fde): Use dw_fde_second_{begin,end} if second is
7258         true, otherwise dw_fde_{begin,end}.
7259         (output_call_frame_info): Test dw_fde_second_begin != NULL
7260         instead of dw_fde_switched_sections.
7261         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7262         fields, initialize new fields.  Initialize in_std_section
7263         unconditionally from the first partition.
7264         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7265         dw_fde_second_begin is non-NULL.
7266         (dwarf2out_switch_text_section): Stop initializing removed
7267         dw_fde_struct fields, initialize new fields, initialize
7268         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7269         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7270         (struct var_loc_list_def): Add last_before_switch field.
7271         (arange_table, arange_table_allocated, arange_table_in_use,
7272         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7273         (size_of_aranges): Count !in_std_section and !second_in_std_section
7274         hunks in fdes, instead of looking at arange_table_in_use.
7275         (output_aranges): Add aranges_length argument, don't call
7276         size_of_aranges here.  Instead of using aranges_table*
7277         emit ranges for fdes when !in_std_section resp.
7278         !second_in_std_section.
7279         (dw_loc_list): Break ranges crossing section switch.
7280         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7281         use dw_fde_second_end instead of dw_fde_end as end of last range.
7282         (gen_subprogram_die): Don't call add_arange.  Use
7283         dw_fde_{begin,end} for first partition and if switched
7284         section dw_fde_second_{begin,end} for the second.
7285         (var_location_switch_text_section_1,
7286         var_location_switch_text_section): New functions.
7287         (dwarf2out_begin_function): Initialize cold_text_section even
7288         when function_section () isn't text_section.
7289         (prune_unused_types): Don't walk arange_table.
7290         (dwarf2out_finish): Don't needlessly test
7291         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7292         If info_section_emitted, call size_of_aranges and if it indicates
7293         non-empty .debug_aranges, call output_aranges with the computed
7294         size.  Stop using removed dw_fde_struct fields, use
7295         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7296         for second.
7297
7298         PR debug/48203
7299         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7300         create ENTRY_VALUE if incoming or address of incoming's MEM
7301         is a hard REG.
7302         * dwarf2out.c (mem_loc_descriptor): Don't emit
7303         DW_OP_GNU_entry_value of DW_OP_fbreg.
7304         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7305         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7306         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7307         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7308         ENTRY_VALUE_EXPs.
7309         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7310         is a REG_P or MEM_P with REG_P address, compute hash directly
7311         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7312         (preserve_only_constants): Don't clear VALUES forwaring
7313         ENTRY_VALUE to some other VALUE.
7314
7315 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7316
7317         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7318         instead of GEN_INT.
7319
7320 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7321
7322         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7323         block before expanding the statement.
7324         (expand_gimple_stmt_1): Likewise.  Set them here...
7325         (expand_gimple_stmt): ...and not here.  Tidy.
7326         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7327         unknown.
7328
7329 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7330
7331         * Makefile.in: New rule for cprop.o.
7332         * gcse.c: Move constant/copy propagation to cprop.c.
7333         (compute_local_properties): Only handle expression tables.
7334         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7335         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7336         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7337         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7338         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7339         compute_cprop_data, find_used_regs, try_replace_reg,
7340         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7341         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7342         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7343         find_bypass_set, reg_killed_on_edge, bypass_block,
7344         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7345         execute_rtl_cprop, pass_rtl_cprop): Move to...
7346         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7347         moved from gcse.c to here with minor cleanups in duplicated code.
7348
7349 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7350
7351         * config/i386/i386.c (flag_opts): Fix a typo in
7352         -mavx256-split-unaligned-store.
7353
7354 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7355
7356         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7357         LIBCALL_VALUE): Remove macros.
7358         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7359         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7360         (h8300_function_value, h8300_libcall_value,
7361         h8300_function_value_regno_p): New functions.
7362
7363 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7364
7365         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7366
7367 2011-03-28  Jeff Law  <law@redhat.com>
7368
7369         * tree-ssa-threadupdate.c (redirect_edges): Call
7370         create_edge_and_update_destination_phis as needed.
7371         (create_edge_and_update_destination_phis): Accept new BB argument.
7372         All callers updated.
7373         (thread_block): Do not update the profile when threading around
7374         intermediate blocks.
7375         (thread_single_edge): Likewise.
7376         (determine_bb_domination_status): If BB is not a successor of the
7377         loop header, return NONDOMINATING.
7378         (register_jump_thread): Note when we register a jump thread around
7379         an intermediate block.
7380         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7381         (thread_across_edge): Use it.
7382
7383 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7384
7385         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7386         when for_return is 2.
7387
7388 2011-03-28  Jeff Law  <law@redhat.com>
7389
7390         * var-tracking.c (canonicalize_values_mark): Delete unused
7391         lhs assignment.
7392         (canonicalize_values_star, set_variable_part): Likewise.
7393         (clobber_variable_part, delete_variable_part): Likewise.
7394
7395 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7396
7397         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7398
7399 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7400
7401         * tree-inline.c (expand_call_inline): Do not check that destination
7402         node is analyzed.
7403         (optimize_inline_calls): Assert that destination node is analyzed.
7404         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7405         not call tree_lowering_passes.
7406         * cgraph.h (cgraph_analyze_function): Declare.
7407         * cgraphunit.c (cgraph_analyze_function): Make public.
7408
7409 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7410
7411         * config/sparc/sparc-opts.h: New.
7412         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7413         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7414         (sparc_option_override): Store processor_type enumeration rather
7415         than string in cpu_default.  Remove name and enumeration from
7416         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7417         without using sparc_select.  Use target_flags_explicit instead of
7418         fpu_option_set.
7419         * config/sparc/sparc.h (enum processor_type): Move to
7420         sparc-opts.h.
7421         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7422         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7423         HeaderInclude entry.
7424         (mcpu=, mtune=): Use Var and Enum.
7425         (sparc_processor_type): New Enum and EnumValue entries.
7426
7427 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7428             Iain Sandoe  <iains@gcc.gnu.org>
7429
7430         PR target/48245
7431         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7432
7433 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7434
7435         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7436         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7437         Insert new statements at it in lieu of STMT.
7438         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7439         * tree-vect-stmts.c (vectorizable_store): Likewise.
7440         (vectorizable_load): Likewise.
7441
7442 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7443
7444         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7445         (divtf3): Ditto.
7446         (multf3): Ditto.
7447         (subtf3): Ditto.
7448
7449 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7450
7451         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7452         unaligned 256bit load/store.
7453         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7454         (*avx_movdqu<avxmodesuffix>): Likewise.
7455
7456 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7457
7458         PR target/48288
7459         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7460         * config/pa/pa.md (iordi3): Use new predicate in expander.
7461         (iorsi3): Likewise.
7462
7463 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7464
7465         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7466         FUNCTION_VALUE_REGNO_P): Remove macros.
7467         * config/mips/mips-protos.h (mips_function_value): Remove.
7468         * config/mips/mips.c (mips_function_value): Rename to...
7469         (mips_function_value_1): ... this. Make static.  Handle receiving
7470         the function type in 'fn_decl_or_type' argument.
7471         (mips_function_value, mips_libcall_value,
7472         mips_function_value_regno_p): New function.
7473         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7474         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7475
7476 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7477
7478         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7479         and -mavx256-split-unaligned-store.
7480         (ix86_option_override_internal): Split 32-byte AVX unaligned
7481         load/store by default.
7482         (ix86_avx256_split_vector_move_misalign): New.
7483         (ix86_expand_vector_move_misalign): Use it.
7484
7485         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7486         -mavx256-split-unaligned-store.
7487
7488         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7489         256bit load/store.  Generate unaligned store on misaligned memory
7490         operand.
7491         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7492         256bit load/store.
7493         (*avx_movdqu<avxmodesuffix>): Likewise.
7494
7495         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7496         -mavx256-split-unaligned-store.
7497
7498 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7499
7500         PR target/38598
7501         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7502         Update commentary.
7503
7504 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7505
7506         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7507         opno arguments with an expand_operand.  Use create_input_operand.
7508         (mips_prepare_builtin_target): Delete.
7509         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7510         functions.
7511         (mips_expand_builtin_direct): Use create_output_operand and
7512         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7513         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7514         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7515
7516 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7517
7518         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7519         function.
7520         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7521
7522 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7523
7524         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7525         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7526         basic blocks and call commit_edge_insertions directly.
7527         (fixup_abnormal_edges): Move from here to...
7528         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7529         on the edges and return whether some have actually been inserted.
7530         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7531         compensation code.
7532
7533 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7534
7535         PR rtl-optimization/48144
7536         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7537         (merge_expr_data): ... here.
7538         (av_set_intersect): Rename to av_set_code_motion_filter.
7539         Update all callers.  Call merge_history_vect when an expression
7540         is found in both sets.
7541         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7542
7543 2011-03-26  Alan Modra  <amodra@gmail.com>
7544
7545         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7546         cmodel medium addresses.
7547         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7548         64-bit gpr loads and stores.
7549         (rs6000_secondary_reload_ppc64): New function.
7550         * config/rs6000/rs6000-protos.h: Declare it.
7551         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7552
7553 2011-03-26  Alan Modra  <amodra@gmail.com>
7554
7555         PR target/47487
7556         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7557         GNU Go in traceback table.
7558
7559 2011-03-25  Richard Henderson  <rth@redhat.com>
7560
7561         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7562         if there are exactly 6 operands.
7563         (set_storage_via_setmem): Similarly.
7564
7565 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7566
7567         * collect2.c (write_c_file_stat): Handle backslash
7568         as right-hand directory separator.
7569         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7570         checking just for slash.
7571         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7572         instead of checking for trailing slash.
7573         * gcc.c (record_temp_file): Use filename_cmp instead
7574         of strcmp.
7575         (do_spec_1): Likewise.
7576         (replace_outfile_spec_function): Likewise.
7577         (is_directory): Use filename_ncmp instead of strncmp.
7578         (print_multilib_info): Likewise.
7579         * gcov.c (find_source): Use filename_cmp instead
7580         instead of strcmp.
7581         (make_gcov_file_name): Fix order of slash/backslash
7582         checks.
7583         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7584         (add_standard_paths): Likewise.
7585         * mips-tfile.c (saber_stop): Handle backslash.
7586         * prefix.c (update_path): Use filename_ncmp instead of
7587         strncmp.
7588         * profile.c (output_location): Use filename_cmp instead
7589         of strcmp.
7590         * read-md.c (handle_toplevel_file): Handle backslash.
7591         * tlink.c (frob_extension):  Likewise.
7592         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7593         strcmp.
7594         * tree-dump.c (dequeue_and_dump): Handle backslash.
7595         * tree.c (get_file_function_name): Likewise.
7596         * gengtype.c (read_input_list): Likewise.
7597         (get_file_realbasename): Likewise.
7598         (get_output_file_with_visibility): Use filename_cmp
7599         instead of strcmp.
7600
7601 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7602
7603         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7604         case to VFPv1.
7605
7606 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7607
7608         * fold-const.c (expr_location_or): New function.
7609         (fold_truth_not_expr): Call it.
7610
7611 2011-03-25  Jeff Law  <law@redhat.com>
7612
7613         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7614         va_end.
7615         * c-family/c-common.c (def_fn_type): Likewise.
7616         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7617         * emit-rtl.c (gen_rtvec): Likewise.
7618         * lto/lto-lang.c (def_fn_type): Likewise.
7619
7620 2011-03-25  Richard Guenther  <rguenther@suse.de>
7621
7622         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7623         also generate copies.
7624         (fini_copy_prop): Handle constant values properly.
7625
7626 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7627
7628         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7629         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7630         (hash_loc_operands, compare_loc_operands): Handle
7631         DW_OP_GNU_entry_value.
7632
7633 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7634
7635         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7636         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7637         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7638         comment and use macro TARGET_64BIT_MS_ABI instead.
7639         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7640         and change default behavior for 32-bit MS_ABI.
7641         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7642         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7643         32-bit, too.
7644         (ix86_cfun_abi): Likewise.
7645         (ix86_maybe_switch_abi): Adjust comment.
7646         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7647         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7648         instead of checking for SYSV_ABI.
7649         (ix86_nsaved_sseregs): Likewise.
7650         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7651         to 16 bytes.
7652         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7653         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7654         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7655         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7656         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7657
7658 2011-03-25  Richard Guenther  <rguenther@suse.de>
7659
7660         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7661         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7662         (verify_gimple): Remove.
7663         * tree-cfg.c (verify_gimple_call): Merge verification
7664         from verify_stmts.
7665         (verify_gimple_phi): Merge verification from verify_stmts.
7666         (verify_gimple_label): New function.
7667         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7668         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7669         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7670         (verify_stmts): Rename to verify_gimple_in_cfg.
7671         (verify_gimple_in_cfg): New function.
7672         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7673         * tree-ssa.c (verify_ssa): Likewise.
7674         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7675
7676 2011-03-25  Richard Guenther  <rguenther@suse.de>
7677
7678         * passes.c (init_optimization_passes): Add FRE pass after
7679         early SRA.
7680
7681 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7682             Andrew Stubbs  <ams@codesourcery.com>
7683
7684         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7685         for Cortex-A8.
7686         (arm_movdi_vfp_cortexa8): New pattern.
7687         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7688         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7689         instructions when tuning for Cortex-A8.  Set attribute "arch".
7690         * config/arm/arm.md: Move include arm-tune.md up a bit.
7691         (define_attr "arch"): Add "onlya8" and "nota8" values.
7692         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7693
7694 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7695
7696         PR bootstrap/48282
7697         Revert:
7698         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7699
7700         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7701         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7702         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7703         * passes.c (init_optimization_passes): Move
7704         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7705
7706 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7707
7708         * c-typeck.c (comptypes_internal): Replace target
7709         hook call of comp_type_attributes by version in tree.c file.
7710         * gimple.c (gimple_types_compatible_p_1): Likewise.
7711         * tree-ssa.c (useless_type_conversion_p): Likewise.
7712         * tree.c (build_type_attribute_qual_variant): Likewise.
7713         (attribute_value_equal): New static helper function.
7714         (comp_type_attributes): New function.
7715         (merge_attributes): Use attribute_value_equal for comparison.
7716         (attribute_list_contained): Likewise.
7717         * tree.h (comp_type_attributes): New prototype.
7718
7719 2011-03-25  Richard Guenther  <rguenther@suse.de>
7720
7721         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7722         of complex types at -O0.
7723         (verify_gimple_assign_binary): Likewise.
7724         (verify_gimple_assign_ternary): Likewise.
7725
7726 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7727
7728         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7729         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7730
7731 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7732
7733         PR debug/48041
7734         * dwarf2out.c (output_abbrev_section): Only write table when
7735         abbrev_die_table_in_use > 1.
7736
7737 2011-02-24  Richard Henderson  <rth@redhat.com>
7738
7739         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7740         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7741         (alpha_expand_unaligned_load_words): Use extql.
7742         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7743         (emit_insxl): Handle all modes for consistency.
7744
7745 2011-02-24  Richard Henderson  <rth@redhat.com>
7746
7747         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7748         (alpha_expand_unaligned_load): Likewise.
7749         (alpha_expand_unaligned_store): Likewise.
7750         (alpha_expand_unaligned_load_words): Likewise.
7751         (alpha_expand_unaligned_store_words): Likewise.
7752         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7753         (alpha_split_lock_test_and_set_12): Likewise.
7754         (print_operand, alpha_fold_builtin_extxx): Likewise.
7755         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7756         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7757         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7758         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7759         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7760         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7761         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7762         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7763         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7764         (extwl, extll, extql): Similarly.
7765         (inswh, inslh, insqh): Similarly.
7766         (mskbl, mskwl, mskll, mskql): Similarly.
7767         (mskwh, msklh, mskqh): Similarly.
7768
7769 2011-02-24  Richard Henderson  <rth@redhat.com>
7770
7771         * config/alpha/alpha.md (attribute isa): Add er, ner.
7772         (attribute enabled): Handle them.
7773         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7774
7775 2011-02-24  Richard Henderson  <rth@redhat.com>
7776
7777         * config/alpha/alpha.md (attribute isa): Add vms.
7778         (attribute enabled): Handle it.
7779         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7780         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7781         (*movtf): Rename from *movtf_internal for consistency.
7782         (*movsi): Merge with *movsi_nt_vms.
7783         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7784         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7785         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7786         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7787
7788 2011-02-24  Richard Henderson  <rth@redhat.com>
7789
7790         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7791         (extendqisi2, extendhisi2): Likewise.
7792         (extendqidi2): Simplify BWX/non-BWX expansions.
7793         (extendhidi2): Similarly.
7794
7795 2011-02-24  Richard Henderson  <rth@redhat.com>
7796
7797         * config/alpha/alpha.md (attribute isa): New.
7798         (attribute enabled): New.
7799         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7800         (zero_extendqisi2, zero_extendqidi2): Similarly.
7801         (zero_extendhisi2, zero_extendhidi2): Similarly.
7802         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7803
7804 2011-02-24  Richard Henderson  <rth@redhat.com>
7805
7806         * config/alpha/predicates.md (input_operand): Revert last change;
7807         update comment to mention 32-bit VMS rather than Windows.
7808
7809 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7810
7811         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7812         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7813         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7814         * passes.c (init_optimization_passes): Move
7815         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7816
7817 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7818
7819         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7820
7821 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7822
7823         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7824         correctly.
7825
7826 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7827
7828         PR debug/48204
7829         * simplify-rtx.c (simplify_const_unary_operation): Call
7830         real_convert when changing mode class with FLOAT_EXTEND.
7831
7832 2011-03-24  Nick Clifton  <nickc@redhat.com>
7833
7834         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7835         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7836         * config/rx/rx.c (rx_option_override): Set align_jumps,
7837         align_loops and align_labels if not set by the user.
7838         (rx_align_for_label): New function.
7839         (rx_max_skip_for_label): New function.
7840         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7841         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7842         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7843         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7844         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7845
7846 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7847
7848         PR rtl-optimization/48263
7849         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7850         and original commutative_p handling.  Use maybe_gen_insn.
7851
7852 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7853
7854         * reload.c (find_reloads_subreg_address): Add address_reloaded
7855         parameter and return true there if the full address has been
7856         reloaded.
7857         (find_reloads_toplev): Pass address_reloaded flag.
7858         (find_reloads_address_1): Don't use address_reloaded parameter.
7859
7860 2011-03-24  Jeff Law  <law@redhat.com>
7861
7862         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7863         unused variable "ann".
7864         (remove_unused_locals): Likewise.
7865
7866         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7867         statement.
7868
7869         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7870         after it is freed.
7871
7872 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7873
7874         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7875         for invalid symbolic addresses.
7876         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7877         larl operands.
7878
7879 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7880
7881         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7882         the argument in calls to fold_truth_not_expr.
7883
7884 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7885
7886         * tree.c (record_node_allocation_statistics): New function.
7887         (make_node_stat, copy_node_stat, build_string): Call it.
7888         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7889         (build1_stat, build_omp_clause): Likewise.
7890
7891 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7892
7893         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7894         last commit.
7895
7896 2011-03-24  Richard Guenther  <rguenther@suse.de>
7897
7898         PR tree-optimization/48271
7899         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7900         blocks that still exist.
7901
7902 2011-03-24  Richard Guenther  <rguenther@suse.de>
7903
7904         PR tree-optimization/48270
7905         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7906         not free datarefs before ddrs.
7907
7908 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7909
7910         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7911         from the address built for a reference with variable offset.
7912
7913 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7914
7915         PR target/48237
7916         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7917         alternatives that can be handled with movq or movabsq insn.
7918         (*movdf_internal): Disable for !TARGET_64BIT.
7919         (*movdf_internal_nointeger): Ditto.
7920         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7921
7922 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7923
7924         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7925         (FUNCTION_ARG_ADVANCE): Likewise.
7926         * tm.texi.in: Change references to them to hook references.
7927         * tm.texi: Regenerate.
7928         * targhooks.c (default_function_arg): Eliminate check for target macro.
7929         (default_function_incoming_arg): Likewise.
7930         (default_function_arg_advance): Likewise.
7931         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7932         (function_arg_advance): Likewise.
7933         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7934
7935 2011-03-24  Richard Guenther  <rguenther@suse.de>
7936
7937         PR middle-end/48269
7938         * tree-object-size.c (addr_object_size): Do not double-account
7939         for MEM_REF offsets.
7940
7941 2011-03-24  Diego Novillo  <dnovillo@google.com>
7942
7943         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7944         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7945         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7946         Update all users.
7947         (lto_input_string): Rename from input_string.  Make extern.
7948         Update all users.
7949         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7950         output_string_with_length.
7951         Output 0 to indicate a non-NULL string.  Update all callers to
7952         not emit 0.
7953         (lto_output_string): Rename from output_string.  Make extern.
7954         Update all users.
7955         (lto_output_decl_state_streams): Make extern.
7956         (lto_output_decl_state_refs): Make extern.
7957         * lto-streamer.h (lto_input_string): Declare.
7958         (lto_input_data_block): Declare.
7959         (lto_output_string): Declare.
7960         (lto_output_string_with_length): Declare.
7961         (lto_output_decl_state_streams): Declare.
7962         (lto_output_decl_state_refs): Declare.
7963
7964 2011-03-24  Richard Guenther  <rguenther@suse.de>
7965
7966         PR tree-optimization/46562
7967         * tree.c (build_invariant_address): New function.
7968         * tree.h (build_invariant_address): Declare.
7969         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7970         a renamed function moved ...
7971         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7972         Take valueization callback parameter.
7973         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7974         * gimple-fold.h: New file.
7975         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7976         (ccp_fold, fold_const_aggregate_ref,
7977         fold_ctor_reference, fold_nonarray_ctor_reference,
7978         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7979         get_base_constructor): Move ...
7980         * gimple-fold.c: ... here.
7981         (gimple_fold_stmt_to_constant_1): New function
7982         split out from ccp_fold.  Take a valueization callback parameter.
7983         Valueize all operands.
7984         (gimple_fold_stmt_to_constant): New wrapper function.
7985         (fold_const_aggregate_ref_1): New function split out from
7986         fold_const_aggregate_ref.  Take a valueization callback parameter.
7987         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7988         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7989         invariant POINTER_PLUS_EXPRs to invariant form.
7990         (vn_valueize): New function.
7991         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7992         * tree-vrp.c (vrp_valueize): New function.
7993         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7994         to fold statements to constants.
7995         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7996         function declarations.
7997         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7998         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7999
8000 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8001
8002         * config/h8300/predicates.md (jump_address_operand): Fix register
8003         mode check.
8004
8005 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8006
8007         * doc/invoke.texi (max-stores-to-sink): Document.
8008         * params.h (MAX_STORES_TO_SINK): Define.
8009         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8010         if either vectorization or if-conversion is disabled.
8011         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8012         tree-vect-data-refs.c vect_equal_offsets.
8013         (dr_equal_offsets_p): New function.
8014         (find_data_references_in_bb): Remove static.
8015         * tree-data-ref.h (find_data_references_in_bb): Declare.
8016         (dr_equal_offsets_p): Likewise.
8017         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8018         (vect_drs_dependent_in_basic_block): Update calls to
8019         vect_equal_offsets.
8020         (vect_check_interleaving): Likewise.
8021         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8022         (cond_if_else_store_replacement): Rename to...
8023         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8024         documentation.
8025         (cond_if_else_store_replacement): New function.
8026         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8027         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8028
8029 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8030
8031         PR target/46934
8032         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8033         to subtract lower bound instead of GEN_INT().
8034
8035 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8036
8037         PR other/48179
8038         PR other/48221
8039         PR other/48234
8040         * doc/extend.texi (Alignment): Move section to match order in TOC.
8041         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8042         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8043
8044 2011-03-23  Jeff Law  <law@redhat.com>
8045
8046         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8047         before removing the edge.
8048
8049         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8050         it may have been freed by redirect_branch_edge or
8051         redirect_edge_succ_nodup.
8052
8053 2011-03-23  Richard Guenther  <rguenther@suse.de>
8054
8055         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8056         (check_va_list_escapes): Likewise.
8057         (check_all_va_list_escapes): Likewise.
8058
8059 2011-03-23  Richard Guenther  <rguenther@suse.de>
8060
8061         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8062         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8063         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8064         (alias.o): Likewise.
8065         (ipa-type-escape.o): Remove.
8066         (ipa-struct-reorg.o): Likewise.
8067         (GTFILES): Remove ipa-struct-reorg.c.
8068         * alias.c: Do not include ipa-type-escape.h.
8069         * tree-ssa-alias.c: Likewise.
8070         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8071         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8072         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8073         and ipa-type-escape passes.
8074         * tree-pass.h (pass_ipa_type_escape): Remove.
8075         (pass_ipa_struct_reorg): Likewise.
8076         * ipa-struct-reorg.h: Remove.
8077         * ipa-struct-reorg.c: Likewise.
8078         * ipa-type-escape.h: Likewise.
8079         * ipa-type-escape.c: Likewise.
8080         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8081         (--param struct-reorg-cold-struct-ratio): Likewise.
8082         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8083         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8084         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8085
8086 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8087
8088         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8089         cpu attribute value.
8090         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8091         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8092         * config/s390/s390.c (processor_flags_table): New constant array.
8093         (s390_handle_arch_option): Remove.
8094         (s390_handle_option): Remove s390_handle_arch_option invocations
8095         and OPT_mwarn_framesize_ handling.
8096         (s390_option_override): Remove s390_handle_arch_option invocation.
8097         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8098         warnings.
8099         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8100         * config/s390/s390.opt (s390_tune, s390_arch)
8101         (march=): Replace s390_arch_option enum and values with
8102         processor_type.  Set variable name to s390_arch.  Set
8103         initialization value.
8104         (mtune=): Replace s390_arch_option with processor_type.  Set
8105         variable name to s390_tune.  Set initialization value.
8106
8107 2011-03-23  Julian Brown  <julian@codesourcery.com>
8108
8109         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8110         accesses which are not naturally aligned.
8111
8112 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8113
8114         PR target/47553
8115         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8116
8117 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8118
8119         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8120         parameter from "int" to "enum insn_code".
8121         (expand_operand_type): New enum.
8122         (expand_operand): New structure.
8123         (create_expand_operand): New function.
8124         (create_fixed_operand, create_output_operand): Likewise
8125         (create_input_operand, create_convert_operand_to): Likewise.
8126         (create_convert_operand_from, create_address_operand): Likewise.
8127         (create_integer_operand): Likewise.
8128         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8129         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8130         (expand_insn, expand_jump_insn): Likewise.
8131         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8132         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8133         (expand_movstr, expand_builtin___clear_cache): Likewise.
8134         (expand_builtin_lock_release): Likewise.
8135         * explow.c (allocate_dynamic_stack_space): Likewise.
8136         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8137         and use the default handling in that case.
8138         * expmed.c (check_predicate_volatile_ok): Delete.
8139         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8140         (emit_cstore): Likewise.
8141         * expr.c (emit_block_move_via_movmem): Likewise.
8142         (set_storage_via_setmem, expand_assignment): Likewise.
8143         (emit_storent_insn, try_casesi): Likewise.
8144         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8145         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8146         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8147         (expand_twoval_unop, expand_twoval_binop): Likewise.
8148         (expand_unop_direct, emit_indirect_jump): Likewise.
8149         (emit_conditional_move, vector_compare_rtx): Likewise.
8150         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8151         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8152         (expand_sync_lock_test_and_set): Likewise.
8153         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8154         (emit_unop_insn): Likewise.
8155         (expand_copysign_absneg): Change icode to an insn_code.
8156         (create_convert_operand_from_type): New function.
8157         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8158         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8159         (expand_insn, expand_jump_insn): Likewise.
8160         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8161         than const_int_operand for operand 2.
8162
8163 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8164
8165         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8166         if possible.
8167
8168 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8169
8170         * emit-rtl.c (emit_pattern_before_noloc): New function.
8171         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8172         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8173         (emit_pattern_after_noloc): New function.
8174         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8175         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8176
8177 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8178
8179         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8180         (__ffsDI2): Likewise.
8181
8182 2011-03-22  Richard Henderson  <rth@redhat.com>
8183
8184         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8185         of !TARGET_ABI_OPEN_VMS.
8186         (alpha_trampoline_init, alpha_start_function): Likewise.
8187         (alpha_expand_epilogue, alpha_file_start): Likewise.
8188         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8189         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8190         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8191         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8192         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8193
8194 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8195
8196         * config/s390/s390-opts.h: New.
8197         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8198         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8199         s390_stack_guard): Remove.
8200         (s390_handle_arch_option): Return void.  Take enum
8201         s390_arch_option value instead of string and searching array.
8202         (s390_handle_option): Don't assert that global structures are in
8203         use.  Access variables via opts pointer.  Use error_at.  Don't use
8204         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8205         s390_handle_arch_option.
8206         (s390_option_override): Update call to s390_handle_arch_option.
8207         (s390_emit_prologue): Use %d format for s390_stack_size in
8208         diagnostic.  Use %wd for HOST_WIDE_INT.
8209         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8210         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8211         * config/s390/s390.opt (config/s390/s390-opts.h): New
8212         HeaderInclude entry.
8213         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8214         s390_arch_flags, s390_warn_framesize): New Variable entries.
8215         (s390_arch_option): New Enum and EnumValue entries.
8216         (march=): Use Enum instead of Var.
8217         (mstack-guard=, mstack-size=): Use UInteger and Var.
8218         (mtune=): Use Enum.
8219
8220 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8221
8222         * config/score/score.c (score_handle_option): Don't assert that
8223         global structures are in use.  Access target_flags via opts
8224         pointer.  Use value of -march= option to determine target_flags
8225         settings.
8226         * config/score/score.opt (march=): Use Enum.
8227         (score_arch): New Enum and EnumValue entries.
8228
8229 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8230
8231         * config/mep/mep.c (option_mtiny_specified): Remove.
8232         (mep_option_override): Move register handling for -mivc2 from
8233         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8234         instead of option_mtiny_specified.
8235         (mep_handle_option): Access target_flags via opts pointer.  Don't
8236         assert that global structures are in use.  Defer part of -mivc2
8237         handling and move it to mep_option_override.
8238         * config/mep/mep.opt (IVC2): New Mask entry.
8239         (mivc2): Use Var and Defer instead of Mask.
8240
8241 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * config/v850/v850-opts.h: New.
8244         * config/v850/v850.c (small_memory): Replace with
8245         small_memory_physical_max array.  Make that array static const.
8246         (v850_handle_memory_option): Take integer value of argument.  Take
8247         gcc_options pointer, option text and location.  Return void.
8248         Update for changes to small memory structures.
8249         (v850_handle_option): Access target_flags via opts pointer.  Don't
8250         assert that global structures are in use.  Update calls to
8251         v850_handle_memory_option.
8252         (v850_encode_data_area): Update references to small memory settings.
8253         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8254         (enum small_memory_type): Move to v850-opts.h.
8255         * config/v850/v850.opt (config/v850/v850-opts.h): New
8256         HeaderInclude entry.
8257         (small_memory_max): New Variable entry.
8258         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8259         (mtda, mzda): Likewise.
8260
8261 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8262
8263         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8264         pointer.  Don't assert that global structures are in use.
8265
8266 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8267
8268         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8269         via opts pointer.  Don't assert that global structures are in use.
8270
8271 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8272
8273         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8274         (munix=93): Use Var.
8275         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8276         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8277         * config/pa/pa-opts.h: New.
8278         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8279         (pa_handle_option): Don't assert that global structures are in
8280         use.  Access target_flags via opts pointer.  Don't handle
8281         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8282         OPT_munix_98 here.
8283         (pa_option_override): Handle deferred OPT_mfixed_range_.
8284
8285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8286
8287         * config/mn10300/mn10300-opts.h: New.
8288         * config/mn10300/mn10300.c (mn10300_processor,
8289         mn10300_tune_string): Remove.
8290         (mn10300_handle_option): Don't assert that global structures are
8291         in use.  Access mn10300_processor via opts pointer.  Don't handle
8292         OPT_mtune_ here.
8293         * config/mn10300/mn10300.h (enum processor_type): Move to
8294         mn10300-opts.h.
8295         (mn10300_processor): Remove.
8296         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8297         HeaderInclude entry.
8298         (mn10300_processor): New Variable entry.
8299         (mtune=): Use Var.
8300
8301 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * config/microblaze/microblaze.c: Don't include opts.h.
8304         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8305         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8306         (mno-clearbss): Use Var and Warn.
8307
8308 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8309
8310         * config/m32r/m32r-opts.h: New.
8311         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8312         (m32r_handle_option): Don't assert that global structures are in
8313         use.  Access target_flags and m32r_cache_flush_func via opts
8314         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8315         OPT_mno_flush_trap here.
8316         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8317         include of m32r-opts.h.
8318         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8319         HeaderInclude entry.
8320         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8321         (mmodel=): Use Enum and Var.
8322         (m32r_model): New Enum and EnumValue entries.
8323         (mno-flush-trap): Use Var.
8324         (msdata=): Use Enum and Var.
8325         (m32r_sdata): New Enum and EnumValue entries.
8326
8327 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8328
8329         * config/m32c/m32c.c: Don't include opts.h.
8330         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8331         m32c_handle_option): Remove.
8332         (m32c_option_override): Check global_options_set.x_target_memregs
8333         instead of target_memregs_set.
8334         * config/m32c/m32c.h (target_memregs): Remove.
8335         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8336         variable.
8337
8338 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8339
8340         * config/iq2000/iq2000-opts.h: New.
8341         * config/iq2000/iq2000.c: Don't include opts.h.
8342         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8343         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8344         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8345         HeaderInclude entry.
8346         (iq2000_tune): New Variable entry.
8347         (march=): Add comment.  Use Enum.
8348         (iq2000_arch): New Enum and EnumValue entries.
8349         (mcpu=): Use Enum and Var.
8350         (iq2000_tune): New Enum and EnumValue entries.
8351
8352 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8353
8354         * config/ia64/ia64-opts.h: New.
8355         * config/ia64/ia64.c (ia64_tune): Remove.
8356         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8357         here.  Use error_at.
8358         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8359         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8360         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8361         HeaderInclude entry.
8362         (ia64_tune): New Variable entry.
8363         (mfixed-range=): Use Defer and Var.
8364         (mtune=): Use Enum and Var.
8365         (ia64_tune): New Enum and EnumValue entries.
8366
8367 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8368
8369         * config/frv/frv-opts.h: New.
8370         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8371         frv-opts.h.
8372         (frv_cpu_type): Remove.
8373         * config/frv/frv.c: Don't include opts.h.
8374         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8375         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8376         (frv_cpu_type): New Variable entry.
8377         (frv_cpu): New Enum and EnumValue entries.
8378
8379 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8380
8381         * config/cris/cris.c (cris_handle_option): Access target_flags via
8382         opts pointer.  Don't assert that global structures are in use.
8383         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8384         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8385
8386 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8387
8388         * config/bfin/bfin-opts.h: New.
8389         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8390         bfin_si_revision, bfin_workarounds): Remove.
8391         (bfin_cpus): Make static const.
8392         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8393         not bfin_lib_id_given.
8394         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8395         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8396         pointer. Use error_at.  Don't assert that global structures are in use.
8397         * config/bfin/bfin.h: Include bfin-opts.h.
8398         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8399         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8400         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8401         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8402         entries.
8403
8404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8405
8406         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8407         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8408         or -msoft-float here.
8409         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8410         -msoft-float and -mhard-float.
8411         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8412         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8413         msoft-float.
8414         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8415         -msoft-float.
8416         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8417         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8418         not mhard-float.
8419         (LIBGCC_SPEC): Don't handle -msoft-float.
8420         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8421         -mhard-float.
8422         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8423         msoft-float.
8424         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8425         -mfloat-abi=*, not -msoft-float and -mhard-float.
8426         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8427         -msoft-float.
8428         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8429         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8430         mhard-float and msoft-float.
8431         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8432         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8433         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8434         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8435         mhard-float.
8436         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8437         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8438         msoft-float.
8439         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8440         not mhard-float.
8441         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8442         not msoft-float.
8443
8444 2011-03-22  Richard Henderson  <rth@redhat.com>
8445
8446         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8447         TARGET_ABI_WINDOWS_NT.
8448         (alpha_output_function_end_prologue): Likewise.
8449         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8450         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8451         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8452         (trap, *movsi_nt_vms): Likewise.
8453         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8454         (*tablejump_osf_nt_internal): Remove.
8455         * config/alpha/predicates.md (input_operand): Only test Pmode.
8456
8457 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8458
8459         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8460         via opts pointer.  Use error_at.  Don't assert that global
8461         structures are in use.
8462
8463 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8464
8465         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8466         (ix86_handle_option): Access ix86_isa_flags and
8467         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8468         global structures are in use.
8469         (ix86_function_specific_save, ix86_function_specific_restore):
8470         Update ix86_isa_flags_explicit field name.
8471         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8472         (ix86_isa_flags_explicit): Rename TargetSave entry to
8473         x_ix86_isa_flags_explicit.
8474
8475 2011-03-22  Richard Henderson  <rth@redhat.com>
8476
8477         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8478         (alpha_option_override, direct_return): Likewise.
8479         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8480         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8481         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8482         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8483         (alpha_expand_epilogue, alpha_end_function): Likewise.
8484         (alpha_init_libfuncs): Likewise.
8485         (struct machine_function): Remove unicosmk members.
8486         (print_operand) ['t']: Remove.
8487         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8488         unicosmk_output_module_name, unicosmk_output_common,
8489         current_section_align, unicosmk_output_text_section_asm_op,
8490         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8491         unicosmk_section_type_flags, unicosmk_unique_section,
8492         unicosmk_asm_named_section, unicosmk_insert_attributes,
8493         unicosmk_output_align, unicosmk_defer_case_vector,
8494         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8495         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8496         unicosmk_output_ssib, unicosmk_add_call_info_word,
8497         unicosmk_extern_head, unicosmk_output_default_externs,
8498         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8499         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8500         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8501         * config/alpha/alpha-protos.h: Update.
8502         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8503         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8504         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8505         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8506         (*mulsi_se, mulvsi3): Likewise.
8507         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8508         (*divmodsi_internal, call, call_value, realign): Likewise.
8509         (moddi3, umoddi3): Likewise; remove duplicate expander.
8510         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8511         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8512         (*movdi_nofix): Remove r/U alternative.
8513         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8514         * config/alpha/constraints.md ("U"): Remove.
8515         * config/alpha/predicates.md (call_operand"): Don't test
8516         TARGET_ABI_UNICOSMK.
8517
8518 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * target.def (handle_option): Take gcc_options and
8521         cl_decoded_option pointers and location_t.
8522         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8523         * doc/tm.texi: Regenerate.
8524         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8525         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8526         * lto-opts.c (lto_reissue_options): Generate option structure for
8527         targetm.handle_option call.
8528         * opts.c (target_handle_option): Update call to
8529         targetm.handle_option.  Remove assertions about values now passed
8530         down to hook.
8531         * targhooks.c (default_target_handle_option): New.
8532         * targhooks.h (default_target_handle_option): Declare.
8533         * config/alpha/alpha.c: Include opts.h.
8534         (alpha_handle_option): Update to new hook interface.
8535         * config/arm/arm.c: Include opts.h.
8536         (arm_handle_option): Update to new hook interface.
8537         * config/arm/t-arm (arm.o): Update dependencies.
8538         * config/bfin/bfin.c: Include opts.h.
8539         (bfin_handle_option): Update to new hook interface.
8540         * config/cris/cris.c: Include opts.h.
8541         (cris_handle_option): Update to new hook interface.
8542         * config/frv/frv.c: Include opts.h.
8543         (frv_handle_option): Update to new hook interface.
8544         * config/i386/i386.c: Include opts.h.
8545         (ix86_handle_option): Update to new hook interface.
8546         (ix86_valid_target_attribute_inner_p): Generate option structure
8547         for call to ix86_handle_option.
8548         * config/i386/t-i386 (i386.o): Update dependencies.
8549         * config/ia64/ia64.c: Include opts.h.
8550         (ia64_handle_option): Update to new hook interface.
8551         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8552         * config/iq2000/iq2000.c: Include opts.h.
8553         (iq2000_handle_option): Update to new hook interface.
8554         * config/m32c/m32c.c: Include opts.h.
8555         (m32c_handle_option): Update to new hook interface.
8556         * config/m32r/m32r.c: Include opts.h.
8557         (m32r_handle_option): Update to new hook interface.
8558         * config/m68k/m68k.c: Include opts.h.
8559         (m68k_handle_option): Update to new hook interface.
8560         * config/mep/mep.c: Include opts.h.
8561         (mep_handle_option): Update to new hook interface.
8562         * config/microblaze/microblaze.c: Include opts.h.
8563         (microblaze_handle_option): Update to new hook interface.
8564         * config/mips/mips.c: Include opts.h.
8565         (mips_handle_option): Update to new hook interface.
8566         * config/mn10300/mn10300.c: Include opts.h.
8567         (mn10300_handle_option): Update to new hook interface.
8568         * config/pa/pa.c: Include opts.h.
8569         (pa_handle_option): Update to new hook interface.
8570         * config/pdp11/pdp11.c: Include opts.h.
8571         (pdp11_handle_option): Update to new hook interface.
8572         * config/rs6000/rs6000.c: Include opts.h.
8573         (rs6000_handle_option): Update to new hook interface.
8574         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8575         * config/rx/rx.c: Include opts.h.
8576         (rx_handle_option): Update to new hook interface.
8577         * config/s390/s390.c: Include opts.h.
8578         (s390_handle_option): Update to new hook interface.
8579         * config/score/score.c: Include opts.h.
8580         (score_handle_option): Update to new hook interface.
8581         * config/sh/sh.c: Include opts.h.
8582         (sh_handle_option): Update to new hook interface.
8583         * config/sparc/sparc.c: Include opts.h.
8584         (sparc_handle_option): Update to new hook interface.
8585         * config/v850/v850.c: Include opts.h.
8586         (v850_handle_option): Update to new hook interface.
8587
8588 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8589
8590         * gcc.c (driver_unknown_option_callback): Only permit and save
8591         unknown -Wno- options.
8592         (driver_wrong_lang_callback): Save options directly instead of via
8593         driver_unknown_option_callback.
8594
8595 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8596
8597         * combine.c (simplify_set): Try harder to find the best CC mode when
8598         simplifying a nested COMPARE on the RHS.
8599
8600 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * config/alpha/gnu.h: Remove.
8603         * config/arc: Remove directory.
8604         * config/arm/netbsd.h: Remove.
8605         * config/arm/t-pe: Remove.
8606         * config/crx: Remove directory.
8607         * config/i386/netbsd.h: Remove.
8608         * config/m68hc11: Remove directory.
8609         * config/m68k/uclinux-oldabi.h: Remove.
8610         * config/mcore/mcore-pe.h: Remove.
8611         * config/mcore/t-mcore-pe: Remove.
8612         * config/netbsd-aout.h: Remove.
8613         * config/rs6000/gnu.h: Remove.
8614         * config/sh/sh-symbian.h: Remove.
8615         * config/sh/symbian-base.c: Remove.
8616         * config/sh/symbian-c.c: Remove.
8617         * config/sh/symbian-cxx.c: Remove.
8618         * config/sh/symbian-post.h: Remove.
8619         * config/sh/symbian-pre.h: Remove.
8620         * config/sh/t-symbian: Remove.
8621         * config/svr3.h: Remove.
8622         * config/vax/netbsd.h: Remove.
8623         * config.build: Don't handle i[34567]86-*-pe.
8624         * config.gcc: Remove handling of deprecations for most deprecated
8625         targets.
8626         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8627         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8628         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8629         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8630         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8631         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8632         Remove cases.
8633         * config.host: Don't handle i[34567]86-*-pe.
8634         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8635         (ASM_SPEC32): Don't handle -mcall-gnu.
8636         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8637         -mcall-gnu.
8638         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8639         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8640         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8641         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8642         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8643         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8644         conditional on SYMBIAN.
8645         * configure.ac: Don't handle powerpc*-*-gnu*.
8646         * configure: Regenerate.
8647         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8648         * doc/install-old.texi (m6811, m6812): Don't mention.
8649         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8650         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8651         (m68k-uclinuxoldabi): Don't mention.
8652         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8653         Remove.
8654         (-mcall-gnu): Remove.
8655         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8656         families): Remove constraint documentation.
8657
8658 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8659
8660         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8661         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8662         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8663
8664 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8665
8666         PR target/48226
8667         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8668         vector when peeking at the next token for vector, don't expand the
8669         keywords.
8670
8671 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8672
8673         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8674         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8675         * config/avr/avr.c (init_cumulative_args)
8676         (avr_function_arg_advance): Use it.
8677         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8678         sibcall epilogues.
8679         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8680         (avr_function_ok_for_sibcall): ...this new function.
8681         (avr_lookup_function_attribute1): New static Function.
8682         (avr_naked_function_p, interrupt_function_p)
8683         (signal_function_p, avr_OS_task_function_p)
8684         (avr_OS_main_function_p): Use it.
8685         * config/avr/avr.md ("sibcall", "sibcall_value")
8686         ("sibcall_epilogue"): New expander.
8687         ("*call_insn", "*call_value_insn"): New insn.
8688         ("call_insn", "call_value_insn"): Remove
8689         ("call", "call_value", "epilogue"): Change expander to handle
8690         sibling calls.
8691
8692 2011-03-21  Nick Clifton  <nickc@redhat.com>
8693
8694         * doc/invoke.texi (Overall Options): Move closing brace to end of
8695         options list.
8696         (Optimization Options): Add missing @gol.
8697         (Directory Options): Likewise.
8698         (i386 and x86-64 Options): Likewise.
8699         (RS6000 and PowerPC Options): Likewise.
8700         (i386 and x86-64 Windows Options): Likewise.
8701         (V850 Options): Add text missing from descriptions.
8702
8703 2011-03-22  Richard Henderson  <rth@redhat.com>
8704
8705         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8706         (avr_incoming_return_addr_rtx): New.
8707         (emit_push_byte): New.
8708         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8709         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8710         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8711         (emit_pop_byte): New.
8712         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8713         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8714         (INCOMING_RETURN_ADDR_RTX): New.
8715         (INCOMING_FRAME_SP_OFFSET): New.
8716         (ARG_POINTER_CFA_OFFSET): New.
8717         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8718         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8719         (pophi): Remove.
8720
8721         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8722
8723 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8724
8725         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8726         (FUNCTION_ARG_ADVANCE): Likewise.
8727         * tm.texi.in: Change references to them to hook references.
8728         * tm.texi: Regenerate.
8729         * targhooks.c (default_function_arg): Eliminate check for target
8730         macro.
8731         (default_function_incoming_arg): Likewise.
8732         (default_function_arg_advance): Likewise.
8733         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8734         (function_arg_advance): Likewise.
8735         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8736
8737 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8738
8739         * tree.c (build_call_1): New function.
8740         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8741
8742 2011-03-22  Richard Guenther  <rguenther@suse.de>
8743
8744         PR tree-optimization/48228
8745         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8746         for single-arg PHIs.
8747
8748 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8749
8750         PR rtl-optimization/48143
8751         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8752         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8753         sse2_cvtps2pd): Likewise.
8754
8755 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8756
8757         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8758
8759 2011-03-22  Richard Guenther  <rguenther@suse.de>
8760
8761         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8762         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8763         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8764         and REALIGN_LOAD_EXPR.
8765         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8766         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8767         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8768         DOT_PROD_EXPR case ...
8769         (expand_expr_real_2): ... here.
8770         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8771         and REALIGN_LOAD_EXPR.
8772         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8773         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8774         (vect_create_epilog_for_reduction): Likewise.
8775         (vectorizable_reduction): Likewise.
8776         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8777         * tree-vect-stmts.c (vectorizable_load): Likewise.
8778
8779 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8780
8781         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8782
8783 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8784
8785         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8786         handling for PLTOFF/GOTOFF.
8787
8788 2011-03-22  Nick Clifton  <nickc@redhat.com>
8789
8790         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8791         trailing backslash from the end of the macro definition.
8792
8793 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8794
8795         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8796         and PLT unspecs.
8797
8798 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8799
8800         * expr.h (prepare_operand): Move to...
8801         * optabs.h (prepare_operand): ...here and change the insn code
8802         parameter from "int" to "enum insn_code".
8803         (insn_operand_matches): Declare.
8804         * expr.c (init_expr_target): Use insn_operand_matches.
8805         (compress_float_constant): Likewise.
8806         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8807         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8808         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8809         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8810         Likewise.
8811         (gen_cond_trap): Likewise.
8812         (prepare_operand): Likewise.  Change icode to an insn_code.
8813         (insn_operand_matches): New function.
8814         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8815         * reload1.c (gen_reload): Likewise.
8816         * targhooks.c (default_secondary_reload): Likewise.
8817
8818 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8819
8820         * config/alpha/alpha.md (unspec): New define_c_enum.
8821         (unspecv): Ditto.
8822
8823 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8824
8825         PR debug/48214
8826         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8827         between a call and its CALL_ARG_LOCATION note.
8828
8829 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8830
8831         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8832
8833 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8834
8835         PR c/42544
8836         PR c/48197
8837         * c-common.c (shorten_compare): If primopN is first sign-extended
8838         to opN and then zero-extended to result type, set primopN to opN.
8839
8840 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8841
8842         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8843         for barrier handlers.
8844
8845 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8846
8847         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8848         UNSPEC constants to be in the unspec enumeration, and redefine
8849         all UNSPECV constants to be in the unspecv enumeration, so that
8850         dumps print which unspec/unspec_volatile this is.
8851         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8852         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8853         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8854         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8855         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8856
8857         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8858         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8859         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8860         * config/rs6000/sync.md (isync, lwsync): Ditto.
8861
8862 2011-03-21  Richard Guenther  <rguenther@suse.de>
8863
8864         * params.def (lto-min-partition): Fix typo.
8865
8866 2011-03-21  Richard Guenther  <rguenther@suse.de>
8867
8868         PR c/47939
8869         * c-decl.c (grokdeclarator): Drop to the main variant only
8870         for array types.  Drop flag_gen_aux_info check.
8871
8872 2011-03-21  Richard Guenther  <rguenther@suse.de>
8873
8874         PR translation/47911
8875         * params.def (lto-partitions): Fix typo.
8876         (lto-min-partition): Fix wording.
8877
8878 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8879
8880         * config/rs6000/t-freebsd: Remove duplication from file.
8881
8882 2011-03-21  Richard Guenther  <rguenther@suse.de>
8883
8884         PR middle-end/47661
8885         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8886
8887 2011-03-21  Richard Guenther  <rguenther@suse.de>
8888
8889         PR lto/48210
8890         * params.def (lto-partitions): Require at least 1 partition.
8891
8892 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8893
8894         * gthr-solaris.h: Remove.
8895         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8896         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8897         (LIB_SPEC): Likewise.
8898         * config/sol2.opt (threads): Remove.
8899         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8900         (sparc*-*-solaris2*): Likewise.
8901         * configure.ac (enable_threads): Enable solaris support.
8902         * configure: Regenerate.
8903         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8904         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8905         solaris.
8906
8907 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8908
8909         * config.gcc: Obsolete *-*-solaris2.8*.
8910         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8911
8912 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8913
8914         PR bootstrap/48135
8915         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8916         reference.  Solaris 8 perl works.
8917
8918 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8919
8920         PR bootstrap/48135
8921         * doc/install.texi (Prerequisites): Move jar etc. up.
8922         Explain support library version requirements.
8923
8924 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8925
8926         PR bootstrap/48135
8927         * doc/install.texi (Prerequisites): Move Perl to build
8928         requirements.  Always necessary on Solaris 2 with Sun ld.
8929
8930 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8931
8932         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8933         binutils 2.21.
8934         (Specific, i?86-*-solaris2.[89]): Likewise.
8935         (Specific, i?86-*-solaris2.10): Likewise.
8936         (Specific, mips-sgi-irix6): Likewise.
8937         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8938         Update for binutils 2.21.
8939
8940 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8941
8942         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8943         Allow -fuse-linker-plugin for non-default plugin linker.
8944         * configure: Regenerate.
8945
8946 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8947
8948         PR bootstrap/48167
8949         * gengtype.c (files_rules): Added rule for cp/parser.h.
8950
8951 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8952
8953         PR target/48213
8954         * config/s390/s390.c (s390_delegitimize_address): Don't call
8955         lowpart_subreg if orig_x has BLKmode.
8956
8957 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8958
8959         PR target/12171
8960         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8961         * tree.h (attribute_spec): Add new member affects_type_identity.
8962         * attribs.c (empty_attribute_table): Adjust attribute_spec
8963         initializers.
8964         * config/alpha/alpha.c: Likewise.
8965         * config/arc/arc.c: Likewise.
8966         * config/arm/arm.c: Likewise.
8967         * config/avr/avr.c: Likewise.
8968         * config/bfin/bfin.c: Likewise.
8969         * config/crx/crx.c: Likewise.
8970         * config/darwin.h: Likewise.
8971         * config/h8300/h8300.c: Likewise.
8972         * config/i386/cygming.h: Likewise.
8973         * config/i386/i386.c: Likewise.
8974         * config/ia64/ia64.c: Likewise.
8975         * config/m32c/m32c.c: Likewise.
8976         * config/m32r/m32r.c: Likewise.
8977         * config/m68hc11/m68hc11.c: Likewise.
8978         * config/m68k/m68k.c: Likewise.
8979         * config/mcore/mcore.c: Likewise.
8980         * config/mep/mep.c: Likewise.
8981         * config/microblaze/microblaze.c: Likewise.
8982         * config/mips/mips.c: Likewise.
8983         * config/rs6000/rs6000.c: Likewise.
8984         * config/rx/rx.c: Likewise.
8985         * config/sh/sh.c: Likewise.
8986         * config/sol2.h: Likewise.
8987         * config/sparc/sparc.c: Likewise.
8988         * config/spu/spu.c: Likewise.
8989         * config/stormy16/stormy16.c: Likewise.
8990         * config/v850/v850.c: Likewise.
8991
8992 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8993
8994         * simplify-rtx.c (simplify_binary_operation_1): Handle
8995         (xor (and A B) C) case when B and C are both constants.
8996
8997 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8998
8999         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9000
9001 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9002
9003         PR bootstrap/48168
9004         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9005
9006 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9007
9008         PR rtl-optimization/48156
9009         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9010         assume df and df_lr are not NULL.
9011
9012 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9013
9014         PR debug/48023
9015         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9016         between a call and its CALL_ARG_LOCATION note.
9017
9018 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9019
9020         PR debug/48178
9021         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9022         between a call and its corresponding CALL_ARG_LOCATION note.
9023
9024 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9025
9026         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9027         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9028         * haifa-sched.c (setup_ref_regs): Ditto.
9029         * caller-save.c (add_used_regs_1): Ditto.
9030         * dse.c (look_for_hardregs): Ditto.
9031         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9032         * sched-rgn.c (check_live_1): Ditto.
9033
9034 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9035
9036         * c-decl.c (diagnose_mismatched_decls): Give an error for
9037         redefining a typedef with variably modified type.
9038
9039 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9040
9041         * c-decl.c (grokfield): Don't allow typedefs for structures or
9042         unions with no tag by default.
9043         * doc/extend.texi (Unnamed Fields): Update.
9044
9045 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9046
9047         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9048         Rewrite using indirect functions.
9049         (lwp_slwpcb): Ditto.
9050         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9051         (avx_vinsertf128<mode>): Ditto.
9052
9053 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9054
9055         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9056         unspecs.
9057
9058 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9059
9060         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9061         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9062
9063 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9064
9065         PR rtl-optimization/48170
9066         * gcse.c (hoist_code): Remove bogus asserts.
9067
9068 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9069
9070         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9071         computation for prologue/epilogue.
9072
9073 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9074
9075         * Makefile.in (check-consistency): Remove.
9076
9077 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9078
9079         PR debug/48176
9080         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9081         arange_table_in_use is 0, but either text_section_used or
9082         cold_text_section_used is true.  Don't call it if
9083         !info_section_emitted.
9084
9085 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9086
9087         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9088         FUNCTION_VALUE_REGNO_P): Remove.
9089         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9090         Remove.
9091         * config/avr/avr.c (avr_ret_register): Make static inline.
9092         (avr_function_value_regno_p): New function.
9093         (avr_libcall_value): Make static. Add 'func' argument.
9094         (avr_function_value): Make static. Rename 'func' argument to
9095         'fn_decl_or_type', forward it to avr_libcall_value. Call
9096         avr_ret_register function instead of RET_REGISTER macro.
9097         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9098
9099 2011-03-18  Jason Merrill  <jason@redhat.com>
9100
9101         PR c++/23372
9102         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9103
9104 2011-03-18  Richard Guenther  <rguenther@suse.de>
9105
9106         * doc/install.texi (--enable-gold): Remove.
9107         (--with-plugin-ld): Document.
9108         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9109
9110 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9111
9112         PR middle-end/47790
9113         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9114         again after expansion changes.
9115
9116 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9117
9118         * combine.c (try_combine): Do simplification only call of
9119         subst() on i2 even when i1 is present. Update comments.
9120
9121 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9122
9123         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9124         and UNSPEC_PCREL_SYMOFF.
9125
9126 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9127
9128         * config/s390/s390.md: Use define_c_enum for the unspec constant
9129         definitions.
9130
9131 2011-03-18  Richard Henderson  <rth@redhat.com>
9132             Jakub Jelinek  <jakub@redhat.com>
9133
9134         PR bootstrap/48161
9135         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9136         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9137
9138 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9139
9140         PR middle-end/47725
9141         * combine.c (cant_combine_insn_p): Don't check zero/sign
9142         extended hard registers.
9143
9144 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         PR middle-end/47725
9147         * combine.c (cant_combine_insn_p): Check zero/sign extended
9148         hard registers.
9149
9150 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9151
9152         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9153         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9154         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9155         Change return type to bool.
9156         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9157
9158 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9159
9160         PR debug/48163
9161         * var-tracking.c (prepare_call_arguments): If CALL target
9162         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9163         pc instead of looking it up using cselib_lookup and use
9164         Pmode for it if x has VOIDmode.
9165         * dwarf2out.c (gen_subprogram_die): If also both first and
9166         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9167
9168         PR debug/48163
9169         * function.c (assign_parms): For data.passed_pointer parms
9170         use MEM of data.entry_parm instead of data.entry_parm itself
9171         as DECL_INCOMING_RTL.
9172         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9173         also when passed and declared mode is the same, DECL_RTL
9174         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9175         a MEM too.
9176
9177 2011-03-16  Jeff Law  <law@redhat.com>
9178
9179         PR rtl-optimization/37273
9180         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9181         handle them like argument loads from stack slots.  Do not double
9182         count memory for memory constants and argument loads from stack slots.
9183
9184 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9185
9186         PR debug/48160
9187         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9188
9189 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9190
9191         PR target/48171
9192         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9193
9194 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9195
9196         PR bootstrap/48153
9197         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9198         if dwarf_strict.
9199         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9200         Clear call_arg_locations and call_arg_loc_last always.
9201
9202         PR middle-end/48152
9203         * var-tracking.c (prepare_call_arguments): If argument needs to be
9204         passed by reference, adjust argtype and mode.
9205
9206 2011-03-17  Richard Guenther  <rguenther@suse.de>
9207
9208         PR middle-end/48134
9209         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9210         a value make sure to fold the statement.
9211
9212 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9213
9214         PR target/43872
9215         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9216         return condition with !cfun->calls_alloca.
9217
9218 2011-03-17  Richard Guenther  <rguenther@suse.de>
9219
9220         PR bootstrap/48148
9221         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9222         origin for decls in other ltrans units.
9223         (input_varpool_node): Likewise.
9224
9225 2011-03-17  Richard Guenther  <rguenther@suse.de>
9226
9227         PR middle-end/48165
9228         * tree-object-size.c (compute_object_offset): Properly return
9229         the offset operand of MEM_REFs as sizetype.
9230
9231 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9232
9233         PR rtl-optimization/48141
9234         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9235         * dse.c: Include params.h.
9236         (active_local_stores_len): New variable.
9237         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9238         to NULL.
9239         (record_store, check_mem_read_rtx): Decrease it when removing
9240         from the chain.
9241         (scan_insn): Likewise.  Increase it when adding to chain, if it
9242         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9243         set active_local_stores to NULL before the addition.
9244         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9245
9246         PR rtl-optimization/48141
9247         * dse.c (record_store): If no positions are needed in an insn
9248         that cannot be deleted, at least unchain it from active_local_stores.
9249
9250 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9251
9252         PR debug/47510
9253         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9254         (lookup_type_die_strip_naming_typedef): ... here.
9255         (get_context_die): Use it.
9256         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9257         the anonymous struct named by the naming typedef.
9258
9259 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9260
9261         PR target/48154
9262         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9263         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9264
9265 2011-03-16  Jeff Law  <law@redhat.com>
9266
9267         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9268         check for operands of conditional.  Allow type to be a pointer.
9269
9270 2011-03-16  Richard Guenther  <rguenther@suse.de>
9271
9272         PR tree-optimization/48149
9273         * fold-const.c (fold_binary_loc): Fold
9274         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9275
9276 2011-03-16  Richard Guenther  <rguenther@suse.de>
9277
9278         PR tree-optimization/26134
9279         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9280         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9281         (non_rewritable_mem_ref_base): Handle complex type component
9282         accesses, constrain offsets for vector and complex extracts
9283         more properly.
9284
9285 2011-03-16  Richard Guenther  <rguenther@suse.de>
9286
9287         PR tree-optimization/48146
9288         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9289         operands avoiding the need for renaming.
9290
9291 2011-03-16  Richard Guenther  <rguenther@suse.de>
9292
9293         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9294         constant folding.  Move MEM_REF canonicalization first.
9295         Rely on fold_const_aggregate_ref for initializer folding.
9296         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9297
9298 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9299
9300         PR middle-end/48136
9301         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9302         arg0/arg1 or their arguments are always fold converted to matching
9303         types.
9304
9305         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9306         to nargs.
9307
9308 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9309
9310         PR lto/46944
9311         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9312         Handle in-tree gold.
9313         (ld_vers): Extract binutils version for gold.
9314         (gcc_cv_ld_hidden): Handle gold here.
9315         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9316         * configure: Regenerate.
9317         * config.in: Regenerate.
9318         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9319         -fuse-linker-plugin otherwise.
9320         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9321         (LINK_COMMAND_SPEC): Use it.
9322         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9323
9324 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9325
9326         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9327         * calls.c: Remove debug.h include.
9328         (emit_call_1): Don't call virtual_call_token debug hook.
9329         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9330         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9331         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9332         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9333         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9334         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9335         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9336         dwarf2out_virtual_call): Remove.
9337         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9338         copy_call_info and virtual_call hooks.
9339         (dwarf2out_init): Don't initialize vcall_insn_table,
9340         debug_dcall_section and debug_vcall_section.
9341         (prune_unused_types): Don't mark nodes from dcall_table.
9342         (dwarf2out_finish): Don't output dcall or vcall tables.
9343         * final.c (final_scan_insn): Don't call direct_call or
9344         virtual_call debug hooks.
9345         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9346         virtual_call_token, copy_call_info and virtual_call hooks.
9347         (debug_nothing_uid): Remove prototype.
9348         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9349         copy_call_info and virtual_call hooks.
9350         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9351         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9352         * debug.c (do_nothing_debug_hooks): Likewise.
9353         (debug_nothing_uid): Remove.
9354         * doc/invoke.texi (-fenable-icf-debug): Remove.
9355         * common.opt (-fenable-icf-debug): Likewise.
9356
9357         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9358         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9359         call's MEM.  Handle functions returning aggregate through a hidden
9360         first pointer.  For virtual calls add clobbered pc to call arguments
9361         chain.
9362         * dwarf2out.c (gen_subprogram_die): Emit
9363         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9364         can't be emitted.
9365
9366         PR debug/45882
9367         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9368         * rtl.h (ENTRY_VALUE_EXP): Define.
9369         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9370         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9371         * print-rtl.c (print_rtx): Likewise.
9372         * gengtype.c (adjust_field_rtx_def): Likewise.
9373         * var-tracking.c (vt_add_function_parameter): Adjust
9374         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9375         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9376         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9377         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9378         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9379
9380         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9381         Call var_location debug hook even on CALL_INSNs.
9382         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9383         * rtl.def (ENTRY_VALUE): New.
9384         * dwarf2out.c: Include cfglayout.h.
9385         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9386         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9387         (struct call_arg_loc_node): New type.
9388         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9389         tail_call_site_count): New variables.
9390         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9391         DW_TAG_GNU_call_site_parameter.
9392         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9393         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9394         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9395         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9396         and DW_AT_GNU_all_source_call_sites.
9397         (mem_loc_descriptor): Handle ENTRY_VALUE.
9398         (add_src_coords_attributes): Don't add enything if
9399         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9400         (dwarf2out_abstract_function): Save and clear call_arg_location,
9401         call_site_count and tail_call_site_count around dwarf2out_decl call.
9402         (gen_call_site_die): New function.
9403         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9404         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9405         (dwarf2out_function_decl): Clear call_arg_locations,
9406         call_arg_loc_last, set call_site_count and tail_call_site_count
9407         to -1 and free block_map.
9408         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9409         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9410         followed by any real instructions.
9411         (dwarf2out_begin_function): Set call_site_count and
9412         tail_call_site_count to 0.
9413         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9414         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9415         attempt to force a DIE for it and worst case remove the attribute.
9416         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9417         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9418         the decl itself.
9419         * var-tracking.c: Include tm_p.h.
9420         (vt_stack_adjustments): For calls call note_register_arguments.
9421         (argument_reg_set): New variable.
9422         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9423         ensure the VALUE is resolved.
9424         (call_arguments): New variable.
9425         (prepare_call_arguments): New function.
9426         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9427         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9428         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9429         always use the best expression.
9430         (vt_expand_loc): Add ignore_cur_loc argument.
9431         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9432         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9433         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9434         note for all calls.
9435         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9436         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9437         argument.  Don't call cselib_preserve_only_values and
9438         cselib_reset_table.
9439         (note_register_arguments): New function.
9440         (vt_initialize): Compute argument_reg_set.  Call
9441         vt_add_function_parameters before processing basic blocks instead of
9442         afterwards.  For calls call prepare_call_arguments before calling
9443         cselib_process_insn.
9444         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9445         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9446         (var-tracking.o): Depend on $(TM_P_H).
9447         * cfglayout.h (insn_scope): New prototype.
9448         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9449         * cfglayout.c (insn_scope): No longer static.
9450         * insn-notes.def (CALL_ARG_LOCATION): New.
9451         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9452         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9453         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9454         nothing for DECL_EXTERNAL BLOCK_VARS.
9455
9456 2011-03-16  Alan Modra  <amodra@gmail.com>
9457
9458         PR target/45844
9459         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9460         create invalid offset address for vsx splat insn.
9461         * config/rs6000/predicates.md (splat_input_operand): New.
9462         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9463
9464 2011-03-15  Xinliang David Li  <davidxl@google.com>
9465
9466         PR c/47837
9467         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9468         (normalize_preds): New function.
9469         (is_use_properly_guarded): Normalize def predicates.
9470
9471 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9472
9473         PR target/46788
9474         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9475         in the output template.
9476
9477 2011-03-15  Richard Guenther  <rguenther@suse.de>
9478
9479         PR middle-end/47650
9480         * tree-pretty-print.c (dump_function_declaration): Properly
9481         dump unprototyped and varargs function types.
9482
9483 2011-03-15  Richard Guenther  <rguenther@suse.de>
9484
9485         PR tree-optimization/13954
9486         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9487         and friends.
9488
9489 2011-03-15  Richard Guenther  <rguenther@suse.de>
9490
9491         PR tree-optimization/48037
9492         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9493         selects into BIT_FIELD_REFs.
9494         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9495         vector select.
9496
9497 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9498
9499         PR tree-optimization/48129
9500         * builtins.c (fold_builtin_snprintf): Convert to type of
9501         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9502         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9503
9504 2011-03-15  Richard Guenther  <rguenther@suse.de>
9505
9506         PR tree-optimization/41490
9507         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9508         value but with VUSE.
9509         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9510         return statements.
9511         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9512         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9513         * tree-tailcall.c (find_tail_calls): Ignore returns.
9514
9515 2011-03-15  Richard Guenther  <rguenther@suse.de>
9516
9517         PR middle-end/48031
9518         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9519         or variable-indexed array accesses when in gimple form.
9520
9521 2011-03-15  Richard Guenther  <rguenther@suse.de>
9522
9523         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9524
9525 2011-03-15  Alan Modra  <amodra@gmail.com>
9526
9527         PR target/48032
9528         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9529         presume symbol_refs without a symbol_ref_decl are suitably
9530         aligned, nor other trees we may see here.  Handle anchor symbols.
9531         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9532         Check cmodel=medium addresses.  Adjust all calls.
9533         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9534         creating cmodel=medium optimized access to locals.
9535         * config/rs6000/constraints.md (R): Pass QImode to
9536         legitimate_constant_pool_address_p.
9537         * config/rs6000/predicates.md (input_operand): Pass mode to
9538         legitimate_constant_pool_address_p.
9539         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9540         Update prototype.
9541
9542 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9543
9544         PR target/48053
9545         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9546         64-bit constants being loaded into registers other than GPRs such
9547         as loading 0 into a VSX register.
9548
9549 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9550
9551         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9552
9553 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9554
9555         PR middle-end/47917
9556         * builtins.c (fold_builtin_snprintf): New function.
9557         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9558         (fold_builtin_4): Likewise.
9559
9560         PR middle-end/38878
9561         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9562         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9563         and C - X == X also strip nops from +/-/p+ operand.
9564         When optimizing -X == C, fold C to arg0's type.
9565
9566         PR debug/47946
9567         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9568         emit it as add_AT_int instead of add_AT_unsigned.
9569
9570 2011-03-14  Tom Tromey  <tromey@redhat.com>
9571
9572         * unwind-dw2.c: Include sys/sdt.h if it exists.
9573         (_Unwind_DebugHook): Use STAP_PROBE2.
9574         * config.in, configure: Rebuild.
9575         * configure.ac: Check for sys/sdt.h.
9576
9577 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9578
9579         * config/i386/i386.md (ROUND_FLOOR): New constant.
9580         (ROUND_CEIL): Ditto.
9581         (ROUND_TRUNC): Ditto.
9582         (ROUND_MXCSR): Ditto.
9583         (ROUND_NO_EXC): Ditto.
9584         (rint<mode>2): Use new defines instead of numerical constants.
9585         (floor<mode>2): Ditto.
9586         (ceil<mode>2): Ditto.
9587         (btrunc<mode>2): Ditto.
9588         * config/i386/i386-builtin-types.def: Define ROUND function type
9589         aliases.
9590         * config/i386/i386.c (enum ix86_builtins): Add
9591         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9592         (struct builtin_description): Add
9593         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9594         (ix86_expand_sse_round): New static function.
9595         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9596         function types.
9597         (ix86_builtin_vectorized_function): Handle
9598         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9599
9600 2011-03-14  Tom Tromey  <tromey@redhat.com>
9601
9602         * c-parser.c (c_parser_asm_string_literal): Clear
9603         warn_overlength_strings.
9604
9605 2011-03-14  Tom Tromey  <tromey@redhat.com>
9606
9607         * c-parser.c (disable_extension_diagnostics): Save
9608         warn_overlength_strings.
9609         (restore_extension_diagnostics): Restore warn_overlength_strings.
9610
9611 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9612
9613         * BASE-VER: Change to 4.7.0.
9614
9615 2011-03-14  Richard Guenther  <rguenther@suse.de>
9616
9617         PR middle-end/48098
9618         * tree.c (build_vector_from_val): Adjust assert to requirements
9619         and reality.
9620
9621 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9622
9623         PR bootstrap/48102
9624         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9625
9626 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9627
9628         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9629         terms of target_flags_explicit. Adjust copyright year.
9630
9631         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9632         * config/rs6000/t-freebsd: New file. Add override for
9633         LIB2FUNCS_EXTRA.
9634
9635 2011-03-13  Chris Demetriou  <cgd@google.com>
9636
9637         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9638         (-fno-diagnostics-show-option): this, to reflect current default.
9639         (-Werror=): Update text about -fno-diagnostics-show-option.
9640
9641 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9642
9643         PR target/48053
9644         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9645         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9646         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9647         mode is not V2DImode or V2DFmode.
9648         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9649         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9650         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9651         registers to 0.
9652         (movdi_internal64): Likewise.
9653
9654 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9655
9656         PR tree-optimization/47127
9657         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9658         parameter.
9659         (set_cloog_options): Same.
9660         (scop_to_clast): Same.
9661         (print_clast_stmt): Do not call cloog_state_malloc and
9662         cloog_state_free.
9663         (print_generated_program): Same.
9664         (gloog): Same.
9665         * graphite-clast-to-gimple.h (cloog_state): Declared.
9666         (scop_to_clast): Adjust declaration.
9667         * graphite.c (cloog_state): Defined here.
9668         (graphite_initialize): Call cloog_state_malloc.
9669         (graphite_finalize): Call cloog_state_free.
9670
9671 2011-03-11  Jason Merrill  <jason@redhat.com>
9672
9673         * attribs.c (lookup_attribute_spec): Take const_tree.
9674         * tree.h: Adjust.
9675
9676 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9677
9678         * config/sparc/sparc.c (sparc_option_override): Use
9679         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9680
9681 2011-03-11  Richard Guenther  <rguenther@suse.de>
9682
9683         PR tree-optimization/48067
9684         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9685         multiplication result will be only used once on the target
9686         stmt.
9687
9688 2011-03-11  Richard Guenther  <rguenther@suse.de>
9689
9690         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9691
9692 2011-03-11  Richard Guenther  <rguenther@suse.de>
9693
9694         PR lto/48073
9695         * tree.c (find_decls_types_r): Do not walk types only reachable
9696         from IDENTIFIER_NODEs.
9697
9698 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9699
9700         PR middle-end/48044
9701         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9702         all vnode->force_output nodes as needed.
9703
9704 2011-03-11  Jason Merrill  <jason@redhat.com>
9705
9706         PR c++/48069
9707         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9708         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9709
9710 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9711
9712         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9713         cgraph_node.
9714
9715 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9716
9717         PR tree-optimization/48063
9718         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9719         inline functions called once if !tree_can_inline_p (node->callers).
9720
9721 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9722
9723         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9724         extra_objs.
9725         * config/score/score3.c: Delete.
9726         * config/score/score3.h: Delete.
9727         * config/score/mul-div.S: Delete.
9728         * config/score/sfp-machine.h: Add new file.
9729         * config/score/constraints.md: Add new file.
9730         * config/score/t-score-softfp: Add new file.
9731         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9732         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9733         (score7_extra_constraint): Delete.
9734         (score7_option_override): Remove unused code.
9735         * config/score/score.c: Remove score3 and score5 define and code.
9736         * config/score/score.h: Remove score3 and score5 define and code.
9737         * config/score/score.md: Remove score3 template and unusual insn.
9738         * config/score/score.opt: Remove score3 and score5 options.
9739
9740 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9741
9742         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9743         when _HPUX_SOURCE is defined.
9744         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9745
9746 2011-03-10  Jason Merrill  <jason@redhat.com>
9747
9748         PR c++/48029
9749         * stor-layout.c (layout_type): Don't set structural equality
9750         on arrays of incomplete type.
9751         * tree.c (type_hash_eq): Handle comparing them properly.
9752
9753 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9754
9755         PR debug/48043
9756         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9757         result mode matches original rtl mode.
9758
9759 2011-03-10  Nick Clifton  <nickc@redhat.com>
9760
9761         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9762         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9763
9764 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9765
9766         PR rtl-optimization/47866
9767         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9768         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9769         if target wasn't scalar.
9770         * function.c (assign_stack_temp_for_type): Assert that neither
9771         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9772         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9773         macro.
9774         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9775
9776 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9777
9778         * config/s390/s390-protos.h (s390_label_align): New prototype.
9779         * config/s390/s390.c (s390_label_align): New function.
9780         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9781
9782 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9783
9784         PR target/47755
9785         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9786         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9787         (output_vec_const_move): Ditto.
9788
9789 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9790
9791         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9792         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9793         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9794         Change 'rclass' argument and result type to reg_class_t.
9795         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9796
9797 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9798
9799         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9800         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9801         (TARGET_MEMORY_MOVE_COST): Define.
9802         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9803
9804 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9805
9806         PR debug/47881
9807         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9808         removed anything.
9809
9810         PR tree-optimization/48022
9811         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9812         for EQ/NE_EXPR.
9813
9814 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9815
9816         PR debug/47991
9817         * var-tracking.c (find_use_val): Return NULL for
9818         cui->sets && cui->store_p BLKmode MEMs.
9819
9820 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9821
9822         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9823         Remove.
9824         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9825         xstormy16_print_operand_address): Remove.
9826         * config/stormy16/stormy16.c (xstormy16_print_operand,
9827         xstormy16_print_operand_address): Make static.
9828         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9829
9830 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9831
9832         PR target/47862
9833         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9834         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9835         before definition.
9836
9837 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9838
9839         PR bootstrap/48000
9840         * cfgloopmanip.c (fix_bb_placements): Return immediately
9841         if FROM is BASE_LOOP's header.
9842
9843 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9844
9845         * gimplify.c (gimplify_function_tree): Fix building calls
9846         to __builtin_return_address.
9847
9848 2011-03-07  Alan Modra  <amodra@gmail.com>
9849
9850         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9851         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9852         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9853         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9854         return_mode args.
9855         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9856         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9857         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9858         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9859         * config/rs6000/rs6000.c
9860         (rs6000_elf_end_indicate_exec_stack): Rename to..
9861         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9862         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9863         (rs6000_file_start): ..here.
9864         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9865         file scope variables.
9866         (call_ABI_of_interest): New function.
9867         (init_cumulative_args): Set above vars when function return value
9868         is a float, vector, or small struct.
9869         (rs6000_function_arg_advance_1): Likewise for function args.
9870         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9871         references float args.
9872
9873 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9874
9875         * doc/cfg.texi: Remove "See" before @ref.
9876         * doc/invoke.texi: Likewise.
9877
9878 2011-03-05  Jason Merrill  <jason@redhat.com>
9879
9880         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9881
9882 2011-03-05  Anthony Green  <green@moxielogic.com>
9883
9884         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9885
9886 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9887
9888         PR rtl-optimization/47899
9889         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9890         to flow_loop_nested_p when moving the loop upward.
9891
9892 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9893
9894         PR target/47719
9895         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9896
9897 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9898
9899         PR tree-optimization/47967
9900         * ipa-cp.c (build_const_val): Return NULL instead of creating
9901         VIEW_CONVERT_EXPR for mismatching sizes.
9902         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9903         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9904         give up on versioning.
9905
9906 2011-03-05  Alan Modra  <amodra@gmail.com>
9907
9908         PR target/47986
9909         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9910         full cmodel medium/large lo_sum + high addresses.
9911
9912 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9913
9914         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9915         pool references in UNSPEC_LTREL_OFFSET.
9916
9917 2011-03-04  Jan Hubicka  <jh@suse.cz>
9918
9919         PR lto/47497
9920         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9921         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9922         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9923         Add node pointers.
9924         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9925         cgraph_add_thunk): Add node pointers.
9926         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9927         associated to right node.
9928         (input_node): Update use of cgraph_same_body_alias
9929         and cgraph_add_thunk.
9930
9931 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9932
9933         * config/i386/i386.opt (mprefer-avx128): New flag.
9934         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9935         modes when the flag -mprefer-avx128 is on.
9936
9937 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9938
9939         * dwarf2out.c (compare_loc_operands): Fix address handling.
9940
9941 2011-03-04  Alan Modra  <amodra@gmail.com>
9942
9943         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9944
9945 2011-03-04  Richard Guenther  <rguenther@suse.de>
9946
9947         PR middle-end/47968
9948         * expmed.c (extract_bit_field_1): Prefer vector modes that
9949         vec_extract patterns can handle.
9950
9951 2011-03-04  Richard Guenther  <rguenther@suse.de>
9952
9953         PR middle-end/47975
9954         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9955
9956 2011-03-04  Richard Henderson  <rth@redhat.com>
9957
9958         * explow.c (emit_stack_save): Remove 'after' parameter.
9959         (emit_stack_restore): Likewise.
9960         * expr.h: Update to match.
9961         * builtins.c, calls.c, stmt.c: Likewise.
9962         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9963         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9964         * function.c (expand_function_end): Insert the emit_stack_save
9965         sequence before parm_birth_insn instead of after.
9966
9967 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9968
9969         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9970         (ssse3_pmaddubsw128): Ditto.
9971         (ssse3_pmaddubsw): Ditto.
9972
9973 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9974
9975         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9976
9977 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9978
9979         PR c/47963
9980         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9981         on TYPE_SIZE_UNIT if it is a DECL.
9982
9983         PR debug/47283
9984         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9985         first operand is not is_gimple_mem_ref_addr, try to fold it.
9986         If the operand still isn't is_gimple_mem_ref_addr, clear
9987         MEM_EXPR on op0.
9988
9989 2011-03-03  Richard Guenther  <rguenther@suse.de>
9990
9991         PR middle-end/47283
9992         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9993         match comment.
9994         (refs_may_alias_p_1): For release branches return true if
9995         we are confused by our input.
9996
9997 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9998
9999         * config/s390/s390.c (s390_function_value): Rename to ...
10000         (s390_function_and_libcall_value): ... this.
10001         (s390_function_value): New function.
10002         (s390_libcall_value): New function.
10003         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10004         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10005         target macro definitions.
10006         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10007
10008 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10009
10010         * config/i386/freebsd64.h (CC1_SPEC): Define.
10011         * config/i386/linux64.h (CC1_SPEC): Define.
10012         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10013
10014 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10015
10016         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10017         Remove.
10018         * config/stormy16/stormy16.c: Include reload.h.
10019         (xstormy16_memory_move_cost): New function.
10020         (TARGET_MEMORY_MOVE_COST): Define.
10021
10022 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10023
10024         PR rtl-optimization/47925
10025         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10026         with side effects.  Remove the more-specific check for volatile asms.
10027
10028 2011-03-02  Alan Modra  <amodra@gmail.com>
10029
10030         PR target/47935
10031         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10032         toc relative addresses for valid offsets.
10033
10034 2011-03-01  Richard Guenther  <rguenther@suse.de>
10035
10036         PR tree-optimization/47890
10037         * tree-vect-loop.c (get_initial_def_for_induction): Set
10038         related stmt properly.
10039
10040 2011-03-01  Richard Guenther  <rguenther@suse.de>
10041
10042         PR lto/47924
10043         * lto-streamer.c (lto_record_common_node): Also register
10044         the canonical type.
10045
10046 2011-03-01  Richard Guenther  <rguenther@suse.de>
10047
10048         PR lto/46911
10049         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10050         Do not stream DECL_ABSTRACT_ORIGIN.
10051         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10052         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10053         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10054         Do not stream DECL_ABSTRACT_ORIGIN.
10055         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10056         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10057
10058 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10059
10060         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10061         FUNCTION_VALUE_REGNO_P): Remove.
10062         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10063         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10064         Add 'outgoing' argument.
10065         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10066         function.
10067         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10068         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10069
10070 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10071
10072         PR debug/28047
10073         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10074         (lookup_filename): Likewise.
10075         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10076
10077 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10078             Jakub Jelinek  <jakub@redhat.com>
10079
10080         PR middle-end/47893
10081         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10082         (assign_stack_local_1): Change last argument type to int.
10083         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10084         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10085         don't record padding space into frame_space_list nor use those areas.
10086         (assign_stack_local): Adjust caller.
10087         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10088         of assign_stack_local, pass 0 as last argument.
10089         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10090         callers.
10091
10092 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10093
10094         PR debug/47283
10095         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10096         Use target address_mode and pointer_mode hooks instead of hardcoded
10097         Pmode and ptr_mode.  Handle some simple cases of extending if
10098         POINTERS_EXTEND_UNSIGNED < 0.
10099         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10100         Call convert_debug_memory_address.
10101         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10102         convert_debug_memory_address.
10103
10104         PR middle-end/46790
10105         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10106         * configure: Regenerated.
10107         * config.in: Regenerated.
10108         * varasm.c (default_function_section): Return NULL
10109         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10110
10111 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10112
10113         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10114         the description to match the printed values.
10115
10116 2011-02-28  Richard Guenther  <rguenther@suse.de>
10117
10118         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10119         of the copied scope tree.
10120
10121 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10122
10123         * doc/extend.texi (Function Attributes): Avoid deeply (and
10124         wrongly) nested tables.
10125
10126 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10127
10128         PR middle-end/47903
10129         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10130         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10131         r isn't op0 nor op1.
10132
10133 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10134
10135         * config/avr/avr.md: Remove magic comment for emacs.
10136
10137 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10138
10139         PR target/45261
10140         * config/avr/avr.c (avr_option_override): Use error on bad options.
10141         (avr_help): New function.
10142         (TARGET_HELP): Define.
10143
10144 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10145
10146         PR target/42240
10147         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10148         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10149
10150 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10151
10152         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10153         (ARM Options): Ditto.
10154         (i386 and x86-64 Options): Ditto.
10155         (RX Options): Ditto.
10156         (SPARC Options): Ditto.
10157
10158 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10159
10160         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10161         FreeBSD 6 and later.  Generally use cpu generic.
10162
10163 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10164
10165         * doc/cpp.texi: Update copyright years.
10166
10167 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10168
10169         PR target/46898
10170         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10171
10172 2011-02-25  Jon Beniston  <jon@beniston.com>
10173
10174         PR target/46898
10175         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10176         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10177         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10178         (lm32_block_move_inline): Add type cast to remove warning.
10179         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10180         (gen_int_relational): Move declarations to start of function.
10181
10182 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10183
10184         PR tree-optimization/45470
10185         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10186         can throw internally only.
10187         * tree-vect-stmts.c (vectorizable_call): Likewise.
10188
10189 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10190
10191         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10192         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10193         * config/stormy16/stormy16-protos.h
10194         (xstormy16_preferred_reload_class): Remove.
10195         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10196         static. Change 'rclass' argument and return type to reg_class_t.
10197         (TARGET_PREFERRED_RELOAD_CLASS,
10198         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10199
10200 2011-02-24  Richard Guenther  <rguenther@suse.de>
10201
10202         * lto-streamer-in.c (input_bb): Do not find referenced vars
10203         in debug statements.
10204
10205 2011-02-23  Jason Merrill  <jason@redhat.com>
10206
10207         * common.opt (fabi-version): Document v5 and v6.
10208
10209 2011-02-23  Richard Guenther  <rguenther@suse.de>
10210
10211         PR tree-optimization/47849
10212         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10213
10214 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10215
10216         * opts-common.c (decode_cmdline_option): Print empty string
10217         argument as "" in decoded->orig_option_with_args_text.
10218         * gcc.c (execute): Print empty string argument as ""
10219         in the verbose output.
10220         (do_spec_1): Keep empty string argument.
10221
10222 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10223
10224         * config.gcc: Declare score-* and crx-* obsolete.
10225
10226 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10227
10228         PR rtl-optimization/47763
10229         * web.c (web_main): Ignore naked clobber when replacing register.
10230
10231 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10232
10233         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10234         Remove.
10235
10236 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10237
10238         PR doc/47848
10239         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10240
10241 2011-02-22  Mike Stump  <mikestump@comcast.net>
10242
10243         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10244         assembler.
10245         * configure: Regenerate.
10246
10247 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10248
10249         PR rtl-optimization/46002
10250         * ira-color.c (update_copy_costs): Change class intersection
10251         test to reg_class_contents[] test of 'hard_regno'.
10252
10253 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10254
10255         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10256         than Driver option.
10257         * config/hpux11.opt (mt): Likewise.
10258         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10259         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10260         * config/vax/elf.opt (mno-asm-pic): Likewise.
10261         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10262
10263 2011-02-21  Mike Stump  <mikestump@comcast.net>
10264
10265         PR target/47822
10266         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10267         tree so we can get save the type.
10268         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10269         for CFString instead of trying to use past the end of the builtins.
10270         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10271         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10272         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10273         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10274         Rename to darwin_builtin_cfstring.
10275         (darwin_init_cfstring_builtins): Return the built type.
10276
10277 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10278
10279         PR target/47840
10280         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10281         (_mm256_insert_epi64): Use _mm_insert_epi64.
10282
10283 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10284
10285         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10286         * config/stormy16/stormy16-protos.h
10287         (xstormy16_mode_dependent_address_p): Remove.
10288         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10289         Make static. Change return type to bool. Change argument type to
10290         const_rtx. Remove dead code.
10291         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10292
10293 2011-02-21  Richard Guenther  <rguenther@suse.de>
10294
10295         PR lto/47820
10296         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10297         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10298         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10299         TUs context.
10300         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10301         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10302
10303 2011-02-20  Richard Guenther  <rguenther@suse.de>
10304
10305         PR lto/47822
10306         * tree.c (free_lang_data_in_decl): Clean builtins from
10307         the TU decl BLOCK_VARS.
10308
10309 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10310
10311         PR debug/47620
10312         PR debug/47630
10313         * haifa-sched.c (fix_tick_ready): Skip tick computation
10314         for debug insns.
10315
10316 2011-02-19  Richard Guenther  <rguenther@suse.de>
10317
10318         PR lto/47647
10319         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10320         Remove lazy BLOCK_VARS streaming.
10321         (lto_input_ts_block_tree_pointers): Likewise.
10322         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10323
10324 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10325
10326         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10327
10328 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10329
10330         * config/i386/biarch32.h, config/i386/mach.h,
10331         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10332
10333 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10334
10335         PR target/47800
10336         * config/i386/i386.md (peephole2 for shift and plus): Use
10337         operands[1] original mode in the first insn.
10338
10339 2011-02-18  Mike Stump  <mikestump@comcast.net>
10340
10341         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10342
10343 2011-02-18  Jan Hubicka  <jh@suse.cz>
10344
10345         PR middle-end/47788
10346         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10347         to zero when the function is not inlinable at all.
10348
10349 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10350
10351         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10352         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10353         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10354         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10355         * config/pa/t-pa64: Likewise.
10356         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10357
10358 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10359
10360         PR driver/47787
10361         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10362
10363 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10364
10365         PR target/47792
10366         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10367
10368 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10369
10370         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10371         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10372         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10373         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10374         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10375         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10376         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10377         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10378         m32r_legitimate_address_p): New functions.
10379         * config/m32r/constraints.md (constraint "S"): Don't use
10380         STORE_PREINC_PREDEC_P.
10381         (constraint "U"): Don't use LOAD_POSTINC_P.
10382
10383 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10384
10385         PR rtl-optimization/46178
10386         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10387         compute ira_hard_regno_cover_class[].
10388
10389 2011-02-18  Richard Guenther  <rguenther@suse.de>
10390
10391         PR lto/47798
10392         * lto-streamer.h (lto_global_var_decls): Declare.
10393         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10394         statics for global var processing.
10395
10396 2011-02-18  Richard Guenther  <rguenther@suse.de>
10397
10398         PR tree-optimization/47737
10399         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10400         edge dominance check.
10401
10402 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10403
10404         PR debug/47780
10405         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10406         avoid invalid rtx sharing.
10407
10408 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10409
10410         * doc/cpp.texi (Obsolete Features): Add background on the
10411         origin of assertions.
10412
10413 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10414
10415         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10416         objc_abi == 2.
10417         * config/darwin.c (output_objc_section_asm_op): Added support for
10418         ABI v1 and v2.
10419         (is_objc_metadata): New.
10420         (darwin_objc2_section): New.
10421         (darwin_objc1_section): New.
10422         (machopic_select_section): Added support for ABI v1 and v2.
10423         (darwin_emit_objc_zeroed): New.
10424         (darwin_output_aligned_bss): Detect objc metadata and treat it
10425         appropriately.
10426         (darwin_asm_output_aligned_decl_common): Same.
10427         (darwin_asm_output_aligned_decl_local): Same.
10428         * config/darwin-sections.def: Updated for ABI v1 and v2.
10429         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10430         compiling Objective-C code for the NeXT runtime, default to using
10431         ABI version 0 for 32-bit, and version 2 for 64-bit.
10432
10433 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10434
10435         * common.opt (optimize_fast): New Variable.
10436         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10437         instead of local variable ofast.
10438
10439 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10440
10441         * doc/invoke.texi (fobjc-abi-version): Documented.
10442         (fobjc-nilcheck): Documented.
10443         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10444         version.
10445
10446 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10447
10448         PR driver/47390
10449         * common.opt (export-dynamic): New Driver option.
10450         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10451
10452 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10453
10454         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10455
10456 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10457             Jan Hubicka  <jh@suse.cz>
10458
10459         PR debug/47106
10460         PR debug/47402
10461         * cfgexpand.c (account_used_vars_for_block): Remove.
10462         (estimated_stack_frame_size): Use referenced vars.
10463         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10464         that were referenced in the original function.  Test src_fn
10465         rather than cfun.  Drop redundant get_var_ann.
10466         (setup_one_parameter): Drop redundant get_var_ann.
10467         (declare_return_variable): Likewise.
10468         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10469         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10470         * ipa-inline.c (compute_inline_parameters): Do not compute
10471         disregard_inline_limits here.
10472         (compute_inlinable_for_current, pass_inlinable): New.
10473         (pass_inline_parameters): Require PROP_referenced_vars.
10474         * cgraphunit.c (cgraph_process_new_functions): Don't run
10475         compute_inline_parameters explicitly unless function is in SSA form.
10476         (cgraph_analyze_function): Set .disregard_inline_limits.
10477         * tree-sra.c (convert_callers): Compute inliner parameters
10478         only for functions already in SSA form.
10479
10480 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10481
10482         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10483         -mlittle-endian-data.
10484
10485 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10486
10487         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10488         -mno-fpu, not -fpu and -no-fpu.
10489         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10490         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10491
10492 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10493
10494         PR target/43653
10495         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10496         input reload with PLUS RTX.
10497
10498 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10499
10500         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10501         of InverseVar(MDMX).
10502
10503 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10504
10505         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10506         --m4-340.
10507
10508 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10509
10510         * config/mn10300/mn10300.opt (mno-crt0): New.
10511
10512 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * config/m68k/uclinux.opt (static-libc): New Driver option.
10515
10516 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10517
10518         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10519
10520 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10523         %{muser-extend-enabled}.
10524
10525 2011-02-16  Richard Guenther  <rguenther@suse.de>
10526
10527         PR tree-optimization/47738
10528         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10529         the TODO from tree_predictive_commoning.
10530
10531 2011-02-15  Jeff Law  <law@redhat.com>
10532
10533         Revert
10534         2011-01-25  Jeff Law  <law@redhat.com>
10535
10536         PR rtl-optimization/37273
10537         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10538         handle them like argument loads from stack slots.  Do not double
10539         count memory for memory constants and argument loads from stack slots.
10540
10541 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10542
10543         PR middle-end/47725
10544         * combine.c (cant_combine_insn_p): Revert the last change.
10545
10546 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10547
10548         PR target/47755
10549         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10550         mode for vector constants.  Remove code that checks for TImode.
10551
10552 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10553
10554         PR debug/47106
10555         PR debug/47402
10556         * cgraph.h (compute_inline_parameters): Return void.
10557         * ipa-inline.c (compute_inline_parameters): Adjust.
10558
10559 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10560
10561         PR debug/47106
10562         PR debug/47402
10563         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10564         rather than decl.
10565         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10566         * ipa-inline.c (compute_inline_parameters): Adjust.
10567
10568 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10569
10570         PR debug/47106
10571         PR debug/47402
10572         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10573         Adjust all users.  Pass FN to...
10574         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10575         fn argument.
10576         * ipa-struct-reorg.c: Adjust.
10577         * tree-dfa.c: Adjust.
10578         * tree-into-ssa.c: Adjust.
10579         * tree-sra.c: Adjust.
10580         * tree-ssa-alias.c: Adjust.
10581         * tree-ssa-live.c: Adjust.
10582         * tree-ssa.c: Adjust.
10583         * tree-ssanames.c: Adjust.
10584         * tree-tailcall.c: Adjust.
10585
10586 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10587
10588         PR debug/47106
10589         PR debug/47402
10590         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10591         Adjust all callers.
10592         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10593         * tree-flow-inline.h: Adjust.
10594         * gimple-pretty-print.c: Adjust.
10595         * tree-into-ssa.c: Adjust.
10596         * tree-ssa.c: Adjust.
10597         * cfgexpand.c: Adjust.
10598
10599 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10600
10601         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10602         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10603         (EXTRA_CONSTRAINT): Delete.
10604         * config/iq2000/constraints.md: New file.
10605         * config/iq2000/iq2000.md: Include it.
10606         (define_insn ""): Delete.
10607         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10608         unsupported constraint letters from patterns.
10609         (call_value, call_value_internal1): Likewise.
10610         (call_value_multiple_internal1): Likewise.
10611
10612 2011-02-15  Nick Clifton  <nickc@redhat.com>
10613
10614         * config/mn10300/mn10300.c: Include tm-constrs.h.
10615         (struct liw_data): New data structure describing an LIW candidate
10616         instruction.
10617         (extract_bundle): Use struct liw_data.  Allow small integer
10618         operands for some instructions.
10619         (check_liw_constraints): Use struct liw_data.  Remove swapped
10620         parameter.  Add comments describing the checks.  Fix bug when
10621         assigning the source of liw1 to the source of liw2.
10622         (liw_candidate): Delete.  Code moved into extract_bundle.
10623         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10624         before swapping.
10625         * config/mn10300/predicates.md (liw_operand): New predicate.
10626         Allows registers and small integer constants.
10627         * config/mn10300/constraints.md (O): New constraint.  Accetps
10628         integers in the range -8 to +7 inclusive.
10629         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10630         for moving a small integer into a register.  Give this alternative
10631         LIW attributes.
10632         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10633         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10634         using the J,K,L and M constraints,
10635         (liw): Remove SI mode on second operands to allow for HI and QI
10636         mode values.
10637         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10638         instruction.
10639
10640 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10641
10642         PR middle-end/47725
10643         * combine.c (cant_combine_insn_p): Check zero/sign extended
10644         hard registers.
10645
10646 2011-02-15  Richard Guenther  <rguenther@suse.de>
10647
10648         PR tree-optimization/47743
10649         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10650         for a non-type-compatible VN lookup bail out.
10651
10652 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10653
10654         * config/fr30/constraints.md: New file.
10655         * config/fr30/fr30.md: Include it.
10656         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10657         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10658         (EXTRA_CONSTRAINT): Delete.
10659
10660 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10661
10662         * config/frv/constraints.md: New file.
10663         * config/frv/predicates.md: Include it.
10664         * config/frv/frv.c (reg_class_from_letter): Delete.
10665         (frv_option_override): Don't initialize it.
10666         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10667         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10668         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10669         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10670         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10671         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10672         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10673         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10674         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10675         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10676         (REG_CLASS_FROM_CONSTRAINT): Delete.
10677
10678 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10679
10680         PR middle-end/47581
10681         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10682         if frame size is 0 in a leaf function.
10683
10684 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10685
10686         PR pch/14940
10687         * config/alpha/host-osf.c: New file.
10688         * config/alpha/x-osf: New file.
10689         * config.host (alpha*-dec-osf*): Use it.
10690
10691 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10692
10693         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10694         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10695         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10696         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10697         type to const_rtx.
10698         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10699
10700 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10701
10702         * config/stormy16/constraints.md: New file.
10703         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10704         Use satisfies_constraint_Q and satisfies_constraint_R.
10705         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10706         Delete.
10707         (xstormy16_legitiamte_address_p): Declare.
10708         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10709         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10710         (EXTRA_CONSTRAINT): Delete.
10711         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10712         Un-staticize.
10713         (xstormy16_extra_constraint_p): Delete.
10714
10715 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10716
10717         PR tree-optimization/46494
10718         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10719         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10720         (pass_rtl_loop_done): Add TODO_verify_flow.
10721         * fwprop.c (pass_rtl_fwprop): Likewise.
10722         * modulo-sched.c (pass_sms): Likewise.
10723         * tree-ssa-dom.c (pass_dominator): Likewise.
10724         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10725         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10726         (pass_tree_loop_done): Likewise.
10727         * tree-ssa-pre.c (execute_pre): Likewise.
10728         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10729         * tree-ssa-sink.c (pass_sink_code): Likewise.
10730         * tree-vrp.c (pass_vrp): Likewise.
10731
10732 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10733
10734         * config/v850/constraints.md: New file.
10735         * config/v850/v850.md: Include it.
10736         * config/v850/predicates.md (reg_or_0_operand): Use
10737         satisfies_constraint_G.
10738         (special_symbolref_operand): Use satisfies_constraint_K.
10739         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10740         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10741         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10742         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10743         (EXTRA_CONSTRAINT): Delete.
10744         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10745         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10746         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10747
10748 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10749
10750         PR target/47696
10751         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10752         description.
10753
10754 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10755
10756         * config/mcore/constraints.md: New file.
10757         * config/mcore/mcore.md: Include it.
10758         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10759         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10760         (REG_CLASS_FROM_LETTER): Delete.
10761         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10762         insn_const_int_ok_for_constraint.
10763         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10764         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10765         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10766         (EXTRA_CONSTRAINT): Delete.
10767
10768 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10769
10770         PR ada/41929
10771         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10772         (IS_SIGHANDLER): Define.
10773         (sparc64_is_sighandler): New function, split off from
10774         sparc64_fallback_frame_state.
10775         (sparc_is_sighandler): New function, split off from
10776         sparc_fallback_frame_state.
10777         (sparc64_fallback_frame_state): Merge with ...
10778         (sparc_fallback_frame_state): ... this into ...
10779         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10780         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10781         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10782         stack instead of hardcoded offsets.
10783
10784 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10785
10786         PR target/45808
10787         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10788
10789 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10790
10791         * configure: Regenerate.
10792
10793 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10794
10795         PR driver/45731
10796         * gcc.c (asm_options): Correct spec matching --target-help.
10797
10798 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10799
10800         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10801         to gimple call error.
10802
10803 2011-02-12  Mike Stump  <mikestump@comcast.net>
10804
10805         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10806         comments in backslash regions.
10807
10808 2011-02-12  Mike Stump  <mikestump@comcast.net>
10809             Jakub Jelinek  <jakub@redhat.com>
10810             Iain Sandoe  <iains@gcc.gnu.org>
10811
10812         PR target/47324
10813         * dwarf2out.c (output_cfa_loc): When required, apply the
10814         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10815         (output_loc_sequence): Likewise.
10816         (output_loc_operands_raw): Likewise.
10817         (output_loc_sequence_raw): Likewise.
10818         (output_cfa_loc): Likewise.
10819         (output_loc_list): Suppress register number adjustment when
10820         calling output_loc_sequence()
10821         (output_die): Likewise.
10822
10823 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10824
10825         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10826         Remove macros.
10827         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10828         xtensa_memory_move_cost): New functions.
10829         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10830
10831 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10832
10833         PR lto/47225
10834         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10835         in the current directory.
10836         * configure: Rebuilt.
10837
10838 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10839
10840         * config/darwin.c (darwin_override_options): Add a hunk missed
10841         from the commit of r168571.  Trim comment line lengths and
10842         correct indents of the preceding block.
10843
10844 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10845
10846         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10847         the switch.
10848
10849 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10850
10851         * common.opt (nostartfiles): New Driver option.
10852
10853 2011-02-11  Xinliang David Li  <davidxl@google.com>
10854
10855         PR tree-optimization/47707
10856         * tree-chrec.c (convert_affine_scev): Keep type precision.
10857
10858 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10859
10860         PR tree-optimization/47420
10861         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10862
10863 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10864
10865         PR rtl-optimization/47614
10866         * rtl.h (check_for_inc_dec): Declare.
10867         * dse.c (check_for_inc_dec): Externalize...
10868         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10869         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10870
10871 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10872
10873         PR driver/47678
10874         * gcc.c (main): Do not compile inputs if there were errors in
10875         option handling.
10876         * opts-common.c (read_cmdline_option): Check for wrong language
10877         after other error checks.
10878
10879 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10880
10881         * cgraph.c: Fix comment typos.
10882         * cgraph.h: Likewise.
10883         * cgraphunit.c: Likewise.
10884         * ipa-cp.c: Likewise.
10885         * ipa-inline.c: Likewise.
10886         * ipa-prop.c: Likewise.
10887         * ipa-pure-const.c: Likewise.
10888         * ipa-ref.c: Likewise.
10889         * ipa-reference.c: Likewise.
10890
10891 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10892
10893         PR debug/47684
10894         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10895
10896 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10897
10898         PR testsuite/47400
10899         * doc/sourcebuild.texi (Require Support): Document
10900         dg-require-ascii-locale.
10901
10902 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10903
10904         * doc/lto.texi (Write summary): Fix missing parentheses.
10905
10906 2011-02-10  DJ Delorie  <dj@redhat.com>
10907
10908         * config/m32c/m32c.c (m32c_option_override): Disable
10909         -fcombine-stack-adjustments until flag value tracking and compare
10910         optimization can be rewritten.
10911
10912 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10913
10914         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10915         PROCESSOR_POWER7.
10916         (PROCESSOR_DEFAULT64): Likewise.
10917
10918 2011-02-10  Richard Henderson  <rth@redhat.com>
10919
10920         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10921         change from 2011-02-03.
10922         * config/rx/rx.c (flags_from_code): Likewise.
10923         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10924         is valid, n/pz otherwise.
10925         (rx_select_cc_mode): Return CCmode if Y is not zero.
10926
10927 2011-02-10  Richard Guenther  <rguenther@suse.de>
10928
10929         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10930
10931 2011-02-10  Richard Guenther  <rguenther@suse.de>
10932
10933         PR tree-optimization/47677
10934         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10935
10936 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10937
10938         PR target/47665
10939         * combine.c (make_compound_operation): Only change shifts into
10940         multiplication for SCALAR_INT_MODE_P.
10941
10942 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10943
10944         PR testsuite/47622
10945         Revert
10946         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10947         PR debug/42631
10948         * web.c (entry_register): Don't clobber the number of the
10949         first uninitialized reference in used[].
10950
10951 2011-02-09  Richard Guenther  <rguenther@suse.de>
10952
10953         PR tree-optimization/47664
10954         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10955         all edges again.
10956
10957 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10958
10959         PR target/46481
10960         PR target/47032
10961         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10962         PROCESSOR_POWER7.
10963         (PROCESSOR_DEFAULT64): Same.
10964         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10965
10966 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10967
10968         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10969
10970 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10971
10972         PR middle-end/45505
10973         * tree-sra.c (struct access): New flags grp_scalar_read and
10974         grp_scalar_write.  Changed description of assignment read and write
10975         flags.
10976         (dump_access): Dump new flags, reorder all of them.
10977         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10978         to detect multiple scalar reads.
10979         (analyze_access_subtree): Use the new scalar read write flags instead
10980         of the old flags.  Adjusted comments.
10981
10982 2011-02-08  DJ Delorie  <dj@redhat.com>
10983
10984         PR target/47548
10985         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10986         patterns.
10987
10988 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10989
10990         * config/m68k/uclinux.opt: New.
10991         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10992
10993 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10994
10995         * config/cris/elf.opt (sim): New Driver option.
10996
10997 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10998
10999         * config/xtensa/elf.opt: New.
11000         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11001
11002 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11003
11004         * config/vax/elf.opt: New.
11005         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11006
11007 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11008
11009         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11010
11011 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11012
11013         * config/gnu-user.opt: New.
11014         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11015         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11016         *-*-uclinux*): Use gnu-user.opt.
11017
11018 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11019
11020         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11021         * config/i386/gnu.h (CPP_SPEC): Likewise.
11022
11023 2011-02-08  Ian Lance Taylor  <iant@google.com>
11024
11025         * common.opt (fcx-limited-range): Add SetByCombined flag.
11026         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11027         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11028         (fassociative-math, freciprocal-math): Likewise.
11029         (funsafe-math-optimizations): Likewise.
11030         * opth-gen.awk: Handle SetByCombined.
11031         * optc-gen.awk: Likewise.
11032         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11033         (set_unsafe_math_optimizations_flags): Likewise.
11034         * doc/options.texi (Option properties): Document SetByCombined.
11035
11036 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11037
11038         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11039         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11040         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11041         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11042         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11043
11044 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11045
11046         PR tree-optimization/46834
11047         PR tree-optimization/46994
11048         PR tree-optimization/46995
11049         * graphite-sese-to-poly.c (used_outside_reduction): New.
11050         (detect_commutative_reduction): Call used_outside_reduction.
11051         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11052         translate_scalar_reduction_to_array only when at least one
11053         loop-phi/close-phi tuple has been detected.
11054
11055 2011-02-08  Richard Guenther  <rguenther@suse.de>
11056
11057         PR middle-end/47639
11058         * tree-vect-generic.c (expand_vector_operations_1): Update
11059         stmts here ...
11060         (expand_vector_operations): ... not here.  Cleanup EH info
11061         and the CFG if required.
11062
11063 2011-02-08  Richard Guenther  <rguenther@suse.de>
11064
11065         PR tree-optimization/47641
11066         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11067         require type compatibility.
11068
11069 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11070
11071         * gimple-low.c (lower_function_body): Don't remove the location of
11072         the return statement here.
11073         (lower_gimple_return): Do it here instead but only if the return
11074         statement is actually used twice.
11075
11076 2011-02-08  Richard Guenther  <rguenther@suse.de>
11077
11078         PR tree-optimization/47632
11079         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11080         unused up_to_stmt parameter, return whether cfg-cleanup is
11081         necessary, remove EH info properly.
11082         (forward_propagate_into_gimple_cond): Adjust caller.
11083         (forward_propagate_into_cond): Likewise.
11084         (forward_propagate_comparison): Likewise.
11085         (tree_ssa_forward_propagate_single_use_vars): Make
11086         forward_propagate_comparison case similar to the two others.
11087
11088 2011-02-08  Nick Clifton  <nickc@redhat.com>
11089
11090         * config/mn10300/mn10300.opt (mliw): New command line option.
11091         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11092         (liw_bundling): New automaton.
11093         (liw): New attribute.
11094         (liw_op): New attribute.
11095         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11096         (movsi_internal): Add LIW attributes.
11097         (andsi3): Likewise.
11098         (iorsi3): Likewise.
11099         (xorsi3): Likewise.
11100         (addsi3): Separate register and immediate alternatives.
11101         Add LIW attributes.
11102         (subsi3): Likewise.
11103         (cmpsi): Likewise.
11104         (aslsi3): Likewise.
11105         (lshrsi3): Likewise.
11106         (ashrsi3): Likewise.
11107         (liw): New pattern.
11108         * config/mn10300/mn10300.c (liw_op_names): New
11109         (mn10300_print_operand): Handle 'W' operand descriptor.
11110         (extract_bundle): New function.
11111         (check_liw_constraints): New function.
11112         (liw_candidate): New function.
11113         (mn10300_bundle_liw): New function.
11114         (mn10300_reorg): New function.
11115         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11116         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11117         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11118         __LIW__ or __NO_LIW__.
11119         * doc/invoke.texi: Describe the -mliw command line option.
11120
11121 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11122
11123         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11124         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11125         pthread_mutex_unlock): Remove.
11126         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11127         * config/pa/t-pa64: Likewise.
11128         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11129         shared libc if not linking against libpthread.
11130         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11131
11132 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11133
11134         PR target/47558
11135         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11136         on 10.6 and later to ensure that we always use the unwinder from
11137         the system.  Only add -no_compact_unwind when tarteting darwin
11138         10.6 or later.
11139
11140 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11141
11142         PR target/46997
11143         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11144         (vec_interleave_lowv2sf): Ditto.
11145         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11146         (vec_extract_oddv2sf): Ditto.
11147
11148 2011-02-07  Mike Stump  <mikestump@comcast.net>
11149
11150         PR target/42333
11151         Add __ieee_divdc3 entry point.
11152         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11153         entry point.
11154         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11155         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11156         * config/darwin.c (darwin_rename_builtins): Add.
11157         * config/darwin-protos.h (darwin_rename_builtins): Add.
11158
11159 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11160
11161         PR target/47636
11162         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11163         for the condition.
11164
11165 2011-02-07  Mike Stump  <mikestump@comcast.net>
11166
11167         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11168
11169 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11170
11171         PR target/47534
11172         * config/avr/libgcc.S (exit): Move .endfunc
11173
11174 2011-02-07  Richard Guenther  <rguenther@suse.de>
11175
11176         PR tree-optimization/47615
11177         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11178         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11179         (run_scc_vn): Initialize it.
11180         (visit_reference_op_load): Use it.
11181         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11182
11183 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11184
11185         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11186         DImode trapping arithmetic libfuncs.
11187
11188 2011-02-07  Richard Guenther  <rguenther@suse.de>
11189
11190         PR tree-optimization/47621
11191         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11192         two duplicates ...
11193         (execute_update_addresses_taken): ... here.  Make it more
11194         conservative in what we accept.
11195
11196 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11197
11198         * config/sparc/freebsd.h (ASM_SPEC): Define.
11199         * config/sparc/vxworks.h (ASM_SPEC): Define.
11200
11201 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11202
11203         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11204
11205 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11206
11207         * doc/invoke.texi: Remove reference to compiler internals from
11208         user documentation.
11209
11210         * reg-notes.def: Remove REG_VALUE_PROFILE.
11211         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11212
11213 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11214
11215         PR middle-end/47610
11216         * varasm.c (default_section_type_flags): If decl is NULL,
11217         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11218
11219 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11220
11221         PR debug/42631
11222         * web.c (entry_register): Don't clobber the number of the
11223         first uninitialized reference in used[].
11224
11225 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11226
11227         PR tree-optimization/46194
11228         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11229         (build_classic_dist_vector_1): Do not represent classic distance
11230         vectors when the access functions are variating in different loops.
11231
11232 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11233
11234         * config/mips/iris6.opt: New.
11235         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11236
11237 2011-02-04  Richard Henderson  <rth@redhat.com>
11238             Steve Ellcey  <sje@cup.hp.com>
11239
11240         PR target/46997
11241         * config/ia64/predicates.md (mux1_brcst_element): New.
11242         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11243         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11244         (ia64_unpack_sign): New.
11245         (ia64_expand_unpack): Rewrite using new routines.
11246         (ia64_expand_widen_sum): Ditto.
11247         (ia64_expand_dot_prod_v8qi): Ditto.
11248         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11249         routines, add endian check.
11250         (pmpy2_even): Rename from pmpy2_r, add endian check.
11251         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11252         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11253         (vec_widen_smult_hi_v4hi): Ditto.
11254         (vec_widen_umult_lo_v4hi): Ditto.
11255         (vec_widen_umult_hi_v4hi): Ditto.
11256         (mulv2si3): Change endian checks.
11257         (sdot_prodv4hi): Rewrite with new calls.
11258         (udot_prodv4hi): New.
11259         (vec_pack_ssat_v4hi): Add endian check.
11260         (vec_pack_usat_v4hi): Ditto.
11261         (vec_pack_ssat_v2si): Ditto.
11262         (max1_even): Rename from max1_r, add endian check.
11263         (max1_odd): Rename from max1_l, add endian check.
11264         (*mux1_rev): Format change.
11265         (*mux1_mix): Ditto.
11266         (*mux1_shuf): Ditto.
11267         (*mux1_alt): Ditto.
11268         (*mux1_brcst_v8qi): Use new predicate.
11269         (vec_extract_evenv8qi): Remove endian check.
11270         (vec_extract_oddv8qi): Ditto.
11271         (vec_interleave_lowv4hi): Format change.
11272         (vec_interleave_highv4hi): Ditto.
11273         (mix2_even): Rename from mix2_r, add endian check.
11274         (mix2_odd): Rename from mux2_l, add endian check.
11275         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11276         (vec_extract_evenodd_helper): Format change.
11277         (vec_extract_evenv4hi): Remove endian check.
11278         (vec_extract_oddv4hi): Remove endian check.
11279         (vec_interleave_lowv2si): Format change.
11280         (vec_interleave_highv2si): Format change.
11281         (vec_initv2si): Remove endian check.
11282         (vecinit_v2si): Add endian check.
11283         (reduc_splus_v2sf): Add endian check.
11284         (reduc_smax_v2sf): Ditto.
11285         (reduc_smin_v2sf): Ditto.
11286         (vec_initv2sf): Remove endian check.
11287         (fpack): Add endian check.
11288         (fswap): Add endian check.
11289         (vec_interleave_highv2sf): Add endian check.
11290         (vec_interleave_lowv2sf): Add endian check.
11291         (fmix_lr): Add endian check.
11292         (vec_setv2sf): Format change.
11293         (*vec_extractv2sf_0_be): Use shift to extract operand.
11294         (*vec_extractv2sf_1_be): New.
11295         (vec_pack_trunc_v4hi): Add endian check.
11296         (vec_pack_trunc_v2si): Format change.
11297
11298 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11299
11300         PR inline-asm/23200
11301         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11302         do bb, locus and block comparison and disallow loads if it is not set.
11303         (stmt_is_replaceable_p): New function.
11304         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11305         callers.
11306         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11307         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11308         SSA_NAME_DEF_STMT.
11309         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11310
11311 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11312
11313         * config/rs6000/xilinx.opt: New.
11314         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11315
11316 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11317
11318         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11319
11320 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11321
11322         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11323         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11324         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11325         secondary_reload_info, xtensa_secondary_reload): Remove.
11326         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11327         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11328         (xtensa_preferred_reload_class): Make static. Change return and
11329         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11330         Use CONST_DOUBLE_P predicate.
11331         (xtensa_preferred_output_reload_class): New function.
11332         (xtensa_secondary_reload): Make static.
11333
11334 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11335
11336         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11337         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11338         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11339
11340 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11341
11342         PR middle-end/31490
11343         * output.h (SECTION_RELRO): Define.
11344         (SECTION_MACH_DEP): Adjust.
11345         (get_variable_section): New prototype.
11346         * varpool.c (varpool_finalize_named_section_flags): New function.
11347         (varpool_assemble_pending_decls): Call it.
11348         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11349         * cgraphunit.c (cgraph_output_in_order): Call
11350         varpool_finalize_named_section_flags.
11351         * varasm.c (get_section): Allow section flags conflicts between
11352         relro and read-only sections if the section hasn't been declared yet.
11353         Set SECTION_OVERRIDE after diagnosing section type conflict.
11354         (get_variable_section): No longer static.
11355         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11356         readonly sections that need relocations.
11357         (decl_readonly_section_1): New function.
11358         (decl_readonly_section): Use it.
11359
11360         Revert:
11361         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11362                     Steve Ellcey  <sje@cup.hp.com>
11363
11364         PR middle-end/31490
11365         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11366         if section attribute used.
11367
11368 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11369
11370         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11371         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11372         (darwin_init_sections): Remove assertion.
11373
11374 2011-02-03  Nick Clifton  <nickc@redhat.com>
11375
11376         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11377         lt and ge.
11378         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11379         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11380         instead of "n" and "pz".
11381         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11382         CC_FLAG_S.
11383
11384 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11385
11386         PR target/47312
11387         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11388         fma, expand FMA_EXPR as fma{,f,l} call.
11389
11390         PR lto/47274
11391         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11392         copy them into a unsigned char variable and pass address of it to
11393         lto_output_data_stream.
11394
11395         PR target/47564
11396         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11397         around backend_init_target and lang_dependent_init_target calls.
11398         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11399         (verify_cgraph_node): Don't call set_cfun here.  Use
11400         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11401         Set error_found for incorrectly represented calls to thunks.
11402
11403 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11404
11405         PR debug/43092
11406         PR rtl-optimization/43494
11407         * rtl.h (for_each_inc_dec_fn): New type.
11408         (for_each_inc_dec): Declare.
11409         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11410         (for_each_inc_dec_find_inc_dec): New fn.
11411         (for_each_inc_dec_find_mem): New fn.
11412         (for_each_inc_dec): New fn.
11413         * dse.c (struct insn_size): Remove.
11414         (replace_inc_dec, replace_inc_dec_mem): Remove.
11415         (emit_inc_dec_insn_before): New fn.
11416         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11417         (canon_address): Pass mem modes to cselib_lookup.
11418         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11419         (cselib_lookup_from_insn): Likewise.
11420         (cselib_subst_to_values): Likewise.
11421         * cselib.c (find_slot_memmode): New var.
11422         (cselib_find_slot): New fn.  Use it instead of
11423         htab_find_slot_with_hash everywhere.
11424         (entry_and_rtx_equal_p): Use find_slot_memmode.
11425         (autoinc_split): New fn.
11426         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11427         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11428         Deal with autoinc.  Special-case recursion into MEMs.
11429         (cselib_hash_rtx): Likewise.
11430         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11431         address and MEM modes.
11432         (cselib_subst_to_values): Add memmode, pass it on.
11433         Deal with autoinc.
11434         (cselib_lookup): Add memmode argument, pass it on.
11435         (cselib_lookup_from_insn): Add memmode.
11436         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11437         (struct cselib_record_autoinc_data): New.
11438         (cselib_record_autoinc_cb): New fn.
11439         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11440         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11441         (cselib_process_insn): ... here.
11442         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11443         to cselib_lookup.
11444         (add_uses): Likewise, also to cselib_subst_to_values.
11445         (add_stores): Likewise.
11446         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11447         cselib_subst_to_values.
11448         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11449         * gcse.c (do_local_cprop): Adjusted.
11450         * postreload.c (reload_cse_simplify_set): Adjusted.
11451         (reload_cse_simplify_operands): Adjusted.
11452         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11453
11454 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11455
11456         PR tree-optimization/45122
11457         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11458         unsafe assumptions when there's more than one loop exit.
11459
11460 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11461
11462         PR target/47272
11463         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11464         Document using vector double with the load/store builtins, and
11465         that the load/store builtins always use Altivec instructions.
11466
11467         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11468         to use altivec memory instructions, even on VSX.
11469         (vector_altivec_store_<mode>): Ditto.
11470
11471         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11472         function.
11473
11474         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11475         V2DF, V2DI support to load/store overloaded builtins.
11476
11477         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11478         altivec load/store builtins for V2DF/V2DI types.
11479
11480         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11481         set avoid indexed addresses on power6 if -maltivec.
11482         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11483         vector_altivec_load/vector_altivec_store builtins.
11484         (altivec_expand_st_builtin): Ditto.
11485         (altivec_expand_builtin): Add VSX memory builtins.
11486         (rs6000_init_builtins): Add V2DI types to internal types.
11487         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11488         load/store builtins.
11489         (rs6000_address_for_altivec): Insure memory address is appropriate
11490         for Altivec.
11491
11492         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11493         vec_vsx_ld and vec_vsx_st.
11494         (vsx_store_<mode>): Ditto.
11495
11496         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11497         variables to hold long long types for VSX vector memory builtins.
11498         (RS6000_BTI_unsigned_long_long): Ditto.
11499         (long_long_integer_type_internal_node): Ditti.
11500         (long_long_unsigned_type_internal_node): Ditti.
11501
11502         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11503         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11504         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11505
11506         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11507         short cuts.
11508         (vec_vsx_st): Ditto.
11509
11510 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11511
11512         * config/pa/pa-hpux10.opt: New.
11513         * config/hpux11.opt (pthread): New Driver option.
11514         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11515         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11516
11517 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11518
11519         * config/ia64/vms.opt: New.
11520         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11521
11522 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11523
11524         PR target/47580
11525         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11526         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11527         generator functions.
11528         (vsx_floatuns<VSi><mode>2): Ditto.
11529         (vsx_fix_trunc<mode><VSi>2): Ditto.
11530         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11531
11532 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11533
11534         * config/i386/djgpp.opt (posix): New Driver option.
11535
11536 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11537
11538         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11539         Move to the unsupported targets list.
11540
11541 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11542
11543         PR rtl-optimization/47525
11544         * df-scan.c: Update copyright years.
11545         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11546         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11547
11548 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11549
11550         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11551         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11552         (ASM_OUTPUT_ASCII): Remove.
11553         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11554
11555 2011-02-02  Jeff Law  <law@redhat.com>
11556
11557         PR middle-end/47543
11558         * reload.c (find_reloads_address): Handle reg+d address where both
11559         components are invalid by reloading the entire address.
11560
11561 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11562             Richard Guenther  <rguenther@suse.de>
11563
11564         PR tree-optimization/40979
11565         PR bootstrap/47044
11566         * passes.c (init_optimization_passes): After LIM call copy_prop
11567         and DCE to clean up.
11568         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11569
11570 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11571
11572         PR tree-optimization/47576
11573         PR tree-optimization/47555
11574         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11575         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11576         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11577         * tree-scalar-evolution.c (follow_ssa_edge): Use
11578         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11579
11580 2011-02-02  Richard Guenther  <rguenther@suse.de>
11581
11582         PR tree-optimization/47566
11583         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11584
11585 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11586
11587         PR debug/47106
11588         PR debug/47402
11589         * tree-inline.c (declare_return_variable): Remove unused caller
11590         variable.
11591
11592         PR debug/47106
11593         PR debug/47402
11594         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11595         * cfgexpand.c (account_used_vars_for_block): Use them.
11596         * tree-nrv.c (tree_nrv): Likewise.
11597         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11598         (dump_scope_block): Likewise.
11599         (remove_unused_locals): Likewise.
11600
11601         PR debug/47106
11602         PR debug/47402
11603         * tree-inline.c (declare_return_variable): Add result decl to
11604         local decls only once.
11605         * gimple-low.c (record_vars_into): Mark newly-created variables
11606         as referenced.
11607
11608 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11609
11610         PR debug/47498
11611         PR debug/47501
11612         PR debug/45136
11613         PR debug/45130
11614         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11615         debug insns.
11616         (no_real_insns_p, schedule_block, set_priorities): Drop special
11617         treatment of boundary debug insns.
11618         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11619         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11620         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11621         (BOUNDARY_DEBUG_INSN_P): Likewise.
11622         (SCHEDULE_DEBUG_INSN_P): Likewise.
11623         * sched-rgn.c (init_ready_list): Drop special treatment of
11624         boundary debug insns.
11625         * final.c (rest_of_clean_state): Clear notes' BB.
11626
11627 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11628
11629         * config/openbsd.opt (assert=): New Driver option.
11630
11631 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11632
11633         * config/i386/nto.opt: New.
11634         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11635
11636 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11637
11638         * config/i386/netware.opt: New.
11639         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11640
11641 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11642
11643         * config/interix.opt (posix): New Driver option.
11644
11645 2011-02-01  DJ Delorie  <dj@redhat.com>
11646
11647         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11648
11649         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11650         class for A0/A1.
11651
11652 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11653
11654         PR tree-optimization/47561
11655         * toplev.c (process_options): Print the Graphite flags.  Add
11656         flag_loop_flatten to the list of options requiring Graphite.
11657
11658 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11659
11660         * config/i386/cygming.opt (posix): New Driver option.
11661
11662 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11663
11664         * config/arm/vxworks.opt: New.
11665         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11666
11667 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * config/alpha/elf.opt: New.
11670         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11671         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11672
11673 2011-02-01  Richard Guenther  <rguenther@suse.de>
11674
11675         PR tree-optimization/47559
11676         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11677         store-motion on references that can throw.
11678
11679 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11680
11681         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11682         * tree-pass.h (TDF_CSELIB): New macro.
11683         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11684         cselib_lookup): Check for it rather than for TDF_DETAILS.
11685
11686 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11687
11688         PR driver/47547
11689         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11690         is HOST_BIT_BUCKET.
11691
11692         * opts.c (finish_options): Don't add x_aux_base_name if it is
11693         HOST_BIT_BUCKET.
11694
11695 2011-02-01  Richard Guenther  <rguenther@suse.de>
11696
11697         PR tree-optimization/47555
11698         Revert
11699         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11700
11701         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11702
11703 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11704
11705         PR gcc/46692
11706         * config/lm32/t-lm32: Add multilib for all CPU options.
11707
11708 2011-02-01  Richard Guenther  <rguenther@suse.de>
11709
11710         PR tree-optimization/47541
11711         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11712         sure to have a field at offset zero.
11713
11714 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * config/arc/arc.opt (EB, EL): New Driver options.
11717
11718 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11719
11720         * config/alpha/osf5.opt: New.
11721         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11722
11723 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11724
11725         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11726
11727 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11728
11729         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11730         -floop-interchange.
11731         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11732         is an alias of -floop-interchange and that it requires the
11733         Graphite infrastructure.
11734         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11735         flag_loop_interchange based on the value of flag_tree_loop_linear.
11736
11737 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11738             Richard Guenther  <rguenther@suse.de>
11739
11740         PR tree-optimization/47538
11741         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11742         type instead of r1type, except for comparisons.  For right
11743         shifts and comparisons punt if there are mismatches in
11744         sizetype vs. non-sizetype types.
11745
11746 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11747
11748         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11749         avx_runtime.
11750
11751 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11752
11753         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11754         version number.
11755         * configure: Regenerate.
11756
11757 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11758
11759         * configure.ac (gcc_cv_ld_static_option): Define.
11760         (gcc_cv_ld_dynamic_option): Define.
11761         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11762         instead.
11763         (HAVE_LD_STATIC_DYNAMIC): Update message.
11764         (LD_STATIC_OPTION): Define.
11765         (LD_DYNAMIC_OPTION): Define.
11766         * configure: Regenerate.
11767         * config.in: Regenerate.
11768         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11769         HAVE_LD_STATIC_DYNAMIC]: Use them.
11770
11771 2011-01-31  Nick Clifton  <nickc@redhat.com>
11772
11773         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11774         registers inside interrupt handlers if the handler is not a leaf
11775         function.
11776
11777 2011-01-31  Nick Clifton  <nickc@redhat.com>
11778
11779         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11780         reg_renumber returning an INVALID_REGNUM.
11781
11782 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11783
11784         PR libgcj/44341
11785         * doc/install.texi: Document host options discarded when cross
11786         configuring target libraries.
11787
11788 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11789
11790         Reverted:
11791         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11792         PR debug/45136
11793         PR debug/45130
11794         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11795         debug insns.
11796         (no_real_insns_p, schedule_block, set_priorities): Drop special
11797         treatment of boundary debug insns.
11798         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11799         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11800         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11801         (BOUNDARY_DEBUG_INSN_P): Likewise.
11802         (SCHEDULE_DEBUG_INSN_P): Likewise.
11803         * sched-rgn.c (init_ready_list): Drop special treatment of
11804         boundary debug insns.
11805         * final.c (rest_of_clean-state): Clear notes' BB.
11806
11807 2011-01-31  Alan Modra  <amodra@gmail.com>
11808
11809         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11810         toc relative expressions as we do in print_operand_address.
11811
11812 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11813
11814         * doc/extend.texi: Follow spelling conventions.
11815         * doc/invoke.texi: Fix a typo.
11816
11817 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11818
11819         * config/hpux11.opt: New.
11820         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11821         ia64*-*-hpux*): Use hpux11.opt.
11822
11823 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11824
11825         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11826         to tmake_file.
11827
11828 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11829
11830         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11831         support sites.
11832
11833 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11834
11835         * doc/install.texi (Binaries): Remove outdated reference for
11836         Motorola 68HC11/68HC12 downloads.
11837
11838 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11839
11840         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11841         Drepper's paper.
11842
11843 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11844
11845         PR bootstrap/47147
11846         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11847         used by NetBSD.
11848
11849 2011-01-28  Ahmad Sharif  <asharif@google.com>
11850
11851         * value-prof.c (check_counter): Corrected error message.
11852
11853 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11854
11855         * config/arm/arm.c (arm_legitimize_reload_address): New.
11856         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11857         arm_legitimize_reload_address.
11858         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11859
11860 2011-01-28  Ian Lance Taylor  <iant@google.com>
11861
11862         * godump.c (go_define): Ignore macros whose definitions include
11863         two adjacent operands.
11864
11865 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11866
11867         PR target/42894
11868         * varasm.c (force_const_mem): Store copy of x in desc->constant
11869         instead of x itself.
11870         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11871         itself into REG_EQUAL note.
11872
11873 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11874
11875         * config/freebsd.opt (posix, rdynamic): New Driver options.
11876
11877 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11878
11879         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11880         -Bstatic/-Bdynamic.
11881         * configure: Regenerate.
11882
11883 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11886         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11887
11888 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11889
11890         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11891         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11892         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11893         (s390_preferred_reload_class): Make static. Change return and
11894         'rclass' argument type to reg_class_t.
11895
11896 2011-01-27  Jan Hubicka  <jh@suse.cz>
11897
11898         PR middle-end/46949
11899         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11900         (process_function_and_variable_attributes): Check defined weakrefs.
11901
11902 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11903
11904         PR tree-optimization/47228
11905         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11906         build_ref_for_offset.
11907
11908 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11909
11910         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11911
11912 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11913
11914         PR rtl-optimization/46856
11915         * postreload.c (reload_combine_recognize_const_pattern): Do not
11916         separate cc0 setter and user on cc0 targets.
11917
11918 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11919
11920         PR c/43082
11921         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11922         passed a VOID_TYPE expression, immediately emit an error and
11923         return error_mark_node.
11924
11925 2011-01-26  Jeff Law  <law@redhat.com>
11926
11927         PR rtl-optimization/47464
11928         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11929         rather than may_trap_p as needed.
11930
11931 2011-01-26  DJ Delorie  <dj@redhat.com>
11932
11933         PR rtl-optimization/46878
11934         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11935         setter/user dependency as well.
11936
11937 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11938
11939         PR rtl-optimization/44469
11940         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11941         after removing trivially dead basic blocks.
11942
11943 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11944
11945         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11946         * config/frv/frv.h (LINK_SPEC): Likewise.
11947         * config/i386/netware.h (LINK_SPEC): Likewise.
11948         * config/m68k/linux.h (ASM_SPEC): Likewise.
11949         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11950         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11951         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11952         * config/sparc/linux.h (ASM_SPEC): Likewise.
11953         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11954         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11955
11956 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11957
11958         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11959         * config/frv/frv.h (ASM_SPEC): Likewise.
11960         * config/m68k/linux.h (ASM_SPEC): Likewise.
11961         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11962         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11963         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11964         * config/sparc/linux.h (ASM_SPEC): Likewise.
11965         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11966         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11967
11968 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11969
11970         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11971         * config/frv/frv.h (LINK_SPEC): Likewise.
11972         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11973
11974 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11975
11976         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11977         * config/frv/frv.h (ASM_SPEC): Likewise.
11978         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11979         * config/m68k/linux.h (ASM_SPEC): Likewise.
11980         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11981         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11982         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11983         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11984         * config/sparc/linux.h (ASM_SPEC): Likewise.
11985         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11986         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11987         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11988
11989 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11990
11991         PR target/46997
11992         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11993         (*mux2): Ditto.
11994         (vec_extract_evenodd_help): Ditto.
11995         (vec_extract_evenv4hi): Ditto.
11996         (vec_extract_oddv4hi): Ditto.
11997         (vec_interleave_lowv2si): Ditto.
11998         (vec_interleave_highv2si): Ditto.
11999         (vec_extract_evenv2si): Ditto.
12000         (vec_extract_oddv2si: Ditto.
12001         (vec_pack_trunc_v2si): Ditto.
12002
12003 2011-01-22  Jan Hubicka  <jh@suse.cz>
12004
12005         PR target/47237
12006         * cgraph.h (cgraph_local_info): New field can_change_signature.
12007         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12008         signature can change.
12009         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12010         can change.
12011         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12012         (cgraph_function_versioning): We can not change signature of functions
12013         that don't allow that.
12014         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12015         (lto_input_node): Likewise.
12016         * ipa-inline.c (compute_inline_parameters): Compute
12017         local.can_change_signature.
12018         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12019         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12020         functions that can not change signature.
12021         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12022         init_cumulative_args): Do not use local calling conventions
12023         for functions that can not change signature.
12024
12025 2011-01-22  Jan Hubicka  <jh@suse.cz>
12026
12027         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12028
12029 2011-01-26  Richard Guenther  <rguenther@suse.de>
12030
12031         PR tree-optimization/47190
12032         * cgraphunit.c (process_common_attributes): New function.
12033         (process_function_and_variable_attributes): Use it.
12034
12035 2011-01-26  Richard Guenther  <rguenther@suse.de>
12036
12037         PR lto/47423
12038         * cgraphbuild.c (record_eh_tables): Record reference to personality
12039         function.
12040
12041 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12042
12043         PR debug/45454
12044         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12045         non-debug insns from moving up.
12046
12047 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12048
12049         PR target/40125
12050         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12051         t-dlldir{,-x} fragment for build and add it to tmake_file.
12052         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12053         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12054         * config/i386/t-dlldir: New file.
12055         (SHLIB_DLLDIR): Define.
12056         * config/i386/t-dlldir-x: New file.
12057         (SHLIB_DLLDIR): Define.
12058         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12059         (SHLIB_INSTALL): Use it.
12060
12061 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12062
12063         PR target/47246
12064         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12065         lower bound of the allowed Thumb-2 coprocessor load/store
12066         index range to -256. Add explaining comment.
12067
12068 2011-01-25  Ian Lance Taylor  <iant@google.com>
12069
12070         * godump.c (go_define): Improve lexing of macro expansion to only
12071         accept expressions which match Go spec.
12072
12073 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12074
12075         PR c++/43601
12076         * tree.c (handle_dll_attribute): Handle it.
12077         * doc/extend.texi (@item dllexport): Mention it.
12078         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12079
12080 2011-01-25  Ian Lance Taylor  <iant@google.com>
12081
12082         PR tree-optimization/26854
12083         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12084         (decl_jump_unsafe): Move higher in file, with no other change.
12085         (bind): Set has_jump_unsafe_decl if appropriate.
12086         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12087         (check_earlier_gotos): Likewise.
12088         (c_check_switch_jump_warnings): Likewise.
12089
12090 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12091
12092         * doc/invoke.texi (Warning Options): Add missing hyphen.
12093         (-fprofile-dir): Minor grammatical fixes.
12094         (-fbranch-probabilities): Likewise.
12095
12096 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12097
12098         PR debug/45136
12099         PR debug/45130
12100         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12101         debug insns.
12102         (no_real_insns_p, schedule_block, set_priorities): Drop special
12103         treatment of boundary debug insns.
12104         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12105         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12106         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12107         (BOUNDARY_DEBUG_INSN_P): Likewise.
12108         (SCHEDULE_DEBUG_INSN_P): Likewise.
12109         * sched-rgn.c (init_ready_list): Drop special treatment of
12110         boundary debug insns.
12111         * final.c (rest_of_clean-state): Clear notes' BB.
12112
12113 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12114
12115         * Makefile.in (LAMBDA_H): Removed.
12116         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12117         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12118         lambda-trans.o, and tree-loop-linear.o.
12119         (lto-symtab.o): Remove dependence on LAMBDA_H.
12120         (tree-loop-linear.o): Remove rule.
12121         (lambda-mat.o): Same.
12122         (lambda-trans.o): Same.
12123         (lambda-code.o): Same.
12124         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12125         (tree-vect-slp.o): Same.
12126         * hwint.h (gcd): Moved here.
12127         (least_common_multiple): Same.
12128         * lambda-code.c: Removed.
12129         * lambda-mat.c: Removed.
12130         * lambda-trans.c: Removed.
12131         * lambda.h: Removed.
12132         * tree-loop-linear.c: Removed.
12133         * lto-symtab.c: Do not include lambda.h.
12134         * omega.c (gcd): Removed.
12135         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12136         * tree-data-ref.c (print_lambda_vector): Moved here.
12137         (lambda_vector_copy): Same.
12138         (lambda_matrix_copy): Same.
12139         (lambda_matrix_id): Same.
12140         (lambda_vector_first_nz): Same.
12141         (lambda_matrix_row_add): Same.
12142         (lambda_matrix_row_exchange): Same.
12143         (lambda_vector_mult_const): Same.
12144         (lambda_vector_negate): Same.
12145         (lambda_matrix_row_negate): Same.
12146         (lambda_vector_equal): Same.
12147         (lambda_matrix_right_hermite): Same.
12148         * tree-data-ref.h: Do not include lambda.h.
12149         (lambda_vector): Moved here.
12150         (lambda_matrix): Same.
12151         (dependence_level): Same.
12152         (lambda_transform_legal_p): Removed declaration.
12153         (lambda_collect_parameters): Same.
12154         (lambda_compute_access_matrices): Same.
12155         (lambda_vector_gcd): Same.
12156         (lambda_vector_new): Same.
12157         (lambda_vector_clear): Same.
12158         (lambda_vector_lexico_pos): Same.
12159         (lambda_vector_zerop): Same.
12160         (lambda_matrix_new): Same.
12161         * tree-flow.h (least_common_multiple): Removed declaration.
12162         * tree-parloops.c (lambda_trans_matrix): Moved here.
12163         (LTM_MATRIX): Same.
12164         (LTM_ROWSIZE): Same.
12165         (LTM_COLSIZE): Same.
12166         (LTM_DENOMINATOR): Same.
12167         (lambda_trans_matrix_new): Same.
12168         (lambda_matrix_vector_mult): Same.
12169         (lambda_transform_legal_p): Same.
12170         * tree-pass.h (pass_linear_transform): Removed declaration.
12171         * tree-ssa-loop.c (tree_linear_transform): Removed.
12172         (gate_tree_linear_transform): Removed.
12173         (pass_linear_transform): Removed.
12174         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12175         flag_loop_interchange.
12176
12177 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12178
12179         PR tree-optimization/47265
12180         PR tree-optimization/47443
12181         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12182         if name still has some uses.
12183
12184 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12185
12186         PR tree-optimization/47382
12187         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12188         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12189
12190 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12191
12192         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12193         sjlj_except_unwind_info.
12194
12195 2011-01-25  Richard Guenther  <rguenther@suse.de>
12196
12197         PR tree-optimization/47426
12198         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12199         visible functions results escape.
12200
12201 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12202
12203         PR target/45701
12204         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12205         (arm_get_frame_offsets): Use it.
12206
12207 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12208             Jakub Jelinek  <jakub@redhat.com>
12209
12210         PR tree-optimization/47271
12211         * tree-if-conv.c (bb_postdominates_preds): New.
12212         (if_convertible_bb_p): Call bb_postdominates_preds.
12213         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12214         (predicate_scalar_phi): Call bb_postdominates_preds.
12215
12216 2011-01-25  Nick Clifton  <nickc@redhat.com>
12217
12218         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12219         * config/rx/rx.c (rx_function_value): Likewise.
12220         (rx_promote_function_mode): Likewise.
12221         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12222         in order to make it legitimate.
12223         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12224         make sure that the first operand is the same as the result register.
12225         (addsi3_unspec): Delete.
12226         (subdi3): Do not accept immediate operands.
12227         (subdi3_internal): Likewise.
12228
12229 2011-01-25  Jeff Law  <law@redhat.com>
12230
12231         PR rtl-optimization/37273
12232         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12233         handle them like argument loads from stack slots.  Do not double
12234         count memory for memory constants and argument loads from stack slots.
12235
12236 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12237
12238         PR tree-optimization/47427
12239         PR tree-optimization/47428
12240         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12241         coalesce if the new root var would be TREE_READONLY.
12242
12243 2011-01-25  Richard Guenther  <rguenther@suse.de>
12244
12245         PR middle-end/47414
12246         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12247         correct type for TBAA.
12248
12249 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12250
12251         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12252         (close_phi_written_to_memory): Call for_each_index with
12253         dr_indices_valid_in_loop.
12254
12255 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12256
12257         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12258         when it is initialized.
12259
12260 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12261
12262         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12263         call to graphite_find_data_references_in_stmt.
12264         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12265         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12266         call to graphite_find_data_references_in_stmt.
12267         (analyze_drs_in_stmts): Same.
12268         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12269         in which the scalar analysis of indices is performed.
12270         (create_data_ref): Same.  Update call to dr_analyze_indices.
12271         (find_data_references_in_stmt): Update call to create_data_ref.
12272         (graphite_find_data_references_in_stmt): Same.
12273         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12274         declaration.
12275         (create_data_ref): Same.
12276         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12277         call to create_data_ref.
12278
12279 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12280
12281         * graphite-sese-to-poly.c (build_poly_scop): Move
12282         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12283
12284 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12285
12286         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12287         VAR_DECL, PARM_DECL, and RESULT_DECL.
12288
12289 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12290
12291         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12292         in a reduction PBB.
12293         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12294         that have already been marked as PBB_IS_REDUCTION.
12295
12296 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12297
12298         * graphite-scop-detection.c (same_close_phi_node): New.
12299         (remove_duplicate_close_phi): New.
12300         (make_close_phi_nodes_unique): New.
12301         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12302
12303 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12304
12305         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12306         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12307         of both data references to be the same.
12308
12309 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12310
12311         * graphite-dependences.c (build_lexicographical_constraint): Remove
12312         the gdim parameter.
12313         (build_lexicographical_constraint): Adjust call to
12314         ppl_powerset_is_empty.
12315         (dependence_polyhedron): Same.
12316         (graphite_legal_transform_dr): Same.
12317         (graphite_carried_dependence_level_k): Same.
12318         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12319         parameter.
12320         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12321
12322 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12323
12324         * graphite-sese-to-poly.c
12325         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12326         (close_phi_written_to_memory): New.
12327         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12328         and unshare_expr.
12329
12330 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12331
12332         * doc/install.texi: Update the expected version number of PPL to 0.11.
12333         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12334         #if PPL_VERSION_MINOR < 11.
12335
12336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12337
12338         * graphite-dependences.c: Include graphite-cloog-util.h.
12339         (new_poly_ddr): Inlined into dependence_polyhedron.
12340         (free_poly_ddr): Moved close by new_poly_ddr.
12341         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12342         Early return NULL when ppl_powerset_is_empty returns true.
12343         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12344         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12345         (graphite_legal_transform_dr): Call new_poly_ddr.
12346         (graphite_carried_dependence_level_k): Same.
12347         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12348         (dot_transformed_deps_stmt_1): Removed.
12349         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12350         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12351         (dot_deps_1): Call dot_deps_2.
12352         * Makefile.in (graphite-dependences.o): Add missing dependence on
12353         graphite-cloog-util.h.
12354
12355 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12356
12357         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12358         (build_lexicographical_constraint): Same.
12359         (dependence_polyhedron_1): Same.
12360         (graphite_legal_transform_dr): Same.
12361         (graphite_carried_dependence_level_k): Same.
12362         * graphite-ppl.c (ppl_powerset_is_empty): New.
12363         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12364         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12365
12366 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12367
12368         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12369         the "a followed by b" relation and document it.
12370
12371 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12372
12373         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12374         iteration when the bag of constraints is empty.
12375
12376 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12377
12378         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12379
12380 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12381
12382         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12383         nest and two loop depths as parameters.
12384         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12385         lst_perfect_nestify.
12386
12387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12388
12389         * graphite-dependences.c (print_pddr): Call
12390         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12391
12392 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12393
12394         * graphite-ppl.c (debug_gmp_value): New.
12395         * graphite-ppl.h (debug_gmp_value): Declared.
12396
12397 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12398
12399         * doc/install.texi: Document availability of cloog-0.16.
12400
12401 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12402
12403         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12404         invalid postdominance info.
12405
12406 2011-01-24  Jan Hubicka  <jh@suse.cz>
12407
12408         PR c/21659
12409         * doc/extend.texi (weak pragma): Drop claim that it must
12410         appear before definition.
12411         * varasm.c (merge_weak, declare_weak): Only sanity check
12412         that DECL is not output at a time it is declared weak.
12413
12414 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12415
12416         * machmode.def: Fixed comments.
12417
12418 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12419
12420         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12421
12422 2011-01-24  Paul Koning  <ni1d@arrl.net>
12423
12424         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12425         WORDS_BIG_ENDIAN.
12426
12427 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12428
12429         PR target/46519
12430         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12431         (block_info): Add scanned and prev.
12432         (move_or_delete_vzeroupper_2): Return if the basic block
12433         has been scanned and the upper 128bit state is unchanged
12434         from the last scan.
12435         (move_or_delete_vzeroupper_1): Return true if the exit
12436         state is changed.
12437         (move_or_delete_vzeroupper): Visit basic blocks using the
12438         work-list based algorithm based on vt_find_locations in
12439         var-tracking.c.
12440
12441         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12442
12443 2011-01-24  Nick Clifton  <nickc@redhat.com>
12444
12445         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12446         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12447         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12448         then define __v850e1__.
12449         * doc/invoke.texi: Document -mv850es.
12450
12451 2011-01-24  Richard Henderson  <rth@redhat.com>
12452
12453         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12454         compound unordered comparisons.
12455         * config/rx/rx.c (rx_split_fp_compare): Remove.
12456         * config/rx/rx-protos.h: Update.
12457         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12458         (cbranchsf4): Don't call rx_split_fp_compare.
12459         (*cbranchsf4): Use rx_split_cbranch.
12460         (*cmpsf): Don't accept "i" constraint.
12461         (*conditional_branch): Only valid after reload.
12462         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12463
12464 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12465
12466         PR target/47385
12467         * config/rs6000/altivec.md (vector constant splitters): Add
12468         support for creating vector single precision constants if -mvsx is
12469         used and we would create the constant using Altivec primitives.
12470
12471 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12472             Richard Sandiford  <rdsandiford@googlemail.com>
12473
12474         PR rtl-optimization/47166
12475         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12476         mechanism for PRE_MODIFY and POST_MODIFY.
12477         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12478         reloadreg.
12479
12480 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12481
12482         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12483
12484 2011-01-22  Jan Hubicka  <jh@suse.cz>
12485
12486         PR lto/47333
12487         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12488
12489 2011-01-22  Jan Hubicka  <jh@suse.cz>
12490
12491         PR tree-optimization/43884
12492         PR lto/44334
12493         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12494         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12495
12496 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12497
12498         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12499         * config/s390/s390.c (s390_register_move_cost,
12500         s390_memory_move_cost): New.
12501         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12502
12503 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12504
12505         PR middle-end/47401
12506         * except.c (sjlj_assign_call_site_values): Move setting the
12507         crtl->uses_eh_lsda flag to ...
12508         (sjlj_mark_call_sites): ... here.
12509         (sjlj_emit_function_enter): Support NULL dispatch label.
12510         (sjlj_build_landing_pads): In a function with no landing pads
12511         that still has must-not-throw regions, generate code to register
12512         a personality function with empty LSDA.
12513
12514 2011-01-21  Richard Henderson  <rth@redhat.com>
12515
12516         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12517
12518         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12519
12520         * compare-elim.c: New file.
12521         * Makefile.in (OBJS-common): Add it.
12522         (compare-elim.o): New.
12523         * common.opt (fcompare-elim): New.
12524         * opts.c (default_options_table): Add OPT_fcompare_elim.
12525         * tree-pass.h (pass_compare_elim_after_reload): New.
12526         * passes.c (init_optimization_passes): Add it.
12527         * recog.h: Protect against re-inclusion.
12528         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12529         * doc/invoke.texi (-fcompare-elim): Document it.
12530         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12531         * doc/tm.texi: Rebuild.
12532
12533 2011-01-22  Nick Clifton  <nickc@redhat.com>
12534
12535         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12536         rx_split_fp_compare.
12537
12538 2011-01-22  Nick Clifton  <nickc@redhat.com>
12539
12540         * config/rx/rx.md (UNSPEC_CONST): New.
12541         (deallocate_and_return): Wrap the amount popped off the stack in
12542         an UNSPEC_CONST in order to stop it being rejected by
12543         -mmax-constant-size.
12544         (pop_and_return): Add a "(return)" rtx.
12545         (call): Drop the immediate operand.
12546         (call_internal): Likewise.
12547         (call_value): Likewise.
12548         (call_value_internal): Likewise.
12549         (sibcall_internal): Likewise.
12550         (sibcall_value_internal): Likewise.
12551         (sibcall): Likewise.  Generate an explicit call using
12552         sibcall_internal.
12553         (sibcall_value): Likewise.
12554         (mov<>): FAIL if a constant operand is not legitimate.
12555         (addsi3_unpsec): New pattern.
12556
12557         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12558         (ok_for_max_constant): New function.
12559         (gen_safe_add): New function.
12560         (rx_expand_prologue): Use gen_safe_add.
12561         (rx_expand_epilogue): Likewise.
12562         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12563         UNSPEC CONSTs.
12564
12565 2011-01-21  Jeff Law  <law@redhat.com>
12566
12567         PR tree-optimization/47053
12568         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12569         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12570         statements are deleted.
12571         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12572         is nonempty, then purge dead edges and cleanup the CFG.
12573
12574 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12575
12576         PR debug/47402
12577         Temporarily revert:
12578         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12579         PR debug/47106
12580         * tree-dfa.c (create_var_ann): Mark variable as used.
12581
12582 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12583
12584         PR middle-end/45566
12585         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12586         notes from other section in hot/cold partitioning even if
12587         last_action is -3.  Increment call_site_base.
12588
12589         PR rtl-optimization/47366
12590         * fwprop.c (forward_propagate_into): Return bool.  If
12591         any changes are made, -fnon-call-exceptions is used and
12592         REG_EH_REGION note is present, call purge_dead_edges
12593         and return true if it purged anything.
12594         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12595         any EH edges were purged.
12596
12597 2011-01-21  Jeff Law  <law@redhat.com>
12598
12599         PR rtl-optimization/41619
12600         * caller-save.c (setup_save_areas): Break out code to determine
12601         which hard regs are live across calls by examining the reload chains
12602         so that it is always used.
12603         Eliminate code which checked REG_N_CALLS_CROSSED.
12604
12605 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12606
12607         PR tree-optimization/47355
12608         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12609         NOP has non-debug uses beyond PHIs in new_bb.
12610
12611 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12612
12613         PR debug/47106
12614         * cfgexpand.c (account_used_vars_for_block): Only account vars
12615         that are annotated as used.
12616         (estimated_stack_frame_size): Don't set TREE_USED.
12617         * tree-dfa.c (create_var_ann): Mark variable as used.
12618
12619 2011-01-21  Richard Guenther  <rguenther@suse.de>
12620
12621         PR middle-end/47395
12622         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12623
12624 2011-01-21  Richard Guenther  <rguenther@suse.de>
12625
12626         PR tree-optimization/47365
12627         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12628         (vn_reference_lookup_pieces): Adjust.
12629         (vn_reference_lookup): Likewise.
12630         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12631         (vn_reference_lookup_3): Only look through kills if in
12632         VN_WALKREWRITE mode.
12633         (vn_reference_lookup_pieces): Adjust.
12634         (vn_reference_lookup): Likewise.
12635         (visit_reference_op_load): Likewise.
12636         (visit_reference_op_store): Likewise.
12637         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12638         (compute_avail): Likewise.
12639         (eliminate): Likewise.
12640
12641 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12642
12643         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12644         DECL_IGNORED_P non-reg vars if they are used.
12645
12646         PR tree-optimization/47391
12647         * varpool.c (const_value_known_p): Return false if
12648         decl is volatile.
12649
12650 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12651
12652         PR bootstrap/47215
12653         * config/i386/i386.c (ix86_local_alignment): Handle
12654         case for va_list_type_node is nil.
12655         (ix86_canonical_va_list_type): Likewise.
12656
12657 2011-01-21  Alan Modra  <amodra@gmail.com>
12658
12659         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12660         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12661
12662 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12663
12664         * config/arm/arm.md (define_attr type): Rename f_load
12665         and f_store to f_fpa_load and f_fpa_store. Update.
12666         (write_conflict): Deal with rename fallout.
12667         (*push_fp_multi): Likewise.
12668         * config/arm/fpa.md (f_load): Use f_fpa_load.
12669         (f_store): Use f_fpa_store.
12670         (*movsf_fpa): Likewise.
12671         (*movdf_fpa): Likewise.
12672         (*movxf_fpa): Likewise.
12673         (*thumb2_movsf_fpa): Likewise.
12674         (*thumb2_movdf_fpa): Likewise.
12675         (*thumb2_movxf_fpa): Likewise.
12676         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12677         f_loadd and f_stored.
12678         (*thumb2_movdi_vfp): Likewise.
12679         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12680         (*thumb2_movsi_vfp): Likewise.
12681         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12682         Use f_loads instead of f_load.
12683         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12684
12685 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12686
12687         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12688         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12689         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12690         (xtensa_mode_dependent_address_p): New function.
12691         (constantpool_address_p): Make static. Change return type to bool.
12692         Change argument type to const_rtx. Use CONST_INT_P predicate.
12693
12694 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12695
12696         PR debug/46583
12697         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12698
12699 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12700
12701         PR debug/47283
12702         * cfgexpand.c (expand_debug_expr): Instead of generating
12703         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12704         etc. handling.
12705
12706 2011-01-20  Richard Guenther  <rguenther@suse.de>
12707
12708         PR middle-end/47370
12709         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12710         the pointer operand of MEM_REFs.
12711
12712 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12713
12714         PR tree-optimization/46130
12715         * ipa-split.c (consider_split): If return_bb contains non-virtual
12716         PHIs other than for retval or if split_function would not adjust it,
12717         refuse to split.
12718
12719 2011-01-20  Richard Guenther  <rguenther@suse.de>
12720
12721         PR tree-optimization/47167
12722         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12723         Revert previous change, only avoid enumeral type changes.
12724
12725 2011-01-19  Mike Stump  <mikestump@comcast.net>
12726
12727         * doc/tm.texi.in (BRANCH_COST): Englishify.
12728         * doc/tm.texi (BRANCH_COST): Likewise.
12729
12730 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12731
12732         PR c++/47291
12733         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12734         (gen_scheduled_generic_parms_dies): New functions.
12735         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12736         generation for the end of CU compilation.
12737         (dwarf2out_finish): Generate template parameters DIEs here.
12738
12739 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12740
12741         PR debug/46240
12742         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12743         debug bind stmt on merge edges.
12744
12745 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12746
12747         PR debug/47079
12748         PR debug/46724
12749         * function.c (instantiate_expr): Instantiate incoming rtl of
12750         implicit arguments, and recurse on VALUE_EXPRs.
12751         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12752         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12753
12754 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12755
12756         * c-parser.c (c_parser_for_statement): Initialize
12757         collection_expression.
12758
12759 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12760
12761         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12762
12763 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12764
12765         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12766         (LINK_SHLIB_SPEC): Don't use %(link_path).
12767         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12768
12769 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12770
12771         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12772         (NO_SHARED_LIB_SUPPORT): Remove.
12773         (LINK_SHLIB_SPEC): Remove one conditional definition.
12774
12775 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12778         %{call_shared}.
12779         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12780         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12781         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12782         %{call_shared} and conditionals on these options not being passed.
12783         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12784         %{call_shared}.
12785
12786 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12787
12788         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12789         simplify.
12790
12791         * ipa-split.c: Spelling fixes.
12792
12793 2011-01-19  Richard Henderson  <rth@redhat.com>
12794
12795         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12796         (*mulsi3): Likewise.
12797
12798         * longlong.h [__mn10300__] (count_leading_zeros): New.
12799         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12800         [__mn10300__] (add_ssaaaa, subddmmss): New.
12801         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12802         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12803
12804 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12805
12806         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12807
12808 2011-01-19  Richard Henderson  <rth@redhat.com>
12809
12810         * config/mn10300/mn10300.md (addsi3_flags): New.
12811         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12812         (subsi3_flags, subc_internal, subdi3): New.
12813         (subdi3_internal, *subdi3_degenerate): New.
12814         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12815
12816         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12817         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12818         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12819         * config/mn10300/mn10300-protos.h: Update.
12820         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12821         (return_ret): Likewise.  Rename from return_internal_regs.
12822         (return_internal): Remove.
12823
12824         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12825         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12826         (mn10300_legitimate_constant_p): Likewise.
12827         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12828         (mn10300_frame_size): New.
12829         (mn10300_expand_prologue): Use it.
12830         (mn10300_expand_epilogue): Likewise.
12831         (mn10300_initial_offset): Likewise.
12832         * config/mn10300/mn10300-protos.h: Update.
12833         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12834         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12835         (prologue, epilogue, return_internal): Tidy output code.
12836         (mn10300_store_multiple_operation, return): Likewise.
12837         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12838         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12839         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12840         (load_pic, am33_load_pic): New.
12841         (mn10300_load_pic0, mn10300_load_pic1): New.
12842
12843         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12844         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12845         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12846         (cc_flags_for_mode, cc_flags_for_code): New.
12847         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12848         overflow flag is not valid.  Validate that the flags we need
12849         for the comparison are valid.
12850         (mn10300_output_cmp): Remove.
12851         (mn10300_output_add): New.
12852         (mn10300_select_cc_mode): Use cc_flags_for_code.
12853         (mn10300_split_cbranch): New.
12854         (mn10300_match_ccmode): New.
12855         (mn10300_split_and_operand_count): New.
12856         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12857         to the function.
12858         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12859         (addsi3): ... here.  Use mn10300_output_add.
12860         (*addsi3_flags): New.
12861         (*am33_subsi3, *mn10300_subsi3): Merge...
12862         (subsi3): ... here.  Use attribute isa.
12863         (*subsi3_flags): New.
12864         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12865         when possible.
12866         (*am33_andsi3, *mn10300_andsi3): Merge...
12867         (andsi3): ... here.
12868         (*andsi3_flags): New.
12869         (andsi3 splitters): New.
12870         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12871         (iorsi3): ... here.
12872         (*iorsi3_flags): New.
12873         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12874         (xorsi3): ... here.
12875         (*xorsi3_flags): New.
12876         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12877         (one_cmplsi2): ... here.
12878         (*one_cmplsi2_flags): New.
12879         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12880         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12881         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12882         use matching constraints to eliminate a self-comparison.
12883         (*integer_conditional_branch): Rename from integer_conditional_branch.
12884         Use int_mode_flags to match CC_REG.
12885         (*cbranchsi4_btst, *btstsi): New.
12886         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12887         mn10300_split_cbranch.
12888         (*am33_cmpsf): Rename from am33_cmpsf.
12889         (*float_conditional_branch): Rename from float_conditional_branch.
12890         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12891         (zero_extendqisi2): ... here.
12892         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12893         (zero_extendhisi2): ... here.
12894         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12895         (extendqisi2): ... here.
12896         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12897         (extendhisi2): ... here.
12898         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12899         (ashlsi3): ... here.
12900         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12901         (lshrsi3): ... here.
12902         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12903         (ashrsi3): ... here.
12904         (consecutive add peephole): Remove.
12905         * config/mn10300/predicates.md (label_ref_operand): New.
12906         (int_mode_flags): New.
12907         (CCZN_comparison_operator): New.
12908
12909         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12910         (throughput_42_latency_43): New reservation.
12911         (mulsidi3, umulsidi3): New expanders.
12912         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12913         the MDR register to allocation; separately allocate the low and
12914         high parts of the DImode result.
12915         (umulsidi3_internal): Similarly.
12916         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12917         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12918         (udivsi3, umodsi3): Remove.
12919         (udivmodsi4, divmodsi4): New expanders.
12920         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12921         (*divmodsi4): Simiarly.
12922         (ext_internal): New.
12923
12924         * config/mn10300/constraints.md ("z"): New constraint.
12925         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12926         (FIXED_REGISTERS): Don't fix MDR.
12927         (CALL_USED_REGSITERS): Reformat nicely.
12928         (REG_ALLOC_ORDER): Add MDR.
12929         (enum regclass): Add MDR_REGS.
12930         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12931         (IRA_COVER_CLASSES): Add MDR_REGS.
12932         (REGNO_REG_CLASS): Handle MDR_REG.
12933         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12934         (mn10300_register_move_cost): Likewise.
12935         * config/mn10300/mn10300.md (MDR_REG): New.
12936         (*movsi_internal): Handle moves to/from MDR_REGS.
12937
12938         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12939         POST_MODIFY.
12940         (mn10300_secondary_reload): Tidy combination reload classes.
12941         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12942         addresses for AM33.  Allow symbolic offsets for reg+imm.
12943         (mn10300_regno_in_class_p): New.
12944         (mn10300_legitimize_reload_address): New.
12945         * config/mn10300/mn10300.h (enum reg_class): Remove
12946         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12947         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12948         SP_OR_GENERAL_REGS.
12949         (REG_CLASS_NAMES): Update to match.
12950         (REG_CLASS_CONTENTS): Likewise.
12951         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12952         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12953         (REGNO_IN_RANGE_P): Remove.
12954         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12955         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12956         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12957         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12958         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12959         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12960         (REGNO_GENERAL_P): New.
12961         (HAVE_POST_MODIFY_DISP): New.
12962         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12963         (LEGITIMIZE_RELOAD_ADDRESS): New.
12964         * config/mn10300/mn10300-protos.h: Update.
12965
12966         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12967         DATA_REGS for AM33 stack-pointer destination.
12968         (mn10300_preferred_output_reload_class): Likewise.
12969         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12970         into a form appropriate for ...
12971         (TARGET_SECONDARY_RELOAD): New.
12972         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12973         * config/mn10300/mn10300-protos.h: Update.
12974         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12975         reload_insi; use the "A" constraint for the scratch; handle AM33
12976         moves of sp to non-address registers.
12977
12978         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12979         (*movqi_internal): ... here.
12980         (*am33_movhi, *mn10300_movhi): Merge into...
12981         (*movhi_internal): ... here.
12982         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12983         as the source/destination of moves from/to SP.
12984         (movsf): Only allow for AM33-2.
12985         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12986         any integer constant constraint.  Only allow for AM33-2.  Tidy
12987         all of the alternative outputs.
12988         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12989         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12990         for MN103.
12991         (udivsi3, umodsi3): New patterns for MN103 only.
12992
12993 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12994
12995         * doc/tm.texi.in: Spell out that a lack of register class unions
12996         can lead to ICEs.
12997         * doc/tm.texi: Regenerate.
12998
12999 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13000
13001         PR rtl-optimization/47337
13002         * dce.c (check_argument_store): New function.
13003         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13004
13005         PR tree-optimization/47290
13006         * tree-eh.c (infinite_empty_loop_p): New function.
13007         (cleanup_empty_eh): Use it.
13008
13009 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13010
13011         PR target/46997
13012         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13013         (a64_expand_widen_sum): Ditto.
13014         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13015         (vec_extract_evenodd_help): Ditto.
13016         (vec_extract_evenv4hi): Ditto.
13017         (vec_extract_oddv4hi): Ditto.
13018         (vec_extract_evenv2si): Ditto.
13019         (vec_extract_oddv2si): Ditto.
13020         (vec_extract_evenv2sf): Ditto.
13021         (vec_extract_oddv2sf): Ditto.
13022         (vec_pack_trunc_v4hi: Ditto.
13023         (vec_pack_trunc_v2si): Ditto.
13024         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13025         (vec_interleave_highv8qi): Ditto.
13026         (mix1_r): Ditto.
13027         (vec_extract_oddv8qi): Ditto.
13028         (vec_interleave_lowv4hi): Ditto.
13029         (vec_interleave_highv4hi): Ditto.
13030         (vec_interleave_lowv2si): Ditto.
13031         (vec_interleave_highv2si): Ditto.
13032
13033 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13034
13035         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13036         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13037         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13038         (pa_c_mode_for_suffix): New.
13039         (TARGET_EXPAND_BUILTIN): Define.
13040         (TARGET_C_MODE_FOR_SUFFIX): Define.
13041         (pa_builtins): Define.
13042         (pa_init_builtins): Register __float128 type and init new support
13043         builtins.
13044         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13045         * config/pa/quadlib.c (_U_Qfcopysign): New.
13046
13047 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13048
13049         PR middle-end/46894
13050         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13051         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13052         are defined.
13053
13054 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13055
13056         PR tree-optimization/47179
13057         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13058         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13059
13060 2011-01-18  Richard Guenther  <rguenther@suse.de>
13061
13062         PR rtl-optimization/47216
13063         * emit-rtl.c: Include tree-flow.h.
13064         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13065         of replicating it with different semantics.
13066         * Makefile.in (emit-rtl.o): Adjust.
13067
13068 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13069
13070         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13071         (cortex_a9_dp): Handle neon types correctly.
13072
13073 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13074
13075         PR rtl-optimization/47299
13076         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13077         subtarget.  Use normal multiplication if both operands are constants.
13078         * expmed.c (expand_widening_mult): Don't try to optimize constant
13079         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13080         before using it.
13081
13082 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13083
13084         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13085         spacing after 'e.g.', typos, comma, hyphenation.
13086
13087 2011-01-17  Richard Henderson  <rth@redhat.com>
13088
13089         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13090         (rx_restricted_mem_operand): New.
13091         (rx_shift_operand): Use register_operand.
13092         (rx_source_operand, rx_compare_operand): Likewise.
13093         * config/rx/rx.md (addsi3_flags): New expander.
13094         (adddi3): Rewrite as expander.
13095         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13096         (subsi3_flags): New expander.
13097         (subdi3): Rewrite as expander.
13098         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13099
13100         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13101         (rx_init_builtins): Remove sat builtin.
13102         (rx_expand_builtin): Likewise.
13103         * config/rx/rx.md (ssaddsi3): New.
13104         (*sat): Rename from sat.  Represent the CC_REG input.
13105
13106         * config/rx/predicates.md (rshift_operator): New.
13107         * config/rx/rx.c (rx_expand_insv): Remove.
13108         * config/rx/rx-protos.h: Update.
13109         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13110         operand to the canonical position.
13111         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13112         (*bitclr, *bitclr_in_memory): Similarly.
13113         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13114         (insv): Retain the zero_extract in the expansion.
13115
13116         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13117         (bswaphi2, bitinvert, revw): Likewise.
13118
13119         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13120         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13121         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13122         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13123         (bitset, bitset_in_memory): Likewise.
13124         (bitinvert, bitinvert_in_memory): Likewise.
13125         (bitclr, bitclr_in_memory): Likewise.
13126         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13127         (rx_strend, rx_cmpstrn): Likewise.
13128         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13129         (bitop peep2 patterns): Remove.
13130
13131         * config/rx/rx.c (rx_match_ccmode): New.
13132         * config/rx/rx-protos.h: Update.
13133         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13134         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13135         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13136         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13137         (fix_truncsfsi2, floatsisf2): Likewise.
13138         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13139         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13140         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13141         (*subsi3_flags, *xorsi3_flags): New.
13142
13143         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13144
13145         * config/rx/rx.c (rx_print_operand): Remove workaround for
13146         unsplit comparison operations.
13147
13148         * config/rx/rx.md (movsicc): Split after reload.
13149         (*movsicc): Merge *movsieq and *movsine via match_operator.
13150         (*stcc): New pattern.
13151
13152         * config/rx/rx.c (rx_float_compare_mode): Remove.
13153         * config/rx/rx.h (rx_float_compare_mode): Remove.
13154         * config/rx/rx.md (cstoresi4): Split after reload.
13155         (*sccc): New pattern.
13156
13157         * config/rx/predicates.md (label_ref_operand): New.
13158         (rx_z_comparison_operator): New.
13159         (rx_zs_comparison_operator): New.
13160         (rx_fp_comparison_operator): New.
13161         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13162         Validate that the flags are set properly for the comparison.
13163         (rx_gen_cond_branch_template): Remove.
13164         (rx_cc_modes_compatible): Remove.
13165         (mode_from_flags): New.
13166         (flags_from_code): Rename from flags_needed_for_conditional.
13167         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13168         (rx_select_cc_mode): Likewise.
13169         (rx_split_fp_compare): New.
13170         (rx_split_cbranch): New.
13171         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13172         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13173         (*cbranchsf4): Similarly.
13174         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13175         match_operator and rx_split_cbranch.
13176         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13177         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13178         (*cmpsi): Rename from cmpsi.
13179         (*tstsi): Rename from tstsi.
13180         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13181         (*conditional_branch): Rename from conditional_branch.
13182         (*reveresed_conditional_branch): Remove.
13183         (b<code>): Remove expander.
13184         * config/rx/rx-protos.h: Update.
13185
13186         * config/rx/rx.c (rx_compare_redundant): Remove.
13187         * config/rx/rx.md (cmpsi): Don't use it.
13188         * config/rx/rx-protos.h: Update.
13189
13190         * config/rx/rx-modes.def (CC_F): New mode.
13191         * config/rx/rx.c (rx_select_cc_mode): New.
13192         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13193         * config/rx/rx-protos.h: Update.
13194
13195 2011-01-17  Richard Henderson  <rth@redhat.com>
13196
13197         * except.c (dump_eh_tree): Fix stray ; after for statement.
13198
13199 2011-01-17  Richard Guenther  <rguenther@suse.de>
13200
13201         PR tree-optimization/47313
13202         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13203         handling before copying the body.  Properly deal with
13204         by-reference result in SSA form.
13205
13206 2011-01-17  Ian Lance Taylor  <iant@google.com>
13207
13208         PR target/47219
13209         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13210         (struct_value_alias_set): Don't define.
13211         (sparc_option_override): Don't set sparc_sr_alias_set and
13212         struct_value_alias_set.
13213         (save_or_restore_regs): Use gen_frame_mem rather than calling
13214         set_mem_alias_set.
13215         (sparc_struct_value_rtx): Likewise.
13216
13217 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13218
13219         PR target/47318
13220         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13221         (_mm_maskstore_pd): Likewise.
13222         (_mm_maskload_ps): Likewise.
13223         (_mm_maskstore_ps): Likewise.
13224         (_mm256_maskload_pd): Change mask to __m256i.
13225         (_mm256_maskstore_pd): Likewise.
13226         (_mm256_maskload_ps): Likewise.
13227         (_mm256_maskstore_ps): Likewise.
13228
13229         * config/i386/i386-builtin-types.def: Updated.
13230         (ix86_expand_special_args_builtin): Likewise.
13231
13232         * config/i386/i386.c (bdesc_special_args): Update
13233         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13234         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13235         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13236         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13237
13238         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13239         Use <avxpermvecmode> on mask register.
13240         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13241
13242 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13243             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13244             Eric Botcazou  <ebotcazou@adacore.com>
13245
13246         PR target/46655
13247         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13248         if <= USHRT_MAX in 32-bit mode.
13249
13250 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13251
13252         * doc/install.texi (Configuration, Specific): Wrap long
13253         lines in examples.  Allow line wrapping in long options
13254         and URLs where beneficial for PDF output.
13255
13256 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13257
13258         * config/mips/mips.c (mips_classify_symbol): Don't return
13259         SYMBOL_PC_RELATIVE for nonlocal labels.
13260
13261 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13262
13263         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13264
13265 2011-01-15  Jan Hubicka  <jh@suse.cz>
13266
13267         PR tree-optimization/47276
13268         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13269         declarations as needed.
13270
13271 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13272
13273         * common.opt (fdevirtualize): New flag.
13274         * doc/invoke.texi (Option Summary): Document it.
13275         * opts.c (default_options_table): Add devirtualize flag.
13276         * ipa-prop.c (detect_type_change): Return immediately if
13277         devirtualize flag is not set.
13278         (detect_type_change_ssa): Likewise.
13279         (compute_known_type_jump_func): Likewise.
13280         (ipa_analyze_virtual_call_uses): Likewise.
13281
13282 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13283
13284         PR tree-optimization/45934
13285         PR tree-optimization/46302
13286         * ipa-prop.c (type_change_info): New type.
13287         (stmt_may_be_vtbl_ptr_store): New function.
13288         (check_stmt_for_type_change): Likewise.
13289         (detect_type_change): Likewise.
13290         (detect_type_change_ssa): Likewise.
13291         (compute_complex_assign_jump_func): Check for dynamic type change.
13292         (compute_complex_ancestor_jump_func): Likewise.
13293         (compute_known_type_jump_func): Likewise.
13294         (compute_scalar_jump_functions): Likewise.
13295         (ipa_analyze_virtual_call_uses): Likewise.
13296         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13297
13298 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13299
13300         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13301         * config/i386/i386.opt (msse5): New Alias.
13302
13303 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13304
13305         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13306         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13307         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13308         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13309
13310 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13311
13312         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13313         -mcpu options.
13314         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13315         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13316         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13317         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13318         Likewise.
13319         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13320
13321 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13322
13323         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13324
13325 2011-01-14  Mike Stump  <mikestump@comcast.net>
13326
13327         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13328         * config/fr30/fr30.md: Likweise
13329         (movsi_push): Likewise.
13330         (movsi_pop): Likewise.
13331         (enter_func): Likewise.
13332         * config/moxie/moxie.md (movsi_push): Likewise.
13333         (movsi_pop): Likewise.
13334
13335 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13336
13337         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13338         %{no_archive} %{exact_version}.
13339         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13340         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13341         %{no_archive} %{exact_version}.
13342         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13343         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13344         * config/mips/vxworks.h: Likewise.
13345
13346 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13347
13348         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13349
13350 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13351
13352         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13353         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13354
13355 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13356
13357         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13358         -nodefaultlib.
13359
13360 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13361
13362         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13363         for mcpu not cpu.
13364         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13365         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13366         not cpu.
13367         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13368         Don't handle -shlib.
13369
13370 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13371
13372         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13373         (CC1_SPEC): Don't handle -profile.
13374
13375 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13376
13377         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13378         * config/mips/mips.h (CC1_SPEC): Likewise.
13379
13380 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13383         * config/mips/mips.h (CC1_SPEC): Likewise.
13384
13385 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13386
13387         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13388         * config/m32r/linux.h (LINK_SPEC): Likewise.
13389         * config/mips/linux.h (LINK_SPEC): Likewise.
13390         * config/mips/linux64.h (LINK_SPEC): Likewise.
13391         * config/sparc/linux.h (LINK_SPEC): Likewise.
13392         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13393         LINK_SPEC): Likewise.
13394         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13395
13396 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13397
13398         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13399         %{version:-v}.
13400         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13401
13402 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13403
13404         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13405         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13406
13407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13408
13409         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13410
13411 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13412
13413         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13414         supports -Bstatic/-Bdynamic.
13415         * configure: Regenerate.
13416
13417 2011-01-14  Jan Hubicka  <jh@suse.cz>
13418             Jack Howarth  <howarth@bromo.med.uc.edu>
13419
13420         PR target/46037
13421         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13422         when checking debug_info_level. Test write_symbols instead of
13423         debug_hooks->var_location when setting flag_var_tracking_uninit.
13424
13425 2011-01-14  Richard Guenther  <rguenther@suse.de>
13426
13427         PR tree-optimization/47179
13428         * target.def (ref_may_alias_errno): New target hook.
13429         * targhooks.h (default_ref_may_alias_errno): Declare.
13430         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13431         (default_ref_may_alias_errno): New function.
13432         * target.h (struct ao_ref_s): Declare.
13433         * tree-ssa-alias.c: Include target.h.
13434         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13435         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13436         (targhooks.o): Likewise.
13437         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13438         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13439
13440 2011-01-14  Richard Guenther  <rguenther@suse.de>
13441
13442         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13443
13444 2011-01-14  Richard Guenther  <rguenther@suse.de>
13445
13446         PR tree-optimization/47280
13447         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13448         return CFG changes.
13449         (tree_ssa_forward_propagate_single_use_vars): Deal with
13450         CFG changes from associate_plusminus.
13451
13452 2011-01-14  Richard Guenther  <rguenther@suse.de>
13453
13454         PR middle-end/47281
13455         Revert
13456         2011-01-11  Richard Guenther  <rguenther@suse.de>
13457
13458         PR tree-optimization/46076
13459         * tree-ssa.c (useless_type_conversion_p): Conversions from
13460         unprototyped to empty argument list function types are useless.
13461
13462 2011-01-14  Richard Guenther  <rguenther@suse.de>
13463
13464         PR tree-optimization/47286
13465         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13466
13467 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13468
13469         PR middle-end/46823
13470         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13471
13472 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13473
13474         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13475         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13476         * config/xtensa/xtensa.c (xtensa_libcall_value,
13477         xtensa_function_value_regno_p): New functions.
13478         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13479
13480 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13481
13482         PR c++/47213
13483         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13484         PE specific hook.
13485         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13486         New function prototype.
13487         * config/i386/winnt.c (i386_pe_assemble_visibility):
13488         Warn only if attribute was specified by user.
13489
13490 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13491
13492         PR target/47251
13493         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13494         floating point.
13495         (floatunsdidf2_fcfidu): Ditto.
13496
13497 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13498
13499         * config/s390/s390.c (print_operand_address): Replace 'error' with
13500         'output_operand_lossage'.
13501         (print_operand): Likewise.
13502
13503 2011-01-13  Jeff Law  <law@redhat.com>
13504
13505         PR rtl-optimization/39077
13506         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13507         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13508         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13509         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13510         * gcse.c (prune_insertions_deletions): New function.
13511         (compute_pre_data): Use it.
13512
13513 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13514
13515         PR debug/PR46973
13516         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13517         static function.
13518         (prune_unused_types_mark): Use it.
13519
13520 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13521
13522         PR rtl-optimization/45352
13523         * sel-sched.c: Update copyright years.
13524         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13525         in the advancing loop when we have issued issue_rate insns.
13526
13527 2011-01-12  Richard Henderson  <rth@redhat.com>
13528
13529         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13530         (TARGET_MD_ASM_CLOBBERS): New.
13531
13532         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13533         (TARGET_DELEGITIMIZE_ADDRESS): New.
13534
13535         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13536         (clzsi2, *bsch): New patterns.
13537
13538         * config/mn10300/mn10300.md (INT): New mode iterator.
13539         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13540
13541         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13542         flag_split_wide_types.
13543
13544         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13545         (mn10300_trampoline_init): Rewrite without a template, an immediate
13546         load and a direct branch.
13547         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13548
13549 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13550
13551         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13552         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13553         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13554         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13555
13556 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13557
13558         PR debug/47209
13559         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13560         of type.
13561
13562 2011-01-12  Jan Hubicka  <jh@suse.cz>
13563
13564         PR driver/47244
13565         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13566         (PLUGIN_COND_CLOSE): New macro.
13567         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13568
13569 2011-01-12  Richard Guenther  <rguenther@suse.de>
13570
13571         PR lto/47259
13572         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13573         register variables in a MEM_REF.
13574
13575 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13576
13577         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13578         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13579         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13580         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13581         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13582         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13583         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13584         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13585         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13586         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13587         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13588         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13589         * config/gnu-user.h: New.  Copied from linux.h.
13590         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13591         GNU_USER_TARGET_STARTFILE_SPEC.
13592         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13593         GNU_USER_TARGET_ENDFILE_SPEC.
13594         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13595         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13596         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13597         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13598         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13599         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13600         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13601         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13602         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13603         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13604         * config/arm/linux-eabi.h (CC1_SPEC): Use
13605         GNU_USER_TARGET_CC1_SPEC.
13606         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13607         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13608         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13609         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13610         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13611         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13612         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13613         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13614
13615 2011-01-12  Richard Guenther  <rguenther@suse.de>
13616
13617         PR other/46946
13618         * doc/invoke.texi (ffast-math): Document it is turned on
13619         with -Ofast.
13620
13621 2011-01-12  Jan Hubicka  <jh@suse.cz>
13622
13623         PR tree-optimization/47233
13624         * opts.c (common_handle_option): Disable ipa-reference with profile
13625         feedback.
13626
13627 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13628
13629         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13630         error message.
13631
13632 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13633
13634         * c-parser.c (c_lex_one_token): Updated and reindented some
13635         comments.  No changes in code.
13636
13637 2011-01-11  Ian Lance Taylor  <iant@google.com>
13638
13639         * godump.c (go_output_var): Don't output the variable if there is
13640         already a type with the same name.
13641
13642 2011-01-11  Ian Lance Taylor  <iant@google.com>
13643
13644         * godump.c (go_format_type): Don't generate float80.
13645
13646 2011-01-11  Richard Henderson  <rth@redhat.com>
13647
13648         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13649         declaration.  Rewrite for both speed and size.
13650         (mn10300_address_cost_1): Remove.
13651         (mn10300_register_move_cost): New.
13652         (mn10300_memory_move_cost): New.
13653         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13654         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13655         extensions, shifts, BSWAP, CLZ.
13656         (mn10300_wide_const_load_uses_clr): Remove.
13657         (TARGET_REGISTER_MOVE_COST): New.
13658         (TARGET_MEMORY_MOVE_COST): New.
13659         * config/mn10300/mn10300-protos.h: Update.
13660         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13661
13662         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13663         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13664         * config/mn10300/mn10300-protos.h: Update.
13665         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13666         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13667         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13668         (*test_int_bitfield, *test_byte_bitfield): Remove.
13669         (*bit_test, *subreg_bit_test): Remove.
13670         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13671
13672         * config/mn10300/constraints.md ("c"): Rename from "A".
13673         ("A", "D"): New constraint letters.
13674         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13675         (fmssf4, fnmasf4, fnmssf4): Likewise.
13676
13677         * config/mn10300/mn10300.md (isa): New attribute.
13678         (enabled): New attribute.
13679
13680         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13681         (abssf2, negsf2): Define only for hardware fp.
13682         (sqrtsf2): Reformat.
13683         (addsf3, subsf3, mulsf3): Merge expander and insn.
13684
13685         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13686         (DEBUGGER_AUTO_OFFSET): Remove.
13687         (DEBUGGER_ARG_OFFSET): Remove.
13688
13689         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13690         Emit register stores with the same offsets as the hardware.
13691         (mn10300_store_multiple_operation): Don't check that the register
13692         save offsets are monotonic.
13693         * config/mn10300/mn10300-protos.h: Update.
13694
13695         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13696
13697         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13698         in terms of the value on the stack, not the MDR register.
13699
13700 2011-01-11  Jan Hubicka  <jh@suse.cz>
13701
13702         PR lto/45721
13703         PR lto/45375
13704         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13705         (symbol_alias_set_destroy, symbol_alias_set_contains,
13706         propagate_aliases_backward): Declare.
13707         * lto-streamer-out.c (struct sets): New sturcture.
13708         (trivally_defined_alias): New function.
13709         (output_alias_pair_p): Rewrite.
13710         (output_unreferenced_globals): Fix output of alias pairs.
13711         (produce_symtab): Likewise.
13712         * ipa.c (function_and_variable_visibility): Set weak alias destination
13713         as needed in lto.
13714         * varasm.c (symbol_alias_set_t): Remove.
13715         (symbol_alias_set_destroy): Export.
13716         (propagate_aliases_forward, propagate_aliases_backward): New functions
13717         based on ...
13718         (compute_visible_aliases): ... this one; remove.
13719         (trivially_visible_alias): New
13720         (trivially_defined_alias): New.
13721         (remove_unreachable_alias_pairs): Rewrite.
13722         (finish_aliases_1): Reorganize code checking if alias is defined.
13723         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13724         in LTO mode.
13725
13726 2011-01-11  Richard Guenther  <rguenther@suse.de>
13727
13728         PR tree-optimization/46076
13729         * tree-ssa.c (useless_type_conversion_p): Conversions from
13730         unprototyped to empty argument list function types are useless.
13731
13732 2011-01-11  Richard Guenther  <rguenther@suse.de>
13733
13734         PR middle-end/45235
13735         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13736         volatile MEMs as MEM_READONLY_P.
13737
13738 2011-01-11  Richard Guenther  <rguenther@suse.de>
13739
13740         PR tree-optimization/47239
13741         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13742
13743 2011-01-11  Jeff Law  <law@redhat.com>
13744
13745         PR tree-optimization/47086
13746         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13747         IVs from statements that might throw.
13748
13749 2011-01-10  Jan Hubicka  <jh@suse.cz>
13750
13751         PR lto/45375
13752         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13753
13754 2011-01-10  Jan Hubicka  <jh@suse.cz>
13755
13756         PR lto/45375
13757         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13758         when correcting profile.
13759
13760 2011-01-10  Jan Hubicka  <jh@suse.cz>
13761
13762         PR lto/46083
13763         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13764         DECL_FINI_PRIORITY.
13765         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13766         Restore DECL_FINI_PRIORITY.
13767
13768 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13769
13770         * doc/gimple.texi: Fix quoting of multi-word return values in
13771         @deftypefn statements.  Ensure presence of return value.  Wrap
13772         overlong @deftypefn lines.
13773         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13774         descriptions of removed functions.
13775         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13776         of multi-word return value in @deftypefn statement.
13777
13778 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13779
13780         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13781         (Conditional Expressions, Logical Operators)
13782         (Statement and operand traversals): Do not indent smallexample
13783         code.  Fix duplicate function argument in example.
13784
13785 2011-01-10  Jeff Law  <law@redhat.com>
13786
13787         PR tree-optimization/47141
13788         * ipa-split.c (split_function): Handle case where we are
13789         returning a value and the return block has a virtual operand phi.
13790
13791 2011-01-10  Jan Hubicka  <jh@suse.cz>
13792
13793         PR tree-optimization/47234
13794         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13795         (pass_feedback_split_functions): Declare.
13796         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13797         tree-profile.
13798         * ipa-split.c (gate_split_functions): Update comments; disable
13799         split-functions for profile_arc_flag and branch_probabilities.
13800         (gate_feedback_split_functions): New function.
13801         (execute_feedback_split_functions): New function.
13802         (pass_feedback_split_functions): New global var.
13803
13804 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13805
13806         PR lto/46760
13807         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13808         calling gimple_call_set_cannot_inline.
13809
13810 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13811
13812         * config/darwin-sections.def: Remove unused section.
13813
13814 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13815
13816         PR c++/47218
13817         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13818
13819 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13820
13821         PR objc/47232
13822         * c-parser.c (c_parser_declaration_or_fndef): Improved
13823         error message.
13824
13825 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13826
13827         * config/i386/winnt.c (i386_pe_start_function): Make sure
13828         to switch back to function's section.
13829
13830 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13831
13832         PR gcc/46902
13833         PR testsuite/46912
13834         * plugin.c: Move include of dlfcn.h from here...
13835         * system.h: ... to here.
13836
13837 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13838
13839         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13840         file name.
13841         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13842         two extra empty pages in PDF output.
13843
13844 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13845
13846         PR objc/47078
13847         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13848         for error recovery purposes behave as if it was not specified so
13849         that the default type is usd.
13850
13851 2011-01-07  Jan Hubicka  <jh@suse.cz>
13852
13853         PR tree-optmization/46469
13854         * ipa.c (function_and_variable_visibility): Clear needed flags on
13855         nodes with external decls; handle weakrefs merging correctly.
13856
13857 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13858
13859         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13860         not false.
13861
13862 2011-01-07  Jan Hubicka  <jh@suse.cz>
13863
13864         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13865         and no longer claim that gold is required for linker plugin.
13866         * configure: Regenerate.
13867         * gcc.c (PLUGIN_COND): New macro.
13868         (LINK_COMMAND_SPEC): Use it.
13869         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13870         * config.in (HAVE_LTO_PLUGIN): New.
13871         * configure.ac (--with-lto-plugin): New parameter; autodetect
13872         HAVE_LTO_PLUGIN.
13873
13874 2011-01-07  Jan Hubicka  <jh@suse.cz>
13875
13876         PR tree-optimization/46367
13877         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13878         when we can update original.
13879         (cgraph_mark_inline_edge): Sanity check.
13880         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13881
13882 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13883
13884         * config/spu/spu.h (ASM_COMMENT_START): Define.
13885
13886 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13887
13888         PR driver/42445
13889         * gcc.c (%>S): New.
13890         (SWITCH_KEEP_FOR_GCC): Likewise.
13891         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13892         (do_spec_1): Handle "%>".
13893
13894         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13895
13896 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13897
13898         PR target/47201
13899         * config/i386/i386.c (ix86_delegitimize_address): If
13900         simplify_gen_subreg fails, return orig_x.
13901
13902         PR bootstrap/47187
13903         * value-prof.c (gimple_stringop_fixed_value): Handle
13904         lhs of the call properly.
13905
13906 2011-01-07  Jan Hubicka  <jh@suse.cz>
13907
13908         PR lto/45375
13909         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13910
13911 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13912
13913         * target.def (function_switched_text_sections): New hook.
13914         * doc/tm.texi: Regenerated.
13915         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13916         * final.c (default_function_switched_text_sections): New.
13917         (final_scan_insn): Call function_switched_text_sections when a
13918         mid-function section change occurs.
13919         * output.h (default_function_switched_text_sections): Declare.
13920         * config/darwin-protos.h (darwin_function_switched_text_sections):
13921         Likewise.
13922         * config/darwin.c (darwin_function_switched_text_sections): New.
13923         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13924
13925 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13926
13927         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13928         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13929         the secondary code fragment when outputting for DWARF == 2.
13930
13931 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13932
13933         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13934         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13935         Remove.
13936         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13937         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13938
13939 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13940
13941         PR debug/46704
13942         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13943         when it is not empty.
13944
13945 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13946
13947         Bobcat Enablement
13948         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13949         (case ${target}): Add btver1.
13950         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13951         -march=native recognize btver1 processors.
13952         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13953         btver1 def_and_undef
13954         * config/i386/i386.c (struct processor_costs btver1_cost): New
13955         btver1 cost table.
13956         (m_BTVER1): New definition.
13957         (m_AMD_MULTIPLE): Includes m_BTVER1.
13958         (initial_ix86_tune_features): Add btver1 tune.
13959         (processor_target_table): Add btver1 entry.
13960         (static const char *const cpu_names): Add btver1 entry.
13961         (software_prefetching_beneficial_p): Add btver1.
13962         (ix86_option_override_internal): Add btver1 instruction sets.
13963         (ix86_issue_rate): Add btver1.
13964         (ix86_adjust_cost): Add btver1.
13965         * config/i386/i386.h (TARGET_BTVER1): New definition.
13966         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13967         (enum processor_type): Add PROCESSOR_BTVER1.
13968         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13969
13970 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13971
13972         PR target/43309
13973         * config/i386/i386.c (legitimize_tls_address)
13974         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13975         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13976         (tls_initial_exec_64_sun): New pattern.
13977
13978 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13979
13980         * doc/invoke.texi (Overall Options): Improve wording and markup
13981         of the description of -wrapper.
13982
13983 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13984
13985         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13986         rdynamic, threads): New Driver options.
13987
13988 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13989
13990         PR target/38118
13991         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13992         if coming from .tdata.
13993         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13994
13995 2011-01-06  Jan Hubicka  <jh@suse.cz>
13996
13997         PR lto/47188
13998         * collect2.c (main): Do not enable LTOmode when plugin is active.
13999
14000 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14001
14002         PR other/45915
14003         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14004         --version output if supported.
14005         * configure: Regenerate.
14006
14007 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14008
14009         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14010         Driver options.
14011
14012 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14013
14014         PR c/47150
14015         * c-convert.c (convert): When converting a complex expression
14016         other than COMPLEX_EXPR to a different complex type, ensure
14017         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14018         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14019         when converting COMPLEX_TYPE.
14020
14021 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14022
14023         PR tree-optimization/47139
14024         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14025         only the last reduction value is used outside the loop.  Update
14026         documentation.
14027
14028 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14029
14030         * config/rtems.opt: New.
14031         * config.gcc (*-*-rtems*): Use rtems.opt.
14032
14033 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14034
14035         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14036         processors do not support 3DNow instructions.
14037
14038 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14039
14040         * config/spu/spu.c (spu_option_override): Set parameter
14041         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14042
14043 2011-01-05  Jan Hubicka  <jh@suse.cz>
14044
14045         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14046         at the command line.
14047
14048 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14049
14050         PR lto/47162
14051         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14052         deltas on streamed outgoing edges.
14053         (output_node_opt_summary): Output info for outgoing edges only when
14054         the node is in new parameter set.
14055         (output_cgraph_opt_summary): New parameter set, passed to the two
14056         aforementioned functions.  Update its forward declaration and its
14057         callee too.
14058
14059 2011-01-05  Tom Tromey  <tromey@redhat.com>
14060
14061         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14062         operator to c_finish_omp_atomic.
14063         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14064         (build_unary_op): Update.
14065         (build_modify_expr): Update.
14066         (build_asm_expr): Update.
14067
14068 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14069
14070         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14071         newly inserted insns.
14072         (pad_bb): Likewise.
14073         (spu_emit_branch_hint): Likewise.
14074         (insert_hbrp_for_ilb_runout): Likewise.
14075         (spu_machine_dependent_reorg): Call df_finish_pass after
14076         schedule_insns returns.
14077
14078 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14079
14080         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14081
14082 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14083
14084         PR tree-optimization/47005
14085         * tree-sra.c (struct access): Add 'non_addressable' bit.
14086         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14087         (decide_one_param_reduction): Return 0 if the parameter is passed by
14088         reference and one of the accesses in the group is non_addressable.
14089
14090 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14091
14092         PR tree-optimization/47056
14093         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14094         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14095         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14096
14097 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14098
14099         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14100         initializer.  Skip view conversions from aggregate types.
14101
14102 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14103
14104         PR bootstrap/47055
14105         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14106
14107 2011-01-04  Philipp Thomas  <pth@suse.de>
14108
14109         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14110         obvious typo.
14111
14112 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14113
14114         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14115         on empty epilogue sequences.
14116
14117 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14118
14119         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14120         non-static): New Driver options.
14121
14122 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14123
14124         PR driver/47137
14125         * gcc.c (default_compilers[]): Set combinable field to 0
14126         for all assembly languages.
14127
14128 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14129
14130         * config/mips/loongson3a.md: New file.
14131         * config/mips/mips.md: Include loongson3a.md.
14132         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14133         TUNE_LOONGSON_3A.
14134
14135 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14136
14137         PR middle-end/47017
14138         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14139         instead of convert_memory_address_addr_space on the base expression.
14140
14141 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14142
14143         * config/spu/spu.c (spu_option_override): Update error text
14144         for bad -march= / -mtune= values.
14145
14146 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14147
14148         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14149         if branch-hint optimization will be performed.
14150
14151 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14152
14153         PR tree-optimization/47148
14154         * ipa-split.c (split_function): Convert arguments to
14155         DECL_ARG_TYPE if possible.
14156
14157         PR tree-optimization/47155
14158         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14159         when computing uns.
14160
14161         PR rtl-optimization/47157
14162         * combine.c (try_combine): If undobuf.other_insn becomes
14163         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14164         and set *new_direct_jump_p too.
14165
14166 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14167
14168         PR tree-optimization/47021
14169         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14170
14171 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14172
14173         * gcc.c (process_command): Update copyright notice dates.
14174         * gcov.c (print_version): Likewise.
14175         * gcov-dump.c (print_version): Likewise.
14176         * mips-tfile.c (main): Likewise.
14177         * mips-tdump.c (main): Likewise.
14178
14179 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14180
14181         PR tree-optimization/46801
14182         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14183         aggregate fields start at byte boundary instead of the bit-field flag.
14184
14185 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14186
14187         PR driver/47137
14188         * gcc.c (main): Revert revision 168407.
14189
14190 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14191
14192         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14193
14194 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14195
14196         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14197         vector optab to expand vector/scalar shift, update gimple to vector.
14198
14199 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14200
14201         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14202         a thunk.
14203
14204 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14205
14206         PR tree-optimization/46984
14207         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14208         HOST_WIDE_INT.
14209         (cgraph_create_indirect_edge): Fixed line length.
14210         (cgraph_indirect_call_info): Declare.
14211         (cgraph_make_edge_direct) Update declaration.
14212         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14213         (cgraph_create_indirect_edge): Use it.
14214         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14215         callees.
14216         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14217         the new thunk_delta representation.
14218         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14219         HOST_WIDE_INT.
14220         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14221         (ipa_read_indirect_edge_info): Likewise.
14222         * lto-cgraph.c (output_edge_opt_summary): New function.
14223         (output_node_opt_summary): Call it on all outgoing edges.
14224         (input_edge_opt_summary): New function.
14225         (input_node_opt_summary): Call it on all outgoing edges.
14226
14227 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14228
14229         PR driver/47137
14230         * gcc.c (main): Don't check have_o when settting combine_inputs.
14231
14232 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14233
14234         * regrename.c: Add general comment describing the pass.
14235         (struct du_head): Remove 'length' field.
14236         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14237         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14238         Force renaming to the preferred class (if any) in the first pass and do
14239         not consider registers that belong to it in the second pass.
14240         (create_new_chain): Do not set 'length' field.
14241         (scan_rtx_reg): Likewise.
14242
14243 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14244
14245         PR tree-optimization/47140
14246         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14247         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14248         to bit_value_binop.
14249
14250         PR rtl-optimization/47028
14251         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14252         parm_birth_insn instead of at the beginning of first bb.
14253
14254 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14255
14256         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14257         Remove the word "see" before "@pxref".
14258         * doc/rtl.texi: Remove the word "see" before "@pxref".
14259
14260 2011-01-01  Jan Hubicka  <jh@suse.cz>
14261
14262         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14263         memory.
14264
14265 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14266
14267         PR target/38662
14268         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14269
14270 \f
14271 Copyright (C) 2011 Free Software Foundation, Inc.
14272
14273 Copying and distribution of this file, with or without modification,
14274 are permitted in any medium without royalty provided the copyright
14275 notice and this notice are preserved.