gimple.c (gimple_canonical_types_compatible_p): Do not use type-pair caching, do...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-13  Richard Guenther  <rguenther@suse.de>
2
3         * gimple.c (gimple_canonical_types_compatible_p): Do not use
4         type-pair caching, do not compare hashes.
5
6 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
7
8         PR middle-end/48965
9         * tree-cfg.c (edge_to_cases_cleanup): Return true.
10         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11
12 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13
14         * gimplify.c (gimplify_expr): Make sure operand is boolified.
15         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16         compatible type for TRUTH_NOT_EXPR.
17
18 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
19
20         * config/i386/i386.c (ix86_save_reg): Change return type to
21         bool.
22         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
23         can_create_pseudo_p ().
24
25 2011-05-13  Richard Guenther  <rguenther@suse.de>
26
27         PR lto/48978
28         * gimple.c (iterative_hash_gimple_type): Revert change in
29         pointer target and function result and argument hashing.
30
31 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
32
33         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
34         (*movxf_internal_nointeger): Ditto.
35         (*movdf_internal_rex64): Ditto.
36         (*movdf_internal): Ditto.
37         (*movdf_internal_nointeger): Ditto.
38         (*movsf_internal): Ditto.
39         (sincos splitters): Use can_create_pseudo ().
40
41 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
42
43         * config/i386/i386-opts.h: New.
44         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
45         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
46         ix86_section_threshold): Remove.
47         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
48         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
49         OPT_mbranch_cost_.
50         (ix86_option_override_internal): Don't decode strings for options
51         other than -march=, -mtune= and -mfpmath=.  Don't allow for
52         __attribute__ uses in remaining diagnostics for options with
53         string arguments.  Don't check for integer arguments being negative.
54         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
55         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
56         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
57         ix86_branch_cost, ix86_section_threshold): Remove.
58         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
59         HeaderInclude.
60         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
61         but not Var.
62         (masm=): Use Enum and Init.
63         (asm_dialect): New Enum and EnumValue entries.
64         (mbranch-cost=): Use UInteger.
65         (mlarge-data-threshold=): Use UInteger and Init.
66         (mcmodel=): Use Enum and Init.
67         (cmodel): New Enum and EnumValue entries.
68         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
69         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
70         mregparm=): Use UInteger.
71         (mstringop-strategy=): Use Enum and Init.
72         (stringop_alg): New Enum and EnumValue entries.
73         (mtls-dialect=): Use Enum and Init.
74         (tls_dialect): New Enum and EnumValue entries.
75         (mabi=): Use Enum and Init.
76         (calling_abi): New Enum and EnumValue entries.
77         (mveclibabi=): Use Enum and Init.
78         (ix86_veclibabi): New Enum and EnumValue entries.
79
80 2011-05-13  Nick Clifton  <nickc@redhat.com>
81
82         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
83         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
84
85 2011-05-13  Kai Tietz  <ktietz@redhat.com>
86
87         PR middle-end/48984
88         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
89         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
90         (gimple_boolify): Check for cast for boolean_type_node instead for
91         BOOLEAN_TYPE.
92
93 2011-05-13  Richard Guenther  <rguenther@suse.de>
94
95         PR tree-optimization/48172
96         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
97         multiplying by number of iterations for equal step.
98         (vect_create_cond_for_alias_checks): Likewise.
99
100 2011-05-13  Andreas Schwab  <schwab@redhat.com>
101
102         * configure.ac: Use AS_HELP_STRING throughout.
103         * configure: Regenerate.
104
105 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
106
107         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
108         (ix86_emit_restore_regs_using_mov): Likewise.
109         (ix86_emit_restore_sse_regs_using_mov): Likewise.
110
111 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
112
113         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
114         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
115         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
116         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
117         RTX_OK_FOR_OLO10_P): ...here.
118         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
119         SYMBOLIC_CONST.
120
121 2011-05-12  Kai Tietz  <ktietz@redhat.com>
122
123         * gimplify.c (gimple_boolify): Re-boolify expression
124         arguments even if expression type is of kind BOOLEAN_TYPE.
125         (gimplify_boolean_expr): Removed.
126         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
127         and XOR. Additional take care that we keep expression's type.
128         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
129         of TRUTH_AND|OR|XOR_EXPR.
130
131 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
132
133         PR tree-optimization/48975
134         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
135         on all bbs here and free and clear ifc_bbs at the end.
136
137 2011-05-12  Richard Guenther  <rguenther@suse.de>
138
139         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
140         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
141         until after simple checks.
142         (gimple_types_compatible_p): Likewise.
143         (iterative_hash_gimple_type): Always hash pointer targets
144         and function return and argument types.
145         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
146         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
147         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
148         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
149         completely in the simple compare section.
150         (gimple_register_canonical_type): Query the cache again after
151         registering.
152
153 2011-05-12  Richard Guenther  <rguenther@suse.de>
154
155         PR tree-optimization/48172
156         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
157         the number of iterations from the segment size calculation.
158         (vect_create_cond_for_alias_checks): Adjust.
159
160 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
161
162         PR debug/48967
163         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
164         if validate_subreg fails.
165
166 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
167
168         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
169         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
170         early.
171
172 2011-05-12  DJ Delorie  <dj@redhat.com>
173
174         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
175         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
176         created builtin into rx_builtins array.
177         (rx_builtin_decl): New function.
178         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
179
180 2011-05-12  DJ Delorie  <dj@redhat.com>
181             Nick Clifton  <nickc@redhat.com>
182
183         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
184         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
185         (rx_is_legitimate_address): Add pre-decrement and post-increment
186         addressing in HImode and QImode.  Fix test for out of range
187         REG+INT addressing.
188         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
189         (rx_align_for_label): Test label before extracting its usage count.
190         (rx_adjust_insn_lengths): Fix selection of insn codes.
191         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
192
193 2011-05-11  Jason Merrill  <jason@redhat.com>
194
195         * tree.c (type_hash_canon): Use struct tree_type_non_common.
196
197 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
198
199         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
200         reindent the subsequent block.
201
202 2011-05-11  Satoru Takabayashi  <satorux@google.com>
203             Paul Pluzhnikov  <ppluzhnikov@google.com>
204
205         * doc/install.texi (Configuration): Document --with-linker-hash-style.
206         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
207         * config.in: Add LINKER_HASH_STYLE.
208         * configure.ac: Add --with-linker-hash-style.
209         * configure: Regenerate.
210
211 2011-05-11  Richard Guenther  <rguenther@suse.de>
212
213         PR middle-end/48964
214         * gimple.c (iterative_hash_canonical_type): Fix typo.
215
216 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
217
218         * config/i386/i386.c (legitimize_tls_address)
219         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
220         expanders directly for TARGET_GNU2_TLS.  Determine pic and
221         __tls_get_addr symbol reference here.  Update call to
222         gen_tls_global_dynamic_{32,64} for added arguments.
223         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
224         expanders directly for TARGET_GNU2_TLS.  Determine
225         __tls_get_addr symbol reference here.  Update call to
226         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
227         unique UNSPEC REG_EQUIV to libcall block.
228         (ix86_tls_get_addr): Declare static.
229         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
230         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
231         Do not determine pic and __tls_get_addr symbol reference here. Do not
232         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
233         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
234         (tls_global_dynamic_64): Add operand 2.  Do not determine
235         __tls_get_addr symbol reference here.  Do not call
236         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
237         (tls_local_dynamic_base64): Ditto for operand 1.
238
239 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
240
241         * function.c (expand_function_start): Initialize stack_check_probe_note
242         only if the generic stack checking mechanism is used.
243
244 2011-05-11  Richard Guenther  <rguenther@suse.de>
245
246         PR tree-optimization/15256
247         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
248         (A & B) | C, combine (A op CST1) op CST2.
249         (tree_ssa_forward_propagate_single_use_vars): Only bother to
250         visit assigns that have uses.
251
252 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
253
254         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
255         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
256         (unpack_ts_type_common_value_fields): ...this.  Update comment.
257         (unpack_value_fields): Adjust for renaming.
258         (lto_input_ts_type_tree_pointers): Split into...
259         (lto_input_ts_type_common_tree_pointer): ...this and...
260         (lto_input_ts_type_non_common_tree_pointers): ...this.
261         (lto_input_tree_pointers): Adjust for above split.
262         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
263         (pack_ts_type_common_value_fields): ...this.  Update comment.
264         (lto_output_ts_type_tree_pointers): Split into...
265         (lto_output_ts_type_common_tree_pointers): ...this and...
266         (lto_output_ts_type_non_common_tree_pointers): ...this.
267         (lto_output_tree_pointers): Adjust for above split.
268         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
269         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
270         * stor-layout.c (vector_type_mode): Adjust location of mode field.
271         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
272         Define.
273         (struct tree_type): Split into...
274         (struct tree_type_common: ...this and...
275         (struct tree_type_with_lang_specific): ...this and...
276         (struct tree_type_non_common): ...this.  Adjust accessor macros
277         accordingly.
278         (TYPE_VALUES_RAW): Define.
279         (union tree_node): Update for above changes.
280         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
281         TS_TYPE_NON_COMMON.
282         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
283         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
284         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
285         * treestructu.def (TS_TYPE): Remove.
286         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
287         Define.
288
289 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
290
291         PR debug/48159
292         * tree-ssa.c (reset_debug_uses): New function.
293         * tree-flow.h (reset_debug_uses): New prototype.
294         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
295         * tree-loop-distribution.c (generate_loops_for_partition): Call
296         reset_debug_uses on the stmts that will be removed.  Keep around
297         all debug stmts, don't count them as bits in partition bitmap.
298         (generate_builtin): Don't count debug stmts or labels as bits in
299         partition bitmap.
300
301 2011-05-11  Richard Guenther  <rguenther@suse.de>
302
303         * gimple.c (gimple_type_hash_1): Merge with ...
304         (gimple_type_hash): ... this.
305         (gtc_visit): Remove mode parameter and simplify accordingly.
306         (gimple_types_compatible_p_1): Likewise.
307         (gimple_types_compatible_p): Likewise.
308         (iterative_hash_gimple_type): Likewise.
309         (visit): Likewise.
310         (gimple_type_eq): Adjust.
311
312 2011-05-11  Revital Eres  <revital.eres@linaro.org>
313
314         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
315         enters the branch create an anti edge in the opposite direction
316         to prevent the creation of reg-moves.
317         * modulo-sched.c: Adjust comment to reflect the fact we are
318         scheduling closing branch.
319         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
320         (stage_count): New field in struct partial_schedule.
321         (calculate_stage_count): New function.
322         (normalize_sched_times): Rename to reset_sched_times and handle
323         incrementing the sched time of the nodes by a constant value
324         passed as parameter.
325         (duplicate_insns_of_cycles): Skip closing branch.
326         (sms_schedule_by_order): Schedule closing branch.
327         (ps_insn_find_column): Handle closing branch.
328         (sms_schedule): Call reset_sched_times and adjust the code to
329         support scheduling of the closing branch.
330         (ps_insert_empty_row): Update calls to normalize_sched_times
331         and rotate_partial_schedule functions.
332
333 2011-05-11  Richard Guenther  <rguenther@suse.de>
334
335         PR middle-end/48953
336         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
337
338 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
339
340         * opts.c (finish_options): Move warning settings from process_options.
341         * toplev.c (process_options): Move warning settings to finish_options.
342
343 2011-05-11  Richard Guenther  <rguenther@suse.de>
344
345         PR tree-optimization/18041
346         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
347         (simplify_bitwise_binary): ... this.  Handle operand conversions
348         by applying them to the result instead.
349         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
350
351 2011-05-11  Richard Guenther  <rguenther@suse.de>
352
353         * gimple.c (gimple_canonical_types_compatible_p): Split out
354         from gimple_types_compatible_p and friends.  Do not recurse
355         to pointed-to types.
356         (gimple_canonical_type_eq): Use it.
357         (iterative_hash_canonical_type): Split out from
358         iterative_hash_gimple_type and friends.  Do not recurse
359         to pointed-to types.
360         (gimple_canonical_type_hash): Use it, allocate the hash here.
361
362 2011-05-11  Revital Eres  <revital.eres@linaro.org>
363
364         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
365         recognizing doloop.
366
367 2011-05-11  Revital Eres  <revital.eres@linaro.org>
368
369         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
370         instead of PREV_INSN.
371
372 2011-05-11  Revital Eres  <revital.eres@linaro.org>
373
374         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
375         * loop-doloop.c (doloop_condition_get): Likewise.
376         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
377         (doloop_end): New.
378         * config/arm/arm.md (*addsi3_compare0): Remove "*".
379
380 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
381
382         * tree.def (CASE_LABEL_EXPR): Add an operand.
383         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
384
385 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
386
387         * c-decl.c (c_override_global_bindings_to_false): Remove.
388         (global_bindings_p): Don't check
389         c_override_global_bindings_to_false.
390         * c-tree.h (c_override_global_bindings_to_false): Remove.
391         * c-typeck.c (composite_type): Don't set
392         c_override_global_bindings_to_false.
393
394 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
395
396         PR target/48857, 48495
397         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
398         (VSX_MODE): Ditto.
399         (VSX_MOVE_MODE): Ditto.
400         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
401         VSX vector types.  Add V2DImode.
402         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
403         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
404         (MODES_TIEABLE_P): Ditto.
405
406         * config/rs6000/rs6000.c (rs6000_emit_move): Use
407         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
408         VSX_VECTOR_MODE.
409         (init_cumulative_args): Ditto.
410         (rs6000_function_arg_boundary): Ditto.
411         (rs6000_function_arg_advance_1): Ditto.
412         (rs6000_function_arg): Ditto.
413         (rs6000_function_ok_for_sibcall): Ditto.
414         (emit_frame_save): Ditto.
415         (rs6000_function_value): Ditto.
416         (rs6000_libcall_value): Ditto.
417
418 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
419
420         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
421         i386/darwin-lib.h to $libgcc_tm_file.
422         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
423
424 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
425
426         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
427
428 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
429
430         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
431         * config/rs6000/rs6000-tables.opt: New file (generated).
432         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
433         rs6000/rs6000-tables.opt to extra_options.
434         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
435         * config/rs6000/rs6000.c (rs6000_select): Remove.
436         (processor_target_table): Move contents to rs6000-cpus.def.
437         (darwin_rs6000_override_options): Check
438         global_options_set.x_rs6000_cpu_index instead of
439         rs6000_select[1].string.
440         (rs6000_option_override_internal): Likewise.
441         (rs6000_handle_option): Don't assert that global structures are in
442         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
443         (rs6000_default_cpu): New variable.
444         (rs6000_file_start): Set it instead of local default_cpu.  Check
445         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
446         global_options_set.x_rs6000_tune_index instead of rs6000_select.
447         (rs6000_darwin_file_start): Check rs6000_default_cpu and
448         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
449         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
450         rs6000_select): Remove.
451         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
452         Remove.
453         (mcpu=, mtune=): Use Var, Init, Enum and Save.
454         * config/rs6000/t-rs6000
455         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
456         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
457         global_options_set.x_rs6000_cpu_index instead of
458         rs6000_select[1].string.
459         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
460         global_options_set.x_rs6000_cpu_index instead of
461         rs6000_select[1].string.
462
463 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
464
465         * config.gcc (libgcc_tm_file): Define instead of including files
466         from ../../libgcc/config/ in tm_file.
467         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
468         * configure: Regenerate.
469         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
470         libgcc_tm.h, cs-libgcc_tm.h): New.
471         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
472         (clean): Remove libgcc_tm.h.
473         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
474         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
475         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
476
477 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
478
479         PR target/48896
480         * config/avr/avr.c (avr_ret_register): Return unsigned int
481         instead of int.
482         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
483         it to avr_libcall_value.
484         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
485         expand_expr.
486         (avr_expand_binop_builtin): Ditto.
487         (avr_expand_unop_builtin): Ditto.
488
489 2011-05-10  DJ Delorie  <dj@redhat.com>
490
491         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
492         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
493         * config/rx/rx.c (rx_align_for_label): Add label and
494         uses_threshold parameters.  Do not align when the label is not
495         used enough.
496         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
497
498 2011-05-10  Richard Guenther  <rguenther@suse.de>
499
500         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
501         a series of conversions and apply foldings similar to what
502         fold-const does.
503         (tree_ssa_forward_propagate_single_use_vars): Call it.
504
505 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
506
507         PR tree-optimization/48611
508         PR tree-optimization/48794
509         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
510         referenced from RESX or EH_DISPATCH arguments.
511
512         PR debug/48928
513         * dfp.c (decimal_to_decnumber): Handle conversion from
514         dconst{1,2,m1,half}.
515
516 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
517
518         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
519         for !flag_prefer_avx128.
520         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
521
522 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
523
524         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
525         (fold_ternary_loc): Use expr_location_or.
526
527 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
528
529         PR debug/48853
530         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
531         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
532         Pmode and mem_mode is not VOIDmode.
533
534 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
535
536         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
537         TYPE_QUAL_RESTRICT): Convert to enum.
538
539 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
540
541         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
542         (const_pow2_1_to_8_operand): Ditto.
543         (const_pow2_1_to_128_operand): Ditto.
544         (const_pow2_1_to_32768_operand): Ditto.
545         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
546         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
547         in insn constraint to check integer value of operand 3.
548         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
549
550         (PINSR_MODE): New mode iterator.
551         (sse2p4_1): New mode attribute.
552         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
553         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
554         iterator.  Use const_int_operand instead of
555         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
556         exact_log2 in insn constraint to check integer value of operand 3.
557
558 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
559
560         * config/i386/sse.md (blendbits): Remove mode attribute.
561         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
562         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
563         Check integer value of operand 3 in insn constraint.
564
565 2011-05-09  Richard Guenther  <rguenther@suse.de>
566
567         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
568         for diagnostics.
569         (lto_symtab_merge): Likewise.  Do not register types here.
570         (lto_symtab_merge_decls_2): Likewise.
571         (lto_symtab_merge_decls_1): Likewise.
572         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
573         * gimple.c (enum gtc_mode): Declare.
574         (gimple_types_compatible_p): Make static.
575
576 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
577
578         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
579         temporary register to match Pmode.
580
581 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
582
583         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
584         and *vec_concatv4si_1_avx.
585
586 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
587
588         PR rtl-optimization/48927
589         * ira-conflicts.c (commutative_constraint_p): Use
590         recog_data.alternative_enabled_p to disable alternatives where
591         "enabled" attribute is false.
592         (get_dup_num): Ditto.
593         * ira-lives.c (single_reg_class): Ditto.
594         (ira_implicitly_set_insn_hard_regs): Ditto.
595
596 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
597
598         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
599         (dataflow_set_preserve_mem_locs): Likewise.
600
601 2011-05-09  Philipp Thomas  <pth@suse.de>
602
603         * config/mep/mep.c (mep_validate_vliw): Syntax description
604         should not be translated.
605
606 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
607
608         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
609         * config/mips/mips-tables.opt: New file (generated).
610         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
611         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
612         MIPS_ARCH_OPTION_NATIVE): Define.
613         * config/mips/mips.c (mips_cpu_info_table): Move contents to
614         mips-cpus.def.
615         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
616         mips_parse_cpu): Remove.
617         (mips_cpu_info_from_opt, mips_default_arch): New.
618         (mips_handle_option): Don't assert that global structures are in
619         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
620         (mips_option_override): Use new variables and functions to set
621         state of these options.  Use strcmp to check for individual CPU names.
622         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
623         definition.
624         * config/mips/mips.opt (march=): Use ToLower and Enum.
625         (mips): Use ToLower, Enum and Var.
626         (mtune=): Use ToLower and Enum.
627         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
628
629 2011-05-08  Jan Hubicka  <jh@suse.cz>
630
631         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
632         Arrange type pairs to be UID ordered.
633         (gimple_lookup_type_leader): Make inline.
634
635 2011-05-09  Nick Clifton  <nickc@redhat.com>
636
637         PR target/48899
638         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
639         PROCESSOR_DEFAULT.
640
641         PR target/48897
642         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
643         variable 's'.
644
645 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
646
647         * combine.c (simplify_comparison): Abstract out parts into...
648         (simplify_compare_const): ... new function.
649         (try_combine): Generalize parallel arithmetic/compare combining
650         to call simplify_compare_const() and CANONICALIZE_COMPARE().
651
652 2011-05-08  Jan Hubicka  <jh@suse.cz>
653
654         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
655         (cgraph_create_virtual_clone): Call hooks once virtual clone
656         is finished.
657         * cgraph.h (cgraph_clone_node): Update prototype.
658         * ipa-cp.c (ipcp_estimate_growth): Use
659         estimate_ipcp_clone_size_and_time.
660         * ipa-inline-transform.c (clone_inlined_nodes): Update.
661         * lto-cgraph.c (input_node): Update.
662         * ipa-inline.c (recursive_inlining): Update.
663         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
664         (evaluate_conditions_for_known_args): Break out from ...
665         (evaluate_conditions_for_edge): ... here.
666         (evaluate_conditions_for_ipcp_clone): New function.
667         (inline_node_duplication_hook): Update clone summary based
668         on parameter map.
669         (estimate_callee_size_and_time): Rename to ...
670         (estimate_node_size_and_time): take NODE instead of EDGE;
671         take POSSIBLE_TRUTHS as argument.
672         (estimate_callee_size_and_time): Update.
673         (estimate_ipcp_clone_size_and_time): New function.
674         (do_estimate_edge_time): Update.
675
676 2011-05-08  Richard Guenther  <rguenther@suse.de>
677
678         PR middle-end/48908
679         PR middle-end/48905
680         * expmed.c (expand_shift_1): Compute adjusted constant shift
681         amount manually.
682
683 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
684
685         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
686
687 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
688
689         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
690
691 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
692
693         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
694
695 2011-05-07  Jan Hubicka  <jh@suse.cz>
696
697         * ipa-inline-transform.c (inline_call): Account when program size
698         decreases.
699         * ipa-inline.c (relative_time_benefit): New function.
700         (edge_badness): Reorganize to be power 2 based; fix thinko when
701         computing badness for negative growth; update comments to match
702         reality; better dumps.
703
704 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
705
706         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
707         type to bool and adjust comment.
708         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
709         (fold_mathfn_compare): Remove calls to global_bindings_p.
710         (fold_inf_compare): Likewise.
711         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
712         * c-tree.h (global_bindings_p): Adjust prototype.
713         * c-decl.c (global_bindings_p): Return bool and simplify.
714
715 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
716
717         PR tree-optimization/48837
718         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
719         when accumulator transformation is performed.
720
721 2011-05-06  Jan Hubicka  <jh@suse.cz>
722
723         * i386.h (ix86_tune_indices): Add
724         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
725         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
726         * i386.c (initial_ix86_tune_features): Add
727         X86_SOFTARE_PREFETCHING_BENEFICIAL.
728         (software_prefetching_beneficial_p): Remove predicate.
729         (ix86_option_override_internal): Use new macro.
730
731 2011-05-06  Jan Hubicka  <jh@suse.cz>
732
733         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
734
735 2011-05-06  Jan Hubicka  <jh@suse.cz>
736
737         * cgraph.c (cgraph_add_thunk): Create real function node instead
738         of alias node; finalize it and mark needed/reachale; arrange visibility
739         to be right and add it into the corresponding same comdat group list.
740         (dump_cgraph_node): Dump thunks.
741         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
742         cgraph_function_with_gimple_body_p,
743         cgraph_first_function_with_gimple_body,
744         cgraph_next_function_with_gimple_body): New functions.
745         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
746         New macros.
747         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
748         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
749         * cgraphunit.c (cgraph_finalize_function): Only look into possible
750         devirtualization when optimizing.
751         (verify_cgraph_node): Verify thunks.
752         (cgraph_analyze_function): Analyze thunks.
753         (cgraph_mark_functions_to_output): Output thunks only in combination
754         with function they are assigned to.
755         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
756         alias into normal node.
757         (assemble_thunks): New functoin.
758         (cgraph_expand_function): Use it.
759         * lto-cgraph.c (lto_output_node): Stream thunks.
760         (input_overwrite_node): Stream in thunks.
761         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
762         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
763         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
764         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
765         (inline_analyze_function): Do not care about thunk jump functions.
766         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
767         * ipa-prop.c (ipa_prop_write_jump_functions): Use
768         cgraph_function_with_gimple_body_p.
769         * passes.c (do_per_function_toporder): Use
770         cgraph_function_with_gimple_body_p.
771         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
772         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
773         (function_called_by_processed_nodes_p): Likewise.
774
775 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
776
777         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
778         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
779         entries.
780         (mabi=): Replace with separate entries for mabi=altivec,
781         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
782         mabi=ieeelongdouble and mabi=ibmlongdouble.
783         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
784         check for -mabi=spe without SPE ABI support here.
785         (rs6000_handle_option): Replace OPT_mabi_ handling with
786         OPT_mabi_altivec and OPT_mabi_spe handling.
787
788 2011-05-06  Cary Coutant  <ccoutant@google.com>
789
790         * dwarf2out.c (contains_subprogram_definition): New function.
791         (should_move_die_to_comdat): Call it.
792
793 2011-05-06  Jeff Law  <law@redhat.com>
794
795         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
796         remove_ctrl_stmt_and_useless_edges.
797         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
798         (fixup_template_block, thread_single_edge): Likewise.
799         (mark_threaded_blocks): Use THREAD_TARGET.
800
801 2011-05-06  Alan Modra  <amodra@gmail.com>
802
803         PR target/48900
804         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
805         const0_rtx as the arg to the dummy __tls_get_addr libcall.
806
807 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
808
809         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
810         constraint modifier to "r".
811
812 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
813
814         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
815         fall through for OPT_mcmodel_.
816
817 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
818
819         * config/s390/s390.c (s390_asm_trampoline_template): Comment
820         instruction sizes.
821         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
822
823 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
824
825         PR target/47930
826         * config/arm/arm.opt (marm): Document it.
827         (mthumb): Reject negative variant.
828
829 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
830
831         PR target/48898
832         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
833         Fix typo in "ccvt" variable name.
834
835 2011-05-06  Tristan Gingold  <gingold@adacore.com>
836
837         PR target/48895
838         * config/vms/vms-ar.c (main): Remove cwd variable.
839
840 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
841
842         PR debug/48902
843         * var-tracking.c (prepare_call_arguments): Move else before #endif.
844
845 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
846
847         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
848         * gimplify.c (gimplify_switch_expr): Likewise.
849         * omp-low.c (expand_omp_sections): Likewise.
850         * tree-eh.c (lower_try_finally_switch): Likewise.
851         (lower_eh_dispatch): Likewise.
852         * tree.h (build_case_label): Declare.
853         * tree.c (build_case_label): Define.
854
855 2011-05-05  Jason Merrill  <jason@redhat.com>
856
857         PR c++/40975
858         * tree-inline.c (copy_tree_r): Use copy_statement_list.
859         (copy_statement_list): Don't recurse.
860         * stor-layout.c (copy_self_referential_tree_r): Don't allow
861         STATEMENT_LIST.
862
863 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
864
865         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
866         through from -mfpu= handling.
867         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
868
869 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
870
871         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
872         POST_MODIFY.
873
874 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
875
876         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
877         for 11.31.
878         (hppa[12]*-*-hpux11*): Ditto.
879         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
880         * config/ia64/hpux-unix2003.h: New.
881         * config/pa/pa-hpux1131.opt: New.
882         * config/pa/pa-hpux1131.h: New.
883         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
884         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
885         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
886
887 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
888
889         PR debug/48853
890         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
891         instead of mode as 3rd argument to recursive call.
892         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
893         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
894         VOIDmode.
895         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
896         don't give up if mode is Pmode and mem_mode is not VOIDmode.
897         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
898         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
899
900 2011-05-05  Julian Brown  <julian@codesourcery.com>
901
902         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
903         parenthesis in D-register case.
904
905 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
906
907         * opt-functions.awk (var_type_struct): Handle Enum options.
908         * optc-gen.awk: Don't check range of variables of character type.
909         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
910         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
911         rs6000_sdata_name, rs6000_explicit_options): Remove.
912         (rs6000_option_override_internal): Check for -malign-power here.
913         Use global_options_set instead of rs6000_explicit_options.
914         (rs6000_parse_fpu_option): Remove.
915         (rs6000_handle_option): Access variables via opts and opts_set
916         pointers.  Use error_at and warning_at.  Add fall-through
917         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
918         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
919         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
920         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
921         here.  Don't use rs6000_parse_fpu_option.
922         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
923         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
924         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
925         (mrecip=): Use Var.
926         (mspe): Use Var and Save.
927         (mtraceback=): Use Enum and Var.
928         (rs6000_traceback_type): New Enum and EnumValue entries.
929         (mfloat-gprs=): Use Enum, Var and Save.
930         (rs6000_float_gprs): New Enum and EnumValue entries.
931         (mlong-double-): use Var and Save.
932         (msched-costly-dep=, minsert-sched-nops=): Use Var.
933         (malign-): Use Enum and Var.
934         (rs6000_alignment_flags): New Enum and EnumValue entries.
935         (mfpu=): Use Enum.
936         (fpu_type_t): New Enum and EnumValue entries.
937         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
938         global_options_set instead of rs6000_explicit_options.
939         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
940         global_options_set instead of rs6000_explicit_options.
941         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
942         global_options_set instead of rs6000_explicit_options.
943         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
944         global_options_set instead of rs6000_explicit_options.
945         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
946         global_options_set instead of rs6000_explicit_options.
947         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
948         global_options_set instead of rs6000_explicit_options.
949         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
950         definition.
951         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
952         global_options_set instead of rs6000_explicit_options.
953         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
954         (rs6000_cmodel): New Enum and EnumValue entries.
955         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
956         global_options_set instead of rs6000_explicit_options.
957         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
958         (mtls-size=): Use Enum and Var.
959         (rs6000_tls_size): New Enum and EnumValue entries.
960
961 2011-05-05  Michael Matz  <matz@suse.de>
962
963         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
964         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
965         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
966         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
967         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
968         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
969         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
970         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
971         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
972         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
973         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
974         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
975         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
976         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
977         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
978         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
979
980 2011-05-05  Richard Guenther  <rguenther@suse.de>
981
982         * expmed.c (expand_variable_shift): Rename to ...
983         (expand_shift_1): ... this.  Take an expanded shift amount.
984         For rotates recurse directly not building trees for the shift amount.
985         (expand_variable_shift): Wrap around expand_shift_1.
986         (expand_shift): Adjust.
987
988 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
989
990         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
991
992 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
993
994         * tree.h (get_pending_sizes): Remove prototype.
995         (put_pending_size): Likewise.
996         (put_pending_sizes): Likewise.
997         * stor-layout.c (pending_sizes): Delete.
998         (get_pending_sizes): Likewise.
999         (put_pending_size): Likewise.
1000         (put_pending_sizes): Likewise.
1001         (variable_size): Do not call put_pending_size and tidy up.
1002         * function.h (struct function): Remove dont_save_pending_sizes_p.
1003         * lto-streamer-in.c (input_function): Do not stream it.
1004         * lto-streamer-out.c (output_function): Likewise.
1005         * tree-inline.c (initialize_cfun): Do not copy it.
1006         * c-decl.c (store_parm_decls): Do not set it.
1007         * omp-low.c (create_task_copyfn): Likewise.
1008         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1009
1010 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1011
1012         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1013         conditions.
1014         (*movdf_internal): Ditto.
1015         (*movdf_internal_nointeger): Ditto.
1016         (*movsf_internal): Ditto.
1017
1018 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1019
1020         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1021         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1022         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1023         (c_variable_size): Remove.
1024         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1025         call put_pending_sizes.
1026         (get_parm_info): Add parameter expr.  Use it to set
1027         arg_info->pending_sizes.
1028         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1029         get_pending_sizes.
1030         * c-parser.c (c_parser_parms_declarator): Update call to
1031         c_parser_parms_list_declarator.
1032         (c_parser_parms_list_declarator): Take parameter expr.  Update
1033         call to push_parm_decl.  Update recursive call.  Don't call
1034         get_pending_sizes.  Update calls to get_parm_info.
1035         (c_parser_objc_method_definition): Update calls to
1036         c_parser_objc_method_decl and objc_start_method_definition.
1037         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1038         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1039         grokparm.
1040         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1041         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1042         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1043
1044 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1045
1046         PR pch/45979
1047         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1048         __ARM_EABI__ hosts.
1049
1050 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1051
1052         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1053         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1054         (spu_output_mi_thunk): New function.
1055
1056 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1057
1058         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1059         targetm.asm_out.print_operand.
1060         * config/sol2.c: Include target.h.
1061
1062 2011-05-04  Jan Hubicka  <jh@suse.cz>
1063
1064         * ipa-inline.c (reset_edge_caches): New function.
1065         (update_caller_keys): Add check_inlinablity_for; do not
1066         reset edge caches; remove now unnecesary loop.
1067         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1068         (update_all_callee_keys): Likewise.
1069         (inline_small_functions): Sanity check cache; update code
1070         recomputing it.
1071
1072 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1073
1074         PR rtl-optimization/47612
1075         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1076         as the last insn of the sequence to be moved.
1077
1078 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1079
1080         PR fortran/48864
1081         * doc/invoke.texi (Ofast): Document that it
1082         enables Fortran's -fno-protect-parens.
1083
1084 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1085
1086         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1087
1088 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1089
1090         * stor-layout.c (variable_size): Do not issue errors.
1091
1092 2011-05-04  Richard Guenther  <rguenther@suse.de>
1093
1094         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1095         for array-ref indices.
1096         (tree_coverage_counter_addr): Likewise.
1097         (build_fn_info_type): Use size_int for index types.
1098         (build_gcov_info): Likewise.
1099
1100 2011-05-04  Richard Guenther  <rguenther@suse.de>
1101
1102         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1103         to build_int_cst.
1104         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1105         for constructor indices.
1106         (push_init_level): Likewise.
1107
1108 2011-05-04  Richard Guenther  <rguenther@suse.de>
1109
1110         * explow.c (promote_mode): Move variable declarations before code.
1111
1112 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1113
1114         * tree.h (build_function_type_array): Declare.
1115         (build_varargs_function_type_array): Declare.
1116         (build_function_type_vec, build_varargs_function_type_vec): Define.
1117         * tree.c (build_function_type_array_1): New function.
1118         (build_function_type_array): New function.
1119         (build_varargs_function_type_array): New function.
1120
1121 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1122
1123         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1124         before setting STMT_VINFO_TYPE.
1125
1126 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1127
1128         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1129         instead of spu_pass_by_reference.
1130
1131 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1132
1133         * calls.c (emit_library_call_value_1): Invoke
1134         promote_function_mode hook on libcall arguments.
1135         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1136         argument being NULL.
1137         * targhooks.c (default_promote_function_mode): Lisewise.
1138         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1139         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1140
1141         * doc/tm.texi: Document that TYPE argument might be NULL.
1142
1143 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1144
1145         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1146
1147 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1148
1149         From Bernd Schmidt
1150         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1151
1152 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1153
1154         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1155         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1156         Move ...
1157         * mips-tfile.c: ... here.
1158         Don't include coretypes.h, tm.h, filenames.h.
1159         (saber_stop): Remove definition and all calls.
1160         [__SABER__]: Remove.
1161         (__LINE__): Remove default.
1162         (Size_t, Ptrdiff_t): Remove definitions.
1163         Replace by size_t, ptrdiff_t.
1164         [!MIPS_DEBUGGING_INFO]: Remove.
1165         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1166         (progname): Add const.
1167         (STATIC): Remove.
1168         Replace all uses by static.
1169         (ALIGN_SYMTABLE_OFFSET): Remove default.
1170         * mips-tdump.c: Don't include coretypes.h, tm.h.
1171         Remove !MIPS_IS_STAB guard.
1172         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1173         $(TM_H), filenames.h dependencies.
1174         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1175
1176 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1177
1178         From Jie Zhang
1179         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1180         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1181
1182 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1183
1184         From Bernd Schmidt
1185         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1186         account and save/restore RETS.
1187         (PROFILE_BEFORE_PROLOGUE): Define.
1188         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1189         the push insn to use predecrement.
1190
1191 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1192
1193         From Jie Zhang
1194         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1195
1196 2011-05-04  Nick Clifton  <nickc@redhat.com>
1197
1198         * config/mn10300/mn10300.c: Include cfgloop.h.
1199         (DUMP): New macro.
1200         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1201         Lcc or a FLcc insn into the instruction stream.
1202         (mn10300_block_contains_call): New function.  Returns true if the
1203         given basic block contains a CALL insn.
1204         (mn10300_loop_contains_call_insn): New function.  Returns true if
1205         the given loop contains a CALL insn.
1206         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1207         to use the SETLB and Lcc or FLcc insns.
1208         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1209         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1210         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1211         disable the SETLB optimization.
1212         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1213         __SETLB__ or __NO_SETLB__.
1214         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1215         (movsf_internal): Handle MDR register.
1216         (cmpsi): Make visible.
1217         (setlb): New pattern.
1218         (Lcc): New pattern.
1219         (FLcc): New pattern.
1220
1221 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1222
1223         PR target/48860
1224         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1225         for reg<->xmm moves.
1226         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1227         (vec_concatv2di_rex64_sse): Ditto.
1228         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1229         (*vec_extractv2di_1_rex64): Ditto.
1230
1231         Revert:
1232         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1233
1234         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1235         reg<->xmm moves.
1236         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1237
1238 2011-05-04  Richard Guenther  <rguenther@suse.de>
1239
1240         * tree.h (int_const_binop): Remove notrunc argument.
1241         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1242         create integer constants that are properly truncated.
1243         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1244         (const_binop): Remove zero notrunc argument to int_const_binop.
1245         (size_binop_loc): Likewise.
1246         (fold_div_compare): Likewise.
1247         (maybe_canonicalize_comparison_1): Likewise.
1248         (fold_comparison): Likewise.
1249         (fold_binary_loc): Likewise.
1250         (multiple_of_p): Likewise.
1251         * expr.c (store_constructor): Likewise.
1252         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1253         (maybe_fold_stmt_addition): Likewise.
1254         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1255         * stor-layout.c (layout_type): Likewise.
1256         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1257         * tree-sra.c (build_ref_for_offset): Likewise.
1258         (build_user_friendly_ref_for_offset): Likewise.
1259         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1260         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1261         * tree-ssa-loop-niter.c (inverse): Likewise.
1262         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1263         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1264         * tree-switch-conversion.c (check_range): Likewise.
1265         (build_constructors): Likewise.
1266         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1267         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1268         (extract_range_from_assert): Likewise.
1269         (vrp_int_const_binop): Likewise.
1270         (extract_range_from_binary_expr): Likewise.
1271         (extract_range_from_unary_expr): Likewise.
1272         (check_array_ref): Likewise.
1273         (find_case_label_range): Likewise.
1274         (simplify_div_or_mod_using_ranges): Likewise.
1275         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1276         comparing case labels for merging.
1277
1278 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1279
1280         * dwarf2out.c (debug_str_hash_forced): Removed.
1281         (gen_label_for_indirect_string): Removed.
1282         (get_debug_string_label): Removed.
1283         (AT_string_form): Generate label directly.
1284         (output_indirect_string): Test indirect_string_node for
1285         DW_FORM_strp instead of checking label and refcount.
1286         (prune_indirect_string): Removed.
1287         (prune_unused_types): Don't check debug_str_hash_forced or
1288         call prune_indirect_string.
1289
1290 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1291
1292         PR other/48093
1293         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1294
1295 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1296
1297         PR debug/47994
1298         PR debug/47919
1299         * combine.c (try_combine): Skip debug insns at m_split tests.
1300
1301 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1302
1303         PR42288
1304         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1305         when info_section_emitted.
1306
1307 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1308
1309         * config/mips/mips-opts.h: New.
1310         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1311         to mips-opts.h.
1312         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1313         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1314         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1315         via opts pointer.
1316         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1317         mips-opts.h.
1318         (mips_abi, mips_code_readable): Don't declare.
1319         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1320         (mabi=): Use Enum and Var.
1321         (mips_abi): New Enum and EnumValue entries.
1322         (mcode-readable=): Use Enum and Var.
1323         (mips_code_readable_setting): New Enum and EnumValue entries.
1324         (mr10k-cache-barrier=): Use Enum and Var.
1325         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1326
1327 2011-05-03  Jan Hubicka  <jh@suse.cz>
1328
1329         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1330         replace hash by pointer map.
1331         (cgraph_node_set_element_def, cgraph_node_set_element,
1332         const_cgraph_node_set_element, varpool_node_set_element_def,
1333         varpool_node_set_element, const_varpool_node_set_element): Remove.
1334         (free_cgraph_node_set, free_varpool_node_set): New function.
1335         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1336         * tree-emutls.c: Free varpool node set.
1337         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1338         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1339         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1340         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1341         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1342         Move here from ipa.c; implement using pointer_map
1343         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1344         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1345         debug_cgraph_node_set, varpool_node_set_new,
1346         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1347         dump_varpool_node_set, debug_varpool_node_set):
1348         Move to ipa-uitls.c.
1349         * passes.c (ipa_write_summaries): Update.
1350
1351 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1352
1353         From Mike Frysinger:
1354         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1355         bf542/bf544/bf547/bf548/bf549.
1356
1357 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1358
1359         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1360
1361 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1362
1363         From Bernd Schmidt:
1364         * config/bfin/bfin.md (MOVCC): New mode_macro.
1365         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1366         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1367         comments from generated assembly.
1368
1369 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1370
1371         From Bernd Schmidt
1372         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1373         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1374         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1375         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1376         * config/bfin/lib1funcs.asm (___muldi3): New function.
1377
1378 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1379
1380         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1381         build_function_type_list instead of build_function_type.
1382         Rearrange initialization of `args' to do so.
1383
1384 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1385
1386         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1387         instead of build_function_type.
1388
1389 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1390
1391         * config/rs6000/rs6000.c (spe_init_builtins): Call
1392         build_function_type_list instead of build_function_type.
1393         (paired_init_builtins, altivec_init_builtins): Likewise.
1394         (builtin_function_type): Likewise.
1395
1396 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1397
1398         * config/sh/sh.c (sh_media_init_builtins): Call
1399         build_function_type_list instead of build_function_type.
1400
1401 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1402
1403         * config/sparc/sparc.c (sparc_file_end): Call
1404         build_function_type_list instead of build_function_type.
1405
1406 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1407
1408         * config/alpha/alpha.c (alpha_init_builtins): Call
1409         build_function_type_list instead of build_function_type.
1410
1411 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1412
1413         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1414         build_function_type_list instead of build_function_type.
1415
1416 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1417
1418         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1419         build_function_type_list instead of build_function_type.
1420         Delete `endlink' variable.
1421
1422 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1423
1424         * config/avr/avr.c (avr_init_builtins): Call
1425         build_function_type_list instead of build_function_type.
1426
1427 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1428
1429         * config/picochip/picochip.c (picochip_init_builtins): Call
1430         build_function_type_list instead of build_function_type.
1431         Delete `endlink' variable.
1432
1433 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1434
1435         * config/bfin/bfin.c (bfin_init_builtins): Call
1436         build_function_type_list instead of build_function_type.
1437
1438 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1439
1440         From Bernd Schmidt
1441         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1442         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1443
1444 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1445
1446         From Jie Zhang:
1447         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1448         libbffastfp overrides libgcc when -mfast-fp.
1449
1450 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1451
1452         Originally from Bernd Schmidt
1453         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1454         * config/bfin/bfin.c (override_options): Test it and error if
1455         TARGET_FDPIC.
1456
1457 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1458
1459         Originally From Bernd Schmidt
1460         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1461         FD-PIC.
1462
1463 2011-05-03  Jeff Law  <law@redhat.com>
1464
1465         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1466         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1467         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1468         than accessing AUX field directly.  Free the AUX field before
1469         clearing it.
1470         (thread_block, thread_through_loop_header): Likewise.
1471         (thread_single_edge, mark_threaded_blocks): Likewise.
1472         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1473         (register_jump_thread): Do not attempt to thread to a NULL edge.
1474
1475 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1476
1477         * function.c (init_function_start): Call decide_function_section.
1478         * varasm.c (decide_function_section): New function.
1479         (assemble_start_function): When not using
1480         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1481         or first_function_block_is_cold.
1482         * rtl.h (decide_function_section): Declare.
1483
1484 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1485             Jakub Jelinek  <jakub@redhat.com>
1486
1487         PR target/48774
1488         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1489         only succeed if req_mode is the same as set_mode.
1490
1491 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1492
1493         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1494         * genemit.c (gen_exp): Handle RETURN.
1495         * emit-rtl.c (verify_rtx_sharing): Likewise.
1496         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1497         * rtl.c (copy_rtx): RETURN is shared.
1498         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1499         (ret_rtx): New.
1500         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1501         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1502         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1503         * config/cris/cris.c (cris_expand_return): Likewise.
1504         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1505         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1506         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1507         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1508         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1509         Likewise.
1510         * config/v850/v850.c (expand_epilogue): Likewise.
1511         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1512         * config/arm/arm.md (epilogue): Likewise.
1513         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1514         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1515         variable to ret_reg.
1516
1517 2011-05-03  Richard Guenther  <rguenther@suse.de>
1518
1519         PR lto/48846
1520         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1521         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1522         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1523
1524 2011-05-03  Richard Guenther  <rguenther@suse.de>
1525
1526         * c-decl.c (grokdeclarator): Instead of looking at
1527         TREE_OVERFLOW check if the constant fits in the index type.
1528
1529 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1530
1531         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1532         (vec_store_lanes<mode><mode>): Likewise.
1533
1534 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1535
1536         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1537         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1538         convert_optab_index values.
1539         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1540         * genopinit.c (optabs): Initialize the new optabs.
1541         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1542         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1543         (expand_STORE_LANES): New functions.
1544         * tree.h (build_array_type_nelts): Declare.
1545         * tree.c (build_array_type_nelts): New function.
1546         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1547         (vect_model_load_cost): Likewise.
1548         (vect_store_lanes_supported, vect_load_lanes_supported)
1549         (vect_record_strided_load_vectors): Declare.
1550         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1551         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1552         (vect_transform_strided_load): Split out statement recording into...
1553         (vect_record_strided_load_vectors): ...this new function.
1554         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1555         (write_vector_array, create_array_ref): New functions.
1556         (vect_model_store_cost): Add store_lanes_p argument.
1557         (vect_model_load_cost): Add load_lanes_p argument.
1558         (vectorizable_store): Try to use store-lanes functions for
1559         interleaved stores.
1560         (vectorizable_load): Likewise load-lanes and loads.
1561         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1562         to vect_model_store_cost.
1563         (vect_build_slp_tree): Likewise vect_model_load_cost.
1564
1565 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1566
1567         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1568         * hooks.c (hook_bool_mode_uhwi_false): New function.
1569         * target.def (array_mode_supported_p): New hook.
1570         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1571         * doc/tm.texi: Regenerate.
1572         * stor-layout.c (mode_for_array): New function.
1573         (layout_type): Use it.
1574         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1575         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1576
1577 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1578
1579         PR target/48723
1580         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1581         for -fstack-check if the size to allocate is negative.
1582
1583 2011-05-02  Lawrence Crowl  <crowl@google.com>
1584
1585         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1586         (timevar_cond_start): New for starting a timer only when it is not
1587         already running.
1588         (timevar_cond_stop): New for stopping a timer when it was not already
1589         running.
1590
1591         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1592         (timevar_cond_start): New as above.
1593         (timevar_cond_stop): New as above.
1594
1595         * timevar.def: Add start/stop timers for compiler phases,
1596         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1597         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1598         and TV_PHASE_FINALIZE.
1599         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1600         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1601         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1602         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1603         Make unused TV_OVERLOAD into a start/stop timer.
1604
1605         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1606         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1607         to indicate that they are start/stop timers.
1608
1609         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1610         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1611         Move initialization to do_compile.
1612         (do_compile): Add initialization from above.
1613         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1614
1615         * c-decl.c (c_write_global_declarations): Add start/stop of
1616         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1617
1618         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1619         or TV_PARSE_INLINE, as appropriate.
1620         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1621         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1622
1623 2011-05-02  Jason Merrill  <jason@redhat.com>
1624
1625         PR c++/40975
1626         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1627
1628 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1629
1630         PR c/35445
1631         * c-decl.c (finish_decl): Only create a composite if the types are
1632         compatible.
1633
1634 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1635
1636         * config/fr30/fr30-protos.h (Mmode): Don't define.
1637         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1638         definition where used.
1639         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1640         define.  Expand definitions where used.
1641         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1642         Expand definitions where used.
1643         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1644         rx_function_arg, rx_function_arg_advance,
1645         rx_function_arg_boundary): Expand definitions of those macros.
1646         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1647         definition where used.
1648
1649 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1650
1651         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1652         reg<->xmm moves.
1653         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1654         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1655         with *movv2sf_internal_rex64_avx.
1656         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1657         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1658         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1659         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1660         "vex" in "prefix" attribute calculation.
1661         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1662
1663 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1664
1665         PR target/47951
1666         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1667         inputs match the output.
1668
1669 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1670
1671         PR target/47955
1672         * config/m68k/m68k.c (m68k_expand_prologue): Set
1673         current_function_static_stack_size.
1674
1675 2011-05-02   Jan Hubicka  <jh@suse.cz>
1676
1677         * lto-streamer.c (lto_streamer_cache_insert_1,
1678         lto_streamer_cache_lookup, lto_streamer_cache_create,
1679         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1680         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1681
1682 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1685         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1686         config/m68k/t-opts: New files.
1687         * config/m68k/m68k-tables.opt: New file (generated).
1688         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1689         extra_options and m68k/t-opts to tmake_file.
1690         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1691         (all_isas): Initialize using m68k-isas.def.
1692         (all_microarchs): Initialize using m68k-microarchs.def.
1693         (m68k_find_selection): Remove.
1694         (m68k_handle_option): Don't assert that global structures are in
1695         use.  Use error_at.  Access variables via opts pointer.  Don't
1696         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1697         directly for -m68020-40 and -m68020-60.
1698         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1699         m68k_tune_entry here.
1700         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1701         to m68k-opts.h.
1702         (m68k_library_id_string): Remove declaration.
1703         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1704         (m68k_library_id_string): New Variable.
1705         (march=, mcpu=, mtune=): Use Enum and Var.
1706
1707 2011-05-02  Richard Guenther  <rguenther@suse.de>
1708
1709         * varasm.c (output_constructor_regular_field): Compute zero-based
1710         index with double-ints.  Make sure to ICE instead of producing
1711         wrong code.
1712         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1713         in asserts.  Properly use a signed type.
1714
1715 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1716
1717         * config/i386/sse.md (V): New mode iterator.
1718         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1719         TARGET_SSE2.
1720         (V_256): Rename from AVX256MODE.
1721         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1722         condition to all users.
1723         (VF1): Ditto.
1724         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1725         condition to all users.
1726         (VF_128): Make V4SF mode unconditional.
1727         (VF_256): Rename from AVX256MODEF2P.
1728         (VI4F_128): Rename from SSEMODE4S.
1729         (VI8F_128): Rename from SSEMODE2D.
1730         (VI4F_256): Rename from AVX256MODE8P.
1731         (VI8F_256): Rename from AVX256MODE4P.
1732         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1733         (ssescalarmodesuffix): Remove SF and DF modes.
1734         (SSEMODE124): Remove.
1735         (SSEMODE1248): Ditto.
1736         (SSEMODEF2P): Ditto.
1737         (AVXMODEF2P): Ditto.
1738         (AVXMODEFDP): Ditto.
1739         (AVXMODEFSP): Ditto.
1740         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1741         unconditional.
1742         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1743         unconditional.
1744         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1745         xop_pcmov_<mode>256.  Use V mode iterator.
1746
1747         Adjust RTX patterns globally for renamed mode attributes.
1748
1749 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1750
1751         * haifa-sched.c (sched_emit_insn): Emit insn before first
1752         non-scheduled insn.  Inform back-end about new insn.  Add
1753         new insn to scheduled_insns list.
1754
1755 2011-05-02  Richard Guenther  <rguenther@suse.de>
1756
1757         PR tree-optimization/48822
1758         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1759         (process_scc): Indicate which iteration we start.
1760
1761 2011-05-02  Jan Hubicka  <jh@suse.cz>
1762
1763         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1764         (lto_section_overrun): New.
1765         * lto-section-out.c (append_block): Rename to ...
1766         (lto_append_block): ... this one; export.
1767         (lto_output_1_stream): Move lto lto-streamer.h
1768         (lto_output_data_stream): Update.
1769         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1770         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1771         functions.
1772
1773 2011-05-02  Richard Guenther  <rguenther@suse.de>
1774
1775         * tree.c (tree_code_counts): New global array.
1776         (record_node_allocation_statistics): Count individual tree codes.
1777         (dump_tree_statistics): Dump individual code stats.
1778
1779 2011-05-01  Jan Hubicka  <jh@suse.cz>
1780
1781         * ipa-inline.c (caller_growth_limits): Fix thinko when
1782         looking for largest stack frame.
1783         * ipa-inline.h (dump_inline_summary): Declare.
1784         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1785         on stack usage.
1786         (dump_inline_summary): Export.
1787         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1788
1789 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1790
1791         * reginfo.c (memory_move_cost): Change rclass argument type form
1792         'enum reg_class' to reg_class_t.
1793         * reload.h (memory_move_cost): Update prototype.
1794         * postreload.c reload_cse_simplify_set): Change type dclass var to
1795         reg_class_t.
1796         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1797         Update prototype.
1798         (ira_allocate_and_set_costs): Change aclass argument type form
1799         'enum reg_class' to reg_class_t.
1800         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1801         Change aclass argument type to reg_class_t.
1802         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1803         to reg_class_t.
1804         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1805         memory_move_cost call.
1806
1807         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1808         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1809         Change type tmp var to reg_class_t.
1810
1811 2011-04-30  Jan Hubicka  <jh@suse.cz>
1812
1813         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1814         inlining into function with flatten attribute.
1815         (want_inline_small_function_p): Be more realistic about inlining
1816         cold calls where callee size grows.
1817
1818 2011-04-30  Jan Hubicka  <jh@suse.cz>
1819
1820         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1821         flags.
1822
1823 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1824
1825         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1826         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1827         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1828         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1829         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1830         (print_operand): Rename to...
1831         (sparc_print_operand): ...this. Make static. Adjust
1832         sparc_print_operand function call.
1833         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1834         functions.
1835
1836 2011-04-30  Jan Hubicka  <jh@suse.cz>
1837
1838         PR middle-end/48752
1839         * ipa-inline.c (early_inliner): Disable when doing late
1840         addition of function.
1841
1842 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1843
1844         * dwarf2out.c (get_address_mode): New inline.
1845         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1846         if not dwarf_strict emit
1847         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1848         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1849         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1850         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1851         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1852         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1853         mem_loc_descriptor callers.
1854         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1855         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1856         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1857         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1858         (base_types): New variable.
1859         (get_base_type_offset, calc_base_type_die_sizes,
1860         base_type_for_mode, mark_base_types, base_type_cmp,
1861         move_marked_base_types): New functions.
1862         (calc_die_sizes): Assert that die_offset is 0 or equal to
1863         next_die_offset.
1864         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1865         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1866         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1867         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1868         (gen_subprogram_die): Don't give up on call site parameters
1869         with non-integral or large integral modes.  Adjust
1870         mem_loc_descriptor callers.
1871         (prune_unused_types): Call prune_unused_types_mark on base_types
1872         vector entries.
1873         (resolve_addr): Call mark_base_types.
1874         (dwarf2out_finish): Call move_marked_base_types.
1875
1876         PR tree-optimization/48809
1877         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1878         type.
1879         (gen_inbound_check): Don't compute index_expr - range_min in utype
1880         again, instead reuse SSA_NAME initialized in build_arrays.
1881         Remove two useless gsi_for_stmt calls.
1882
1883 2011-04-29  Jeff Law  <law@redhat.com>
1884
1885         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1886
1887 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1888
1889         * cgraph.h (cgraph_postorder): Remove declaration.
1890         * ipa-utils.h (ipa_free_postorder_info): Declare.
1891         (ipa_reverse_postorder): Likewise.
1892         * cgraphunit.c: Include ipa-utils.h.
1893         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1894         * ipa-inline.c: Include ipa-utils.h.
1895         (ipa_inline): Update call to ipa_reverse_postorder.
1896         * ipa-pure-const.c (propagate_pure_const): Update call to
1897         ipa_reduced_postorder and ipa_print_order.  Call
1898         ipa_free_postorder_info to clean up.
1899         (propagate_nothrow): Likewise.
1900         * ipa-reference.c (propagate): Removed a useless call to
1901         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1902         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1903         * ipa.c: Include ipa-utils.h.
1904         (ipa_profile): Update call to ipa_reverse_postorder.
1905         (cgraph_postorder): Moved to...
1906         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1907         (ipa_utils_print_order): Renamed to ipa_print_order.
1908         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1909         comments.
1910         (ipa_free_postorder_info): New function.
1911         * passes.c: Include ipa-utils.h.
1912         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1913         (ipa_write_summaries): Likewise.
1914         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1915         (cgraphunit.o): Likewise.
1916         (ipa.o): Likewise.
1917         (ipa-inline.o): Likewise.
1918
1919 2011-04-29  Jan Hubicka  <jh@suse.cz>
1920
1921         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1922         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1923         * ipa-inline.h (clause_t): Turn into unsigned int.
1924         * ipa-inline-analysis.c (add_clause): Do more simplification.
1925         (and_predicates): Shortcut more cases.
1926         (predicates_equal_p): Move forward; check that clauses are properly
1927         ordered.
1928         (or_predicates): Shortcut more cases.
1929         (edge_execution_predicate): Rewrite as...
1930         (set_cond_stmt_execution_predicate): ... this function; handle
1931         __builtin_constant_p.
1932         (set_switch_stmt_execution_predicate): New .
1933         (compute_bb_predicates): New.
1934         (will_be_nonconstant_predicate): Update TODO.
1935         (estimate_function_body_sizes): Use compute_bb_predicates
1936         and free them later, always try to estimate if stmt is constant.
1937         (estimate_time_after_inlining, estimate_size_after_inlining):
1938         Gracefully handle optimized out edges.
1939         (read_predicate): Fix off by one error.
1940
1941 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1942
1943         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1944
1945 2011-04-27  Xinliang David Li  <davidxl@google.com>
1946
1947         * tree-profile.c (init_ic_make_global_vars): Set
1948         tls attribute on ic vars.
1949         * coverage.c (coverage_end_function): Initialize
1950         function_list with zero.
1951
1952 2011-04-29  Richard Guenther  <rguenther@suse.de>
1953
1954         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1955         for the type of the result.
1956         (fold_builtin_isascii): Likewise.
1957         (fold_builtin_toascii): Use integer_type_node where appropriate.
1958         (fold_builtin_logb): Likewise.
1959         (fold_builtin_frexp): Likewise.
1960         (fold_builtin_strstr): Likewise.
1961         (fold_builtin_strpbrk): Likewise.
1962         (fold_builtin_fputs): Likewise.
1963         (fold_builtin_sprintf): Likewise.
1964         (fold_builtin_snprintf): Likewise.
1965         (fold_builtin_printf): Likewise.
1966         (do_mpfr_remquo): Use a proper type for the assigned constant.
1967         (do_mpfr_lgamma_r): Likewise.
1968         * dwarf2out.c (resolve_one_addr): Use size_int.
1969         * except.c (init_eh): Likewise.
1970         (assign_filter_values): Use integer_type_node for filter values.
1971         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1972         indices.
1973         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1974         for EH region numbers.
1975         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1976         for the shift amount.
1977
1978 2011-04-29  Richard Guenther  <rguenther@suse.de>
1979
1980         * expr.h (expand_shift): Rename to ...
1981         (expand_variable_shift): ... this.
1982         (expand_shift): Take a constant shift amount.
1983         * expmed.c (expand_shift): Rename to ...
1984         (expand_variable_shift): ... this.
1985         (expand_shift): New wrapper around expand_variable_shift.
1986         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1987         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1988         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1989         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1990         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1991         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1992         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1993         emit_store_flag_1, emit_store_flag): Likewise.
1994         * builtins.c (expand_builtin_signbit): Likewise.
1995         * calls.c (load_register_parameters): Likewise.
1996         * function.c (assign_parm_setup_block): Likewise.
1997         * lower-subreg.c (resolve_shift_zext): Likewise.
1998         * optabs.c (widen_bswap, expand_abs_nojump,
1999         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2000         * spu/spu.c (spu_expand_extv): Likewise.
2001         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2002
2003 2011-04-29  Richard Guenther  <rguenther@suse.de>
2004
2005         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2006         for the remapped region number.
2007         * predict.c (build_predict_expr): Use integer_type_node for the
2008         predict kind.
2009         * fold-const.c (fold_binary_loc): Use integer_type_node for
2010         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2011
2012 2011-04-29  Michael Matz  <matz@suse.de>
2013
2014         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2015         other trees that just builtins.
2016         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2017
2018 2011-04-29  Richard Guenther  <rguenther@suse.de>
2019
2020         * tree-nested.c (get_trampoline_type): Use size_int.
2021         (get_nl_goto_field): Likewise.
2022         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2023         for all indexes.
2024         (lower_eh_constructs_2): Likewise.
2025         (lower_resx): Likewise.
2026         (lower_eh_dispatch): Likewise.
2027         * tree-mudflap.c (mf_build_string): Use size_int.
2028         (mudflap_register_call): Use integer_type_node for the flag.
2029         (mudflap_enqueue_constant): Use size_int.
2030         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2031         instead of rebuilding it.
2032
2033 2011-04-29  Richard Guenther  <rguenther@suse.de>
2034
2035         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2036         Handle OBJ_TYPE_REF.
2037         (find_func_aliases_for_call): Use it more consistently.
2038
2039 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2040
2041         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2042         (rank_for_schedule): Use it.
2043         (schedule_block): Set it.
2044
2045 2011-04-28  David Li  <davidxl@google.com>
2046
2047         * tree.c (crc32_string): Use crc32_byte.
2048         (crc32_byte): New function.
2049         * tree.h (crc32_byte): New function.
2050         * gcov.c (read_graph_file): Handle new cfg_cksum.
2051         (read_count_file): Ditto.
2052         * profile.c (instrument_values): Ditto.
2053         (get_exec_counts): Ditto.
2054         (read_profile_edge_counts): Ditto.
2055         (compute_branch_probabilities): Ditto.
2056         (compute_value_histograms): Ditto.
2057         (branch_prob): Ditto.
2058         (end_branch_prob): Ditto.
2059         * coverage.c (read_counts_file): Ditto.
2060         (get_coverage_counts): Ditto.
2061         (tree_coverage_counter_addr): Ditto.
2062         (coverage_checksum_string): Ditto.
2063         (coverage_begin_output): Ditto.
2064         (coverage_end_function): Ditto.
2065         (build_fn_info_type): Ditto.
2066         (build_fn_info_value): Ditto.
2067         * libgcov.c (gcov_exit): Ditto.
2068         * gcov-dump.c (tag_function): Ditto.
2069         (compute_checksum): Remove.
2070
2071 2011-04-29  Alan Modra  <amodra@gmail.com>
2072
2073         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2074         unspec plus offset.  Tidy macho code.
2075
2076 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2077
2078         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2079         node instead of a decl.  Update all callers.
2080         * cgraph.h: Update declaration.
2081
2082 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2083
2084         PR tree-optimization/48765
2085         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2086         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2087         to indicate if loop aware SLP is being used.  Scan the statements
2088         and update the vectorization factor according to the type of
2089         vectorization before statement analysis.
2090         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2091         pass it to vect_analyze_loop_operations.
2092         (vectorizable_reduction): Set number of copies to 1 in case of pure
2093         SLP statement.
2094         * tree-vect-stmts.c (vectorizable_conversion,
2095         vectorizable_assignment, vectorizable_shift,
2096         vectorizable_operation, vectorizable_type_demotion,
2097         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2098         Likewise.
2099         (vectorizable_condition): Move the check that it is not SLP
2100         vectorization before the number of copies check.
2101         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2102         to vectorize the loop using SLP.
2103
2104 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2105
2106         PR middle-end/48597
2107         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2108         inline asm.
2109
2110 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2111
2112         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2113         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2114         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2115         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2116         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2117         linux*.h headers.
2118         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2119         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2120         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2121         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2122         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2123         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2124         REG_NAME.
2125         * config/i386/linux.h (REG_NAME): Don't define.
2126         * config/i386/linux64.h (REG_NAME): Don't define.
2127         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2128         Undefine before defining.
2129
2130 2011-04-28  Jan Hubicka  <jh@suse.cz>
2131
2132         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2133         nonconstant_names array.
2134         (estimate_function_body_sizes): Build nonconstant_names array; handle
2135         BUILT_IN_CONSTANT_P.
2136
2137 2011-04-28  Richard Guenther  <rguenther@suse.de>
2138
2139         PR bootstrap/48804
2140         Revert
2141         2011-04-28  Richard Guenther  <rguenther@suse.de>
2142
2143         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2144         as late as possible.
2145
2146 2011-04-28  Richard Guenther  <rguenther@suse.de>
2147
2148         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2149         (debug_constraint): Do it here.
2150         (dump_constraints): And here.
2151         (rewrite_constraints): And here.
2152         (dump_constraint_edge): Remove.
2153         (dump_constraint_graph): Rewrite to produce DOT output.
2154         (solve_constraints): Build succ graph as late as possible.
2155         Dump constraint graphs before and after solving.
2156
2157 2011-04-28  Richard Guenther  <rguenther@suse.de>
2158
2159         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2160         New function split out from ...
2161         (find_func_aliases): ... here.  Call it.
2162         (find_func_aliases_for_call): Likewise.
2163
2164 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2165
2166         * internal-fn.h (internal_fn_name_array): Declare.
2167         (internal_fn_flags_array): Likewise.
2168
2169 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2170
2171         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2172         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2173         Move from sse.md.
2174         (ssemodefsuffix): Remove.
2175         (ssevecmodesuffix): New mode attribute.
2176         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2177         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2178         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2179         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2180         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2181         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2182         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2183         ssemodesuffix mode attribute.
2184         (float splitters): Use ssevecmodesuffix mode attribute.
2185         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2186         (sseinsmode): Rename from avxvecmode.
2187         (avxsizesuffix): Rename from avxmodesuffix.
2188         (sseintvecmode): Rename from avxpermvecmode.
2189         (ssedoublevecmode): Rename from ssedoublesizemode.
2190         (ssehalfvecmode): Rename from avxhalfvecmode.
2191         (ssescalarmode): Rename from avxscalarmode.
2192         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2193         templates for ssemodesuffix mode attribute.
2194         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2195         mode attribute.
2196
2197         Adjust RTX patterns globally for renamed mode attributes.
2198
2199 2011-04-27  Jan Hubcika  <jh@suse.cz>
2200
2201         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2202         * ipa-inline-analysis.c: Include alloc-pool.h.
2203         (edge_predicate_pool): New.
2204         (trye_predicate_p): New function
2205         (false_predicate_p): New function.
2206         (add_clause): Sanity check that false clauses are "optimized";
2207         never add clauses to predicate that is already known to be false.
2208         (and_predicate): Use flase_predicate_p.
2209         (evaulate_predicate): Rename to ...
2210         (evaluate_predicate): ... this one; update all callers; assert
2211         that false is not listed among possible truths.
2212         (dump_predicate): Use true_predicate_p.
2213         (account_size_time): Use false_predicate_p.
2214         (evaulate_conditions_for_edge): Rename to ...
2215         (evaluate_conditions_for_edge) ... this one.
2216         (edge_set_predicate): New function.
2217         (inline_edge_duplication_hook): Duplicate edge predicates.
2218         (inline_edge_removal_hook): Free edge predicates.
2219         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2220         (dump_inline_summary): Update.
2221         (estimate_function_body_sizes): Set edge predicates.
2222         (estimate_calls_size_and_time): Handle predicates.
2223         (estimate_callee_size_and_time): Update.
2224         (remap_predicate): Add toplev_predicate; update comment.
2225         (remap_edge_predicates): New function.
2226         (inline_merge_summary): Compute toplev predicate; update.
2227         (read_predicate): New function.
2228         (read_inline_edge_summary): Use it.
2229         (inline_read_section): Likewise.
2230         (write_predicate): New function.
2231         (write_inline_edge_summary): Use it.
2232         (inline_write_summary): Likewise.
2233         (inline_free_summary): Free alloc pool and edge summary vec.
2234
2235 2011-04-27  Richard Guenther  <rguenther@suse.de>
2236
2237         * tree-ssa-structalias.c (changed_count): Remove.
2238         (changed): Use a bitmap.
2239         (unify_nodes): Adjust.
2240         (do_sd_constraint): Likewise.
2241         (do_ds_constraint): Likewise.
2242         (do_complex_constraint): Likewise.
2243         (solve_graph): Likewise.
2244
2245 2011-04-27  Jan Hubicka  <jh@suse.cz>
2246
2247         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2248
2249 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2250
2251         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2252         (avx_vperm2f128_*_operand): Ditto.
2253         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2254         Use avx_vpermilp_parallel in insn condition.
2255         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2256         Use avx_vperm2f128_parallel in insn condition.
2257
2258 2011-04-27  Richard Guenther  <rguenther@suse.de>
2259
2260         * Makefile.in (tree-ssa-structalias.o): Remove
2261         gt-tree-ssa-structalias.h dependency.
2262         (GTFILES): Remove tree-ssa-structalias.c.
2263         * tree.c (allocate_decl_uid): New function.
2264         (make_node_stat): Use it.
2265         (copy_node_stat): Likewise.
2266         * tree.h (allocate_decl_uid): Declare.
2267         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2268         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2269         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2270         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2271         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2272         (struct heapvar_map): Likewise.
2273         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2274         heapvar_insert): Likewise.
2275         (make_heapvar_for): Rename to ...
2276         (make_heapvar): ... this.  Simplify.
2277         (fake_var_decl_obstack): New global var.
2278         (build_fake_var_decl): New function.
2279         (make_constraint_from_heapvar): Adjust.
2280         (handle_lhs_call): Likewise.
2281         (create_function_info_for): Likewise.
2282         (intra_create_variable_infos): Likewise.
2283         (init_alias_vars): Allocate fake_var_decl_obstack.
2284         (init_alias_heapvars, delete_alias_heapvars): Remove.
2285         (compute_points_to_sets): Do not call init_alias_heapvars.
2286         (ipa_pta_execute): Likewise.
2287         (delete_points_to_sets): Free fake_var_decl_obstack.
2288
2289 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2290
2291         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2292         (si_from_UTItype, si_to_UTItype): New functions.
2293         (__udivmodti4): Use them to implement type-punning.
2294         * config/spu/multi3.c (union qword_TItype): New data type.
2295         (si_from_TItype, si_to_TItype): New functions.
2296         (__multi3): Use them to implement type-punning.
2297
2298 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2299
2300         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2301
2302 2011-04-27  Jan Hubicka  <jh@suse.cz>
2303
2304         * ipa-prop.c (function_insertion_hook_holder): New holder.
2305         (ipa_add_new_function): New function.
2306         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2307         Register/deregister holder.
2308
2309 2011-04-27  Richard Guenther  <rguenther@suse.de>
2310
2311         PR tree-optimization/48772
2312         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2313
2314 2011-04-27  Richard Guenther  <rguenther@suse.de>
2315
2316         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2317         TARGET_MEM_REF handling.
2318
2319 2011-04-27  Nick Clifton  <nickc@redhat.com>
2320
2321         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2322         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2323         (REG_CLASS_NAMES): Likewise.
2324         (REG_CLASS_CONTENTS): Likewise.
2325         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2326         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2327         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2328         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2329         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2330         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2331         duplicate register classes.
2332         (frv_class_likely_spilled_p): Likewise.
2333         (frv_register_move_cost): Likewise.
2334
2335         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2336         end of the regno_reg_class array.
2337
2338 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2339
2340         PR c/48742
2341         * c-typeck.c (build_binary_op): Don't wrap arguments if
2342         int_operands is true.
2343
2344 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2345
2346         PR target/48767
2347         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2348         targetm.calls.must_pass_in_stack for void type.
2349
2350 2011-04-26  Jan Hubicka  <jh@suse.cz>
2351
2352         * cgraphbuild.c (build_cgraph_edges): Update call
2353         of cgraph_create_edge and cgraph_create_indirect_edge.
2354         * cgraph.c (cgraph_create_edge_including_clones,
2355         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2356         cgraph_update_edges_for_call_stmt_node): Do not take nest
2357         argument; do not initialize call_stmt_size/time.
2358         (dump_cgraph_node): Do not dump nest.
2359         (cgraph_clone_edge): Do not take loop_nest argument;
2360         do not propagate it; do not clone call_stmt_size/time.
2361         (cgraph_clone_node): Likewise.
2362         (cgraph_create_virtual_clone): Update.
2363         * cgraph.h (struct cgraph_edge): Remove
2364         call_stmt_size/call_stmt_time/loop_nest.
2365         (cgraph_create_edge, cgraph_create_indirect_edge,
2366         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2367         prototype.
2368         * tree-emutls.c (gen_emutls_addr): Update.
2369         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2370         loop_nest; handle indirect calls, too.
2371         (clone_inlined_nodes): Do not care about updating inline summaries.
2372         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2373         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2374         stream call_stmt_size/call_stmt_time/loop_nest.
2375         * ipa-inline.c (edge_badness): Update.
2376         (ipa_inline): dump summaries after inlining.
2377         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2378         New.
2379         (inline_edge_summary): New function.
2380         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2381         (inline_edge_removal_hook): Handle edge summaries.
2382         (inline_edge_duplication_hook): New hook.
2383         (inline_summary_alloc): Alloc hooks.
2384         (initialize_growth_caches): Do not register removal hooks.
2385         (free_growth_caches); Do not free removal hook.
2386         (dump_inline_edge_summary): New function.
2387         (dump_inline_summary): Use it.
2388         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2389         (inline_update_callee_summaries): New function.
2390         (inline_merge_summary): Use it.
2391         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2392         (read_inline_edge_summary): New function.
2393         (inline_read_section): Use it.
2394         (write_inline_edge_summary): New function.
2395         (inline_write_summary): Use it.
2396         (inline_free_summary): Free edge new holders.
2397         * tree-inline.c (copy_bb): Update.
2398
2399 2011-04-26  Jason Merrill  <jason@redhat.com>
2400
2401         * tree-eh.c (lower_try_finally_switch): Create the label along with
2402         the CASE_LABEL_EXPR.
2403
2404 2011-04-26  David S. Miller  <davem@davemloft.net>
2405             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2406
2407         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2408         * configure: Regenerate.
2409
2410 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2411
2412         PR target/48258
2413         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2414         reduction.
2415         (VEC_reduc): New code iterator and splitters for vector reduction.
2416         (VEC_reduc_name): Ditto.
2417         (VEC_reduc_rtx): Ditto.
2418         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2419         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2420
2421         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2422         support for extracting SF on VSX.
2423
2424         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2425         generating xscvspdp.
2426         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2427         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2428         double add, minimum, maximum vector reduction.
2429         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2430         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2431         optimize double vector reduction.
2432         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2433
2434 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2435
2436         * config/fr30/fr30.h (inhibit_libc): Don't define.
2437         * config/m32r/m32r-protos.h: Correct comment.
2438         * config/v850/v850.h (GHS_default_section_names,
2439         GHS_current_section_names): Use tree, not union tree_node *.
2440
2441 2011-04-26  Xinliang David Li  <davidxl@google.com>
2442
2443         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2444         * c-family/c-opts.c (c_common_handle_option): Set
2445         warn_maybe_uninitialized.
2446         * opts.c (common_handle_option): Ditto.
2447         * common.opt:  New option.
2448         * tree-ssa.c (warn_uninit): Add one more parameter.
2449         (warn_uninitialized_var): Pass warning code.
2450         * tree-flow.h: Interface change.
2451
2452
2453 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2454
2455         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2456         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2457         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2458
2459 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2460
2461         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2462         * config/mips/mips.opt (mmips-tfile): Remove.
2463
2464         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2465         mips-tdump reference to ...
2466         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2467         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2468         reference by Tru64 UNIX.
2469
2470 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2471
2472         PR debug/48768
2473         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2474         is error_mark_node, set value to NULL.
2475
2476         PR tree-optimization/48734
2477         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2478         if return value from maybe_fold_*_comparsions isn't something
2479         the code is prepared to handle.
2480
2481 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2482
2483         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2484         mode check.
2485         (ext_QIreg_nomode_operands): Remove.
2486         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2487         (*andsi_1): Ditto.
2488         (*andhi_1): Ditto.
2489
2490 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2491
2492         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2493
2494 2011-04-26  Richard Guenther  <rguenther@suse.de>
2495
2496         * c-typeck.c (build_unary_op): Do not expand array-refs via
2497         pointer arithmetic.  Only adjust qualifiers for function types.
2498
2499 2011-04-26  Richard Guenther  <rguenther@suse.de>
2500
2501         PR middle-end/48694
2502         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2503         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2504         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2505         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2506
2507 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2508
2509         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2510         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2511         * doc/extend.texi: Document __underlying_type.
2512
2513 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2514
2515         * config/rs6000/titan.md (automata_option "progress"): Remove.
2516
2517 2011-04-25  Jeff Law  <law@redhat.com>
2518
2519         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2520
2521 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2522
2523         * system.h (ENUM_BITFIELD): Remove.
2524
2525 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2526             Eric Botcazou  <ebotcazou@adacore.com>
2527
2528         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2529         for STORE_FLAG_VALUE==-1 case.
2530
2531 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2532
2533         PR target/43804
2534         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2535         LEGITIMATE_PIC_OPERAND_P.
2536
2537 2011-04-24  Jan Hubicka  <jh@suse.cz>
2538
2539         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2540         WPA hack.
2541         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2542         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2543         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2544         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2545         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2546         Sanity check predicate length.
2547         (remap_predicate): Likewise; sanity check jump functions.
2548         (inline_read_section, inline_write_summary): Sanity check
2549         predicate length.
2550
2551 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2552
2553         PR other/48748
2554         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2555         __is_literal_type, and __is_trivial; update throughout about
2556         possibly cv-qualified void types.
2557
2558 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2559
2560         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2561         testsuite and make it version agnostic.
2562
2563 2011-04-22  Jan Hubicka  <jh@suse.cz>
2564
2565         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2566
2567 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2568
2569         PR c/48685
2570         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2571         to VOID_TYPE even around MODIFY_EXPR.
2572
2573 2011-04-22  Mike Stump  <mikestump@comcast.net>
2574
2575         * gensupport.c (read_md_rtx): Fix typo in comment.
2576         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2577         comment.
2578
2579 2011-04-22  Jan Hubicka  <jh@suse.cz>
2580
2581         * gengtype.c (open_base_files): Add ipa-inline.h include.
2582         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2583         ipa-prop.c; update all uses.
2584         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2585         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2586         merge summary of inlined function into former caller.
2587         * ipa-inline.c (max_benefit): Remove.
2588         (edge_badness): Compensate for removal of benefits.
2589         (update_caller_keys): Use
2590         reset_node_growth_cache/reset_edge_growth_cache.
2591         (update_callee_keys): Likewise.
2592         (update_all_callee_keys): Likewise.
2593         (inline_small_functions): Do not collect max_benefit; do not reset
2594         estimated_growth; call free_growth_caches and initialize_growth_caches.
2595         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2596         struct size_time_entry): New structures.
2597         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2598         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2599         and estimated_growth.
2600         (edge_growth_cache_entry): New structure.
2601         (node_growth_cache, edge_growth_cache): New global vars.
2602         (estimate_growth): Turn into inline.
2603         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2604         initialize_growth_caches, free_growth_caches): Declare.
2605         (estimate_edge_growth): Rewrite.
2606         (estimate_edge_time): Implement as inline cache lookup.
2607         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2608         functions.
2609         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2610         (NUM_CONDITIONS): New constant.
2611         (predicate_conditions): New enum.
2612         (IS_NOT_CONSTANT): New constant.
2613         (edge_removal_hook_holder): New var.
2614         (node_growth_cache, edge_growth_cache): New global vars.
2615         (true_predicate, single_cond_predicate, false_predicate,
2616         not_inlined_predicate, add_condition, add_clause, and_predicates,
2617         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2618         dump_clause, dump_predicate, account_size_time,
2619         evaulate_conditions_for_edge): New functions.
2620         (inline_summary_alloc): Move to heap.
2621         (inline_node_removal_hook): Clear condition and entry vectors.
2622         (inline_edge_removal_hook): New function.
2623         (initialize_growth_caches, free_growth_caches): New function.
2624         (dump_inline_summary): Update.
2625         (edge_execution_predicate): New function.
2626         (will_be_nonconstant_predicate): New function.
2627         (estimate_function_body_sizes): Compute BB and constantness predicates.
2628         (compute_inline_parameters): Do not clear estimated_growth.
2629         (estimate_edge_size_and_time): New function.
2630         (estimate_calls_size_and_time): New function.
2631         (estimate_callee_size_and_time): New function.
2632         (remap_predicate): New function.
2633         (inline_merge_summary): New function.
2634         (do_estimate_edge_time): New function based on...
2635         (estimate_edge_time): ... this one.
2636         (do_estimate_edge_growth): New function.
2637         (do_estimate_growth): New function based on....
2638         (estimate_growth): ... this one.
2639         (inline_analyze_function): Analyze after deciding on jump functions.
2640         (inline_read_section): New function.
2641         (inline_read_summary): Use it.
2642         (inline_write_summary): Write all the new data.
2643         * ipa-prop.c (ipa_get_param_decl_index): Export.
2644         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2645         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2646         Declare.
2647         (ipa_get_lattice): Move here from ipa-cp.c
2648         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2649         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2650         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2651         cgraph_edge_inlinable_p): Remove.
2652         * cgraphunit.c: Include ipainline.h
2653         (cgraph_process_new_functions): Update call of
2654         compute_inline_parameters.
2655
2656 2011-04-22  Richard Guenther  <rguenther@suse.de>
2657
2658         * tree.c (build_int_cst): Properly create canonicalized integer
2659         constants.
2660         (build_int_cst_type): Remove scary comments.
2661
2662 2011-04-22  Xinliang David Li  <davidxl@google.com>
2663
2664         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2665         by default when -Wno-error is not specified.
2666         * opts-global.c (decode_options): Remove call to
2667         control_warning_options.
2668
2669 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2670
2671         PR tree-optimization/48717
2672         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2673         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2674
2675 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2678         definition where used.
2679
2680 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2681
2682         PR c/48716
2683         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2684         TREE_STATIC variables declared inside of some OpenMP construct.
2685
2686 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2687
2688         PR middle-end/48585
2689         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2690
2691 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2692
2693         PR c/36750
2694         * c-typeck.c (pop_init_level): Do not warn about initializing
2695         with ` = {0}'.
2696
2697 2011-04-22  Alan Modra  <amodra@gmail.com>
2698
2699         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2700         when returning call_cookie.
2701         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2702         pointers, to functions with no more vector args than the current
2703         function, and some non-local calls for ABI_V4.
2704         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2705         sibcall_nonlocal_aix64): Combine to ..
2706         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2707         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2708         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2709         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2710         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2711         operand.
2712         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2713         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2714         sibcall_value_symbolic_64): Delete.
2715
2716 2011-04-21  Xinliang David Li  <davidxl@google.com>
2717
2718         * cgraph.h: Remove pid.
2719         * cgraph.c: Remove pid.
2720         * value-prof.c (init_node_map): New function.
2721         (del_node_map): New function.
2722         (find_func_by_funcdef_no): New function.
2723         (gimple_ic_transform): Call new function.
2724         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2725         * function.c (get_last_funcdef_no): New function.
2726         * function.h (get_last_funcdef_no): New function.
2727         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2728         to libgcov function.
2729         (tree-profiling): Call node map init and delete function.
2730
2731 2011-04-21  Ian Lance Taylor  <iant@google.com>
2732
2733         * godump.c (go_format_type): Use exported Go name for anonymous
2734         field name.
2735
2736 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2737
2738         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2739         Call builtin_function_type_list instead of builtin_function_type.
2740         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2741
2742 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2743
2744         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2745         build_function_type_list instead of build_function_type.
2746         Delete variable `endlink'.
2747
2748 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2749
2750         * config/s390/s390.c (s390_init_builtins): Call
2751         build_function_type_list instead of build_function_type.
2752
2753 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2754
2755         * config/ia64/ia64.c (ia64_init_builtins): Call
2756         build_function_type_list instead of builtin_function_type.
2757
2758 2011-04-21  Easwaran Raman  <eraman@google.com>
2759
2760         * cfgexpand.c (stack_var): Remove OFFSET...
2761         (add_stack_var): ...and its reference here...
2762         (expand_stack_vars): ...and here.
2763         (stack_var_cmp): Sort by descending order of size.
2764         (partition_stack_vars): Change heuristic.
2765         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2766         (dump_stack_var_partition): Add newline after each partition.
2767
2768 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2769             Jeff Law  <law@redhat.com>
2770
2771         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2772         * gengtype.c (matching_file_name_substitute): Likewise.
2773
2774 2011-04-21  Richard Guenther  <rguenther@suse.de>
2775
2776         PR lto/48703
2777         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2778
2779 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2780
2781         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2782
2783 2011-04-21  Richard Guenther  <rguenther@suse.de>
2784
2785         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2786         file name.
2787
2788 2011-04-21  Richard Guenther  <rguenther@suse.de>
2789
2790         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2791         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2792         Use DECL_P, not SSA_VAR_P.
2793         (ptr_derefs_may_alias_p): Likewise.
2794         (ptr_deref_may_alias_ref_p_1): Likewise.
2795         (decl_refs_may_alias_p): Likewise.
2796         (refs_may_alias_p_1): Likewise.
2797         (ref_maybe_used_by_call_p_1): Likewise.
2798         (call_may_clobber_ref_p_1): Likewise.
2799         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2800         are either MEM_REF or TARGET_MEM_REF.
2801         (indirect_refs_may_alias_p): Likewise.
2802         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2803         for MEM_EXPR of indirect calls.
2804
2805 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2806
2807         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2808         (dst_file_info_struct): Remove flen field.
2809         (lookup_filename): Remove code that set flen field.
2810
2811 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2812
2813         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2814
2815 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2816
2817         PR target/48708
2818         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2819         vec_extract and vec_concat for non-SSE4_1 targets.
2820
2821 2011-04-21  Richard Guenther  <rguenther@suse.de>
2822
2823         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2824         return statements.
2825
2826 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2827
2828         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2829         undefine.
2830         (FILE): Don't undefine.
2831
2832 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2833
2834         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2835         struct rtx_def *.
2836         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2837         struct rtx_def *.
2838         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2839         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2840         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2841         rtx_def *.
2842         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2843         definitions where used.
2844         * config/microblaze/microblaze.h (struct microblaze_args): Use
2845         rtx, not struct rtx_def *.
2846         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2847         rtx_def *.
2848         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2849         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2850         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2851         not struct rtx_def *.
2852         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2853         struct rtx_def *.
2854         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2855         rtx_def *.
2856         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2857
2858 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2859
2860         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2861         operand_equal_p to compare DR_BASE_ADDRESSes.
2862         (vect_check_interleaving): Likewise.
2863
2864 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2865
2866         PR target/46329
2867         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2868         for all Neon struct constants.
2869
2870 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2871
2872         * target.def (legitimate_constant_p): New hook.
2873         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2874         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2875         * doc/tm.texi: Regenerate.
2876         * hooks.h (hook_bool_mode_rtx_true): Declare.
2877         * hooks.c (hook_bool_mode_rtx_true): Define.
2878         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2879         * calls.c (precompute_register_parameters): Replace uses of
2880         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2881         (emit_library_call_value_1): Likewise.
2882         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2883         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2884         * ira-costs.c (scan_one_insn): Likewise.
2885         * recog.c (general_operand, immediate_operand): Likewise.
2886         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2887         * reload1.c (init_eliminable_invariants): Likewise.
2888
2889         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2890         mode argument.
2891         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2892         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2893         argument.
2894         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2895         * config/alpha/predicates.md (input_operand): Update call to
2896         alpha_legitimate_constant_p.
2897
2898         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2899         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2900         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2901         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2902         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2903         (arm_legitimate_constant_p): New functions.
2904         (arm_cannot_force_const_mem): Make static.
2905
2906         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2907
2908         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2909         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2910         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2911         instead of bfin_legitimate_constant_p.
2912         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2913         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2914
2915         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2916
2917         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2918
2919         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2920         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2921         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2923
2924         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2925         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2926         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2927
2928         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2929         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2930         * config/i386/i386.c (legitimate_constant_p): Rename to...
2931         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2932         argument.
2933         (ix86_cannot_force_const_mem): Update accordingly.
2934         (ix86_legitimate_address_p): Likewise.
2935         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2936         * config/i386/i386.md: Update commentary.
2937
2938         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2939         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2940         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2941         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2942
2943         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2944
2945         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2946         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2947         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2948         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2949
2950         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2951         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2952         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2953
2954         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2955         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2956         (m32r_legitimate_constant_p): New function.
2957
2958         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2959         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2960         LEGITIMATE_CONSTANT_P.
2961         (LEGITIMATE_CONSTANT_P): Delete.
2962         * config/m68k/m68k.c (m68k_expand_prologue): Call
2963         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2964         (m68k_legitimate_constant_p): New function.
2965         * config/m68k/m68k.md: Update comments.
2966
2967         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2968         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2969         (mcore_legitimate_constant_p): New function.
2970
2971         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2972         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2973         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2974         Add a mode argument.
2975         (mep_legitimate_address): Update accordingly.
2976         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2977
2978         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2979         Delete.
2980         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2981         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2982         static.  Check OP's mode for VOIDmode.
2983         (microblaze_legitimate_constant_p): New function.
2984         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2985
2986         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2987         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2988         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2989         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2990         * config/mips/predicates.md: Update comments.
2991
2992         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2993         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2994         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2995         (mmix_legitimate_constant_p): Make static, return a bool, and take
2996         a mode argument.
2997         (mmix_print_operand_address): Update accordingly.
2998
2999         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3000         Delete.
3001         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3002         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3003         static.  Add a mode argument.
3004         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3005
3006         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3007
3008         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3009         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3010         (pa_legitimate_constant_p): New function.
3011
3012         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3013
3014         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3015         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3016         (pdp11_legitimate_constant_p): New function.
3017
3018         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3019         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3020         (rs6000_legitimate_constant_p): New function.
3021
3022         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3023         (rx_legitimate_constant_p): ...this.
3024         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3025         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3026         (rx_legitimate_constant_p): ...this.
3027         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3028         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3029
3030         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3031         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3032         * config/s390/s390.c (legitimate_constant_p): Rename to...
3033         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3034         and add a mode argument.
3035         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3036
3037         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3038
3039         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3040         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3041         (sh_legitimate_constant_p): New function.
3042
3043         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3044         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3045         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3046         (legitimate_constant_p): Rename to...
3047         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3048         argument.
3049         (constant_address_p): Update accordingly.
3050
3051         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3052         argument and return a bool.
3053         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3054         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3055         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3056         (spu_rtx_costs): Update accordingly.
3057         * config/spu/predicates.md (vec_imm_operand): Likewise.
3058
3059         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3060
3061         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3062         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3063         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3064
3065         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3066         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3067         * config/vax/vax.c (legitimate_constant_p): Likewise.
3068
3069         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3070         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3071         (xtensa_legitimate_constant_p): New function.
3072
3073 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3074
3075         * target.def (cannot_force_const_mem): Add a mode argument.
3076         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3077         * doc/tm.texi: Regenerate.
3078         * hooks.h (hook_bool_mode_rtx_false): Declare.
3079         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3080         (hook_bool_mode_const_rtx_true): Likewise.
3081         (hook_bool_mode_rtx_false): New function.
3082         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3083         to be non-VOID.  Update call to cannot_force_const_mem.
3084         (find_reloads): Update accordingly.
3085         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3086         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3087         argument.
3088         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3089         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3090         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3091         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3092         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3093         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3094         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3095         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3096         (m68k_cannot_force_const_mem): ...this new function.
3097         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3098         argument.
3099         (mips_const_insns, mips_legitimize_const_move): Update calls.
3100         (mips_secondary_reload_class): Likewise.
3101         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3102         (pa_cannot_force_const_mem): ...this new function.
3103         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3104         (rs6000_cannot_force_const_mem): ...this new function.
3105         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3106         argument.
3107         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3108         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3109         to...
3110         (xtensa_cannot_force_const_mem): ...this new function.
3111
3112 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3113
3114         * config/mips/mips.c (mips16_build_function_stub): Call
3115         build_function_type_list instead of build_function_type.
3116         (mips16_build_call_stub): Likewise.
3117
3118 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3119
3120         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3121         instead of build_function_type.
3122
3123 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3124
3125         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3126         instead of build_function_type.
3127
3128 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3129
3130         PR target/48678
3131         * config/i386/i386.md (insv): Change operand 0 constraint to
3132         "register_operand".  Change operand 1 and 2 constraint to
3133         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3134         * config/i386/sse.md (sse4_1_pinsrb): Export.
3135         (sse2_pinsrw): Ditto.
3136         (sse4_1_pinsrd): Ditto.
3137         (sse4_1_pinsrq): Ditto.
3138         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3139         * config/i386/i386.c (ix86_expand_pinsr): New.
3140
3141 2011-04-20  Easwaran Raman  <eraman@google.com>
3142
3143         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3144         containing union type only with -fstrict-aliasing.
3145
3146 2011-04-20  Jim Meyering  <meyering@redhat.com>
3147
3148         Remove useless if-before-free tests.
3149         * calls.c (expand_call, save_area): Likewise.
3150         * cfgcleanup.c (try_forward_edges): Likewise.
3151         * collect2.c (collect_execute): Likewise.
3152         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3153         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3154         * coverage.c (coverage_checksum_string): Likewise.
3155         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3156         * cselib.c (cselib_init): Likewise.
3157         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3158         (df_set_clean_cfg): Likewise.
3159         * function.c (free_after_compilation): Likewise.
3160         * gcc.c (do_spec_1, main): Likewise.
3161         * gcov.c (create_file_names): Likewise.
3162         * gensupport.c (identify_predicable_attribute): Likewise.
3163         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3164         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3165         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3166         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3167         * ipa-pure-const.c (local_pure_const): Likewise.
3168         * ipa-reference.c (propagate): Likewise.
3169         * ira-costs.c (free_ira_costs): Likewise.
3170         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3171         * matrix-reorg.c (mat_free): Likewise.
3172         * prefix.c (get_key_value): Likewise.
3173         * profile.c (compute_value_histograms): Likewise.
3174         * reload1.c (free_reg_equiv): Likewise.
3175         * sched-deps.c (free_deps): Likewise.
3176         * sel-sched-ir.c (fence_clear): Likewise.
3177         * sese.c (set_rename, if_region_set_false_region): Likewise.
3178         * tree-data-ref.c (free_rdg): Likewise.
3179         * tree-eh.c (lower_try_finally): Likewise.
3180         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3181         * tree-ssa-live.c (delete_var_map): Likewise.
3182         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3183         * tree-ssa-pre.c (phi_trans_add): Likewise.
3184
3185 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3186
3187         PR tree-optimization/48611
3188         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3189         beyond ERT_MUST_NOT_THROW region.
3190
3191 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3192
3193         * config/mips/mips.opt (mfix-24k): New.
3194         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3195         * config/mips/mips.md (length): Increase by 4 for stores if
3196         fixing 24K errata.
3197         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3198         all noreorder if fixing 24K errata.
3199         * doc/invoke.texi: Document mfix-24k.
3200
3201 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3202
3203         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3204         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3205
3206 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3207
3208         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3209         (const_ok_for_op): ... to here.
3210
3211 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3212
3213         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3214         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3215
3216 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3217
3218         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3219
3220 2011-04-20  Richard Guenther  <rguenther@suse.de>
3221
3222         PR tree-optimization/47892
3223         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3224         are if-convertible.
3225
3226 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3227
3228         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3229
3230 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3231
3232         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3233
3234 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3235
3236         PR target/18145
3237
3238         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3239         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3240         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3241         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3242         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3243
3244         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3245         New prototype.
3246
3247         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3248         (avr_asm_named_section, avr_asm_output_aligned_common,
3249         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3250         New functions to update...
3251         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3252         (avr_asm_init_sections): Overwrite section callbacks for
3253         data_section, bss_section.
3254         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3255         from here to...
3256         (avr_file_end): ...here.
3257
3258 2011-04-20  Richard Guenther  <rguenther@suse.de>
3259
3260         PR middle-end/48695
3261         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3262         objects and types here.  Adjust for their offset before comparing.
3263
3264 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3265
3266         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3267         statement per copy.
3268
3269 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3270
3271         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3272         (GIMPLE_H): Include $(INTERNAL_FN_H).
3273         (OBJS-common): Add internal-fn.o.
3274         (internal-fn.o): New rule.
3275         * internal-fn.def: New file.
3276         * internal-fn.h: Likewise.
3277         * internal-fn.c: Likewise.
3278         * gimple.h: Include internal-fn.h.
3279         (GF_CALL_INTERNAL): New gf_mask.
3280         (gimple_statement_call): Put fntype into a union with a new
3281         internal_fn field.
3282         (gimple_build_call_internal): Declare.
3283         (gimple_build_call_internal_vec): Likewise.
3284         (gimple_call_same_target_p): Likewise.
3285         (gimple_call_internal_p): New function.
3286         (gimple_call_internal_fn): Likewise.
3287         (gimple_call_fntype): Return null for internal calls.
3288         (gimple_call_set_fntype): Assert that the function is not internal.
3289         (gimple_call_set_fn): Likewise.
3290         (gimple_call_set_fndecl): Likewise.
3291         (gimple_call_set_internal_fn): New function.
3292         (gimple_call_addr_fndecl): Handle null functions.
3293         (gimple_call_return_type): Likewise null types.
3294         * gimple.c (gimple_build_call_internal_1): New function.
3295         (gimple_build_call_internal): Likewise.
3296         (gimple_build_call_internal_vec): Likewise.
3297         (gimple_call_same_target_p): Likewise.
3298         (gimple_call_flags): Handle calls to internal functions.
3299         (gimple_call_fnspec): New function.
3300         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3301         (gimple_has_side_effects): Handle null functions.
3302         (gimple_rhs_has_side_effects): Likewise.
3303         (gimple_call_copy_skip_args): Handle calls to internal functions.
3304         * cfgexpand.c (expand_call_stmt): Likewise.
3305         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3306         * gimple-fold.c (gimple_fold_call): Handle null functions.
3307         (gimple_fold_stmt_to_constant_1): Don't fold
3308         calls to internal functions.
3309         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3310         functions.
3311         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3312         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3313         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3314         (do_warn_unused_result): Likewise.
3315         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3316         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3317         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3318         the target of a call.
3319         (initialize_hash_element): Update accordingly.
3320         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3321         (iterative_hash_hashable_expr): Handle calls to internal functions.
3322         (print_expr_hash_elt): Likewise.
3323         * tree-ssa-pre.c (can_value_number_call): Likewise.
3324         (eliminate): Handle null functions.
3325         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3326         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3327         (find_func_aliases): Likewise.
3328         * value-prof.c (gimple_ic_transform): Likewise.
3329         (gimple_indirect_call_to_profile): Likewise.
3330         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3331         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3332
3333 2011-04-19  Jan Hubicka  <jh@suse.cz>
3334
3335         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3336         * ipa-inline.c (inline_small_functions): Compute summaries first,
3337         populate heap later.
3338
3339 2011-04-19  Jan Hubicka  <jh@suse.cz>
3340
3341         * cgraph.h (save_inline_function_body): Remove.
3342         * ipa-inline-transform.c: New file, broke out of...
3343         * ipa-inline.c: ... this one; Update toplevel comment.
3344         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3345         make global.
3346         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3347         (cgraph_mark_inline_edge): Rename to inline_call; move to
3348         ipa-inline-transform.c.
3349         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3350         move to ipa-inline-transform.c
3351         (recursive_inlining, inline_small_functions, flatten_function,
3352         ipa_inline, inline_always_inline_functions,
3353         early_inline_small_functions): Update.
3354         (inline_transform): Move to ipa-inline-transform.c.
3355         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3356         Declare.
3357         * Makefile.in (ipa-inline-transform.o): New file.
3358         * cgraphunit.c (save_inline_function_body): Move to
3359         ipa-inline-transform.c
3360
3361 2011-04-19  DJ Delorie  <dj@redhat.com>
3362
3363         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3364         registers if we already know there aren't any.
3365         (m32c_emit_epilogue): Don't emit a barrier here.
3366         (m32c_emit_eh_epilogue): Likewise.
3367         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3368         operands at expand time.
3369         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3370         int" wchar type.
3371         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3372         duplicates.  Provide aliases instead.
3373         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3374         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3375         the compiler.
3376
3377 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3378
3379         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3380         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3381         (general_or_i64_p, sparc_register_move_cost): New function.
3382
3383 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3384
3385         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3386         Add lynx, mipssde.  Sort table.
3387
3388 2011-04-19  Xinliang David Li  <davidxl@google.com>
3389
3390         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3391         not negative.
3392
3393 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3394
3395         PR target/48678
3396         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3397         is a SUBREG with non-MODE_INT mode inside of it.
3398
3399 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3400
3401         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3402         also according to actual contants.
3403         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3404         (gimple_fold_call): Use it.
3405         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3406
3407 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3408
3409         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3410         non-pointer assignments.
3411
3412 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3413
3414         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3415         account anc_offset and otr_type from the indirect edge info.
3416         * ipa-prop.c (get_ancestor_addr_info): New function.
3417         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3418         get_ancestor_addr_info, call it.
3419         (ipa_note_param_call): Do not initialize information about polymorphic
3420         calls, return the indirect call graph edge.  Remove the last
3421         parameter, adjust all callers.
3422         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3423         parameters.  Initialize polymorphic information in the indirect edge.
3424
3425 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3426
3427         PR lto/48148
3428         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3429         the types if they have different enumeration identifiers.
3430
3431 2011-04-19  Jan Hubicka  <jh@suse.cz>
3432
3433         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3434         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3435         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3436         (optimize_function_for_size_p) ... here.
3437
3438 2011-04-19  Richard Guenther  <rguenther@suse.de>
3439
3440         PR lto/48207
3441         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3442         langhook.
3443
3444 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3445
3446         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3447         if DECL_NO_INLINE_WARNING_P is set on the function.
3448
3449 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3450
3451         PR fortran/47976
3452         * reload1.c (inc_for_reload): Return void. All callers changed.
3453         (emit_input_reload_insns): Don't try to delete previous output
3454         reloads to a register, or record spill_reg_store for autoincs.
3455
3456 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3457
3458         * gengtype.h: Updated copyright year.
3459         (struct input_file_st): Add inpisplugin field.
3460         (type_fileloc): New function.
3461         * gengtype.c
3462         (write_typed_struct_alloc_def): Add gcc_assert.
3463         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3464         (write_typed_alloc_defns): Don't output for plugin files.
3465         (input_file_by_name): Clear inpisplugin field.
3466         (main): Set inpisplugin field for plugin files.
3467
3468 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3469
3470         * gengtype-state.c (string_eq): New.
3471         (read_state): Use string_eq instead of strcmp when creating the
3472         state_ident_tab.
3473
3474 2011-04-19  Wei Guozhi  <carrot@google.com>
3475
3476         PR target/47855
3477         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3478         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3479         linkage.
3480         * config/arm/constraints.md (Uu): New constraint.
3481         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3482
3483 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3484
3485         * config.gcc (-*-*-*vms): Added.
3486         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3487         definitions moved.
3488         * config/vms/vms-ld.c: New file.
3489         * config/vms/vms-ar.c: New file.
3490         * config/vms/t-vmsnative: New file.
3491
3492 2011-04-18  Xinliang David Li  <davidxl@google.com>
3493
3494         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3495
3496 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3497
3498         PR middle-end/48661
3499         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3500         if TREE_TYPE (v) is non-NULL.
3501
3502         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3503         gimple_get_virt_mehtod_for_binfo.
3504         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3505         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3506         callers.
3507         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3508
3509 2011-04-18  Michael Matz  <matz@suse.de>
3510             Steve Ellcey  <sje@cup.hp.com>
3511
3512         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3513         use its mode as source mode if it isn't VOIDmode.
3514
3515 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3516
3517         * doc/passes.texi: Fill crossref nodes.
3518
3519 2011-04-18  Jim Meyering  <meyering@redhat.com>
3520
3521         Fix doubled-word typos in comments and strings
3522         * config/alpha/vms-unwind.h: s/for for/for/
3523         * config/arm/unwind-arm.h: Likewise.
3524         * config/microblaze/microblaze.c: Likewise.
3525         * config/sh/constraints.md: s/in in/in/
3526         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3527
3528 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3529
3530         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3531         (AVX_FLOAT_MODE_P): Ditto.
3532         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3533         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3534         (AVX_VEC_FLOAT_MODE_P): Ditto.
3535         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3536         (UNSPEC_MASKSTORE): Ditto.
3537         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3538         Merge from <sse>_movmsk<ssemodesuffix> and
3539         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3540         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3541         iterator.
3542         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3543         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3544         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3545
3546 2011-04-18  Jan Hubicka  <jh@suse.cz>
3547
3548         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3549
3550         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3551         (want_inline_function_called_once_p): Break out the logic from
3552         ipa_inline.
3553         (edge_badness): Ensure that profile is not misupdated.
3554         (lookup_recursive_calls): Prioritize by call frequencies.
3555         (inline_small_functions): Move program size estimates here;
3556         actually process whole queue even when unit growth has been
3557         met. (to properly compute inline_failed reasons and for the
3558         case unit size decrease.) Revisit comments on recursive inlining.
3559         (ipa_inline): Remove unit summary code; first inline hot calls
3560         of functions called once, cold calls next.
3561         (order, nnodes): Remove unused variables.
3562         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3563         (GTFILES): Remove ipa-inline.c
3564         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3565
3566 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3567
3568         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3569
3570 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3571             Richard Earnshaw  <rearnsha@arm.com>
3572
3573         * arm.c (neon_builtin_type_bits): Remove.
3574         (typedef enum neon_builtin_mode): New.
3575         (T_MAX): Don't define.
3576         (typedef enum neon_builtin_datum): Remove bits, codes[],
3577         num_vars and base_fcode.  Add mode, code and fcode.
3578         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3579         VAR10): Change accordingly.
3580         (neon_builtin_data[]): Change accordingly
3581         (arm_init_neon_builtins): Change accordingly.
3582         (neon_builtin_compare): Remove.
3583         (locate_neon_builtin_icode): Remove.
3584         (arm_expand_neon_builtin): Change accordingly.
3585
3586         * arm.h (enum arm_builtins): Move to ...
3587         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3588
3589         * arm.c (arm_builtin_decl): Declare.
3590         (TARGET_BUILTIN_DECL): Define.
3591         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3592         (arm_builtin_decls[]): New.
3593         (arm_init_neon_builtins): Store builtin declarations in
3594         arm_builtin_decls[].
3595         (arm_init_tls_builtins): Likewise.
3596         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3597         (arm_builtin_decl): New.
3598
3599 2011-04-18  Richard Guenther  <rguenther@suse.de>
3600
3601         * tree.c (upper_bound_in_type): Build properly canonicalized
3602         INTEGER_CSTs.
3603         (lower_bound_in_type): Likewise.
3604
3605 2011-04-18  Richard Guenther  <rguenther@suse.de>
3606
3607         * gimple.h (gimple_call_addr_fndecl): New function.
3608         (gimple_call_fndecl): Use it.
3609         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3610         for direct calls.
3611         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3612         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3613
3614 2011-04-18  Richard Guenther  <rguenther@suse.de>
3615
3616         PR middle-end/48650
3617         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3618
3619 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3620
3621         PR lto/48492
3622         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3623         DECL_IN_CONSTANT_POOL without RTL.
3624
3625 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3626             Ira Rosen  <ira.rosen@linaro.org>
3627
3628         PR target/48252
3629         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3630         to match neon_vzip/vuzp/vtrn_internal.
3631         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3632         outputs explicitly dependent on both inputs.
3633         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3634
3635 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3636
3637         PR tree-optimization/48616
3638         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3639         whether the shift is by scalar or vector based on whether all SLP
3640         scalar stmts have the same rhs.
3641
3642 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3643
3644         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3645         memory operands.
3646
3647 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3648
3649         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3650         registers.
3651
3652 2011-04-17  Jan Hubicka  <jh@suse.cz>
3653
3654         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3655         * cgrpahunit.c (cgraph_finalize_function): Do not set
3656         finalized_by_frontend.
3657         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3658         finalized_by_frontend.
3659
3660 2011-04-17  Jan Hubicka  <jh@suse.cz>
3661
3662         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3663         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3664         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3665         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3666         method.
3667         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3668         gimple-fold.c
3669         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3670
3671 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3672
3673         PR lto/48538
3674         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3675         is non-null before accessing it.
3676         (input_cgraph): Remove trailing spaces.
3677
3678 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3679
3680         * params.def (sms-min-sc): New param flag.
3681         * modulo-sched.c (sms_schedule): Use it.
3682         * doc/invoke.texi (sms-min-sc): Document it.
3683
3684 2011-04-17  Jan Hubicka  <jh@suse.cz>
3685
3686         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3687         present, also set gimple_call_set_cannot_inline.
3688         * ipa-inline.c: Update toplevel comment.
3689         (MAX_TIME): Remove.
3690         (cgraph_clone_inlined_nodes): Fix linebreaks.
3691         (cgraph_check_inline_limits): Restructure to ...
3692         (caller_growth_limits): ... this one; be more tolerant
3693         on growth in nested inline chains; add explanatory comment;
3694         fix stack accounting thinko introduced by previous patch.
3695         (cgraph_default_inline_p): Remove.
3696         (report_inline_failed_reason): New function.
3697         (can_inline_edge_p): New function.
3698         (can_early_inline_edge_p): New function.
3699         (leaf_node_p): Move upwards in file.
3700         (want_early_inline_function_p): New function.
3701         (want_inline_small_function_p): New function.
3702         (want_inline_self_recursive_call_p): New function.
3703         (cgraph_edge_badness): Rename to ...
3704         (edge_badness) ... this one; fix linebreaks.
3705         (update_edge_key): Update call of edge_baddness; add
3706         detailed dump about queue updates.
3707         (update_caller_keys): Use can_inline_edge_p and
3708         want_inline_small_function_p.
3709         (cgraph_decide_recursive_inlining): Rename to...
3710         (recursive_inlining): Use can_inline_edge_p and
3711         want_inline_self_recursive_call_p; simplify and remove no longer
3712         valid FIXME.
3713         (cgraph_set_inline_failed): Remove.
3714         (add_new_edges_to_heap): Use can_inline_edge_p and
3715         want_inline_small_function_p.
3716         (cgraph_decide_inlining_of_small_functions): Rename to ...
3717         (inline_small_functions): ... this one; cleanup; use
3718         can/want predicates; cleanup debug ouput; work edges till fibheap
3719         is exhausted and do not stop once unit growth is reached; remove
3720         later loop processing remaining edges.
3721         (cgraph_flatten): Rename to ...
3722         (flatten_function): ... this one; use can_inline_edge_p
3723         and can_early_inline_edge_p predicates.
3724         (cgraph_decide_inlining): Rename to ...
3725         (ipa_inline): ... this one; remove unreachable nodes before
3726         inlining functions called once; simplify the pass.
3727         (cgraph_perform_always_inlining): Rename to ...
3728         (inline_always_inline_functions): ... this one; use
3729         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3730         (cgraph_decide_inlining_incrementally): Rename to ...
3731         (early_inline_small_functions): ... this one; simplify
3732         using new predicates; cleanup; make dumps prettier.
3733         (cgraph_early_inlining): Rename to ...
3734         (early_inliner): newer inline regular functions into always-inlines;
3735         fix updating of call stmt summaries.
3736         (pass_early_inline): Update for new names.
3737         (inline_transform): Fix formating.
3738         (gate_cgraph_decide_inlining): Rename to ...
3739         (pass_ipa_inline): ... this one.
3740         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3741         * ipa-inline-analysis.c (dump_inline_summary): Update.
3742         (compute_inline_parameters): Do not compute disregard_inline_limits;
3743         look for mismatching arguments.
3744         (estimate_growth): Fix handlig of non-trivial self recursion.
3745         (inline_read_summary): Do not read info->disregard_inline_limits.
3746         (inline_write_summary): Do not write info->disregard_inline_limits.
3747         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3748         and move all checks into can_inline_edge_p predicate; re-enable code
3749         comparing optimization levels.
3750         (expand_call_inline): Do not test inline_forbidden_into_p.
3751         * Makefile.in (ipa-inline.o): Update arguments.
3752
3753 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3754
3755         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3756
3757 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3758
3759         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3760
3761 2011-04-17  Michael Matz  <matz@suse.de>
3762
3763         PR tree-optimization/48622
3764         PR lto/48645
3765         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3766         in same order as they're written.
3767
3768 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3769
3770         * config/pa/predicates.md: Reorganize and simplify predicates.
3771         Eliminate duplicate code checks.
3772         (arith_operand): Rename to arith14_operand
3773         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3774         * config/pa/pa.md: Use renamed operands.
3775         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3776         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3777         arith11_operand, adddi3_operand, indexed_memory_operand,
3778         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3779         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3780         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3781         move_dest_operand, move_src_operand, prefetch_cc_operand,
3782         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3783         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3784         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3785         div_operand, int5_operand, movb_comparison_operator,
3786         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3787         arith_double_operand, ireg_operand, lhs_lshift_operand,
3788         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3789         integer_store_memory_operand): Likewise.
3790         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3791         (integer_store_memory_operand, read_only_operand,
3792         function_label_operand, borx_reg_operand,
3793         non_hard_reg_operand): Likewise.
3794         (eq_neq_comparison_operator): Delete unused operator.
3795         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3796         function_label_operand.
3797         (emit_move_sequence): Likewise.
3798
3799 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3800
3801         * config/i386/sse.md (sseunpackmode): New mode attribute.
3802         (ssepackmode): Ditto.
3803         (vec_pack_trunc_<mode>): Macroize expander from
3804         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3805         (vec_unpacks_lo_<mode>): Macroize expander from
3806         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3807         (vec_unpacks_hi_<mode>): Macroize expander from
3808         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3809         (vec_unpacku_lo_<mode>): Macroize expander from
3810         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3811         (vec_unpacku_hi_<mode>): Macroize expander from
3812         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3813         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3814         ix86_expand_sse4_unpack.
3815         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3816
3817 2011-04-16  Jan Hubicka  <jh@suse.cz>
3818
3819         * cgraphbuild.c: Include ipa-inline.h.
3820         (reset_inline_failed): Use initialize_inline_failed.
3821         * cgraph.c: Include ipa-inline.h.
3822         (cgraph_create_node_1): Do not initialize estimated_growth.
3823         (initialize_inline_failed): More to ipa-inline-analysis.c
3824         (dump_cgraph_node): Do not dump inline flags.
3825         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3826         and disregard_inline_limits flags.
3827         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3828         time, size, estimated_growth.
3829         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3830         Update.
3831         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3832         DECL_DISREGARD_INLINE_LIMITS.
3833         (cgraph_analyze_function): Do not initialize
3834         node->local.disregard_inline_limits.
3835         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3836         inlinable, versionable and disregard_inline_limits.
3837         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3838         cgraph_check_inline_limits, cgraph_default_inline_p,
3839         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3840         add_new_edges_to_heap): Update.
3841         (cgraph_decide_inlining_of_small_function): Update; set
3842         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3843         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3844         cgraph_decide_inlining_incrementally): Update.
3845         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3846         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3847         time, size and estimated_growth parameters.
3848         (estimate_edge_growth): Update.
3849         (initialize_inline_failed): Declare.
3850         * ipa-split.c: Include ipa-inline.h
3851         (execute_split_functions): Update.
3852         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3853         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3854         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3855         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3856         estimated_growth to INT_MIN.
3857         (inline_node_duplication_hook): Likewise.
3858         (dump_inline_summary): Dump new fields.
3859         (compute_inline_parameters): Update.
3860         (estimate_edge_time, estimate_time_after_inlining,
3861         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3862         inline_write_summary):
3863         (initialize_inline_failed): Move here from cgraph.c.
3864         * tree-sra.c: Include ipa-inline.h.
3865         (ipa_sra_preliminary_function_checks): Update.
3866         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3867         ipa-inline.h.
3868
3869 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3870
3871         * config/i386/sse.md (V16): New mode iterator.
3872         (VI1, VI8): Ditto.
3873         (AVXMODEQI, AVXMODEDI): Remove.
3874         (sse2, sse3): New mode attribute.
3875         (mov<mode>): Use V16 mode iterator.
3876         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3877         (push<mode>1): Use V16 mode iterator.
3878         (movmisalign<mode>): Ditto.
3879         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3880         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3881         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3882         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3883         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3884         avx_movdqu<avxmodesuffix>.
3885         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3886         *avx_movdqu<avxmodesuffix>.
3887         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3888         avx_lddqu<avxmodesuffix>.
3889         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3890         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3891         avx_movnt<AVXMODEDI:mode>.
3892         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3893         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3894
3895 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3896
3897         PR target/48629
3898         * haifa-sched.c (prune_ready_list, schedule_block): Use
3899         sched_pressure_p rather than flag_sched_pressure.
3900
3901 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3902
3903         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3904         cgraph_get_node instead of cgraph_get_create_node.
3905
3906 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3907
3908         * cfgexpand.c (expand_debug_expr): Use
3909         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3910
3911 2011-04-15  Michael Matz  <matz@suse.de>
3912
3913         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3914         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3915         * function.c (gimplify_parameters): Ditto.
3916         * gimplify.c (gimplify_vla_decl): Ditto.
3917
3918         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3919         (gimple_call_set_alloca_for_var): New inline function.
3920         (gimple_call_alloca_for_var_p): Ditto.
3921         * gimple.c (gimple_build_call_from_tree): Remember
3922         CALL_ALLOCA_FOR_VAR_P state.
3923         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3924
3925         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3926         calls if they were for VLA objects.
3927
3928 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3929
3930         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3931         of ADR_EXPRs.
3932
3933 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3934
3935         PR middle-end/48601
3936         * tree-emutls.c (lower_emutls_function_body): Call
3937         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3938         result is non-NULL.
3939
3940 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3941
3942         * c-decl.c (detect_field_duplicates): Call
3943         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3944
3945 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3946
3947         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3948         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3949         * ipa-pure-const.c (check_stmt): Call it.
3950         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3951
3952 2011-04-15  Richard Guenther  <rguenther@suse.de>
3953
3954         PR tree-optimization/48290
3955         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3956         Properly decide inhibiting propagation based on the valueized
3957         operand.  Do loop-closed SSA form preserving here ...
3958         (init_copy_prop): ... not here.
3959
3960 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3961
3962         PR target/48612
3963         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3964         (*ieee_smax<mode>3): Likewise.
3965
3966 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3967
3968         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3969         Replace match_operand with match_dup for the third operand in
3970         these expanders.
3971
3972 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3973
3974         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3975         to track processing of conditionals.  Update all callers.
3976         (try_combine, simplify_if_then_else): Update.
3977
3978 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3979
3980         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3981         -fsched-pressure.
3982
3983 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3984
3985         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3986         instead of match_operand for operand 3.
3987
3988 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3989
3990         * recog.h (insn_operand_data): Add an "allows_mem" field.
3991         * genoutput.c (output_operand_data): Initialize it.
3992         * optabs.c (maybe_legitimize_operand_same_code): New function.
3993         (maybe_legitimize_operand): Use it when matching the original
3994         op->value.
3995
3996 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3997
3998         * gimplify.c: Fix issues in comments throughout.
3999         (voidify_wrapper_expr): Fix long line.
4000         (build_stack_save_restore): Likewise.
4001         (gimplify_loop_expr): Likewise.
4002         (gimplify_compound_lval): Likewise.
4003         (gimplify_init_ctor_eval): Likewise.
4004         (gimplify_modify_expr_rhs): Likewise.
4005         (omp_notice_threadprivate_variable): Likewise.
4006
4007 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4008
4009         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4010         original one if this is not a builtin function.
4011
4012 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4013
4014         PR target/48605
4015         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4016         offset it as needed based on top 2 bits in operands[3], change
4017         MEM mode to SFmode and mask those 2 bits away from operands[3].
4018
4019 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4020
4021         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4022         change from objc_declare_protocols() to objc_declare_protocol().
4023
4024 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4025
4026         * config/i386/sse.md (sse4_1): New mode attribute.
4027         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4028         avx_blend<ssemodesuffix><avxmodesuffix> and
4029         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4030         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4031         avx_blendv<ssemodesuffix><avxmodesuffix> and
4032         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4033         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4034         avx_dp<ssemodesuffix><avxmodesuffix> and
4035         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4036         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4037         (sse4_1_packusdw): Merge with *avx_packusdw.
4038         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4039         (sse4_1_pblendw): Merge with *avx_pblendw.
4040         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4041         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4042         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4043         VF mode iterator.
4044         (sse4_1_round<ssescalarmodesuffix>): Merge with
4045         *avx_round<ssescalarmodesuffix>.
4046         (aesenc): Merge with *avx_aesenc.
4047         (aesenclast): Merge with *avx_aesenclast.
4048         (aesdec): Merge with *avx_aesdec.
4049         (aesdeclast): Merge with *avx_aesdeclast.
4050         (pclmulqdq): Merge with *pclmulqdq.
4051         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4052         New predicate.
4053         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4054
4055 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4056
4057         PR middle-end/48608
4058         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4059         (align_local_variable): This.  Update DECL_ALIGN.
4060         (add_stack_var): Updated.
4061         (expand_one_stack_var): Likewise.
4062
4063 2011-04-14  Richard Guenther  <rguenther@suse.de>
4064
4065         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4066         Remove.
4067         (dse_initialize_block_local_data, dse_leave_block,
4068         record_voperand_set, get_stmt_uid): Likewise.
4069         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4070         (dse_optimize_stmt): Remove voperand set handling code.
4071         Simplify and improve to handle any kind of killing stmt.
4072         (dse_record_phi): Remove.
4073         (dse_enter_block): Simplify.
4074         (tree_ssa_dse): Likewise.
4075         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4076
4077 2011-04-14  Jan Hubicka  <jh@suse.cz>
4078
4079         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4080         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4081         (cgraph_local_info): Remove inline_summary.
4082         * ipa-cp.c: Include ipa-inline.h.
4083         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4084         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4085         accesor.
4086         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4087         (input_overwrite_node): Do not set inline summary.
4088         (input_node): Do not stream inline summary.
4089         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4090         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4091         growth; we do not have inline parameters computed for that anyway.
4092         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4093         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4094         (inline_summary_t): New type and VECtor.
4095         (debug_inline_summary, dump_inline_summaries): Declare.
4096         (inline_summary): Use VOCtor.
4097         (estimate_edge_growth): Kill hack computing call stmt size directly.
4098         * lto-section-in.c (lto_section_name): Add inline section.
4099         * ipa-inline-analysis.c: Include lto-streamer.h
4100         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4101         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4102         (inline_summary_vec): Define.
4103         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4104         dump_inline_summaries): New functions.
4105         (estimate_function_body_sizes): Properly compute size/time of outgoing
4106         calls.
4107         (compute_inline_parameters): Alloc inline_summary; do not compute
4108         size/time of incomming calls.
4109         (estimate_edge_time): Avoid missing time summary hack.
4110         (inline_read_summary): Read inline summary info.
4111         (inline_write_summary): Write inline summary info.
4112         (inline_free_summary): Free all hooks and inline summary vector.
4113         * lto-streamer.h: Add LTO_section_inline_summary section.
4114         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4115         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4116
4117 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4118
4119         * tree-vectorizer.h (vect_strided_store_supported): Add a
4120         HOST_WIDE_INT argument.
4121         (vect_strided_load_supported): Likewise.
4122         (vect_permute_store_chain): Return void.
4123         (vect_transform_strided_load): Likewise.
4124         (vect_permute_load_chain): Delete.
4125         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4126         count argument.  Check that the count is a power of two.
4127         (vect_strided_load_supported): Likewise.
4128         (vect_permute_store_chain): Return void.  Update after above changes.
4129         Assert that the access is supported.
4130         (vect_permute_load_chain): Likewise.
4131         (vect_transform_strided_load): Return void.
4132         * tree-vect-stmts.c (vectorizable_store): Update calls after
4133         above interface changes.
4134         (vectorizable_load): Likewise.
4135         (vect_analyze_stmt): Don't check for strided powers of two here.
4136
4137 2011-04-14  Richard Guenther  <rguenther@suse.de>
4138
4139         PR tree-optimization/48590
4140         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4141         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4142         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4143         BUILT_IN_STACK_SAVE.
4144         * tree-ssa-dce.c (propagate_necessity): Handle
4145         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4146
4147 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4148
4149         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4150         objc_declare_class.
4151
4152 2011-04-14  Richard Guenther  <rguenther@suse.de>
4153
4154         * tree.h (get_object_alignment_1): Declare.
4155         * builtins.c (get_object_alignment_1): Split out worker from ...
4156         (get_object_alignment): ... here.
4157         * fold-const.c (get_pointer_modulus_and_residue): Use
4158         get_object_alignment_1.
4159
4160 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4161
4162         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4163         type parameter.
4164         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4165         parameter.  Generalise code to handle arrays as well as vectors.
4166         (vect_setup_realignment): Update accordingly.
4167         * tree-vect-stmts.c (vectorizable_store): Likewise.
4168         (vectorizable_load): Likewise.
4169
4170 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4171
4172         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4173         within the per-copy loop.
4174
4175 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4176
4177         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4178         in the dump file.
4179
4180 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4181
4182         * doc/options.texi (Negative): Explicitly mention that the
4183         Negative chain must be circular.
4184
4185 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4186
4187         * function.h (block_chainon): Declare.
4188         * function.c (block_chainon): Define.
4189
4190 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4191             Eric Weddington  <eric.weddington@atmel.com>
4192             Georg-Johann Lay <avr@gjlay.de>
4193
4194         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4195         New Includes
4196         (avr_init_builtins, avr_expand_builtin,
4197         avr_expand_delay_cycles, avr_expand_unop_builtin,
4198         avr_expand_binop_builtin ): New functions.
4199         (avr_builtin_id): New enum
4200         (struct avr_builtin_description): New struct
4201         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4202         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4203
4204         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4205         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4206         UNSPECV_DELAY_CYCLES): new enumeration values
4207         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4208         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4209         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4210         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4211         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4212         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4213         "fmulsu"): New insns
4214
4215         * config/avr/avr-c.c: fix line endings
4216         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4217         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4218         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4219         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4220         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4221
4222         * doc/extend.texi (AVR Built-in Functions): New node
4223         (Target Builtins): Add documentation of AVR
4224         built-in functions.
4225
4226 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4227
4228         PR target/44643
4229         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4230         alone. Error if non-const data has attribute progmem.
4231
4232 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4233
4234         * tree.h (struct tree_constructor): Include tree_typed instead of
4235         tree_common.
4236         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4237         TS_TYPED instead of TS_COMMON.
4238
4239 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4240
4241         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4242         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4243         (sse2_psadbw): Merge with *avx_psadbw.
4244         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4245         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4246         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4247         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4248         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4249         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4250         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4251         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4252         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4253         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4254         (ssse3_palignrti): Merge with *avx_palignrti.
4255
4256 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4257
4258         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4259         * tree-ssanames.c (fini_ssanames): VEC_free it.
4260         (make_ssa_name_fn): Update for VECness of free_ssanames.
4261         (release_ssa_name, release_dead_ssa_names): Likewise.
4262         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4263         tree_common.
4264         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4265         TS_TYPED instead of TS_COMMON.
4266
4267 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4268
4269         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4270         statistics_counter_event.
4271         * tree-ssa-copyrename.c (stats): Define.
4272         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4273         statistics_counter_event.
4274         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4275         (bswap_stats, widen_mul_stats): Define.
4276         (insert_reciprocals): Increment rdivs_inserted.
4277         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4278         rfuncs_inserted.  Add calls to statistics_counter_event.
4279         (execute_cse_sincos_1): Increment inserted.
4280         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4281         statistics_counter_event.
4282         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4283         of bswap_stats.  Add calls to statistics_counter_event.
4284         (convert_mult_to_widen): Increment widen_mults_inserted.
4285         (convert_plusminus_to_widen): Increment maccs_inserted.
4286         (convert_mult_to_fma): Increment fmas_inserted.
4287         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4288         calls to statistics_counter_event.
4289
4290 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4291
4292         PR rtl-optimization/48455
4293         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4294         `temp_costs->mem_cost'.
4295
4296 2011-04-13  Jan Hubicka  <jh@suse.cz>
4297
4298         * ipa-inline.h: New file.
4299         * ipa-inline-analysis.c: New file. Broken out of ...
4300         * ipa-inline.c: ... this file; update toplevel comment;
4301         include ipa-inline.h
4302         (inline_summary): Move to ipa-inline.h
4303         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4304         ipa-inline-analysis.c.
4305         (cgraph_estimate_time_after_inlining): Rename to
4306         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4307         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4308         to estimate_edge_growth.
4309         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4310         rename to estimate_size_after_inlining.
4311         (cgraph_mark_inline_edge): Update for new naming convention.
4312         (cgraph_check_inline_limits): Likewise.
4313         (cgraph_edge_badness): Likewise.
4314         (cgraph_decide_recursive_inlining): Likewise.
4315         (cgraph_decide_inlining_of_small_functions): Likewise.
4316         (cgraph_decide_inlining_incrementally): Likewise.
4317         (cgraph_estimate_growth): Rename to estimate_growth; move to
4318         ipa-inline-analysis.c.
4319         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4320         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4321         (compute_inline_parameters): Likewise.
4322         (compute_inline_parameters_for_current): Likewise.
4323         (pass_inline_parameters): Likewise.
4324         (inline_indirect_intraprocedural_analysis): Likewise.
4325         (analyze_function): Rename to inline_analyze_function; likewise.
4326         (add_new_function): Move to ipa-inline-analysis.c.
4327         (inline_generate_summary): Likewise.
4328         (inline_read_summary): Likewise.
4329         (inline_write_summary): Likewise.
4330         * Makefile.in (ipa-inline-analysis.c): New file.
4331
4332 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4333
4334         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4335         * configure: Regenerate.
4336
4337 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4338
4339         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4340         instead of tree_common.
4341         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4342         Likewise.
4343         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4344         TS_TYPED rather than TS_COMMON.
4345         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4346
4347 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4348
4349         PR target/45263
4350         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4351         r20 around calls of __tablejump_elpm__
4352
4353 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4354
4355         PR middle-end/48591
4356         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4357         NULL.
4358         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4359
4360 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4361
4362         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4363         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4364         (cfi_vec): New typedef.
4365         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4366         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4367         (cie_cfi_vec): New static variable.
4368         (cie_cfi_head): Delete.
4369         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4370         declaration changed. Use vector rather than list operations.
4371         (new_cfi): Don't initialize the dw_cfi_next field.
4372         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4373         rather than list operations.
4374         (lookup_cfa): Use vector rather than list operations.
4375         (output_cfis): New argument upto. Accept a cfi_vec rather than
4376         a dw_cfi_ref list head as argument. All callers changed.
4377         Iterate over the vector using upto as a maximum index.
4378         (output_all_cfis): New static function.
4379         (output_fde): Use vector rather than list operations. Use the
4380         new upto argument for output_cfis rather than manipulating a
4381         list.
4382         (dwarf2out_begin_prologue): Change initializations to match
4383         new struct members.
4384         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4385         from the vector length rather than searching for the end of a list.
4386         Use output_all_cfis.
4387         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4388
4389 2011-04-13  Nick Clifton  <nickc@redhat.com>
4390
4391         * config/rx/rx.md (movmemsi): Do not use this pattern when
4392         volatile pointers are involved.
4393
4394 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4395
4396         * config/i386/sse.md (pinsrbits): Remove.
4397         (sse2_packsswb): Merge with *avx_packsswb.
4398         (sse2_packssdw): Merge with *avx_packssdw.
4399         (sse2_packuswb): Merge with *avx_packuswb.
4400         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4401         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4402         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4403         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4404         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4405         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4406         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4407         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4408         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4409         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4410         (sse2_loadld): Merge with *avx_loadld.
4411         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4412         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4413         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4414         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4415         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4416
4417 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4418
4419         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4420         calling TREE_CHAIN.
4421         * print-tree.c (print_node): Likewise.
4422         * tree-inline.c (copy_tree_r): Likewise.
4423         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4424         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4425         instead of TS_COMMON.
4426         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4427         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4428         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4429         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4430         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4431         ...and these...
4432         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4433         * tree.h: ...here.
4434         (TREE_CHAIN): Check for a TS_COMMON structure.
4435         (TREE_TYPE): Check for a TS_TYPED structure.
4436
4437 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4438
4439         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4440         cgraph_get_create_node instead of cgraph_node.
4441
4442 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4443
4444         * c-parser.c (c_parser_initelt): Updated call to
4445         objc_build_message_expr.
4446         (c_parser_postfix_expression): Likewise.
4447
4448 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4449
4450         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4451         MASK_MS_BITFIELD_LAYOUT bit.
4452
4453 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4454
4455         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4456         assert it is always true.
4457         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4458         moves.
4459
4460 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4461
4462         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4463         compiling Objective-C to be more efficient.
4464
4465 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4466
4467         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4468         argv_copied.
4469
4470 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4471
4472         * recog.h, genoutput.c, optabs.c: Revert last patch.
4473
4474 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4475
4476         PR target/48090
4477         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4478
4479 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4480
4481         * recog.h (insn_operand_data): Add an "allows_mem" field.
4482         * genoutput.c (output_operand_data): Initialize it.
4483         * optabs.c (maybe_legitimize_operand_same_code): New function.
4484         (maybe_legitimize_operand): Use it when matching the original
4485         op->value.
4486
4487 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4488
4489         * genpreds.c (process_define_predicate): Move most processing
4490         to gensupport.c.  Continue to validate the expression.
4491         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4492         (process_define_predicate): Move processing to gensupport.c.
4493         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4494         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4495         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4496         argument.
4497         (valid_predicate_name_p): New function, split out from old
4498         genpreds.c:process_define_predicate.
4499         (process_define_predicate): New function, combining code from
4500         old genpreds.c and genrecog.c functions.
4501         (process_rtx): Call it for DEFINE_PREDICATE and
4502         DEFINE_SPECIAL_PREDICATE.
4503
4504 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4505
4506         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4507         size of a '%A' memory reference.
4508         (T_DREG, T_QREG): New neon_builtin_type_bits.
4509         (arm_init_neon_builtins): Assert that the load and store operands
4510         are neon_struct_operands.
4511         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4512         (NEON_ARG_MEMORY): New builtin_arg.
4513         (neon_dereference_pointer): New function.
4514         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4515         Handle NEON_ARG_MEMORY.
4516         (arm_expand_neon_builtin): Update after above interface changes.
4517         Use NEON_ARG_MEMORY for loads and stores.
4518         * config/arm/predicates.md (neon_struct_operand): New predicate.
4519         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4520         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4521         (V_four_elem): Tweak formatting.
4522         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4523         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4524         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4525         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4526         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4527         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4528         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4529         Use %A in the output template.
4530         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4531         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4532         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4533         the width of the memory access.  Remove post-increment.
4534         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4535
4536 2011-04-12  Nick Clifton  <nickc@redhat.com>
4537
4538         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4539         instruction for interrupt handlers if the target is the basic V850
4540         architecture.
4541         (expand_epilogue): Likewise.
4542
4543 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4544
4545         PR rtl-optimization/48549
4546         * combine.c (propagate_for_debug): Also stop after BB_END of
4547         this_basic_block.  Process LAST and just stop processing after it.
4548         (combine_instructions): If last_combined_insn has been deleted,
4549         set last_combined_insn to its PREV_INSN.
4550
4551 2011-04-12  Richard Guenther  <rguenther@suse.de>
4552
4553         PR tree-optimization/46076
4554         * gimple.h (struct gimple_statement_call): Add fntype field.
4555         (gimple_call_fntype): Adjust.
4556         (gimple_call_set_fntype): New function.
4557         * gimple.c (gimple_build_call_1): Set the call function type.
4558         * gimplify.c (gimplify_call_expr): Preserve the function
4559         type the frontend used for the call.
4560         (gimplify_modify_expr): Likewise.
4561         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4562         function type.
4563         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4564         function type.
4565         * tree-ssa.c (useless_type_conversion_p): Function pointer
4566         conversions are useless.
4567
4568 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4569
4570         * cgraph.h (cgraph_node): Remove function declaration.
4571         (cgraph_create_node): Declare.
4572         (cgraph_get_create_node): Likewise.
4573         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4574         Updated all callers.
4575         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4576         the decl does not already exist.  Call cgraph_get_create_node instead
4577         of cgraph_node.
4578         (cgraph_get_create_node): New function.
4579         (cgraph_same_body_alias): Update comment.
4580         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4581         assert it does not return NULL.
4582         (cgraph_update_edges_for_call_stmt): Likewise.
4583         (cgraph_clone_edge): Likewise.
4584         (cgraph_create_virtual_clone): Likewise.
4585         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4586         instead of cgraph_node.
4587         (cgraph_add_new_function): Call cgraph_create_node or
4588         cgraph_get_create_node instead of cgraph_node.
4589         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4590         instead of cgraph_node.
4591         (record_eh_tables): Likewise.
4592         (mark_address): Likewise.
4593         (mark_load): Likewise.
4594         (build_cgraph_edges): Call cgraph_get_create_node instead
4595         of cgraph_node.
4596         (rebuild_cgraph_edges): Likewise.
4597         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4598         instead of cgraph_node.
4599         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4600         cgraph_node.
4601         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4602         cgraph_create_node instead of cgraph_node.
4603         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4604         of cgraph_node.
4605         * lto-cgraph.c (input_node): Likewise.
4606         * lto-streamer-in.c (input_function): Likewise.
4607         * varasm.c (mark_decl_referenced): Likewise.
4608         (assemble_alias): Likewise.
4609
4610 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4611
4612         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4613         instead of cgraph_node and assert it does not return NULL.
4614         * lto-streamer-in.c (lto_read_body): Likewise.
4615         * omp-low.c (new_omp_context): Likewise.
4616         (create_task_copyfn): Likewise.
4617         * tree-emutls.c (lower_emutls_function_body): Likewise.
4618         * matrix-reorg.c (transform_allocation_sites): Likewise.
4619
4620 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4621
4622         PR c/48552
4623         * c-typeck.c (build_asm_expr): Error out on attempts to use
4624         void type outputs or inputs for constraints that allow reg or
4625         don't allow memory.
4626
4627 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4628             Richard Earnshaw  <rearnsha@arm.com>
4629
4630         PR target/48250
4631         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4632         to use sign-magnitude offsets. Reject unsupported unaligned
4633         cases. Add detailed description in comments.
4634         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4635         condition from TARGET_32BIT to TARGET_ARM.
4636
4637 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4638
4639         * tree.h (struct typed_tree): New.
4640         (struct tree_common): Include it instead of tree_base.
4641         (TREE_TYPE): Update for new location of type field.
4642         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4643         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4644         (union tree_node): Add typed field.
4645         * treestruct.def (TS_TYPED): New.
4646         * lto-streamer.c (check_handled_ts_structures): Handle it.
4647         * tree.c (MARK_TS_TYPED): New macro.
4648         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4649
4650 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4651
4652         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4653         (force_nonfallthru): Do not alter the loop nest if no basic block
4654         was created.
4655
4656 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4657
4658         * config/i386/sse.md (VI): New mode iterator.
4659         (SSEMODEI): Remove.
4660         (AVX256MODEI): Ditto.
4661         (AVXMODEF4P): Ditto.
4662         (avxvecpsmode): Ditto.
4663         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4664         (sse2_andnot<mode>3): New expander.
4665         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4666         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4667         (<any_logic:code><mode>3): Use VI mode iterator.
4668         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4669         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4670         (*andnottf3): Handle AVX three-operand constraints.
4671         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4672
4673 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4674             Robert Millan  <rmh@gnu.org>
4675
4676         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4677         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4678         GNU_USER_DYNAMIC_LINKER64): Define.
4679         (REG_NAME): Don't undefine.
4680         (MD_UNWIND_SUPPORT): Undefine.
4681         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4682         (REG_NAME): Don't undefine.
4683         (MD_UNWIND_SUPPORT): Undefine.
4684         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4685
4686 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4687
4688         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4689         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4690
4691 2011-04-11  Xinliang David Li  <davidxl@google.com>
4692
4693         * value-profile.c (check_ic_target): New function.
4694         (gimple_ic_transform): Sanity check indirect call target.
4695         * gimple-low.c (gimple_check_call_args): Interface change.
4696         (gimple_check_call_matching_types): New function.
4697         * tree-inline.c (tree_can_inline_p): Call new function.
4698
4699 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4700
4701         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4702         tree-pretty-print.h & realmpfr.h.
4703
4704 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4705
4706         PR middle-end/48464
4707         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4708         (setup_allocno_and_important_classes): Ditto.
4709
4710 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4711
4712         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4713         GNU_USER_DYNAMIC_LINKER.
4714         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4716         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4717         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4718         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4719         GNU_USER_TARGET_OS_CPP_BUILTINS.
4720         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4721         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4722         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4723         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4724         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4725         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4726         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4727         GNU_USER_TARGET_OS_CPP_BUILTINS.
4728         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4729         GNU_USER_DYNAMIC_LINKER.
4730         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4731         GNU_USER_TARGET_OS_CPP_BUILTINS.
4732         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4733         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4734         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4735         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4736         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4737         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4738         GNU_USER_DYNAMIC_LINKER64): Remove.
4739         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4740         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4741         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4742         GNU_USER_DYNAMIC_LINKER.
4743         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4744         GNU_USER_TARGET_OS_CPP_BUILTINS.
4745         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4746         GNU_USER_TARGET_OS_CPP_BUILTINS.
4747         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4748         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4749         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4750         GNU_USER_TARGET_OS_CPP_BUILTINS.
4751         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4752         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4753         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4754         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4755         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4756         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4757         GNU_USER_DYNAMIC_LINKER.
4758         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4759         GNU_USER_TARGET_OS_CPP_BUILTINS.
4760         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4761         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4762         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4763         GNU_USER_DYNAMIC_LINKER.
4764         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4765         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4766         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4767         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4768         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4769         GNU_USER_DYNAMIC_LINKER.
4770         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4771         GNU_USER_DYNAMIC_LINKERN32.
4772         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4773         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4774         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4775         GNU_USER_DYNAMIC_LINKER32.
4776         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4777         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4778         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4779         GNU_USER_DYNAMIC_LINKER.
4780         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4781         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4782         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4783         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4784         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4785         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4786         GNU_USER_DYNAMIC_LINKER32.
4787         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4788         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4789         GNU_USER_DYNAMIC_LINKER.
4790         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4791         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4792         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4793         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4794         GNU_USER_DYNAMIC_LINKER64.
4795         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4796         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4797         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4798         GNU_USER_DYNAMIC_LINKER.
4799         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4800         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4801         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4802         GNU_USER_DYNAMIC_LINKER.
4803         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4804         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4805         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4806         GNU_USER_DYNAMIC_LINKER32.
4807         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4808         GNU_USER_DYNAMIC_LINKER64.
4809         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4810         GNU_USER_DYNAMIC_LINKER64.
4811         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4812         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4813         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4814         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4815         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4816
4817 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4818
4819         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4820         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4821         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4822         GNU_USER_DYNAMIC_LINKER.
4823         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4824         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4825         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4826         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4827         GNU_USER_DYNAMIC_LINKER64.
4828         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4829         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4830         GNU_USER_LINK_EMULATION.
4831         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4832         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4833         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4834         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4835         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4836         CPP_SPEC, CC1_SPEC): Remove.
4837         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4838         (GNU_USER_DYNAMIC_LINKER): Define.
4839         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4840         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4841         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4842         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4843         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4844         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4845         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4846         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4847         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4848         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4849         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4850         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4851         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4852         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4853         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4854         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4855         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4856         GNU_USER_DYNAMIC_LINKER.
4857         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4858         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4859         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4860         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4861         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4862         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4863         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4864         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4865         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4866         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4867
4868 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4869
4870         PR target/9601
4871         PR target/11772
4872         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4873         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4874         comment.
4875         (ix86_is_msabi_thiscall): Removed.
4876         (ix86_is_type_thiscall): Likewise.
4877         (ix86_get_callcvt): New function.
4878         (ix86_comp_type_attributes): Simplify check.
4879         (ix86_function_regparm): Use ix86_get_callcvt for calling
4880         convention attribute checks.
4881         (ix86_return_pops_args): Likewise.
4882         (ix86_static_chain): Likewise.
4883         (x86_this_parameter): Likewise.
4884         (x86_output_mi_thunk): Likewise.
4885         (ix86_function_type_abi): Optimize check for types without attributes.
4886         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4887         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4888         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4889         by flag-values.
4890         (IX86_BASE_CALLCVT): Helper macro.
4891         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4892         Use ix86_get_callcvt for calling convention attribute checks and avoid
4893         symbol-decoration for stdcall in TARGET_RTD case.
4894         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4895         Likewise.
4896         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4897         for declaration.
4898
4899 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4900
4901         * config/i386/sse.md (VI_128): New mode iterator.
4902         (VI12_128): Rename from SSEMODE12.
4903         (VI14_128): Rename from SSEMODE14.
4904         (VI124_128): New mode iterator.
4905         (VI24_128): Rename from SSEMODE248.
4906         (VI248_128): Rename from SSEMODE248.
4907         (SSEMODE124C8): Remove.
4908         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4909         (*sse2_<plusminus_insn><mode>3): Merge with
4910         *avx_<plusminus_insn><mode>3.
4911         (*mulv8hi3): Merge with *avx_mulv8hi3.
4912         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4913         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4914         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4915         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4916         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4917         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4918         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4919         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4920         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4921         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4922         (*<smaxmin:code>v8hi3): Ditto.
4923         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4924         (*<smaxmin:code>v16qi3): Ditto.
4925         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4926         (*sse2_eq<mode>3): Ditto.
4927         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4928         (*sse2_gt<mode>3): Ditto.
4929         (vcondv2di): Split out of vcond<mode>.
4930         (vconduv2di): Split out of vcondu<mode>.
4931
4932 2011-04-11  Richard Guenther  <rguenther@suse.de>
4933
4934         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4935         before calling tree_low_cst.
4936
4937 2011-04-11  Richard Guenther  <rguenther@suse.de>
4938
4939         * stor-layout.c (layout_type): Compute all array index size operations
4940         in the original type.
4941         (initialize_sizetypes): Add comment.
4942         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4943
4944 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4945
4946         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4947
4948 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4949
4950         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4951         of cgraph_node, handle NULL return value.
4952         (cgraph_global_info): Likewise.
4953         (cgraph_rtl_info): Likewise.
4954         * tree-inline.c (estimate_num_insns): Likewise.
4955         * gimplify.c (unshare_body): Likewise.
4956         (unvisit_body): Likewise.
4957         (gimplify_body): Likewise.
4958         * predict.c (optimize_function_for_size_p): Likewise.
4959         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4960         (call_may_clobber_ref_p_1): Likewise.
4961         * varasm.c (function_section_1): Likewise.
4962         (assemble_start_function): Likewise.
4963
4964 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4965
4966         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4967         of cgraph_node.
4968         * final.c (rest_of_clean_state): Likewise.
4969         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4970         * passes.c (pass_init_dump_file): Likewise.
4971         (execute_all_ipa_transforms): Likewise.
4972         (function_called_by_processed_nodes_p): Likewise.
4973         * predict.c (maybe_hot_frequency_p): Likewise.
4974         (probably_never_executed_bb_p): Likewise.
4975         (compute_function_frequency): Likewise.
4976         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4977         (unnest_nesting_tree_1): Likewise.
4978         (lower_nested_functions): Likewise.
4979         * tree-optimize.c (execute_fixup_cfg): Likewise.
4980         (tree_rest_of_compilation): Likewise.
4981         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4982         * tree-sra.c (ipa_early_sra): Likewise.
4983         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4984         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4985         * ipa.c (record_cdtor_fn): Likewise.
4986         * ipa-inline.c (cgraph_early_inlining): Likewise.
4987         (compute_inline_parameters_for_current): Likewise.
4988         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4989         * ipa-pure-const.c (local_pure_const): Likewise.
4990         * ipa-split.c (split_function): Likewise.
4991         (execute_split_functions): Likewise.
4992         * cgraphbuild.c (build_cgraph_edges): Likewise.
4993         (rebuild_cgraph_edges): Likewise.
4994         (cgraph_rebuild_references): Likewise.
4995         (remove_cgraph_callee_edges): Likewise.
4996         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4997         (verify_cgraph_node): Likewise.
4998         (cgraph_analyze_functions): Likewise.
4999         (cgraph_preserve_function_body_p): Likewise.
5000         (save_inline_function_body): Likewise.
5001         (save_inline_function_body): Likewise.
5002         * tree-inline.c (copy_bb): Likewise.
5003         (optimize_inline_calls): Likewise.
5004
5005 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5006
5007         PR tree-optimization/48195
5008         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5009         ipa_check_create_edge_args.
5010         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5011         ipa_check_create_edge_args.
5012         * ipa-inline.c (inline_generate_summary): Do not call
5013         ipa_check_create_node_params and ipa_check_create_edge_args.
5014         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5015         ipa_check_create_edge_args.
5016
5017 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5018
5019         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5020         instead of loop.
5021         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5022         * function.c (record_hard_reg_sets): Likewise.
5023         * ira.c (compute_regs_asm_clobbered): Likewise.
5024         * sched-deps.c (sched_analyze_1): Likewise.
5025         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5026
5027 2011-04-09  Xinliang David Li  <davidxl@google.com>
5028
5029         PR tree-optimization/PR48484
5030         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5031         has_valid_pred lazily
5032
5033 2011-04-09  Duncan Sands  <baldrick@free.fr>
5034
5035         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5036
5037 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5038
5039         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5040         cost of I0 to zero at the end, if any.
5041
5042 2011-04-08  Xinliang David Li  <davidxl@google.com>
5043
5044         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5045         to insane profile data.
5046
5047 2011-04-08  Xinliang David Li  <davidxl@google.com>
5048
5049         * ipa-cp.c (ipcp_update_profiling): Correct
5050          negative scale factor due to insane profile data.
5051
5052 2011-04-08  Xinliang David Li  <davidxl@google.com>
5053
5054         * final.c (dump_basic_block_info): New function.
5055         (final): Dump basic block.
5056         (final_scan_insn): Remove old dump.
5057
5058 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5059
5060         PR target/47829
5061         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5062         crtbegin/crtend.
5063
5064 2011-04-08  Michael Matz  <matz@suse.de>
5065
5066         PR middle-end/48389
5067         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5068         functions.
5069         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5070         * rtl.h (rebuild_jump_labels_chain): Declare.
5071         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5072         insns inserted on edges.
5073
5074 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5075
5076         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5077         * config/arm/arm-arches.def: New.
5078         * config/arm/arm-opts.h: New.
5079         * config/arm/genopt.sh: New.
5080         * config/arm/arm-tables.opt: New (generated).
5081         * config/arm/arm.c (arm_handle_option, arm_target_help,
5082         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5083         (all_architectures): Get most table contents from arm-arches.def.
5084         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5085         arm_selected_tune here.
5086         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5087         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5088         (march=, mcpu=, mtune=): Use Enum and Var.
5089         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5090         (arm.o): Update dependencies.
5091
5092 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5093
5094         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5095         of header_file.
5096         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5097         (write_typed_alloc_defns): Likewise.
5098         (main): Calls write_typed_alloc_defns with output_header.
5099
5100 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5101
5102         PR inline-asm/48435
5103         * ira-color.c (setup_profitable_hard_regs): Add comments.
5104         Don't take prohibited hard regs into account.
5105         (setup_conflict_profitable_regs): Rename to
5106         get_conflict_profitable_regs.
5107         (check_hard_reg_p): Check prohibited hard regs.
5108
5109 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5110
5111         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5112         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5113         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5114
5115 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5116
5117         PR target/48366
5118         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5119         move from floating point to shift amount register.
5120         (emit_move_sequence): Remove secondary reload support for floating
5121         point to shift amount amount register copies.
5122         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5123         amount register copies.
5124         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5125         register, return false if mode isn't a scalar integer mode.
5126         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5127
5128 2011-04-08  Richard Guenther  <rguenther@suse.de>
5129
5130         * gimple.c (gimple_call_flags): Remove kludge.
5131
5132 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5133
5134         * sel-sched.c (sel_region_init): Move call to
5135         sel_setup_region_sched_flags after setup_current_loop_nest.
5136
5137 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5138
5139         PR rtl-optimization/48272
5140         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5141         init_insn_reg_pressure_info.  Adjust a caller.
5142         * sched-int.h (init_insn_reg_pressure_info): Declare.
5143         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5144         when sched-pressure is enabled.
5145
5146 2011-04-08  Richard Guenther  <rguenther@suse.de>
5147
5148         * gimple.c (gimple_set_modified): Do not queue calls to
5149         MODIFIED_NORETURN_CALLS here ...
5150         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5151
5152 2011-04-08  Richard Guenther  <rguenther@suse.de>
5153
5154         PR lto/48467
5155         * toplev.c (lang_dependent_init): Do not open asm_out_file
5156         in WPA mode, nor perform debug machinery initialization.
5157         (finalize): Do not unlink asm_out_file in WPA mode.
5158
5159 2011-04-08  Richard Guenther  <rguenther@suse.de>
5160
5161         * gimple.h (gimple_call_fntype): New function.
5162         (gimple_call_return_type): Use it.
5163         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5164         * gimple-low.c (gimple_check_call_args): Likewise.
5165         * gimple.c (gimple_call_flags): Likewise.
5166         (gimple_call_arg_flags): Likewise.
5167         (gimple_call_return_flags): Likewise.
5168         * tree-cfg.c (verify_gimple_call): Likewise.
5169         (do_warn_unused_result): Likewise.
5170         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5171         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5172
5173 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5174
5175         PR rtl-optimization/48235
5176         * sel-sched.c (code_motion_process_successors): Recompute the last
5177         insn in basic block if control flow changed.
5178         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5179         Update condition for ilist_remove.
5180
5181 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5182
5183         PR rtl-optimization/48302
5184         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5185         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5186         it to record added preheader blocks.
5187         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5188         on to sel_add_loop_preheaders.
5189         (sel_region_init): Move call to setup_current_loop_nest after
5190         sel_init_bbs.
5191
5192 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5193
5194         PR target/48273
5195         * cfgloop.h (loop_has_exit_edges): New helper.
5196         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5197         non-clonable.
5198         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5199         that have no exit edges.
5200
5201 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5202
5203         PR rtl-optimization/48442
5204         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5205         all callers.  Adjust assert.
5206
5207 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5208
5209         PR tree-optimization/48377
5210         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5211         is_packed to true even for types with smaller TYPE_ALIGN than
5212         TYPE_SIZE.
5213
5214 2011-04-08  Richard Guenther  <rguenther@suse.de>
5215
5216         PR bootstrap/48513
5217         * doc/tm.texi: Re-generate.
5218
5219 2011-04-08  Wei Guozhi  <carrot@google.com>
5220
5221         PR target/47855
5222         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5223         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5224         * config/arm/arm.md (*push_multi): Change the length computation to
5225         call a C function.
5226
5227 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5228
5229         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5230         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5231         * doc/tm.texi: Regenerate.
5232         * system.h (ASM_OUTPUT_BSS): Poison.
5233         * varasm.c (asm_output_bss): Remove function.
5234         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5235
5236         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5237         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5238         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5239         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5240         Likewise.
5241         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5242         Likewise.
5243         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5244         Likewise.
5245         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5246
5247 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5250         EnumValue lines.
5251
5252 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5253
5254         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5255         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5256         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5257         OPT_mcpu32.
5258         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5259         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5260         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5261         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5262         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5263         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5264         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5265         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5266         options.  Don't map other m68k options manually.  Don't handle
5267         old-style options as canonical.
5268         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5269         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5270
5271 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5272
5273         * basic-block.h (force_nonfallthru): Move to...
5274         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5275         (force_nonfallthru): ...here.
5276         * cfghooks.c (force_nonfallthru): New function.
5277         * cfgrtl.c (force_nonfallthru): Rename into...
5278         (rtl_force_nonfallthru): ...this.
5279         (commit_one_edge_insertion): Do not set AUX field.
5280         (commit_edge_insertions): Do not discover new basic blocks.
5281         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5282         (cfg_layout_rtl_cfg_hooks): Likewise.
5283         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5284         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5285         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5286
5287 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5288
5289         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5290         Remove macros.
5291
5292 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5293
5294         * config/i386/sse.md: Update copyright year.
5295         (avxcvtvecmode): Remove.
5296         (sse_movhlps): Merge with *avx_movhlps.
5297         (sse_movlhps): Merge with *avx_movlhps.
5298         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5299         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5300         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5301         (sse_loadhps): Merge with *avx_loadhps.
5302         (sse_storelps): Merge with *avx_storelps.
5303         (sse_loadlps): Merge with *avx_loadlps.
5304         (sse_movss): Merge with *avx_movss.
5305         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5306         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5307         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5308         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5309         (vec_set<mode>_0): Ditto.
5310         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5311         (sse4_1_insertps): Merge with *avx_insertps.
5312         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5313         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5314         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5315         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5316         (sse2_storehpd): Merge with *avx_storehpd.
5317         (sse2_loadhpd): Merge with *avx_loadhpd.
5318         (sse2_loadlpd): Merge with *avx_loadlpd.
5319         (sse2_movsd): Merge with *avx_movsd.
5320         (*vec_concatv2df): Merge with *vec_concatv2df.
5321
5322 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR debug/48343
5325         * combine.c (combine_instructions): Add last_combined_insn,
5326         update it if insn is after it, pass it to all try_combine calls.
5327         (try_combine): Add last_combined_insn parameter, pass it instead of
5328         i3 to propagate_for_debug.
5329
5330 2011-04-07  Nick Clifton  <nickc@redhat.com>
5331
5332         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5333         to handle MDR <-> data register transfers.
5334         (movhi_internal): Likewise.
5335
5336 2011-04-07  Alan Modra  <amodra@gmail.com>
5337
5338         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5339         previous stack info.
5340
5341 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5342
5343         PR target/43920
5344         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5345         flow_find_cross_jump.  Swap variables to implement backward replacement.
5346         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5347
5348 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5349
5350         PR target/43920
5351         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5352         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5353         and bb2.
5354         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5355         src1 or src2.  Redirect edges to the last basic block.  Update
5356         frequency and count on multiple basic blocks in case of fallthru.
5357
5358 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5359
5360         PR target/43920
5361         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5362         function.
5363         (old_insns_match_p): Change return type.  Replace return false/true
5364         with return dir_none/dir_both.  Use can_replace_by.
5365         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5366         direction from dir_p.  Register replacement direction in dir, last_dir
5367         and afterlast_dir.  Handle new return type of old_insns_match_p using
5368         merge_dir.  Return replacement direction in dir_p.
5369         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5370         return type of old_insns_match_p.
5371         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5372         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5373         flow_find_cross_jump.
5374         * basic-block.h (enum replace_direction): New type.
5375         (flow_find_cross_jump): Add parameter to declaration.
5376
5377 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5378
5379         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5380         (AVXMODEDCVTPS2DQ): Ditto.
5381         (VEC_FLOAT_MODE): Ditto.
5382         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5383         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5384         (<any_logic:code><mode>3): Use VF mode iterator.
5385         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5386         Use VF mode iterator.
5387         (copysign<mode>3): Use VF mode iterator.
5388         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5389         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5390         (*<any_logic:code><MODEF:mode>3): Merge with
5391         *avx_<any_logic:code><MODEF:mode>3.
5392         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5393         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5394         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5395         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5396         (sse2_cvtdq2ps): Use %v modifier.
5397         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5398         (avx_cvtps2dq<avxmodesuffix>): Remove.
5399         (sse2_cvtps2dq): Use %v modifier.
5400         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5401         (avx_cvttps2dq<avxmodesuffix>): Remove.
5402         (sse2_cvttps2dq): Use %v modifier.
5403         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5404         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5405         (sse2_cvtsd2siq): Fix insn template.
5406         (sse2_cvtsd2siq_2): Ditto.
5407         (sse2_cvttsd2siq): Ditto.
5408         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5409         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5410
5411 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5412
5413         * gcov-io.c: Use GCC Runtime Library Exception.
5414
5415 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5416
5417         PR debug/48466
5418         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5419         as base_reg whatever register reg has been eliminated to, instead
5420         of hardcoding STACK_POINTER_REGNUM.
5421
5422 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5423
5424         * doc/tm.texi.in: Document C target hooks as separate from general
5425         target hooks.
5426         * doc/tm.texi: Regenerate.
5427         * genhooks.c (struct hook_desc): Add docname field.
5428         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5429         docname field.
5430         (hook_array): Include c-target.def.
5431         (emit_documentation): Use docname field in output.
5432         (emit_init_macros): Take docname argument.  Only emit definitions
5433         for hooks matching docname.
5434         (main): Expect additional arguments in all cases.  Pass argument
5435         to emit_init_macros.
5436         * target.def: Move initial macro definitions and comments to
5437         target-hooks-macros.h.
5438         (gcc_targetcm): Move to c-family/c-target.def.
5439         * target.h (targetcm): Move declaration to c-family/c-target.h.
5440         * targhooks.c (default_handle_c_option): Move to
5441         c-family/c-opts.c.
5442         * targhooks.h (default_handle_c_option): Move declaration to
5443         c-family/c-common.h.
5444         * target-hooks-macros.h: New file.
5445         * config.gcc (target_has_targetcm): Define and use to add to
5446         c_target_objs and cxx_target_objs.
5447         * config/default-c.c: New file.
5448         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5449         of target.h and target-def.h.
5450         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5451         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5452         darwin_check_cfstring_format_arg): Make static.
5453         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5454         TARGET_STRING_OBJECT_REF_TYPE_P,
5455         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5456         * config/darwin-protos.h (darwin_objc_construct_string,
5457         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5458         declare.
5459         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5460         TARGET_STRING_OBJECT_REF_TYPE_P,
5461         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5462         * config/t-darwin (darwin-c.o): Update dependencies.
5463         * system.h (TARGET_HAS_TARGETCM): Poison.
5464         * Makefile.in (TARGET_H): Update.
5465         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5466         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5467         (default-c.o): New target.
5468         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5469         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5470         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5471         c-target.def.
5472         (build/genhooks.o): Update dependencies.
5473
5474 2011-04-06  Richard Guenther  <rguenther@suse.de>
5475
5476         * ipa-inline.c (enum inlining_mode): Remove.
5477         (cgraph_flatten): Use some other token.
5478         (cgraph_edge_early_inlinable_p): New function, split out from ...
5479         (cgraph_perform_always_inlining): New function, split out from ...
5480         (cgraph_decide_inlining_incrementally): ... here.
5481         (cgraph_mark_inline_edge): Adjust.
5482         (cgraph_early_inlining): Re-structure.
5483         (pass_early_inline): Require SSA form.
5484
5485 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5486             Julian Brown  <julian@codesourcery.com>
5487             Mark Shinwell  <shinwell@codesourcery.com>
5488
5489         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5490         LO_REGS only for Thumb-1.
5491         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5492         be used in short instructions when optimising for size on Thumb-2.
5493
5494 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5495
5496         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5497         associated with user returns to be preserved.
5498
5499 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5500
5501         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5502         symbol_queue_size, DBXOUT_DECR_NESTING,
5503         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5504         if XCOFF_DEBUGGING_INFO.
5505
5506 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5507
5508         * config/i386/i386.md (attribute isa): New.
5509         (attribute enabled): New.
5510         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5511         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5512         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5513         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5514         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5515         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5516         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5517         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5518
5519         * config/i386/sse.md (VF): New mode iterator.
5520         (VF1): Ditto.
5521         (VF2): Ditto.
5522         (VF_128): Ditto.
5523         (SSEMODEF4): Remove.
5524         (attribute sse): Handle V8SF and V4DF modes.
5525         (<absneg:code><mode>2): Use VF mode iterator.
5526         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5527         mode iterator.
5528         (<plusminus_insn><mode>3): Use VF mode iterator.
5529         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5530         Use VF mode iterator.
5531         (<sse>_vm<plusminus_insn><mode>3): Merge with
5532         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5533         (mul<mode>3): Use VF mode iterator.
5534         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5535         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5536         mode iterator.
5537         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5538         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5539         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5540         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5541         mode iterator.
5542         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5543         Use VF1 mode iterator.
5544         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5545         (sqrt<VF2:mode>2): New expander.
5546         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5547         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5548         and sqrtv2df2.  Use VF mode iterator.
5549         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5550         mode iterator.
5551         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5552         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5553         Use VF1 mode iterator.
5554         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5555         (<smaxmin:code><mode>3): Use VF mode iterator.
5556         (*<smaxmin:code><mode>3_finite): Merge with
5557         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5558         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5559         (<sse>_vm<smaxmin:code><mode>2): Merge with
5560         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5561         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5562         mode iterator.
5563         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5564         mode iterator.
5565         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5566         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5567         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5568         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5569         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5570         VF mode iterator.
5571         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5572         Use VF_128 mode iterator.
5573         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5574         mode iterator.
5575         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5576         VF_128 mode iterator.
5577         (vcond<mode>): Use VF mode iterator.
5578         * config/i386/predicates.md (sse_comparison_operator): Merge with
5579         avx_comparison_float_operator.  Do not declare as special_predicate.
5580         * config/i386/i386.c (struct builtin_description): Update for renamed
5581         compare patterns.
5582         (ix86_expand_args_builtin): Ditto.
5583         (ix86_expand_sse_compare_mask): Ditto.
5584
5585 2011-04-06  Richard Guenther  <rguenther@suse.de>
5586
5587         * tree-inline.c (estimate_num_insns): For calls simply account
5588         for all passed arguments and a used return value.
5589
5590 2011-04-06  Richard Guenther  <rguenther@suse.de>
5591
5592         PR tree-optimization/47663
5593         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5594         call_stmt_time fields.
5595         (cgraph_edge_inlinable_p): Declare.
5596         (cgraph_edge_recursive_p): New inline function.
5597         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5598         (cgraph_clone_edge): Copy it.
5599         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5600         Account for call stmt time.
5601         (cgraph_estimate_time_after_inlining): Take edge argument.
5602         (cgraph_estimate_edge_growth): Account call stmt size.
5603         (cgraph_estimate_size_after_inlining): Take edge argument.
5604         (cgraph_mark_inline_edge): Adjust.
5605         (cgraph_check_inline_limits): Likewise.
5606         (cgraph_recursive_inlining_p): Remove.
5607         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5608         (cgraph_decide_recursive_inlining): Take edge argument and
5609         adjust.
5610         (cgraph_decide_inlining_of_small_functions): Do not avoid
5611         diags for recursive inlining here.
5612         (cgraph_flatten): Adjust.
5613         (cgraph_decide_inlining_incrementally): Likewise.
5614         (estimate_function_body_sizes): Remove call cost handling.
5615         (compute_inline_parameters): Initialize caller edge call costs.
5616         (cgraph_estimate_edge_growth): New function.
5617         (cgraph_estimate_growth): Use it.
5618         (cgraph_edge_badness): Likewise.
5619         (cgraph_check_inline_limits): Take an edge argument.
5620         (cgraph_decide_inlining_of_small_functions): Adjust.
5621         (cgraph_decide_inlining): Likewise.
5622         * tree-inline.c (estimate_num_insns): Only account for call
5623         return value if it is used.
5624         (expand_call_inline): Avoid diagnostics on recursive inline
5625         functions here.
5626         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5627         (input_edge): Input edge call costs.
5628
5629 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5630
5631         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5632
5633 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5634
5635         * doc/invoke.texi (Spec Files): Fix typo.
5636
5637 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5638
5639         * profile.c (branch_prob): Move declaration of local variable.  Remove
5640         obsolete ??? comment.  Expand the location explicitly instead of using
5641         the LOCATION_FILE and LOCATION_LINE macros.
5642
5643 2011-04-06  Wei Guozhi  <carrot@google.com>
5644
5645         PR target/47855
5646         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5647         (arm_cond_branch): Likewise.
5648         (arm_cond_branch_reversed): Likewise.
5649         (arm_jump): Likewise.
5650         (push_multi): Likewise.
5651         * config/arm/constraints.md (Py): New constraint.
5652
5653 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5654
5655         PR bootstrap/48471
5656         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5657         Move these...
5658         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5659         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5660         #ifdef DBX_DEBUGGING_INFO.
5661
5662 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5663
5664         PR bootstrap/48403
5665         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5666         if old and new states differ.
5667
5668 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5669
5670         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5671         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5672         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5673         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5674         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5675         mcfv4e): Use Alias.
5676         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5677         ColdFire options to -mcpu= options.
5678
5679 2011-04-05  Jeff Law  <law@redhat.com>
5680
5681         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5682         check if BB is a successor of LOOP->header and return
5683         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5684
5685 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5686
5687         * cprop.c (struct reg_use): Remove.
5688         (reg_use_table): Make an array of RTX.
5689         (find_used_regs, constprop_register, local_cprop_pass,
5690         bypass_block): Simplify users of reg_use_table.
5691         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5692         on one of the uses found by find_used_regs.
5693
5694 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5695
5696         PR bootstrap/48469
5697         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5698         declaration.
5699
5700 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5701
5702         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5703         as an rtx.
5704         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5705
5706 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5707
5708         PR middle-end/48441
5709         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5710
5711 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5712
5713         * combine.c: Include obstack.h.
5714         (struct insn_link): Define.
5715         (uid_log_links): Adjust type.
5716         (FOR_EACH_LOG_LINK): New macro.
5717         (insn_link_obstack): Declare.
5718         (alloc_insn_link): Define.
5719         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5720         type of link variables.
5721         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5722         (try_combine, record_promoted_values, distribute_notes): Likewise.
5723         (distribute_links): Likewise.  Tweak prototype.
5724         (clear_log_links): Delete.
5725         (adjust_for_new_dest): Call alloc_insn_link.
5726         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5727
5728 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5729
5730         * gcse.c (modify_mem_list): Convert to an array of VECs.
5731         (canon_modify_mem_list, compute_transp): Tweak formatting.
5732         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5733         (load_killed_in_block_p): Likewise.
5734         (record_last_mem_set_info): Likewise.
5735         (clear_modify_mem_tables): Likewise.
5736
5737 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5738
5739         PR middle-end/48461
5740         * function.c (emit_use_return_register_into_block): Only define if
5741         HAVE_return.
5742
5743 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5744
5745         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5746
5747 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5748
5749         * config/rx/rx-opts.h: New.
5750         * config/rx/rx.c (rx_cpu_type): Remove.
5751         (rx_handle_option): Don't assert that global structures are in
5752         use.  Access variables via opts pointer.  Defer most handling of
5753         OPT_mint_register_.  Use error_at.
5754         (rx_option_override): Handle deferred OPT_mint_register_ here.
5755         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5756         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5757         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5758         (rx_cpu_types): New Enum and EnumValue entries.
5759         (mint-register=): Use Defer and use Var accordingly.
5760
5761 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5762
5763         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5764         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5765         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5766         Move these...
5767         (debug_free_queue, debug_nesting, symbol_queue_index):
5768         ...and these...
5769         * dbxout.c: ...to here.  Make static.
5770
5771 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5772
5773         * gcse.c (modify_pair): Define.  Define a VEC of it.
5774         (canon_modify_mem_list): Convert to an array of VECs.
5775         (free_insn_expr_list_list): Delete.
5776         (clear_modify_mem_tables): Call VEC_free instead.
5777         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5778         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5779         (canon_list_insert, compute_transp): Likewise.
5780
5781 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5782
5783         PR target/43920
5784         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5785         for size.
5786
5787 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5788
5789         PR target/43920
5790         * function.c (emit_use_return_register_into_block): New function.
5791         (thread_prologue_and_epilogue_insns): Use
5792         emit_use_return_register_into_block.
5793
5794 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5795
5796         PR target/43920
5797         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5798         insn.
5799
5800 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5801
5802         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5803
5804 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5805
5806         * config/arm/arm.md (define_constants for unspec): Replace with
5807         define_c_enum.
5808         (define_constants for unspecv): Replace with define_c_enum.
5809         * config/arm/neon.md (define_constants for unspec): Replace with
5810         define_c_enum.
5811
5812 2011-04-04  Richard Henderson  <rth@redhat.com>
5813
5814         PR bootstrap/48400
5815         * dwarf2out.c (output_line_info): Always emit line info from
5816         at least one section.
5817         (dwarf2out_init): Create text_section_line_info here ...
5818         (set_cur_line_info_table): ... not here.
5819
5820 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5821
5822         PR target/48380
5823         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5824         not called.
5825
5826         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5827
5828 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5829
5830         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5831         (expr_equiv_p): Remove.
5832         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5833         (hash_scan_set): Update call to insert_set_in_table.
5834         (dump_hash_table): Dump <dest, src> pair.
5835         (lookup_set): Simplify.  Lookup <dest, src> pair.
5836         (compute_transp): Remove, fold heavily simplified code into...
5837         (compute_local_properties): ...here.  Expect COMP and TRANSP
5838         unconditionally.
5839         (find_avail_set): Take set directly from struct expr.
5840         (find_bypass-set): Likewise.
5841         (bypass_block): Likewise.
5842         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5843
5844         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5845         checks on form of COND from find_implicit_sets to here.
5846         (find_implicit_sets): Cleanup control flow. Split critical edges
5847         if it exposes implicit sets.  Allocate/resize implicit_sets as
5848         necessary.
5849         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5850         changed something.  Run df_analyze after find_implicit_sets if any
5851         edges were split.  Do not allocate implicit_sets here.
5852
5853         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5854         (gcse_obstack): Renamed to cprop_obstack.
5855         (GNEW, GNEWVEC, GNEWVAR): Remove.
5856         (gmalloc): Remove.
5857         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5858         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5859         (gcse_alloc): Likewise, and rename to cprop_alloc.
5860         (alloc_gcse_men, free_gcse_mem): Remove.
5861         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5862         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5863         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5864
5865         * cprop.c (oprs_not_set_p): Remove.
5866         (mark_set, mark_clobber): Remove.
5867         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5868         (reg_not_set_p): New function.
5869         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5870         (cprop_insn): Likewise.
5871         (cprop_jump): Use FOR_EACH_EDGE.
5872
5873 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5874
5875         PR bootstrap/48403
5876         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5877         (rank_for_schedule): Use scheduled_insns vector instead of
5878         last_scheduled_insn.
5879         (ok_for_early_queue_removal): Likewise.
5880         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5881         we have a dbg_cnt.
5882         (choose_ready): Likewise.
5883         (commit_schedule): Use VEC_iterate.
5884         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5885         a dbg_cnt, use it and ensure the first insn is in the ready list.
5886         (haifa_sched_init): Allocate scheduled_insns.
5887         (sched_extend_ready_list): Don't allocate it; reserve space.
5888         (haifa_sched_finish): Free it.
5889
5890 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5891
5892         * optc-gen.awk: Always remove type from Variable entry before
5893         recording in var_seen.
5894
5895 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5896
5897         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5898         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5899         call to tidy_fallthru_edges.
5900
5901 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5902
5903         * doc/options.texi (ToLower): Document.
5904         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5905         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5906         * opts.h (cl_option): Add cl_tolower field.
5907         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5908         arguments with lowercase strings.
5909         * config/rx/rx.opt (mcpu=): Add ToLower.
5910         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5911         argument.
5912
5913 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5914
5915         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5916
5917 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5918
5919         * config/vax/vax.c: Include reload.h.
5920
5921 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5922
5923         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5924         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5925         (sparc_preferred_reload_class): New function.
5926
5927 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5928
5929         PR debug/48401
5930         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5931         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5932
5933 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5934
5935         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5936         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5937
5938 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5939
5940         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5941         (ASM_OUTPUT_ALIGNED_BSS): Define.
5942
5943 2011-04-03  Michael Matz  <matz@suse.de>
5944
5945         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5946         and next_slot members.
5947         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5948         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5949         (lto_streamer_cache_append): Declare.
5950         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5951         unsigned index, remove offset parameter, ensure that we append
5952         or update existing entries.
5953         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5954         parameter, update next_slot for append.
5955         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5956         parameter.
5957         (lto_streamer_cache_insert_at): Likewise.
5958         (lto_streamer_cache_append): New function.
5959         (lto_streamer_cache_lookup): Use unsigned index.
5960         (lto_streamer_cache_get): Likewise.
5961         (lto_record_common_node): Don't test tree_node_can_be_shared.
5962         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5963         (lto_streamer_cache_delete): Don't free offsets member.
5964         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5965         (lto_output_string_with_length): Use lto_output_data_stream.
5966         (lto_output_tree_header): Remove ix parameter, don't write it.
5967         (lto_output_builtin_tree): Likewise.
5968         (lto_write_tree): Adjust callers to above, don't track and write
5969         offset, write unsigned index.
5970         (output_unreferenced_globals): Don't emit all global vars.
5971         (write_global_references): Use unsigned indices.
5972         (lto_output_decl_state_refs): Likewise.
5973         (write_symbol): Likewise.
5974         * lto-streamer-in.c (lto_input_chain): Move earlier.
5975         (input_function): Use unsigned index.
5976         (input_alias_pairs): Don't read and then ignore all global vars.
5977         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5978         don't pass it back, use lto_streamer_cache_append.
5979         (lto_register_var_decl_in_symtab): Use unsigned index.
5980         (lto_register_function_decl_in_symtab): Likewise.
5981         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5982         index.
5983         (lto_get_builtin_tree): Don't read index, use
5984         lto_streamer_cache_append.
5985         (lto_read_tree): Adjust call to lto_materialize_tree.
5986
5987         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5988         don't use function calls in arguments to MIN.
5989
5990         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5991         twice.
5992
5993         * gimple.c (gimple_type_leader_entry): Mark deletable.
5994
5995 2011-04-03  Alan Modra  <amodra@gmail.com>
5996
5997         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5998
5999 2011-04-03  Michael Matz  <matz@suse.de>
6000
6001         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6002         an integer.
6003         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6004
6005 2011-04-03  Michael Matz  <matz@suse.de>
6006
6007         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6008         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6009         without function context.
6010         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6011         current_function_decl and cfun.
6012
6013 2011-04-03  Michael Matz  <matz@suse.de>
6014
6015         * tree.c (decl_init_priority_insert): Don't create entry for
6016         default priority.
6017         (decl_fini_priority_insert): Ditto.
6018         (fields_compatible_p, find_compatible_field): Remove.
6019         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6020         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6021
6022 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6023
6024         * combine.c (try_combine): Remove useless local variable.
6025
6026 2011-04-03  Richard Guenther  <rguenther@suse.de>
6027             Ira Rosen  <ira.rosen@linaro.org>
6028
6029         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6030         non-variable offsets and compare the remaining bases of the two
6031         accesses instead of looking for exact same data-ref.
6032
6033 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6034
6035         PR target/48416
6036         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6037
6038         * i386.c (ix86_is_msabi_thiscall): New helper function.
6039         (ix86_is_type_thiscall): New helper function.
6040         (ix86_comp_type_attributes): Handle thiscall for method-functions
6041         special.
6042         (init_cumulative_args): Likewise.
6043         (find_drap_reg): Likewise.
6044         (ix86_static_chain): Likewise.
6045         (x86_this_parameter): Likewise.
6046         (x86_output_mi_thunk): Likewise.
6047
6048 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6049             Nicolas Setton  <setton@adacore.com>
6050             Eric Botcazou  <ebotcazou@adacore.com>
6051
6052         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6053         (add_gnat_descriptive_type_attribute): New function.
6054         (gen_array_type_die): Call it.
6055         (gen_enumeration_type_die): Likewise.
6056         (gen_struct_or_union_type_die): Likewise.
6057         (modified_type_die): Likewise.
6058         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6059         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6060         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6061
6062 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6063
6064         PR bootstrap/48148
6065         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6066         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6067
6068         Revert:
6069         2011-03-17  Richard Guenther  <rguenther@suse.de>
6070
6071         PR bootstrap/48148
6072         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6073         origin for decls in other ltrans units.
6074         (input_varpool_node): Likewise.
6075
6076 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6077
6078         PR middle-end/48335
6079         * expr.c (expand_assignment): Handle all possibilities
6080         if TO_RTX is CONCAT.
6081         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6082         (store_split_bit_field): If SUBREG_REG (op0) or
6083         op0 itself has smaller mode than word, return it
6084         for offset 0 and const0_rtx for out-of-bounds stores.
6085         If word is const0_rtx, skip it.
6086
6087 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6088
6089         * config/h8300/h8300.c (print_operand_address): Rename to...
6090         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6091         Call h8300_print_operand and h8300_print_operand_address instead of
6092         print_operand and print_operand_address. Declare.
6093         (print_operand): Renake to...
6094         (h8300_print_operand): ...this. Make static. Adjust comments.
6095         Call h8300_print_operand instead of print_operand. Declare.
6096         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6097         (h8300_register_move_cost): Likewise.
6098         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6099         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6100         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6101         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6102         * config/h8300/h8300-protos.h (print_operand): Delete.
6103         (print_operand_address): Delete.
6104
6105 2011-04-01  Richard Henderson  <rth@redhat.com>
6106
6107         PR 48400
6108         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6109         in strict mode before dwarf4.  Re-order tests to early out
6110         before switching sections.
6111
6112 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6113
6114         * config/h8300/constraints.md: New file.
6115         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6116         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6117         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6118         * config/h8300/predicates.md (bit_operand): Likewise.
6119         (incdec_operand): Use satisfies_constraint_M and
6120         satisfies_constraint_O.  Don't use C code block.
6121         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6122         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6123         (compute_mov_length): Use satisfies_constraint_G.
6124         (fix_bit_operand): Use satisfies_constraint_U.
6125         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6126         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6127         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6128         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6129         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6130         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6131         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6132         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6133         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6134         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6135         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6136         (EXTRA_MEMORY_CONSTRAINT): Delete.
6137
6138 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6139             Michael Meissner  <meissner@linux.vnet.ibm.com>
6140
6141         PR target/48262
6142         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6143         operands, as per the specifications.
6144
6145         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6146         (vec_extract_evenv4sf): Ditto.
6147         (vec_extract_evenv8hi): Ditto.
6148         (vec_extract_evenv16qi): Ditto.
6149         (vec_extract_oddv4si): Ditto.
6150
6151 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6152
6153         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6154         high_pc attribute if the CU has no associated code. Only output
6155         DW_AT_entry_pc for CU if not generating strict dwarf and
6156         dwarf_version < 4.
6157
6158 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6159
6160         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6161         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6162         out of ...
6163         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6164         * final.c (final_start_function): Call the new function rather
6165         than using a NULL argument for dwarf2out_frame_debug.
6166
6167         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6168         that contains the prologue.
6169
6170         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6171         changed.  Print it in debugging output.
6172
6173         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6174
6175         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6176         Split most of the code into...
6177         (begin_move_insn): ... here.  New function.
6178         (ebb_sched_info): Add a pointer to it.
6179         * haifa-sched.c (scheduled_insns): New static variable.
6180         (sched_extend_ready_list): Allocate it.
6181         (schedule_block): Use it to record the order of scheduled insns.
6182         Perform RTL changes to move insns only after all scheduling
6183         decisions have been made.
6184         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6185         begin_move_insn field.
6186         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6187         * sched-int.h (struct haifa_sched_info): Remove second argument
6188         from begin_schedule_ready hook.  Add new member begin_move_insn.
6189         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6190         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6191
6192         * haifa-sched.c (prune_ready_list): New function, broken out of
6193         schedule_block.
6194         (schedule_block): Use it.
6195
6196 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6197
6198         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6199
6200 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6201
6202         * config.gcc (*-*-mingw*): Allow as option the
6203         posix threading model.
6204         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6205         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6206         definition.
6207         (CPP_SPEC): Add pthread/no-pthread handling.
6208         (LIB_SPEC): Likewise.
6209         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6210         (LIB_SPEC): Likewise.
6211         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6212         flag to pass -pthread option for shared libgcc build.
6213         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6214         for shared libgcc build.
6215         * config/i386/t-mingw-pthread: New file.
6216         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6217         New define to enable use of library pthread by default.
6218         * config/i386/mingw.opt (pthread): New driver option.
6219         (no-pthread): New driver option.
6220         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6221         * config/i386/mingw-w64.opt: Likewise.
6222
6223 2011-04-01  Gary Funck <gary@intrepid.com>
6224
6225         * c-decl.c (grokdeclarator): Fix formatting.
6226
6227 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6228
6229         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6230         instead of n_operands.
6231         (set_storage_via_setmem): Likewise.
6232         * optabs.c (maybe_gen_insn): Likewise.
6233         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6234         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6235         (mips_expand_builtin_direct): Likewise.
6236         * config/spu/spu.c (expand_builtin_args): Likewise.
6237
6238 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6239
6240         * recog.h (insn_data_d): Add n_generator_args.
6241         * genoutput.c (data): Likewise.
6242         (output_insn_data): Print it.
6243         (max_opno, num_dups): Delete.
6244         (scan_operands): Just fill in "d->operand[...]".
6245         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6246
6247 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6248
6249         * gensupport.h (pattern_stats): New structure.
6250         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6251         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6252         (max_operand_1, max_operand_vec): Delete.
6253         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6254
6255 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6256
6257         * emit-rtl.c (emit_pattern_after_setloc): New function.
6258         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6259         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6260         (emit_pattern_after): New function.
6261         (emit_insn_after, emit_jump_insn_after): Call it.
6262         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6263         (emit_pattern_before_setloc): New function.
6264         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6265         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6266         Likewise.
6267         (emit_pattern_before): New function.
6268         (emit_insn_before, emit_jump_insn_before): Call it.
6269         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6270
6271 2011-03-31  Richard Henderson  <rth@redhat.com>
6272
6273         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6274         (dw_separate_line_info_entry): Remove.
6275         (enum dw_line_info_opcode): New.
6276         (dw_line_info_entry): Use it.
6277         (dw_line_info_table, dw_line_info_table_p): New.
6278         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6279         (line_info_table, line_info_label_num): Remove.
6280         (line_info_table_in_use): Remove.
6281         (separate_line_info_table): Remove.
6282         (separate_line_info_table_allocated): Remove.
6283         (separate_line_info_table_in_use): Remove.
6284         (LINE_INFO_TABLE_INCREMENT): Remove.
6285         (line_info_label_num): New.
6286         (cur_line_info_table): New.
6287         (text_section_line_info, cold_text_section_line_info): New.
6288         (separate_line_info): New.
6289         (SEPARATE_LINE_CODE_LABEL): Remove.
6290         (print_dwarf_line_table): Remove.
6291         (debug_dwarf): Don't dump it.
6292         (output_one_line_info_table): New.
6293         (output_line_info): Use it.
6294         (new_line_info_table): New.
6295         (set_cur_line_info_table): New.
6296         (dwarf2out_switch_text_section): Use it.
6297         (dwarf2out_begin_function): Likewise.
6298         (push_dw_line_info_entry): New.
6299         (dwarf2out_source_line): Rewrite for new line info tables.
6300         (dwarf2out_init): Remove dead initailizations.
6301
6302 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6303
6304         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6305         various flags.
6306         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6307         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6308         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6309         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6310         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6311         * opt-functions.awk (flag_init, switch_bit_fields): New.
6312         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6313         generate CL_MISSING_OK or CL_SAVE.
6314         * optc-gen.awk: Update to generate bit-field output as well as
6315         flags field.
6316         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6317         bit-field instead of CL_REJECT_DRIVER flag.
6318         * opts-common.c (generate_canonical_option,
6319         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6320         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6321         instead of CL_REJECT_NEGATIVE flag.
6322         * toplev.c (print_switch_values): Use cl_report bit-field instead
6323         of CL_REPORT flag.
6324
6325 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6326
6327         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6328         a zero minimum index only if it is redundant.
6329
6330 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6331
6332         PR rtl-optimization/48381
6333         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6334         instead of ira_class_hard_reg_index for calculating conflicting
6335         hard registers.
6336
6337 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6338
6339         * cprop.c: Clean up hash table building.
6340         (reg_avail_info): Remove.
6341         (oprs_available_p): Remove.
6342         (record_last_reg_set_info): Remove.
6343         (record_last_set_info): Remove.
6344         (reg_available_p): New function.
6345         (gcse_constant_p): Do not treat unfolded conditions as constants.
6346         (make_set_regs_unavailable): New function.
6347         (hash_scan_set): Simplify with new reg_available_p.
6348         (compute_hash_table_work): Traverse insns stream only once.
6349         Do not compute reg_avail_info. Traverse insns in reverse order.
6350         Record implicit sets after recording explicit sets from the block.
6351
6352 2011-03-31  Michael Matz  <matz@suse.de>
6353
6354         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6355
6356 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6357
6358         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6359         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6360         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6361         (h8300_mode_dependent_address_p): New function.
6362         (h8300_get_index): Make static.
6363
6364 2011-03-31  Jeff Law  <law@redhat.com>
6365
6366         * reload1.c (elimination_effects): Fix typo in recent change.
6367
6368         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6369         typo potentially leading to null pointer dereference.
6370
6371         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6372         (setup_save_areas): Corresponding changes to avoid useless
6373         assignments.
6374
6375         * jump.c (reversed_comparison_code_parts): Avoid successive return
6376         statements when REVERSE_CONDITION is defined.
6377
6378         * expr.c (expand_assignment): Avoid useless assignments.
6379         (expand_expr_real_1): Likewise.
6380         (expand_expr_real_2): Avoid useless statements.
6381
6382         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6383
6384         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6385
6386         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6387         statements.
6388
6389         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6390
6391 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6392
6393         PR target/47109
6394         * doc/tm.texi.in (TARGET_VERSION): Remove.
6395         * doc/tm.texi: Regenerate.
6396         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6397         * collect2.c (main): Don't use TARGET_VERSION.
6398         * mips-tdump.c (main): Don't use TARGET_VERSION.
6399         * mips-tfile.c (main): Don't use TARGET_VERSION.
6400         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6401         * config/rs6000/vxworksae.h: Remove.
6402         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6403         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6404         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6405         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6406         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6407         * config/arm/arm.h (TARGET_VERSION): Remove.
6408         * config/arm/coff.h (TARGET_VERSION): Remove.
6409         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6410         * config/arm/elf.h (TARGET_VERSION): Remove.
6411         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6412         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6413         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6414         * config/arm/pe.h (TARGET_VERSION): Remove.
6415         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6416         * config/arm/semi.h (TARGET_VERSION): Remove.
6417         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6418         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6419         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6420         * config/avr/avr.h (TARGET_VERSION): Remove.
6421         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6422         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6423         * config/frv/frv.h (TARGET_VERSION): Remove.
6424         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6425         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6426         * config/i386/darwin.h (TARGET_VERSION): Remove.
6427         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6428         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6429         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6430         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6431         * config/i386/gnu.h (TARGET_VERSION): Remove.
6432         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6433         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6434         * config/i386/linux.h (TARGET_VERSION): Remove.
6435         * config/i386/linux64.h (TARGET_VERSION): Remove.
6436         * config/i386/lynx.h (TARGET_VERSION): Remove.
6437         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6438         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6439         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6440         * config/i386/netware.h (TARGET_VERSION): Remove.
6441         * config/i386/nto.h (TARGET_VERSION): Remove.
6442         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6443         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6444         * config/ia64/elf.h (TARGET_VERSION): Remove.
6445         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6446         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6447         * config/ia64/linux.h (TARGET_VERSION): Remove.
6448         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6449         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6450         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6451         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6452         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6453         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6454         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6455         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6456         * config/m68k/linux.h (TARGET_VERSION): Remove.
6457         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6458         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6459         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6460         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6461         * config/mep/mep.h (TARGET_VERSION): Remove.
6462         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6463         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6464         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6465         * config/mips/linux.h (TARGET_VERSION): Remove.
6466         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6467         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6468         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6469         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6470         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6471         * config/pa/pa.h (TARGET_VERSION): Remove.
6472         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6473         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6474         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6475         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6476         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6477         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6478         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6479         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6480         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6481         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6482         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6483         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6484         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6485         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6486         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6487         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6488         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6489         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6490         * config/s390/linux.h (TARGET_VERSION): Remove.
6491         * config/s390/s390.h (TARGET_VERSION): Remove.
6492         * config/s390/tpf.h (TARGET_VERSION): Remove.
6493         * config/score/score.h (TARGET_VERSION): Remove.
6494         * config/sh/linux.h (TARGET_VERSION): Remove.
6495         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6496         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6497         * config/sh/sh.h (TARGET_VERSION): Remove.
6498         * config/sh/sh64.h (TARGET_VERSION): Remove.
6499         * config/sh/superh.h (TARGET_VERSION): Remove.
6500         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6501         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6502         * config/sparc/linux.h (TARGET_VERSION): Remove.
6503         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6504         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6505         TARGET_NAME32, TARGET_NAME): Remove.
6506         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6507         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6508         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6509         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6510         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6511         * config/spu/spu.h (TARGET_VERSION): Remove.
6512         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6513         * config/v850/v850.h (TARGET_VERSION): Remove.
6514         * config/vax/linux.h (TARGET_VERSION): Remove.
6515         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6516         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6517         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6518
6519 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6520
6521         PR target/48142
6522         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6523         frame-related from frame-unrelated adjustments to the stack pointer.
6524
6525 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6526
6527         * common.opt (fdebug-types-section): Move earlier.
6528         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6529
6530 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6531
6532         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6533         var.
6534
6535 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6536
6537         * tree.h (CASE_CHAIN): Define.
6538         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6539         (gimple_redirect_edge_and_branch): Likewise.
6540
6541 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6542
6543         PR middle-end/48367
6544         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6545         calculation.
6546
6547 2011-03-30  Jeff Law  <law@redhat.com>
6548
6549         * PR bootstrap/48371
6550         * reload1.c (reload): Fix botch in last change.
6551
6552         * reload.h (struct reload): Fix typo introduced in last change.
6553
6554 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6555
6556         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6557         Undocumented.  Remove help text.
6558         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6559         -mhard-float.
6560
6561 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6562
6563         * doc/options.texi (NegativeAlias): Document.
6564         (Alias): Mention NegativeAlias.
6565         * opt-functions.awk: Handle NegativeAlias.
6566         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6567         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6568         * opts.h (CL_NEGATIVE_ALIAS): Define.
6569         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6570         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6571         OPT_mspe_.
6572         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6573         Alias entries.
6574         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6575         mno-spe and mno-isel instead of mspe=no and -misel=no.
6576
6577 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6578
6579         * common.opt (fdebug-types-section): New flag.
6580         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6581         * dwarf2out.c (use_debug_types): New define.
6582         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6583         (print_die): Guard output of type unit signatures using
6584         use_debug_types.
6585         (build_abbrev_table): Replace assert of dwarf_version >= 4
6586         with assert on use_debug_types.
6587         (size_of_die): Likewise.
6588         (unmark_dies): Likewise.
6589         (value_format): Decide AT_ref_external form on use_debug_types.
6590         (output_die): Replace dwarf_version version check guard with
6591         use_debug_types where appropriate.
6592         (modified_type_die): Likewise.
6593         (gen_reference_type_die): Likewise.
6594         (dwarf2out_start_source_file): Likewise.
6595         (dwarf2out_end_source_file): Likewise.
6596         (prune_unused_types_walk_attribs): Likewise.
6597         (dwarf2out_finish): Likewise.
6598
6599 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6600
6601         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6602
6603 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6604
6605         PR rtl-optimization/48332
6606         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6607         mode of input operand N and modeN to its actual mode.
6608
6609 2011-03-30  Jeff Law  <law@redhat.com>
6610
6611         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6612         define accessor macro.
6613         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6614         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6615         (reg_equiv_init): Likewise.
6616         (reg_equivs_size): New variable.
6617         (reg_equiv_init_size): Remove.
6618         (allocate_initial_values): Move prototype to here from....
6619         * integrate.h (allocate_initial_values): Remove prototype.
6620         * integrate.c: Include reload.h.
6621         (allocate_initial_values): Corresponding changes.
6622         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6623         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6624         (update_equiv_regs): Corresponding changes.
6625         (ira): Corresponding changes.
6626         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6627         (push_secondary_reload): Corresponding changes.
6628         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6629         (make_memloc, find_reloads_address): Corresponding changes.
6630         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6631         (find_reloads_address_1): Corresponding changes.
6632         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6633         (refers_to_regno_for_reload_p): Corresponding changes.
6634         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6635         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6636         * reload1.c: Include ggc.h.
6637         (grow_reg_equivs): New function.
6638         (replace_pseudos_in, reload): Corresponding changes.
6639         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6640         (eliminate_regs_1, elimination_effects): Corresponding changes.
6641         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6642         (delete_output_reload): Likewise.
6643         * caller-save.c (mark_referenced_regs): Corresponding changes.
6644         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6645         * frv/predicates.md (frv_load_operand): Corresponding changes.
6646         * microblaze/microblaze.c (double_memory_operand): Corresponding
6647         changes.
6648         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6649         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6650         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6651         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6652         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6653         changes.
6654         * pa/pa.c (emit_move_sequence): Corresponding changes.
6655         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6656
6657 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6658
6659         PR target/47551
6660         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6661         structure modes.  Don't check neon_vector_mem_operand for
6662         vector or structure modes.
6663
6664 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6665             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6666
6667         PR target/43590
6668         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6669         operand 1 and reshuffle the operands to match.
6670         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6671
6672 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6673
6674         PR driver/48208
6675         * config/c.opt (F): Added 'Driver' to -F option.
6676
6677         PR driver/48260
6678         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6679           handler function.
6680         * config/darwin.opt: Added '-arch' option.
6681
6682 2011-03-30  Nick Clifton  <nickc@redhat.com>
6683
6684         * config/rx/rx.md: Add peepholes and patterns to combine
6685         extending loads and simple arithmetic instructions.
6686         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6687         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6688         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6689         modes to use pre-decrement and post-increment addressing.
6690         (rx_is_restricted_memory_address): Add range checking of REG+INT
6691         addresses.
6692         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6693         (rx_memory_move_cost): Adjust cost of stores.
6694         (rx_adjust_insn_length): New function.
6695
6696 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6697
6698         PR c/48305
6699         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6700         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6701         matching arg00/arg01 types.
6702
6703 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6704
6705         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6706         last_location to UNKNOWN_LOCATION.
6707
6708 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6709
6710         PR target/48349
6711         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6712         FLOAT_SSE_REGS.
6713
6714 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6715             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6716
6717         PR bootstrap/48337
6718         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6719         Init(PROCESSOR_V7).
6720         (sparc_cpu): Likewise.
6721         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6722         PROCESSOR_V7.
6723
6724 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6725
6726         PR target/48336
6727         PR middle-end/48342
6728         PR rtl-optimization/48345
6729         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6730         hard regs for given mode from profitable regs when doing secondary
6731         allocation.
6732
6733 2011-03-29  Jeff Law  <law@redhat.com>
6734
6735         PR bootstrap/48327
6736         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6737         do_not_duplicate field.
6738         (lookup_redirection_data): Corresponding changes.
6739         (create_duplicates): Always create a template block.
6740         (redirect_edges): Remove code which reused the original block
6741         when it was going to become unreachable code.
6742         (thread_block): Don't set do_not_duplicate field.
6743
6744 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6745
6746         * lto-opts.c (register_user_option_p, lto_register_user_option):
6747         Make type argument unsigned.
6748         * lto-streamer.h (lto_register_user_option): Make type argument
6749         unsigned.
6750         * opth-gen.awk: Make CL_* macros unsigned.
6751         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6752         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6753         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6754         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6755         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6756         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6757         (find_opt): Make lang_mask argument unsigned.
6758
6759 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6760
6761         PR rtl-optimization/48331
6762         PR rtl-optimization/48334
6763         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6764         for any used algorithm.
6765
6766 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6767
6768         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6769         to parent_max.
6770
6771 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6772
6773         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6774         (alpha_option_override): Don't set alpha_sr_alias_set.
6775         (emit_frame_store_1): Use gen_frame_mem rather than calling
6776         set_mem_alias_set.
6777         (alpha_expand_epilogue): Ditto.
6778
6779 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6780
6781         PR tree-optimization/48290
6782         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6783         vectorization, check that relevant phis in the basic block after
6784         the inner loop are really inner loop's exit phis.
6785
6786 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6787
6788         PR debug/48190
6789         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6790         (cached_dw_loc_list_def): New structure.
6791         (cached_dw_loc_list): New typedef.
6792         (cached_dw_loc_list_table): New variable.
6793         (cached_dw_loc_list_table_hash): New function.
6794         (cached_dw_loc_list_table_eq): Likewise.
6795         (add_location_or_const_value_attribute): Take a bool cache_p.
6796         Cache the list when the parameter is true.
6797         (gen_formal_parameter_die): Update caller.
6798         (gen_variable_die): Likewise.
6799         (dwarf2out_finish): Likewise.
6800         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6801         while generating debug info for the decl.
6802         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6803         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6804         (resolve_addr): Cache the result of resolving a chain of
6805         location lists.
6806
6807 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6808
6809         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6810         conflict object hard regset nodes have intersecting hard reg sets.
6811
6812         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6813         after regstat_init_n_sets_and_refs.
6814
6815         * ira.c: Add more comments at the top.
6816         (setup_stack_reg_pressure_class, setup_pressure_classes):
6817         Add comments how we compute the register pressure classes.
6818         (setup_allocno_and_important_classes): Add more comments.
6819         (setup_class_translate_array, reorder_important_classes)
6820         (setup_reg_class_relations): Add comments.
6821
6822         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6823         start of the file.
6824
6825         * ira-color.c: Add 2011 to the Copyright line.
6826         (assign_hard_reg):  Add more comments.
6827         (improve_allocation): Ditto.
6828
6829         * ira-costs.c: Add 2011 to the Copyright line.
6830         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6831         comments.
6832         (setup_regno_cost_classes_by_mode): Ditto.
6833
6834         Initial patches from ira-improv branch:
6835
6836         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6837
6838         * ira-build.c (ira_create_object): Remove initialization of
6839         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6840         (ira_create_allocno): Remove initialization of
6841         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6842         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6843         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6844         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6845         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6846         Initialize ALLOCNO_ADD_DATA.
6847         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6848         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6849         ALLOCNO_REG.
6850         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6851         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6852
6853         * ira.c (ira_reallocate): Remove.
6854         (setup_pressure_classes): Call
6855         ira_init_register_move_cost_if_necessary.  Use
6856         ira_register_move_cost instead of ira_get_register_move_cost.
6857         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6858         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6859
6860         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6861         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6862         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6863         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6864         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6865         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6866         Fix formatting.
6867         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6868         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6869         (struct allocno_color_data): New.
6870         (allocno_color_data_t): New typedef.
6871         (allocno_color_data): New definition.
6872         (ALLOCNO_COLOR_DATA): New macro.
6873         (struct object_color_data): New.
6874         (object_color_data_t): New typedef.
6875         (object_color_data): New definition.
6876         (OBJECT_COLOR_DATA): New macro.
6877         (update_copy_costs, calculate_allocno_spill_cost): Call
6878         ira_init_register_move_cost_if_necessary.  Use
6879         ira_register_move_cost instead of ira_get_register_move_cost.
6880         (move_spill_restore, update_curr_costs): Ditto.
6881         (allocno_spill_priority): Make it inline.
6882         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6883         (struct coalesce_data, coalesce_data_t): New.
6884         (allocno_coalesce_data): New definition.
6885         (ALLOCNO_COALESCE_DATA): New macro.
6886         (merge_allocnos, coalesced_allocno_conflict_p): Use
6887         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6888         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6889         (coalesce_allocnos): Ditto.
6890         (setup_coalesced_allocno_costs_and_nums): Ditto.
6891         (collect_spilled_coalesced_allocnos): Ditto.
6892         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6893         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6894         (coalesce_spill_slots): Ditto.
6895         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6896         free allocno_coalesce_data.
6897
6898         * ira-conflicts.c: Fix formatting.
6899         (process_regs_for_copy): Call
6900         ira_init_register_move_cost_if_necessary.  Use
6901         ira_register_move_cost instead of ira_get_register_move_cost.
6902         (build_object_conflicts): Optimize.
6903
6904         * ira-costs.c (record_reg_classes): Optimize.  Call
6905         ira_init_register_move_cost_if_necessary.  Use
6906         ira_register_move_cost, ira_may_move_in_cost, and
6907         ira_may_move_out_cost instead of ira_get_register_move_cost and
6908         ira_get_may_move_cost.
6909         (record_address_regs): Ditto.
6910         (scan_one_insn): Optimize.
6911         (find_costs_and_classes): Optimize.
6912         (process_bb_node_for_hard_reg_moves): Call
6913         ira_init_register_move_cost_if_necessary.  Use
6914         ira_register_move_cost instead of ira_get_register_move_cost.
6915
6916         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6917         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6918         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6919         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6920         definitions.
6921         (ira_initiate_emit_data, ira_finish_emit_data)
6922         (create_new_allocno): New functions.
6923         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6924         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6925         Use ira_register_move_cost instead of ira_get_register_move_cost.
6926
6927         * ira-int.h: Fix some comments.
6928         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6929         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6930         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6931         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6932         add_data.
6933         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6934         bitfield after mode.  Make hard_regno a short int.  Make
6935         hard_regno short.  Remove first_coalesced_allocno and
6936         next_coalesced_allocno.  Move mem_optimized_dest_p,
6937         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6938         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6939         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6940         temp, colorable_p.  Add new member add_data.
6941         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6942         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6943         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6944         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6945         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6946         (ALLOCNO_ADD_DATA): New macro.
6947         (ira_emit_data_t): New typedef.
6948         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6949         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6950         from struct ira_allocno.
6951         (ALLOCNO_EMIT_DATA): New macro.
6952         (ira_allocno_emit_data, allocno_emit_reg): New.
6953         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6954         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6955         (OBJECT_ADD_DATA): New macro.
6956         (ira_reallocate): Remove.
6957         (ira_initiate_emit_data, ira_finish_emit_data): New.
6958         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6959         (ira_init_register_move_cost_if_necessary): New.
6960         (ira_object_conflict_iter_next): Merge into
6961         ira_object_conflict_iter_cond.
6962         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6963
6964         * ira-live.c (process_single_reg_class_operands): Call
6965         ira_init_register_move_cost_if_necessary.  Use
6966         ira_register_move_cost instead of ira_get_register_move_cost.
6967
6968         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6969
6970         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6971
6972         * ira-costs.c: Fix formatting.
6973         (cost_classes, cost_classes_num): Remove.
6974         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6975         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6976         (cost_classes_del, cost_classes_htab): New.
6977         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6978         (initiate_regno_cost_classes, setup_cost_classes): New.
6979         (setup_regno_cost_classes_by_aclass): New.
6980         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6981         (record_reg_classes): Use regno_cost_classes instead of
6982         cost_classes.  Move checking opposite operand up.
6983         (record_address_regs): Use regno_cost_classes
6984         instead of cost_classes.
6985         (scan_one_insn): Ditto.  Use always general register.
6986         (print_allocno_costs): Use regno_cost_classes instead of
6987         cost_classes.
6988         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6989         (find_costs_and_classes): Set up cost classes for each registers.
6990         Use also their mode for this.  Use regno_cost_classes instead of
6991         cost_classes.
6992         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6993         cost_classes.
6994         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6995         (ira_costs, ira_set_pseudo_classes): Call
6996         initiate_regno_cost_classes and finish_regno_cost_classes.
6997
6998         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6999
7000         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7001
7002         * target.def (ira_cover_classes): Remove.
7003
7004         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7005
7006         * doc/tm.texi.in: Ditto.
7007
7008         * ira-conflicts.c: Remove mentioning cover classes from the file.
7009         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7010         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7011
7012         * targhooks.c (default_ira_cover_classes): Remove.
7013
7014         * targhooks.h (default_ira_cover_classes): Ditto.
7015
7016         * haifa-sched.c: Remove mentioning cover classes from the file.
7017         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7018         ira_pressure_classes and ira_pressure_classes_num instead of
7019         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7020         sched_regno_pressure_class instead of sched_regno_cover_class.
7021         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7022         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7023
7024         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7025         classes from the file.
7026         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7027         (struct object_hard_regs, struct object_hard_regs_node): New.
7028         (struct ira_object): New members profitable_hard_regs,
7029         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7030         (struct ira_allocno): Rename cover_class to aclass.  Rename
7031         cover_class_cost and updated_cover_class_cost to class_cost and
7032         updated_class_cost.  Remove splay_removed_p and
7033         left_conflict_size.  Add new members colorable_p.
7034         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7035         (ALLOCNO_COLORABLE_P): New macro.
7036         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7037         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7038         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7039         (OBJECT_...): Rename parameter C to O.
7040         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7041         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7042         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7043         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7044         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7045         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7046         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7047         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7048         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7049         x_ira_reg_class_subunion.
7050         (ira_max_memory_move_cost, ira_max_register_move_cost)
7051         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7052         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7053         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7054         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7055         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7056         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7057         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7058         (ira_tune_allocno_costs_and_cover_classes): Rename to
7059         ira_tune_allocno_costs.
7060         (ira_debug_hard_regs_forest): New.
7061         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7062         (ira_object_conflict_iter_next): Fix comments.
7063         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7064         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7065         cover_class to aclass.
7066         (ira_allocate_and_accumulate_costs): Ditto.
7067         (ira_allocate_and_set_or_copy_costs): Ditto.
7068
7069         * opts.c (decode_options): Remove ira_cover_class check.
7070
7071         * ira-color.c: Remove mentioning cover classes from the file.  Use
7072         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7073         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7074         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7075         (splay-tree.h): Remove include.
7076         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7077         before copy_freq_compare_func.
7078         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7079         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7080         New definitions.
7081         (hard_regs_roots, hard_regs_node_vec): Ditto.
7082         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7083         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7084         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7085         (create_new_object_hard_regs_node): Ditto.
7086         (add_new_object_hard_regs_node_to_forest): Ditto.
7087         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7088         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7089         Ditto.
7090         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7091         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7092         (remove_unused_object_hard_regs_nodes): Ditto.
7093         (enumerate_object_hard_regs_nodes): Ditto.
7094         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7095         (object_hard_regs_subnode_t): Ditto.
7096         (struct object_hard_regs_subnode): Ditto.
7097         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7098         (setup_object_hard_regs_subnode_index): Ditto.
7099         (get_object_hard_regs_subnodes_num): Ditto.
7100         (form_object_hard_regs_nodes_forest): Ditto.
7101         (finish_object_hard_regs_nodes_tree): Ditto.
7102         (finish_object_hard_regs_nodes_forest): Ditto.
7103         (allocnos_have_intersected_live_ranges_p): Rename to
7104         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7105         (pseudos_have_intersected_live_ranges_p): Rename to
7106         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7107         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7108         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7109         (update_copy_costs): Remove assert.  Skip cost update if the hard
7110         reg does not belong the class.
7111         (assign_hard_reg): Process only profitable hard regs.
7112         (uncolorable_allocnos_num): Make it scalar.
7113         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7114         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7115         and ira_reg_class_max_nregs.
7116         (bucket_allocno_compare_func): Check frequency first.
7117         (sort_bucket): Add compare function as a parameter.
7118         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7119         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7120         (push_allocno_to_stack): Rewrite for checking new allocno
7121         colorability.
7122         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7123         (push_only_colorable): Pass new parameter to sort_bucket.
7124         (push_allocno_to_spill): Remove.
7125         (allocno_spill_priority_compare): Make it inline and rewrite.
7126         (splay_tree_allocate, splay_tree_free): Remove.
7127         (allocno_spill_sort_compare): New function.
7128         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7129         build and use splay tree.  Choose first allocno in uncolorable
7130         allocno bucket to spill.  Remove setting spill cost.
7131         (all_conflicting_hard_regs): Remove.
7132         (setup_allocno_available_regs_num): Check only profitable hard
7133         regs.  Print info about hard regs nodes.
7134         (setup_allocno_left_conflicts_size): Remove.
7135         (put_allocno_into_bucket): Don't call
7136         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7137         (improve_allocation): New.
7138         (color_allocnos): Call setup_profitable_hard_regs,
7139         form_object_hard_regs_nodes_forest, improve_allocation,
7140         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7141         (print_loop_title): Use pressure classes.
7142         (color_allocnso): Ditto.
7143         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7144         and allocnos_for_spilling.
7145         (ira_sort_regnos_for_alter_reg): Don't setup members
7146         {first,next}_coalesced_allocno.
7147         (color): Remove allocating and freeing removed_splay_allocno_vec.
7148         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7149         prohibited_class_mode_regs.
7150
7151         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7152         formatting.
7153         (update_allocno_pressure_excess_length): Use pressure classes.
7154         (inc_register_pressure, dec_register_pressure): Check for pressure
7155         class.
7156         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7157         pressure class.  Use ira_reg_class_nregs instead of
7158         ira_reg_class_max_nregs.
7159         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7160         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7161         (single_reg_class): Use ira_reg_class_nregs instead of
7162         ira_reg_class_max_nregs.
7163         (process_bb_node_lives): Use pressure classes.
7164
7165         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7166         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7167         (change_loop): Use pressure classes.
7168         (modify_move_list): Call ira_set_allocno_class instead of
7169         ira_set_allocno_cover_class.
7170
7171         * ira-build.c: Remove mentioning cover classes from the file.  Use
7172         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7173         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7174         ALLOCNO_UPDATED_CLASS_COST instead of
7175         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7176         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7177         (ira_create_allocno): Remove initialization of
7178         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7179         ALLOCNO_COLORABLE_P.
7180         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7181         Update conflict regs for the objects.
7182         (create_cap_allocno): Remove assert.  Don't propagate
7183         ALLOCNO_AVAILABLE_REGS_NUM.
7184         (ira_free_allocno_costs): New function.
7185         (finish_allocno): Change a part of code into call of
7186         ira_free_allocno_costs.
7187         (low_pressure_loop_node_p): Use pressure classes.
7188         (object_range_compare_func): Don't compare classes.
7189         (setup_min_max_conflict_allocno_ids): Ditto.
7190
7191         * loop-invariant.c: Remove mentioning cover classes from the file.
7192         Use ira_pressure_classes and ira_pressure_classes_num instead of
7193         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7194         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7195         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7196         Use reg_allocno_class instead of reg_cover_class.
7197         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7198         STACK_REG_COVER_CLASS.
7199         (get_regno_cover_class): Rename to get_regno_pressure_class.
7200         (move_loop_invariants): Initialize and finalize regstat.
7201
7202         * ira.c: Remove mentioning cover classes from the file.  Add
7203         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7204         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7205         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7206         setup_class_subset_and_memory_move_costs.
7207         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7208         (setup_cover_and_important_classes): Rename to
7209         setup_allocno_and_important_classes.
7210         (setup_class_translate_array): New.
7211         (setup_class_translate): Call it for allocno and pressure classes.
7212         (cover_class_order): Rename to allocno_class_order.
7213         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7214         of ira_class_translate.
7215         (reorder_important_classes): Set up ira_important_class_nums.
7216         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7217         (print_class_cover): Rename to print_classes.  Add parameter.
7218         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7219         Print pressure classes too.
7220         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7221         setup_reg_subclasses.
7222         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7223         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7224         (setup_prohibited_class_mode_regs): Use
7225         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7226         (clarify_prohibited_class_mode_regs): New function.
7227         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7228         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7229         (ira_init_once): Initialize them.
7230         (free_register_move_costs): Process them.
7231         (ira_init): Move calls of find_reg_classes and
7232         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7233         Call clarify_prohibited_class_mode_regs.
7234         (ira_no_alloc_reg): Remove.
7235         (too_high_register_pressure_p): Use pressure classes.
7236
7237         * sched-deps.c: Remove mentioning cover classes from the file.
7238         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7239         ira_pressure_classes and ira_pressure_classes_num instead of
7240         ira_reg_class_cover_size and ira_reg_class_cover.
7241         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7242         sched_regno_pressure_class instead of sched_regno_cover_class.
7243         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7244         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7245
7246         * ira.h: Add 2010 to Copyright.
7247         (ira_no_alloc_reg): Remove external.
7248         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7249         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7250         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7251         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7252         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7253         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7254         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7255         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7256         x_ira_no_alloc_regs.
7257         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7258         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7259         ira_allocno_classes_num and ira_allocno_classes.
7260         (ira_class_translate): Rename to ira_allocno_class_translate.
7261         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7262         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7263         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7264         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7265         (ira_no_alloc_regs): New.
7266
7267         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7268         classes from the file.  Use ALLOCNO_CLASS instead of
7269         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7270         ALLOCNO_COVER_CLASS_COST.
7271         (regno_cover_class): Rename to regno_aclass.
7272         (record_reg_classes): Use ira_reg_class_subunion instead of
7273         ira_reg_class_union.
7274         (record_address_regs): Check overflow.
7275         (scan_one_insn): Ditto.
7276         (print_allocno_costs): Print total mem cost fore regional allocation.
7277         (print_pseudo_costs): Use REG_N_REFS.
7278         (find_costs_and_classes): Use classes intersected with them on the
7279         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7280         ira_reg_class_union.  Use ira_allocno_class_translate and
7281         regno_aclass instead of ira_class_translate and regno_cover_class.
7282         Modify code for finding regno_aclass.  Setup preferred classes for
7283         the next pass.
7284         (setup_allocno_cover_class_and_costs): Rename to
7285         setup_allocno_class_and_costs.  Use regno_aclass instead of
7286         regno_cover_class.  Use ira_set_allocno_class instead of
7287         ira_set_allocno_cover_class.
7288         (init_costs, finish_costs): Use regno_aclass instead of
7289         regno_cover_class.
7290         (ira_costs): Use setup_allocno_class_and_costs instead of
7291         setup_allocno_cover_class_and_costs.
7292         (ira_tune_allocno_costs_and_cover_classes): Rename to
7293         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7294         by processing objects.  Use ira_reg_class_max_nregs instead of
7295         ira_reg_class_nregs.
7296
7297         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7298
7299         * sched-int.h: Remove mentioning cover classes from the file.
7300         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7301
7302         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7303         classes from the file.
7304         (struct reg_pref): Rename coverclass into allocnoclass.
7305         (reg_cover_class): Rename to reg_allocno_class.
7306
7307         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7308
7309         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7310
7311         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7312
7313         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7314
7315         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7316
7317         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7318
7319         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7320
7321         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7322
7323         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7324
7325         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7326
7327         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7328         (i386_ira_cover_classes): Ditto.
7329
7330         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7331
7332         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7333
7334         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7335
7336         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7337
7338         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7339
7340         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7341
7342         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7343         (mips_ira_cover_classes): Ditto.
7344
7345         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7346
7347         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7348
7349         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7350
7351         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7352
7353         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7354
7355         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7356         (IRA_COVER_CLASSES_VSX): Ditto.
7357
7358         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7359         (rs6000_ira_cover_classes): Ditto.
7360
7361         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7362
7363         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7364
7365         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7366
7367         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7368
7369         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7370
7371         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7372
7373         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7374
7375         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7376
7377         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7378
7379         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7380
7381 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7382
7383         PR debug/48253
7384         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7385         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7386         dw_fde_unlikely_section_end_label, cold_in_std_section,
7387         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7388         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7389         fields.
7390         (output_fde): Use dw_fde_second_{begin,end} if second is
7391         true, otherwise dw_fde_{begin,end}.
7392         (output_call_frame_info): Test dw_fde_second_begin != NULL
7393         instead of dw_fde_switched_sections.
7394         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7395         fields, initialize new fields.  Initialize in_std_section
7396         unconditionally from the first partition.
7397         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7398         dw_fde_second_begin is non-NULL.
7399         (dwarf2out_switch_text_section): Stop initializing removed
7400         dw_fde_struct fields, initialize new fields, initialize
7401         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7402         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7403         (struct var_loc_list_def): Add last_before_switch field.
7404         (arange_table, arange_table_allocated, arange_table_in_use,
7405         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7406         (size_of_aranges): Count !in_std_section and !second_in_std_section
7407         hunks in fdes, instead of looking at arange_table_in_use.
7408         (output_aranges): Add aranges_length argument, don't call
7409         size_of_aranges here.  Instead of using aranges_table*
7410         emit ranges for fdes when !in_std_section resp.
7411         !second_in_std_section.
7412         (dw_loc_list): Break ranges crossing section switch.
7413         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7414         use dw_fde_second_end instead of dw_fde_end as end of last range.
7415         (gen_subprogram_die): Don't call add_arange.  Use
7416         dw_fde_{begin,end} for first partition and if switched
7417         section dw_fde_second_{begin,end} for the second.
7418         (var_location_switch_text_section_1,
7419         var_location_switch_text_section): New functions.
7420         (dwarf2out_begin_function): Initialize cold_text_section even
7421         when function_section () isn't text_section.
7422         (prune_unused_types): Don't walk arange_table.
7423         (dwarf2out_finish): Don't needlessly test
7424         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7425         If info_section_emitted, call size_of_aranges and if it indicates
7426         non-empty .debug_aranges, call output_aranges with the computed
7427         size.  Stop using removed dw_fde_struct fields, use
7428         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7429         for second.
7430
7431         PR debug/48203
7432         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7433         create ENTRY_VALUE if incoming or address of incoming's MEM
7434         is a hard REG.
7435         * dwarf2out.c (mem_loc_descriptor): Don't emit
7436         DW_OP_GNU_entry_value of DW_OP_fbreg.
7437         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7438         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7439         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7440         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7441         ENTRY_VALUE_EXPs.
7442         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7443         is a REG_P or MEM_P with REG_P address, compute hash directly
7444         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7445         (preserve_only_constants): Don't clear VALUES forwaring
7446         ENTRY_VALUE to some other VALUE.
7447
7448 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7449
7450         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7451         instead of GEN_INT.
7452
7453 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7454
7455         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7456         block before expanding the statement.
7457         (expand_gimple_stmt_1): Likewise.  Set them here...
7458         (expand_gimple_stmt): ...and not here.  Tidy.
7459         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7460         unknown.
7461
7462 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7463
7464         * Makefile.in: New rule for cprop.o.
7465         * gcse.c: Move constant/copy propagation to cprop.c.
7466         (compute_local_properties): Only handle expression tables.
7467         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7468         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7469         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7470         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7471         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7472         compute_cprop_data, find_used_regs, try_replace_reg,
7473         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7474         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7475         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7476         find_bypass_set, reg_killed_on_edge, bypass_block,
7477         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7478         execute_rtl_cprop, pass_rtl_cprop): Move to...
7479         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7480         moved from gcse.c to here with minor cleanups in duplicated code.
7481
7482 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7483
7484         * config/i386/i386.c (flag_opts): Fix a typo in
7485         -mavx256-split-unaligned-store.
7486
7487 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7488
7489         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7490         LIBCALL_VALUE): Remove macros.
7491         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7492         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7493         (h8300_function_value, h8300_libcall_value,
7494         h8300_function_value_regno_p): New functions.
7495
7496 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7497
7498         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7499
7500 2011-03-28  Jeff Law  <law@redhat.com>
7501
7502         * tree-ssa-threadupdate.c (redirect_edges): Call
7503         create_edge_and_update_destination_phis as needed.
7504         (create_edge_and_update_destination_phis): Accept new BB argument.
7505         All callers updated.
7506         (thread_block): Do not update the profile when threading around
7507         intermediate blocks.
7508         (thread_single_edge): Likewise.
7509         (determine_bb_domination_status): If BB is not a successor of the
7510         loop header, return NONDOMINATING.
7511         (register_jump_thread): Note when we register a jump thread around
7512         an intermediate block.
7513         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7514         (thread_across_edge): Use it.
7515
7516 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7517
7518         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7519         when for_return is 2.
7520
7521 2011-03-28  Jeff Law  <law@redhat.com>
7522
7523         * var-tracking.c (canonicalize_values_mark): Delete unused
7524         lhs assignment.
7525         (canonicalize_values_star, set_variable_part): Likewise.
7526         (clobber_variable_part, delete_variable_part): Likewise.
7527
7528 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7529
7530         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7531
7532 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7533
7534         * tree-inline.c (expand_call_inline): Do not check that destination
7535         node is analyzed.
7536         (optimize_inline_calls): Assert that destination node is analyzed.
7537         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7538         not call tree_lowering_passes.
7539         * cgraph.h (cgraph_analyze_function): Declare.
7540         * cgraphunit.c (cgraph_analyze_function): Make public.
7541
7542 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7543
7544         * config/sparc/sparc-opts.h: New.
7545         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7546         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7547         (sparc_option_override): Store processor_type enumeration rather
7548         than string in cpu_default.  Remove name and enumeration from
7549         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7550         without using sparc_select.  Use target_flags_explicit instead of
7551         fpu_option_set.
7552         * config/sparc/sparc.h (enum processor_type): Move to
7553         sparc-opts.h.
7554         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7555         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7556         HeaderInclude entry.
7557         (mcpu=, mtune=): Use Var and Enum.
7558         (sparc_processor_type): New Enum and EnumValue entries.
7559
7560 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7561             Iain Sandoe  <iains@gcc.gnu.org>
7562
7563         PR target/48245
7564         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7565
7566 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7567
7568         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7569         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7570         Insert new statements at it in lieu of STMT.
7571         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7572         * tree-vect-stmts.c (vectorizable_store): Likewise.
7573         (vectorizable_load): Likewise.
7574
7575 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7576
7577         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7578         (divtf3): Ditto.
7579         (multf3): Ditto.
7580         (subtf3): Ditto.
7581
7582 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7583
7584         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7585         unaligned 256bit load/store.
7586         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7587         (*avx_movdqu<avxmodesuffix>): Likewise.
7588
7589 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7590
7591         PR target/48288
7592         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7593         * config/pa/pa.md (iordi3): Use new predicate in expander.
7594         (iorsi3): Likewise.
7595
7596 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7597
7598         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7599         FUNCTION_VALUE_REGNO_P): Remove macros.
7600         * config/mips/mips-protos.h (mips_function_value): Remove.
7601         * config/mips/mips.c (mips_function_value): Rename to...
7602         (mips_function_value_1): ... this. Make static.  Handle receiving
7603         the function type in 'fn_decl_or_type' argument.
7604         (mips_function_value, mips_libcall_value,
7605         mips_function_value_regno_p): New function.
7606         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7607         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7608
7609 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7610
7611         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7612         and -mavx256-split-unaligned-store.
7613         (ix86_option_override_internal): Split 32-byte AVX unaligned
7614         load/store by default.
7615         (ix86_avx256_split_vector_move_misalign): New.
7616         (ix86_expand_vector_move_misalign): Use it.
7617
7618         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7619         -mavx256-split-unaligned-store.
7620
7621         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7622         256bit load/store.  Generate unaligned store on misaligned memory
7623         operand.
7624         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7625         256bit load/store.
7626         (*avx_movdqu<avxmodesuffix>): Likewise.
7627
7628         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7629         -mavx256-split-unaligned-store.
7630
7631 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7632
7633         PR target/38598
7634         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7635         Update commentary.
7636
7637 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7638
7639         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7640         opno arguments with an expand_operand.  Use create_input_operand.
7641         (mips_prepare_builtin_target): Delete.
7642         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7643         functions.
7644         (mips_expand_builtin_direct): Use create_output_operand and
7645         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7646         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7647         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7648
7649 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7650
7651         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7652         function.
7653         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7654
7655 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7656
7657         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7658         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7659         basic blocks and call commit_edge_insertions directly.
7660         (fixup_abnormal_edges): Move from here to...
7661         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7662         on the edges and return whether some have actually been inserted.
7663         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7664         compensation code.
7665
7666 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7667
7668         PR rtl-optimization/48144
7669         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7670         (merge_expr_data): ... here.
7671         (av_set_intersect): Rename to av_set_code_motion_filter.
7672         Update all callers.  Call merge_history_vect when an expression
7673         is found in both sets.
7674         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7675
7676 2011-03-26  Alan Modra  <amodra@gmail.com>
7677
7678         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7679         cmodel medium addresses.
7680         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7681         64-bit gpr loads and stores.
7682         (rs6000_secondary_reload_ppc64): New function.
7683         * config/rs6000/rs6000-protos.h: Declare it.
7684         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7685
7686 2011-03-26  Alan Modra  <amodra@gmail.com>
7687
7688         PR target/47487
7689         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7690         GNU Go in traceback table.
7691
7692 2011-03-25  Richard Henderson  <rth@redhat.com>
7693
7694         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7695         if there are exactly 6 operands.
7696         (set_storage_via_setmem): Similarly.
7697
7698 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7699
7700         * collect2.c (write_c_file_stat): Handle backslash
7701         as right-hand directory separator.
7702         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7703         checking just for slash.
7704         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7705         instead of checking for trailing slash.
7706         * gcc.c (record_temp_file): Use filename_cmp instead
7707         of strcmp.
7708         (do_spec_1): Likewise.
7709         (replace_outfile_spec_function): Likewise.
7710         (is_directory): Use filename_ncmp instead of strncmp.
7711         (print_multilib_info): Likewise.
7712         * gcov.c (find_source): Use filename_cmp instead
7713         instead of strcmp.
7714         (make_gcov_file_name): Fix order of slash/backslash
7715         checks.
7716         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7717         (add_standard_paths): Likewise.
7718         * mips-tfile.c (saber_stop): Handle backslash.
7719         * prefix.c (update_path): Use filename_ncmp instead of
7720         strncmp.
7721         * profile.c (output_location): Use filename_cmp instead
7722         of strcmp.
7723         * read-md.c (handle_toplevel_file): Handle backslash.
7724         * tlink.c (frob_extension):  Likewise.
7725         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7726         strcmp.
7727         * tree-dump.c (dequeue_and_dump): Handle backslash.
7728         * tree.c (get_file_function_name): Likewise.
7729         * gengtype.c (read_input_list): Likewise.
7730         (get_file_realbasename): Likewise.
7731         (get_output_file_with_visibility): Use filename_cmp
7732         instead of strcmp.
7733
7734 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7735
7736         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7737         case to VFPv1.
7738
7739 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7740
7741         * fold-const.c (expr_location_or): New function.
7742         (fold_truth_not_expr): Call it.
7743
7744 2011-03-25  Jeff Law  <law@redhat.com>
7745
7746         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7747         va_end.
7748         * c-family/c-common.c (def_fn_type): Likewise.
7749         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7750         * emit-rtl.c (gen_rtvec): Likewise.
7751         * lto/lto-lang.c (def_fn_type): Likewise.
7752
7753 2011-03-25  Richard Guenther  <rguenther@suse.de>
7754
7755         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7756         also generate copies.
7757         (fini_copy_prop): Handle constant values properly.
7758
7759 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7760
7761         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7762         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7763         (hash_loc_operands, compare_loc_operands): Handle
7764         DW_OP_GNU_entry_value.
7765
7766 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7767
7768         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7769         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7770         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7771         comment and use macro TARGET_64BIT_MS_ABI instead.
7772         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7773         and change default behavior for 32-bit MS_ABI.
7774         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7775         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7776         32-bit, too.
7777         (ix86_cfun_abi): Likewise.
7778         (ix86_maybe_switch_abi): Adjust comment.
7779         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7780         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7781         instead of checking for SYSV_ABI.
7782         (ix86_nsaved_sseregs): Likewise.
7783         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7784         to 16 bytes.
7785         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7786         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7787         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7788         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7789         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7790
7791 2011-03-25  Richard Guenther  <rguenther@suse.de>
7792
7793         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7794         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7795         (verify_gimple): Remove.
7796         * tree-cfg.c (verify_gimple_call): Merge verification
7797         from verify_stmts.
7798         (verify_gimple_phi): Merge verification from verify_stmts.
7799         (verify_gimple_label): New function.
7800         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7801         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7802         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7803         (verify_stmts): Rename to verify_gimple_in_cfg.
7804         (verify_gimple_in_cfg): New function.
7805         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7806         * tree-ssa.c (verify_ssa): Likewise.
7807         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7808
7809 2011-03-25  Richard Guenther  <rguenther@suse.de>
7810
7811         * passes.c (init_optimization_passes): Add FRE pass after
7812         early SRA.
7813
7814 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7815             Andrew Stubbs  <ams@codesourcery.com>
7816
7817         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7818         for Cortex-A8.
7819         (arm_movdi_vfp_cortexa8): New pattern.
7820         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7821         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7822         instructions when tuning for Cortex-A8.  Set attribute "arch".
7823         * config/arm/arm.md: Move include arm-tune.md up a bit.
7824         (define_attr "arch"): Add "onlya8" and "nota8" values.
7825         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7826
7827 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7828
7829         PR bootstrap/48282
7830         Revert:
7831         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7832
7833         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7834         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7835         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7836         * passes.c (init_optimization_passes): Move
7837         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7838
7839 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7840
7841         * c-typeck.c (comptypes_internal): Replace target
7842         hook call of comp_type_attributes by version in tree.c file.
7843         * gimple.c (gimple_types_compatible_p_1): Likewise.
7844         * tree-ssa.c (useless_type_conversion_p): Likewise.
7845         * tree.c (build_type_attribute_qual_variant): Likewise.
7846         (attribute_value_equal): New static helper function.
7847         (comp_type_attributes): New function.
7848         (merge_attributes): Use attribute_value_equal for comparison.
7849         (attribute_list_contained): Likewise.
7850         * tree.h (comp_type_attributes): New prototype.
7851
7852 2011-03-25  Richard Guenther  <rguenther@suse.de>
7853
7854         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7855         of complex types at -O0.
7856         (verify_gimple_assign_binary): Likewise.
7857         (verify_gimple_assign_ternary): Likewise.
7858
7859 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7860
7861         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7862         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7863
7864 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7865
7866         PR debug/48041
7867         * dwarf2out.c (output_abbrev_section): Only write table when
7868         abbrev_die_table_in_use > 1.
7869
7870 2011-02-24  Richard Henderson  <rth@redhat.com>
7871
7872         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7873         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7874         (alpha_expand_unaligned_load_words): Use extql.
7875         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7876         (emit_insxl): Handle all modes for consistency.
7877
7878 2011-02-24  Richard Henderson  <rth@redhat.com>
7879
7880         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7881         (alpha_expand_unaligned_load): Likewise.
7882         (alpha_expand_unaligned_store): Likewise.
7883         (alpha_expand_unaligned_load_words): Likewise.
7884         (alpha_expand_unaligned_store_words): Likewise.
7885         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7886         (alpha_split_lock_test_and_set_12): Likewise.
7887         (print_operand, alpha_fold_builtin_extxx): Likewise.
7888         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7889         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7890         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7891         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7892         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7893         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7894         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7895         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7896         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7897         (extwl, extll, extql): Similarly.
7898         (inswh, inslh, insqh): Similarly.
7899         (mskbl, mskwl, mskll, mskql): Similarly.
7900         (mskwh, msklh, mskqh): Similarly.
7901
7902 2011-02-24  Richard Henderson  <rth@redhat.com>
7903
7904         * config/alpha/alpha.md (attribute isa): Add er, ner.
7905         (attribute enabled): Handle them.
7906         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7907
7908 2011-02-24  Richard Henderson  <rth@redhat.com>
7909
7910         * config/alpha/alpha.md (attribute isa): Add vms.
7911         (attribute enabled): Handle it.
7912         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7913         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7914         (*movtf): Rename from *movtf_internal for consistency.
7915         (*movsi): Merge with *movsi_nt_vms.
7916         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7917         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7918         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7919         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7920
7921 2011-02-24  Richard Henderson  <rth@redhat.com>
7922
7923         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7924         (extendqisi2, extendhisi2): Likewise.
7925         (extendqidi2): Simplify BWX/non-BWX expansions.
7926         (extendhidi2): Similarly.
7927
7928 2011-02-24  Richard Henderson  <rth@redhat.com>
7929
7930         * config/alpha/alpha.md (attribute isa): New.
7931         (attribute enabled): New.
7932         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7933         (zero_extendqisi2, zero_extendqidi2): Similarly.
7934         (zero_extendhisi2, zero_extendhidi2): Similarly.
7935         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7936
7937 2011-02-24  Richard Henderson  <rth@redhat.com>
7938
7939         * config/alpha/predicates.md (input_operand): Revert last change;
7940         update comment to mention 32-bit VMS rather than Windows.
7941
7942 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7943
7944         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7945         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7946         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7947         * passes.c (init_optimization_passes): Move
7948         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7949
7950 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7951
7952         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7953
7954 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7955
7956         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7957         correctly.
7958
7959 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7960
7961         PR debug/48204
7962         * simplify-rtx.c (simplify_const_unary_operation): Call
7963         real_convert when changing mode class with FLOAT_EXTEND.
7964
7965 2011-03-24  Nick Clifton  <nickc@redhat.com>
7966
7967         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7968         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7969         * config/rx/rx.c (rx_option_override): Set align_jumps,
7970         align_loops and align_labels if not set by the user.
7971         (rx_align_for_label): New function.
7972         (rx_max_skip_for_label): New function.
7973         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7974         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7975         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7976         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7977         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7978
7979 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7980
7981         PR rtl-optimization/48263
7982         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7983         and original commutative_p handling.  Use maybe_gen_insn.
7984
7985 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7986
7987         * reload.c (find_reloads_subreg_address): Add address_reloaded
7988         parameter and return true there if the full address has been
7989         reloaded.
7990         (find_reloads_toplev): Pass address_reloaded flag.
7991         (find_reloads_address_1): Don't use address_reloaded parameter.
7992
7993 2011-03-24  Jeff Law  <law@redhat.com>
7994
7995         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7996         unused variable "ann".
7997         (remove_unused_locals): Likewise.
7998
7999         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8000         statement.
8001
8002         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8003         after it is freed.
8004
8005 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8006
8007         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8008         for invalid symbolic addresses.
8009         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8010         larl operands.
8011
8012 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8013
8014         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8015         the argument in calls to fold_truth_not_expr.
8016
8017 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8018
8019         * tree.c (record_node_allocation_statistics): New function.
8020         (make_node_stat, copy_node_stat, build_string): Call it.
8021         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8022         (build1_stat, build_omp_clause): Likewise.
8023
8024 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8025
8026         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8027         last commit.
8028
8029 2011-03-24  Richard Guenther  <rguenther@suse.de>
8030
8031         PR tree-optimization/48271
8032         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8033         blocks that still exist.
8034
8035 2011-03-24  Richard Guenther  <rguenther@suse.de>
8036
8037         PR tree-optimization/48270
8038         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8039         not free datarefs before ddrs.
8040
8041 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8042
8043         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8044         from the address built for a reference with variable offset.
8045
8046 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8047
8048         PR target/48237
8049         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8050         alternatives that can be handled with movq or movabsq insn.
8051         (*movdf_internal): Disable for !TARGET_64BIT.
8052         (*movdf_internal_nointeger): Ditto.
8053         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8054
8055 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8056
8057         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8058         (FUNCTION_ARG_ADVANCE): Likewise.
8059         * tm.texi.in: Change references to them to hook references.
8060         * tm.texi: Regenerate.
8061         * targhooks.c (default_function_arg): Eliminate check for target macro.
8062         (default_function_incoming_arg): Likewise.
8063         (default_function_arg_advance): Likewise.
8064         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8065         (function_arg_advance): Likewise.
8066         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8067
8068 2011-03-24  Richard Guenther  <rguenther@suse.de>
8069
8070         PR middle-end/48269
8071         * tree-object-size.c (addr_object_size): Do not double-account
8072         for MEM_REF offsets.
8073
8074 2011-03-24  Diego Novillo  <dnovillo@google.com>
8075
8076         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8077         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8078         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8079         Update all users.
8080         (lto_input_string): Rename from input_string.  Make extern.
8081         Update all users.
8082         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8083         output_string_with_length.
8084         Output 0 to indicate a non-NULL string.  Update all callers to
8085         not emit 0.
8086         (lto_output_string): Rename from output_string.  Make extern.
8087         Update all users.
8088         (lto_output_decl_state_streams): Make extern.
8089         (lto_output_decl_state_refs): Make extern.
8090         * lto-streamer.h (lto_input_string): Declare.
8091         (lto_input_data_block): Declare.
8092         (lto_output_string): Declare.
8093         (lto_output_string_with_length): Declare.
8094         (lto_output_decl_state_streams): Declare.
8095         (lto_output_decl_state_refs): Declare.
8096
8097 2011-03-24  Richard Guenther  <rguenther@suse.de>
8098
8099         PR tree-optimization/46562
8100         * tree.c (build_invariant_address): New function.
8101         * tree.h (build_invariant_address): Declare.
8102         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8103         a renamed function moved ...
8104         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8105         Take valueization callback parameter.
8106         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8107         * gimple-fold.h: New file.
8108         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8109         (ccp_fold, fold_const_aggregate_ref,
8110         fold_ctor_reference, fold_nonarray_ctor_reference,
8111         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8112         get_base_constructor): Move ...
8113         * gimple-fold.c: ... here.
8114         (gimple_fold_stmt_to_constant_1): New function
8115         split out from ccp_fold.  Take a valueization callback parameter.
8116         Valueize all operands.
8117         (gimple_fold_stmt_to_constant): New wrapper function.
8118         (fold_const_aggregate_ref_1): New function split out from
8119         fold_const_aggregate_ref.  Take a valueization callback parameter.
8120         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8121         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8122         invariant POINTER_PLUS_EXPRs to invariant form.
8123         (vn_valueize): New function.
8124         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8125         * tree-vrp.c (vrp_valueize): New function.
8126         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8127         to fold statements to constants.
8128         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8129         function declarations.
8130         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8131         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8132
8133 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8134
8135         * config/h8300/predicates.md (jump_address_operand): Fix register
8136         mode check.
8137
8138 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8139
8140         * doc/invoke.texi (max-stores-to-sink): Document.
8141         * params.h (MAX_STORES_TO_SINK): Define.
8142         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8143         if either vectorization or if-conversion is disabled.
8144         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8145         tree-vect-data-refs.c vect_equal_offsets.
8146         (dr_equal_offsets_p): New function.
8147         (find_data_references_in_bb): Remove static.
8148         * tree-data-ref.h (find_data_references_in_bb): Declare.
8149         (dr_equal_offsets_p): Likewise.
8150         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8151         (vect_drs_dependent_in_basic_block): Update calls to
8152         vect_equal_offsets.
8153         (vect_check_interleaving): Likewise.
8154         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8155         (cond_if_else_store_replacement): Rename to...
8156         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8157         documentation.
8158         (cond_if_else_store_replacement): New function.
8159         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8160         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8161
8162 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8163
8164         PR target/46934
8165         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8166         to subtract lower bound instead of GEN_INT().
8167
8168 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8169
8170         PR other/48179
8171         PR other/48221
8172         PR other/48234
8173         * doc/extend.texi (Alignment): Move section to match order in TOC.
8174         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8175         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8176
8177 2011-03-23  Jeff Law  <law@redhat.com>
8178
8179         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8180         before removing the edge.
8181
8182         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8183         it may have been freed by redirect_branch_edge or
8184         redirect_edge_succ_nodup.
8185
8186 2011-03-23  Richard Guenther  <rguenther@suse.de>
8187
8188         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8189         (check_va_list_escapes): Likewise.
8190         (check_all_va_list_escapes): Likewise.
8191
8192 2011-03-23  Richard Guenther  <rguenther@suse.de>
8193
8194         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8195         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8196         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8197         (alias.o): Likewise.
8198         (ipa-type-escape.o): Remove.
8199         (ipa-struct-reorg.o): Likewise.
8200         (GTFILES): Remove ipa-struct-reorg.c.
8201         * alias.c: Do not include ipa-type-escape.h.
8202         * tree-ssa-alias.c: Likewise.
8203         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8204         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8205         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8206         and ipa-type-escape passes.
8207         * tree-pass.h (pass_ipa_type_escape): Remove.
8208         (pass_ipa_struct_reorg): Likewise.
8209         * ipa-struct-reorg.h: Remove.
8210         * ipa-struct-reorg.c: Likewise.
8211         * ipa-type-escape.h: Likewise.
8212         * ipa-type-escape.c: Likewise.
8213         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8214         (--param struct-reorg-cold-struct-ratio): Likewise.
8215         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8216         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8217         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8218
8219 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8220
8221         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8222         cpu attribute value.
8223         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8224         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8225         * config/s390/s390.c (processor_flags_table): New constant array.
8226         (s390_handle_arch_option): Remove.
8227         (s390_handle_option): Remove s390_handle_arch_option invocations
8228         and OPT_mwarn_framesize_ handling.
8229         (s390_option_override): Remove s390_handle_arch_option invocation.
8230         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8231         warnings.
8232         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8233         * config/s390/s390.opt (s390_tune, s390_arch)
8234         (march=): Replace s390_arch_option enum and values with
8235         processor_type.  Set variable name to s390_arch.  Set
8236         initialization value.
8237         (mtune=): Replace s390_arch_option with processor_type.  Set
8238         variable name to s390_tune.  Set initialization value.
8239
8240 2011-03-23  Julian Brown  <julian@codesourcery.com>
8241
8242         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8243         accesses which are not naturally aligned.
8244
8245 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8246
8247         PR target/47553
8248         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8249
8250 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8251
8252         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8253         parameter from "int" to "enum insn_code".
8254         (expand_operand_type): New enum.
8255         (expand_operand): New structure.
8256         (create_expand_operand): New function.
8257         (create_fixed_operand, create_output_operand): Likewise
8258         (create_input_operand, create_convert_operand_to): Likewise.
8259         (create_convert_operand_from, create_address_operand): Likewise.
8260         (create_integer_operand): Likewise.
8261         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8262         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8263         (expand_insn, expand_jump_insn): Likewise.
8264         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8265         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8266         (expand_movstr, expand_builtin___clear_cache): Likewise.
8267         (expand_builtin_lock_release): Likewise.
8268         * explow.c (allocate_dynamic_stack_space): Likewise.
8269         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8270         and use the default handling in that case.
8271         * expmed.c (check_predicate_volatile_ok): Delete.
8272         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8273         (emit_cstore): Likewise.
8274         * expr.c (emit_block_move_via_movmem): Likewise.
8275         (set_storage_via_setmem, expand_assignment): Likewise.
8276         (emit_storent_insn, try_casesi): Likewise.
8277         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8278         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8279         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8280         (expand_twoval_unop, expand_twoval_binop): Likewise.
8281         (expand_unop_direct, emit_indirect_jump): Likewise.
8282         (emit_conditional_move, vector_compare_rtx): Likewise.
8283         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8284         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8285         (expand_sync_lock_test_and_set): Likewise.
8286         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8287         (emit_unop_insn): Likewise.
8288         (expand_copysign_absneg): Change icode to an insn_code.
8289         (create_convert_operand_from_type): New function.
8290         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8291         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8292         (expand_insn, expand_jump_insn): Likewise.
8293         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8294         than const_int_operand for operand 2.
8295
8296 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8297
8298         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8299         if possible.
8300
8301 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8302
8303         * emit-rtl.c (emit_pattern_before_noloc): New function.
8304         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8305         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8306         (emit_pattern_after_noloc): New function.
8307         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8308         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8309
8310 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8311
8312         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8313         (__ffsDI2): Likewise.
8314
8315 2011-03-22  Richard Henderson  <rth@redhat.com>
8316
8317         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8318         of !TARGET_ABI_OPEN_VMS.
8319         (alpha_trampoline_init, alpha_start_function): Likewise.
8320         (alpha_expand_epilogue, alpha_file_start): Likewise.
8321         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8322         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8323         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8324         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8325         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8326
8327 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8328
8329         * config/s390/s390-opts.h: New.
8330         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8331         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8332         s390_stack_guard): Remove.
8333         (s390_handle_arch_option): Return void.  Take enum
8334         s390_arch_option value instead of string and searching array.
8335         (s390_handle_option): Don't assert that global structures are in
8336         use.  Access variables via opts pointer.  Use error_at.  Don't use
8337         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8338         s390_handle_arch_option.
8339         (s390_option_override): Update call to s390_handle_arch_option.
8340         (s390_emit_prologue): Use %d format for s390_stack_size in
8341         diagnostic.  Use %wd for HOST_WIDE_INT.
8342         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8343         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8344         * config/s390/s390.opt (config/s390/s390-opts.h): New
8345         HeaderInclude entry.
8346         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8347         s390_arch_flags, s390_warn_framesize): New Variable entries.
8348         (s390_arch_option): New Enum and EnumValue entries.
8349         (march=): Use Enum instead of Var.
8350         (mstack-guard=, mstack-size=): Use UInteger and Var.
8351         (mtune=): Use Enum.
8352
8353 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8354
8355         * config/score/score.c (score_handle_option): Don't assert that
8356         global structures are in use.  Access target_flags via opts
8357         pointer.  Use value of -march= option to determine target_flags
8358         settings.
8359         * config/score/score.opt (march=): Use Enum.
8360         (score_arch): New Enum and EnumValue entries.
8361
8362 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8363
8364         * config/mep/mep.c (option_mtiny_specified): Remove.
8365         (mep_option_override): Move register handling for -mivc2 from
8366         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8367         instead of option_mtiny_specified.
8368         (mep_handle_option): Access target_flags via opts pointer.  Don't
8369         assert that global structures are in use.  Defer part of -mivc2
8370         handling and move it to mep_option_override.
8371         * config/mep/mep.opt (IVC2): New Mask entry.
8372         (mivc2): Use Var and Defer instead of Mask.
8373
8374 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8375
8376         * config/v850/v850-opts.h: New.
8377         * config/v850/v850.c (small_memory): Replace with
8378         small_memory_physical_max array.  Make that array static const.
8379         (v850_handle_memory_option): Take integer value of argument.  Take
8380         gcc_options pointer, option text and location.  Return void.
8381         Update for changes to small memory structures.
8382         (v850_handle_option): Access target_flags via opts pointer.  Don't
8383         assert that global structures are in use.  Update calls to
8384         v850_handle_memory_option.
8385         (v850_encode_data_area): Update references to small memory settings.
8386         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8387         (enum small_memory_type): Move to v850-opts.h.
8388         * config/v850/v850.opt (config/v850/v850-opts.h): New
8389         HeaderInclude entry.
8390         (small_memory_max): New Variable entry.
8391         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8392         (mtda, mzda): Likewise.
8393
8394 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8395
8396         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8397         pointer.  Don't assert that global structures are in use.
8398
8399 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8400
8401         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8402         via opts pointer.  Don't assert that global structures are in use.
8403
8404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8405
8406         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8407         (munix=93): Use Var.
8408         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8409         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8410         * config/pa/pa-opts.h: New.
8411         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8412         (pa_handle_option): Don't assert that global structures are in
8413         use.  Access target_flags via opts pointer.  Don't handle
8414         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8415         OPT_munix_98 here.
8416         (pa_option_override): Handle deferred OPT_mfixed_range_.
8417
8418 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8419
8420         * config/mn10300/mn10300-opts.h: New.
8421         * config/mn10300/mn10300.c (mn10300_processor,
8422         mn10300_tune_string): Remove.
8423         (mn10300_handle_option): Don't assert that global structures are
8424         in use.  Access mn10300_processor via opts pointer.  Don't handle
8425         OPT_mtune_ here.
8426         * config/mn10300/mn10300.h (enum processor_type): Move to
8427         mn10300-opts.h.
8428         (mn10300_processor): Remove.
8429         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8430         HeaderInclude entry.
8431         (mn10300_processor): New Variable entry.
8432         (mtune=): Use Var.
8433
8434 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8435
8436         * config/microblaze/microblaze.c: Don't include opts.h.
8437         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8438         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8439         (mno-clearbss): Use Var and Warn.
8440
8441 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8442
8443         * config/m32r/m32r-opts.h: New.
8444         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8445         (m32r_handle_option): Don't assert that global structures are in
8446         use.  Access target_flags and m32r_cache_flush_func via opts
8447         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8448         OPT_mno_flush_trap here.
8449         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8450         include of m32r-opts.h.
8451         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8452         HeaderInclude entry.
8453         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8454         (mmodel=): Use Enum and Var.
8455         (m32r_model): New Enum and EnumValue entries.
8456         (mno-flush-trap): Use Var.
8457         (msdata=): Use Enum and Var.
8458         (m32r_sdata): New Enum and EnumValue entries.
8459
8460 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8461
8462         * config/m32c/m32c.c: Don't include opts.h.
8463         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8464         m32c_handle_option): Remove.
8465         (m32c_option_override): Check global_options_set.x_target_memregs
8466         instead of target_memregs_set.
8467         * config/m32c/m32c.h (target_memregs): Remove.
8468         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8469         variable.
8470
8471 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8472
8473         * config/iq2000/iq2000-opts.h: New.
8474         * config/iq2000/iq2000.c: Don't include opts.h.
8475         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8476         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8477         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8478         HeaderInclude entry.
8479         (iq2000_tune): New Variable entry.
8480         (march=): Add comment.  Use Enum.
8481         (iq2000_arch): New Enum and EnumValue entries.
8482         (mcpu=): Use Enum and Var.
8483         (iq2000_tune): New Enum and EnumValue entries.
8484
8485 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8486
8487         * config/ia64/ia64-opts.h: New.
8488         * config/ia64/ia64.c (ia64_tune): Remove.
8489         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8490         here.  Use error_at.
8491         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8492         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8493         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8494         HeaderInclude entry.
8495         (ia64_tune): New Variable entry.
8496         (mfixed-range=): Use Defer and Var.
8497         (mtune=): Use Enum and Var.
8498         (ia64_tune): New Enum and EnumValue entries.
8499
8500 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8501
8502         * config/frv/frv-opts.h: New.
8503         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8504         frv-opts.h.
8505         (frv_cpu_type): Remove.
8506         * config/frv/frv.c: Don't include opts.h.
8507         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8508         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8509         (frv_cpu_type): New Variable entry.
8510         (frv_cpu): New Enum and EnumValue entries.
8511
8512 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8513
8514         * config/cris/cris.c (cris_handle_option): Access target_flags via
8515         opts pointer.  Don't assert that global structures are in use.
8516         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8517         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8518
8519 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * config/bfin/bfin-opts.h: New.
8522         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8523         bfin_si_revision, bfin_workarounds): Remove.
8524         (bfin_cpus): Make static const.
8525         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8526         not bfin_lib_id_given.
8527         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8528         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8529         pointer. Use error_at.  Don't assert that global structures are in use.
8530         * config/bfin/bfin.h: Include bfin-opts.h.
8531         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8532         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8533         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8534         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8535         entries.
8536
8537 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8538
8539         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8540         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8541         or -msoft-float here.
8542         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8543         -msoft-float and -mhard-float.
8544         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8545         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8546         msoft-float.
8547         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8548         -msoft-float.
8549         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8550         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8551         not mhard-float.
8552         (LIBGCC_SPEC): Don't handle -msoft-float.
8553         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8554         -mhard-float.
8555         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8556         msoft-float.
8557         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8558         -mfloat-abi=*, not -msoft-float and -mhard-float.
8559         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8560         -msoft-float.
8561         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8562         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8563         mhard-float and msoft-float.
8564         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8565         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8566         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8567         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8568         mhard-float.
8569         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8570         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8571         msoft-float.
8572         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8573         not mhard-float.
8574         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8575         not msoft-float.
8576
8577 2011-03-22  Richard Henderson  <rth@redhat.com>
8578
8579         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8580         TARGET_ABI_WINDOWS_NT.
8581         (alpha_output_function_end_prologue): Likewise.
8582         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8583         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8584         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8585         (trap, *movsi_nt_vms): Likewise.
8586         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8587         (*tablejump_osf_nt_internal): Remove.
8588         * config/alpha/predicates.md (input_operand): Only test Pmode.
8589
8590 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8591
8592         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8593         via opts pointer.  Use error_at.  Don't assert that global
8594         structures are in use.
8595
8596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8597
8598         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8599         (ix86_handle_option): Access ix86_isa_flags and
8600         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8601         global structures are in use.
8602         (ix86_function_specific_save, ix86_function_specific_restore):
8603         Update ix86_isa_flags_explicit field name.
8604         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8605         (ix86_isa_flags_explicit): Rename TargetSave entry to
8606         x_ix86_isa_flags_explicit.
8607
8608 2011-03-22  Richard Henderson  <rth@redhat.com>
8609
8610         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8611         (alpha_option_override, direct_return): Likewise.
8612         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8613         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8614         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8615         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8616         (alpha_expand_epilogue, alpha_end_function): Likewise.
8617         (alpha_init_libfuncs): Likewise.
8618         (struct machine_function): Remove unicosmk members.
8619         (print_operand) ['t']: Remove.
8620         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8621         unicosmk_output_module_name, unicosmk_output_common,
8622         current_section_align, unicosmk_output_text_section_asm_op,
8623         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8624         unicosmk_section_type_flags, unicosmk_unique_section,
8625         unicosmk_asm_named_section, unicosmk_insert_attributes,
8626         unicosmk_output_align, unicosmk_defer_case_vector,
8627         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8628         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8629         unicosmk_output_ssib, unicosmk_add_call_info_word,
8630         unicosmk_extern_head, unicosmk_output_default_externs,
8631         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8632         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8633         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8634         * config/alpha/alpha-protos.h: Update.
8635         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8636         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8637         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8638         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8639         (*mulsi_se, mulvsi3): Likewise.
8640         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8641         (*divmodsi_internal, call, call_value, realign): Likewise.
8642         (moddi3, umoddi3): Likewise; remove duplicate expander.
8643         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8644         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8645         (*movdi_nofix): Remove r/U alternative.
8646         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8647         * config/alpha/constraints.md ("U"): Remove.
8648         * config/alpha/predicates.md (call_operand"): Don't test
8649         TARGET_ABI_UNICOSMK.
8650
8651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * target.def (handle_option): Take gcc_options and
8654         cl_decoded_option pointers and location_t.
8655         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8656         * doc/tm.texi: Regenerate.
8657         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8658         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8659         * lto-opts.c (lto_reissue_options): Generate option structure for
8660         targetm.handle_option call.
8661         * opts.c (target_handle_option): Update call to
8662         targetm.handle_option.  Remove assertions about values now passed
8663         down to hook.
8664         * targhooks.c (default_target_handle_option): New.
8665         * targhooks.h (default_target_handle_option): Declare.
8666         * config/alpha/alpha.c: Include opts.h.
8667         (alpha_handle_option): Update to new hook interface.
8668         * config/arm/arm.c: Include opts.h.
8669         (arm_handle_option): Update to new hook interface.
8670         * config/arm/t-arm (arm.o): Update dependencies.
8671         * config/bfin/bfin.c: Include opts.h.
8672         (bfin_handle_option): Update to new hook interface.
8673         * config/cris/cris.c: Include opts.h.
8674         (cris_handle_option): Update to new hook interface.
8675         * config/frv/frv.c: Include opts.h.
8676         (frv_handle_option): Update to new hook interface.
8677         * config/i386/i386.c: Include opts.h.
8678         (ix86_handle_option): Update to new hook interface.
8679         (ix86_valid_target_attribute_inner_p): Generate option structure
8680         for call to ix86_handle_option.
8681         * config/i386/t-i386 (i386.o): Update dependencies.
8682         * config/ia64/ia64.c: Include opts.h.
8683         (ia64_handle_option): Update to new hook interface.
8684         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8685         * config/iq2000/iq2000.c: Include opts.h.
8686         (iq2000_handle_option): Update to new hook interface.
8687         * config/m32c/m32c.c: Include opts.h.
8688         (m32c_handle_option): Update to new hook interface.
8689         * config/m32r/m32r.c: Include opts.h.
8690         (m32r_handle_option): Update to new hook interface.
8691         * config/m68k/m68k.c: Include opts.h.
8692         (m68k_handle_option): Update to new hook interface.
8693         * config/mep/mep.c: Include opts.h.
8694         (mep_handle_option): Update to new hook interface.
8695         * config/microblaze/microblaze.c: Include opts.h.
8696         (microblaze_handle_option): Update to new hook interface.
8697         * config/mips/mips.c: Include opts.h.
8698         (mips_handle_option): Update to new hook interface.
8699         * config/mn10300/mn10300.c: Include opts.h.
8700         (mn10300_handle_option): Update to new hook interface.
8701         * config/pa/pa.c: Include opts.h.
8702         (pa_handle_option): Update to new hook interface.
8703         * config/pdp11/pdp11.c: Include opts.h.
8704         (pdp11_handle_option): Update to new hook interface.
8705         * config/rs6000/rs6000.c: Include opts.h.
8706         (rs6000_handle_option): Update to new hook interface.
8707         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8708         * config/rx/rx.c: Include opts.h.
8709         (rx_handle_option): Update to new hook interface.
8710         * config/s390/s390.c: Include opts.h.
8711         (s390_handle_option): Update to new hook interface.
8712         * config/score/score.c: Include opts.h.
8713         (score_handle_option): Update to new hook interface.
8714         * config/sh/sh.c: Include opts.h.
8715         (sh_handle_option): Update to new hook interface.
8716         * config/sparc/sparc.c: Include opts.h.
8717         (sparc_handle_option): Update to new hook interface.
8718         * config/v850/v850.c: Include opts.h.
8719         (v850_handle_option): Update to new hook interface.
8720
8721 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8722
8723         * gcc.c (driver_unknown_option_callback): Only permit and save
8724         unknown -Wno- options.
8725         (driver_wrong_lang_callback): Save options directly instead of via
8726         driver_unknown_option_callback.
8727
8728 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8729
8730         * combine.c (simplify_set): Try harder to find the best CC mode when
8731         simplifying a nested COMPARE on the RHS.
8732
8733 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8734
8735         * config/alpha/gnu.h: Remove.
8736         * config/arc: Remove directory.
8737         * config/arm/netbsd.h: Remove.
8738         * config/arm/t-pe: Remove.
8739         * config/crx: Remove directory.
8740         * config/i386/netbsd.h: Remove.
8741         * config/m68hc11: Remove directory.
8742         * config/m68k/uclinux-oldabi.h: Remove.
8743         * config/mcore/mcore-pe.h: Remove.
8744         * config/mcore/t-mcore-pe: Remove.
8745         * config/netbsd-aout.h: Remove.
8746         * config/rs6000/gnu.h: Remove.
8747         * config/sh/sh-symbian.h: Remove.
8748         * config/sh/symbian-base.c: Remove.
8749         * config/sh/symbian-c.c: Remove.
8750         * config/sh/symbian-cxx.c: Remove.
8751         * config/sh/symbian-post.h: Remove.
8752         * config/sh/symbian-pre.h: Remove.
8753         * config/sh/t-symbian: Remove.
8754         * config/svr3.h: Remove.
8755         * config/vax/netbsd.h: Remove.
8756         * config.build: Don't handle i[34567]86-*-pe.
8757         * config.gcc: Remove handling of deprecations for most deprecated
8758         targets.
8759         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8760         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8761         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8762         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8763         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8764         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8765         Remove cases.
8766         * config.host: Don't handle i[34567]86-*-pe.
8767         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8768         (ASM_SPEC32): Don't handle -mcall-gnu.
8769         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8770         -mcall-gnu.
8771         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8772         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8773         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8774         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8775         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8776         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8777         conditional on SYMBIAN.
8778         * configure.ac: Don't handle powerpc*-*-gnu*.
8779         * configure: Regenerate.
8780         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8781         * doc/install-old.texi (m6811, m6812): Don't mention.
8782         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8783         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8784         (m68k-uclinuxoldabi): Don't mention.
8785         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8786         Remove.
8787         (-mcall-gnu): Remove.
8788         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8789         families): Remove constraint documentation.
8790
8791 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8792
8793         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8794         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8795         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8796
8797 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8798
8799         PR target/48226
8800         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8801         vector when peeking at the next token for vector, don't expand the
8802         keywords.
8803
8804 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8805
8806         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8807         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8808         * config/avr/avr.c (init_cumulative_args)
8809         (avr_function_arg_advance): Use it.
8810         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8811         sibcall epilogues.
8812         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8813         (avr_function_ok_for_sibcall): ...this new function.
8814         (avr_lookup_function_attribute1): New static Function.
8815         (avr_naked_function_p, interrupt_function_p)
8816         (signal_function_p, avr_OS_task_function_p)
8817         (avr_OS_main_function_p): Use it.
8818         * config/avr/avr.md ("sibcall", "sibcall_value")
8819         ("sibcall_epilogue"): New expander.
8820         ("*call_insn", "*call_value_insn"): New insn.
8821         ("call_insn", "call_value_insn"): Remove
8822         ("call", "call_value", "epilogue"): Change expander to handle
8823         sibling calls.
8824
8825 2011-03-21  Nick Clifton  <nickc@redhat.com>
8826
8827         * doc/invoke.texi (Overall Options): Move closing brace to end of
8828         options list.
8829         (Optimization Options): Add missing @gol.
8830         (Directory Options): Likewise.
8831         (i386 and x86-64 Options): Likewise.
8832         (RS6000 and PowerPC Options): Likewise.
8833         (i386 and x86-64 Windows Options): Likewise.
8834         (V850 Options): Add text missing from descriptions.
8835
8836 2011-03-22  Richard Henderson  <rth@redhat.com>
8837
8838         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8839         (avr_incoming_return_addr_rtx): New.
8840         (emit_push_byte): New.
8841         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8842         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8843         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8844         (emit_pop_byte): New.
8845         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8846         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8847         (INCOMING_RETURN_ADDR_RTX): New.
8848         (INCOMING_FRAME_SP_OFFSET): New.
8849         (ARG_POINTER_CFA_OFFSET): New.
8850         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8851         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8852         (pophi): Remove.
8853
8854         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8855
8856 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8857
8858         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8859         (FUNCTION_ARG_ADVANCE): Likewise.
8860         * tm.texi.in: Change references to them to hook references.
8861         * tm.texi: Regenerate.
8862         * targhooks.c (default_function_arg): Eliminate check for target
8863         macro.
8864         (default_function_incoming_arg): Likewise.
8865         (default_function_arg_advance): Likewise.
8866         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8867         (function_arg_advance): Likewise.
8868         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8869
8870 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8871
8872         * tree.c (build_call_1): New function.
8873         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8874
8875 2011-03-22  Richard Guenther  <rguenther@suse.de>
8876
8877         PR tree-optimization/48228
8878         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8879         for single-arg PHIs.
8880
8881 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8882
8883         PR rtl-optimization/48143
8884         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8885         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8886         sse2_cvtps2pd): Likewise.
8887
8888 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8889
8890         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8891
8892 2011-03-22  Richard Guenther  <rguenther@suse.de>
8893
8894         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8895         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8896         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8897         and REALIGN_LOAD_EXPR.
8898         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8899         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8900         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8901         DOT_PROD_EXPR case ...
8902         (expand_expr_real_2): ... here.
8903         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8904         and REALIGN_LOAD_EXPR.
8905         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8906         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8907         (vect_create_epilog_for_reduction): Likewise.
8908         (vectorizable_reduction): Likewise.
8909         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8910         * tree-vect-stmts.c (vectorizable_load): Likewise.
8911
8912 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8913
8914         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8915
8916 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8917
8918         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8919         handling for PLTOFF/GOTOFF.
8920
8921 2011-03-22  Nick Clifton  <nickc@redhat.com>
8922
8923         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8924         trailing backslash from the end of the macro definition.
8925
8926 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8927
8928         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8929         and PLT unspecs.
8930
8931 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8932
8933         * expr.h (prepare_operand): Move to...
8934         * optabs.h (prepare_operand): ...here and change the insn code
8935         parameter from "int" to "enum insn_code".
8936         (insn_operand_matches): Declare.
8937         * expr.c (init_expr_target): Use insn_operand_matches.
8938         (compress_float_constant): Likewise.
8939         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8940         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8941         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8942         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8943         Likewise.
8944         (gen_cond_trap): Likewise.
8945         (prepare_operand): Likewise.  Change icode to an insn_code.
8946         (insn_operand_matches): New function.
8947         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8948         * reload1.c (gen_reload): Likewise.
8949         * targhooks.c (default_secondary_reload): Likewise.
8950
8951 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8952
8953         * config/alpha/alpha.md (unspec): New define_c_enum.
8954         (unspecv): Ditto.
8955
8956 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8957
8958         PR debug/48214
8959         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8960         between a call and its CALL_ARG_LOCATION note.
8961
8962 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8963
8964         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8965
8966 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8967
8968         PR c/42544
8969         PR c/48197
8970         * c-common.c (shorten_compare): If primopN is first sign-extended
8971         to opN and then zero-extended to result type, set primopN to opN.
8972
8973 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8974
8975         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8976         for barrier handlers.
8977
8978 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8979
8980         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8981         UNSPEC constants to be in the unspec enumeration, and redefine
8982         all UNSPECV constants to be in the unspecv enumeration, so that
8983         dumps print which unspec/unspec_volatile this is.
8984         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8985         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8986         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8987         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8988         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8989
8990         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8991         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8992         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8993         * config/rs6000/sync.md (isync, lwsync): Ditto.
8994
8995 2011-03-21  Richard Guenther  <rguenther@suse.de>
8996
8997         * params.def (lto-min-partition): Fix typo.
8998
8999 2011-03-21  Richard Guenther  <rguenther@suse.de>
9000
9001         PR c/47939
9002         * c-decl.c (grokdeclarator): Drop to the main variant only
9003         for array types.  Drop flag_gen_aux_info check.
9004
9005 2011-03-21  Richard Guenther  <rguenther@suse.de>
9006
9007         PR translation/47911
9008         * params.def (lto-partitions): Fix typo.
9009         (lto-min-partition): Fix wording.
9010
9011 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9012
9013         * config/rs6000/t-freebsd: Remove duplication from file.
9014
9015 2011-03-21  Richard Guenther  <rguenther@suse.de>
9016
9017         PR middle-end/47661
9018         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9019
9020 2011-03-21  Richard Guenther  <rguenther@suse.de>
9021
9022         PR lto/48210
9023         * params.def (lto-partitions): Require at least 1 partition.
9024
9025 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9026
9027         * gthr-solaris.h: Remove.
9028         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9029         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9030         (LIB_SPEC): Likewise.
9031         * config/sol2.opt (threads): Remove.
9032         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9033         (sparc*-*-solaris2*): Likewise.
9034         * configure.ac (enable_threads): Enable solaris support.
9035         * configure: Regenerate.
9036         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9037         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9038         solaris.
9039
9040 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9041
9042         * config.gcc: Obsolete *-*-solaris2.8*.
9043         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9044
9045 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9046
9047         PR bootstrap/48135
9048         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9049         reference.  Solaris 8 perl works.
9050
9051 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9052
9053         PR bootstrap/48135
9054         * doc/install.texi (Prerequisites): Move jar etc. up.
9055         Explain support library version requirements.
9056
9057 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9058
9059         PR bootstrap/48135
9060         * doc/install.texi (Prerequisites): Move Perl to build
9061         requirements.  Always necessary on Solaris 2 with Sun ld.
9062
9063 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9064
9065         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9066         binutils 2.21.
9067         (Specific, i?86-*-solaris2.[89]): Likewise.
9068         (Specific, i?86-*-solaris2.10): Likewise.
9069         (Specific, mips-sgi-irix6): Likewise.
9070         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9071         Update for binutils 2.21.
9072
9073 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9074
9075         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9076         Allow -fuse-linker-plugin for non-default plugin linker.
9077         * configure: Regenerate.
9078
9079 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9080
9081         PR bootstrap/48167
9082         * gengtype.c (files_rules): Added rule for cp/parser.h.
9083
9084 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9085
9086         PR target/48213
9087         * config/s390/s390.c (s390_delegitimize_address): Don't call
9088         lowpart_subreg if orig_x has BLKmode.
9089
9090 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9091
9092         PR target/12171
9093         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9094         * tree.h (attribute_spec): Add new member affects_type_identity.
9095         * attribs.c (empty_attribute_table): Adjust attribute_spec
9096         initializers.
9097         * config/alpha/alpha.c: Likewise.
9098         * config/arc/arc.c: Likewise.
9099         * config/arm/arm.c: Likewise.
9100         * config/avr/avr.c: Likewise.
9101         * config/bfin/bfin.c: Likewise.
9102         * config/crx/crx.c: Likewise.
9103         * config/darwin.h: Likewise.
9104         * config/h8300/h8300.c: Likewise.
9105         * config/i386/cygming.h: Likewise.
9106         * config/i386/i386.c: Likewise.
9107         * config/ia64/ia64.c: Likewise.
9108         * config/m32c/m32c.c: Likewise.
9109         * config/m32r/m32r.c: Likewise.
9110         * config/m68hc11/m68hc11.c: Likewise.
9111         * config/m68k/m68k.c: Likewise.
9112         * config/mcore/mcore.c: Likewise.
9113         * config/mep/mep.c: Likewise.
9114         * config/microblaze/microblaze.c: Likewise.
9115         * config/mips/mips.c: Likewise.
9116         * config/rs6000/rs6000.c: Likewise.
9117         * config/rx/rx.c: Likewise.
9118         * config/sh/sh.c: Likewise.
9119         * config/sol2.h: Likewise.
9120         * config/sparc/sparc.c: Likewise.
9121         * config/spu/spu.c: Likewise.
9122         * config/stormy16/stormy16.c: Likewise.
9123         * config/v850/v850.c: Likewise.
9124
9125 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9126
9127         * simplify-rtx.c (simplify_binary_operation_1): Handle
9128         (xor (and A B) C) case when B and C are both constants.
9129
9130 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9131
9132         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9133
9134 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9135
9136         PR bootstrap/48168
9137         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9138
9139 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9140
9141         PR rtl-optimization/48156
9142         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9143         assume df and df_lr are not NULL.
9144
9145 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9146
9147         PR debug/48023
9148         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9149         between a call and its CALL_ARG_LOCATION note.
9150
9151 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9152
9153         PR debug/48178
9154         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9155         between a call and its corresponding CALL_ARG_LOCATION note.
9156
9157 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9158
9159         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9160         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9161         * haifa-sched.c (setup_ref_regs): Ditto.
9162         * caller-save.c (add_used_regs_1): Ditto.
9163         * dse.c (look_for_hardregs): Ditto.
9164         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9165         * sched-rgn.c (check_live_1): Ditto.
9166
9167 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9168
9169         * c-decl.c (diagnose_mismatched_decls): Give an error for
9170         redefining a typedef with variably modified type.
9171
9172 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9173
9174         * c-decl.c (grokfield): Don't allow typedefs for structures or
9175         unions with no tag by default.
9176         * doc/extend.texi (Unnamed Fields): Update.
9177
9178 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9179
9180         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9181         Rewrite using indirect functions.
9182         (lwp_slwpcb): Ditto.
9183         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9184         (avx_vinsertf128<mode>): Ditto.
9185
9186 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9187
9188         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9189         unspecs.
9190
9191 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9192
9193         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9194         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9195
9196 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9197
9198         PR rtl-optimization/48170
9199         * gcse.c (hoist_code): Remove bogus asserts.
9200
9201 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9202
9203         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9204         computation for prologue/epilogue.
9205
9206 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9207
9208         * Makefile.in (check-consistency): Remove.
9209
9210 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9211
9212         PR debug/48176
9213         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9214         arange_table_in_use is 0, but either text_section_used or
9215         cold_text_section_used is true.  Don't call it if
9216         !info_section_emitted.
9217
9218 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9219
9220         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9221         FUNCTION_VALUE_REGNO_P): Remove.
9222         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9223         Remove.
9224         * config/avr/avr.c (avr_ret_register): Make static inline.
9225         (avr_function_value_regno_p): New function.
9226         (avr_libcall_value): Make static. Add 'func' argument.
9227         (avr_function_value): Make static. Rename 'func' argument to
9228         'fn_decl_or_type', forward it to avr_libcall_value. Call
9229         avr_ret_register function instead of RET_REGISTER macro.
9230         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9231
9232 2011-03-18  Jason Merrill  <jason@redhat.com>
9233
9234         PR c++/23372
9235         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9236
9237 2011-03-18  Richard Guenther  <rguenther@suse.de>
9238
9239         * doc/install.texi (--enable-gold): Remove.
9240         (--with-plugin-ld): Document.
9241         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9242
9243 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9244
9245         PR middle-end/47790
9246         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9247         again after expansion changes.
9248
9249 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9250
9251         * combine.c (try_combine): Do simplification only call of
9252         subst() on i2 even when i1 is present. Update comments.
9253
9254 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9255
9256         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9257         and UNSPEC_PCREL_SYMOFF.
9258
9259 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9260
9261         * config/s390/s390.md: Use define_c_enum for the unspec constant
9262         definitions.
9263
9264 2011-03-18  Richard Henderson  <rth@redhat.com>
9265             Jakub Jelinek  <jakub@redhat.com>
9266
9267         PR bootstrap/48161
9268         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9269         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9270
9271 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9272
9273         PR middle-end/47725
9274         * combine.c (cant_combine_insn_p): Don't check zero/sign
9275         extended hard registers.
9276
9277 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9278
9279         PR middle-end/47725
9280         * combine.c (cant_combine_insn_p): Check zero/sign extended
9281         hard registers.
9282
9283 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9284
9285         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9286         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9287         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9288         Change return type to bool.
9289         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9290
9291 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9292
9293         PR debug/48163
9294         * var-tracking.c (prepare_call_arguments): If CALL target
9295         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9296         pc instead of looking it up using cselib_lookup and use
9297         Pmode for it if x has VOIDmode.
9298         * dwarf2out.c (gen_subprogram_die): If also both first and
9299         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9300
9301         PR debug/48163
9302         * function.c (assign_parms): For data.passed_pointer parms
9303         use MEM of data.entry_parm instead of data.entry_parm itself
9304         as DECL_INCOMING_RTL.
9305         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9306         also when passed and declared mode is the same, DECL_RTL
9307         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9308         a MEM too.
9309
9310 2011-03-16  Jeff Law  <law@redhat.com>
9311
9312         PR rtl-optimization/37273
9313         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9314         handle them like argument loads from stack slots.  Do not double
9315         count memory for memory constants and argument loads from stack slots.
9316
9317 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9318
9319         PR debug/48160
9320         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9321
9322 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9323
9324         PR target/48171
9325         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9326
9327 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9328
9329         PR bootstrap/48153
9330         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9331         if dwarf_strict.
9332         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9333         Clear call_arg_locations and call_arg_loc_last always.
9334
9335         PR middle-end/48152
9336         * var-tracking.c (prepare_call_arguments): If argument needs to be
9337         passed by reference, adjust argtype and mode.
9338
9339 2011-03-17  Richard Guenther  <rguenther@suse.de>
9340
9341         PR middle-end/48134
9342         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9343         a value make sure to fold the statement.
9344
9345 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9346
9347         PR target/43872
9348         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9349         return condition with !cfun->calls_alloca.
9350
9351 2011-03-17  Richard Guenther  <rguenther@suse.de>
9352
9353         PR bootstrap/48148
9354         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9355         origin for decls in other ltrans units.
9356         (input_varpool_node): Likewise.
9357
9358 2011-03-17  Richard Guenther  <rguenther@suse.de>
9359
9360         PR middle-end/48165
9361         * tree-object-size.c (compute_object_offset): Properly return
9362         the offset operand of MEM_REFs as sizetype.
9363
9364 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9365
9366         PR rtl-optimization/48141
9367         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9368         * dse.c: Include params.h.
9369         (active_local_stores_len): New variable.
9370         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9371         to NULL.
9372         (record_store, check_mem_read_rtx): Decrease it when removing
9373         from the chain.
9374         (scan_insn): Likewise.  Increase it when adding to chain, if it
9375         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9376         set active_local_stores to NULL before the addition.
9377         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9378
9379         PR rtl-optimization/48141
9380         * dse.c (record_store): If no positions are needed in an insn
9381         that cannot be deleted, at least unchain it from active_local_stores.
9382
9383 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9384
9385         PR debug/47510
9386         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9387         (lookup_type_die_strip_naming_typedef): ... here.
9388         (get_context_die): Use it.
9389         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9390         the anonymous struct named by the naming typedef.
9391
9392 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9393
9394         PR target/48154
9395         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9396         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9397
9398 2011-03-16  Jeff Law  <law@redhat.com>
9399
9400         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9401         check for operands of conditional.  Allow type to be a pointer.
9402
9403 2011-03-16  Richard Guenther  <rguenther@suse.de>
9404
9405         PR tree-optimization/48149
9406         * fold-const.c (fold_binary_loc): Fold
9407         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9408
9409 2011-03-16  Richard Guenther  <rguenther@suse.de>
9410
9411         PR tree-optimization/26134
9412         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9413         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9414         (non_rewritable_mem_ref_base): Handle complex type component
9415         accesses, constrain offsets for vector and complex extracts
9416         more properly.
9417
9418 2011-03-16  Richard Guenther  <rguenther@suse.de>
9419
9420         PR tree-optimization/48146
9421         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9422         operands avoiding the need for renaming.
9423
9424 2011-03-16  Richard Guenther  <rguenther@suse.de>
9425
9426         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9427         constant folding.  Move MEM_REF canonicalization first.
9428         Rely on fold_const_aggregate_ref for initializer folding.
9429         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9430
9431 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9432
9433         PR middle-end/48136
9434         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9435         arg0/arg1 or their arguments are always fold converted to matching
9436         types.
9437
9438         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9439         to nargs.
9440
9441 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9442
9443         PR lto/46944
9444         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9445         Handle in-tree gold.
9446         (ld_vers): Extract binutils version for gold.
9447         (gcc_cv_ld_hidden): Handle gold here.
9448         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9449         * configure: Regenerate.
9450         * config.in: Regenerate.
9451         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9452         -fuse-linker-plugin otherwise.
9453         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9454         (LINK_COMMAND_SPEC): Use it.
9455         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9456
9457 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9458
9459         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9460         * calls.c: Remove debug.h include.
9461         (emit_call_1): Don't call virtual_call_token debug hook.
9462         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9463         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9464         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9465         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9466         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9467         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9468         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9469         dwarf2out_virtual_call): Remove.
9470         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9471         copy_call_info and virtual_call hooks.
9472         (dwarf2out_init): Don't initialize vcall_insn_table,
9473         debug_dcall_section and debug_vcall_section.
9474         (prune_unused_types): Don't mark nodes from dcall_table.
9475         (dwarf2out_finish): Don't output dcall or vcall tables.
9476         * final.c (final_scan_insn): Don't call direct_call or
9477         virtual_call debug hooks.
9478         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9479         virtual_call_token, copy_call_info and virtual_call hooks.
9480         (debug_nothing_uid): Remove prototype.
9481         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9482         copy_call_info and virtual_call hooks.
9483         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9484         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9485         * debug.c (do_nothing_debug_hooks): Likewise.
9486         (debug_nothing_uid): Remove.
9487         * doc/invoke.texi (-fenable-icf-debug): Remove.
9488         * common.opt (-fenable-icf-debug): Likewise.
9489
9490         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9491         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9492         call's MEM.  Handle functions returning aggregate through a hidden
9493         first pointer.  For virtual calls add clobbered pc to call arguments
9494         chain.
9495         * dwarf2out.c (gen_subprogram_die): Emit
9496         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9497         can't be emitted.
9498
9499         PR debug/45882
9500         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9501         * rtl.h (ENTRY_VALUE_EXP): Define.
9502         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9503         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9504         * print-rtl.c (print_rtx): Likewise.
9505         * gengtype.c (adjust_field_rtx_def): Likewise.
9506         * var-tracking.c (vt_add_function_parameter): Adjust
9507         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9508         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9509         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9510         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9511         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9512
9513         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9514         Call var_location debug hook even on CALL_INSNs.
9515         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9516         * rtl.def (ENTRY_VALUE): New.
9517         * dwarf2out.c: Include cfglayout.h.
9518         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9519         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9520         (struct call_arg_loc_node): New type.
9521         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9522         tail_call_site_count): New variables.
9523         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9524         DW_TAG_GNU_call_site_parameter.
9525         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9526         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9527         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9528         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9529         and DW_AT_GNU_all_source_call_sites.
9530         (mem_loc_descriptor): Handle ENTRY_VALUE.
9531         (add_src_coords_attributes): Don't add enything if
9532         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9533         (dwarf2out_abstract_function): Save and clear call_arg_location,
9534         call_site_count and tail_call_site_count around dwarf2out_decl call.
9535         (gen_call_site_die): New function.
9536         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9537         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9538         (dwarf2out_function_decl): Clear call_arg_locations,
9539         call_arg_loc_last, set call_site_count and tail_call_site_count
9540         to -1 and free block_map.
9541         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9542         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9543         followed by any real instructions.
9544         (dwarf2out_begin_function): Set call_site_count and
9545         tail_call_site_count to 0.
9546         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9547         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9548         attempt to force a DIE for it and worst case remove the attribute.
9549         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9550         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9551         the decl itself.
9552         * var-tracking.c: Include tm_p.h.
9553         (vt_stack_adjustments): For calls call note_register_arguments.
9554         (argument_reg_set): New variable.
9555         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9556         ensure the VALUE is resolved.
9557         (call_arguments): New variable.
9558         (prepare_call_arguments): New function.
9559         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9560         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9561         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9562         always use the best expression.
9563         (vt_expand_loc): Add ignore_cur_loc argument.
9564         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9565         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9566         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9567         note for all calls.
9568         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9569         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9570         argument.  Don't call cselib_preserve_only_values and
9571         cselib_reset_table.
9572         (note_register_arguments): New function.
9573         (vt_initialize): Compute argument_reg_set.  Call
9574         vt_add_function_parameters before processing basic blocks instead of
9575         afterwards.  For calls call prepare_call_arguments before calling
9576         cselib_process_insn.
9577         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9578         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9579         (var-tracking.o): Depend on $(TM_P_H).
9580         * cfglayout.h (insn_scope): New prototype.
9581         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9582         * cfglayout.c (insn_scope): No longer static.
9583         * insn-notes.def (CALL_ARG_LOCATION): New.
9584         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9585         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9586         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9587         nothing for DECL_EXTERNAL BLOCK_VARS.
9588
9589 2011-03-16  Alan Modra  <amodra@gmail.com>
9590
9591         PR target/45844
9592         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9593         create invalid offset address for vsx splat insn.
9594         * config/rs6000/predicates.md (splat_input_operand): New.
9595         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9596
9597 2011-03-15  Xinliang David Li  <davidxl@google.com>
9598
9599         PR c/47837
9600         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9601         (normalize_preds): New function.
9602         (is_use_properly_guarded): Normalize def predicates.
9603
9604 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9605
9606         PR target/46788
9607         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9608         in the output template.
9609
9610 2011-03-15  Richard Guenther  <rguenther@suse.de>
9611
9612         PR middle-end/47650
9613         * tree-pretty-print.c (dump_function_declaration): Properly
9614         dump unprototyped and varargs function types.
9615
9616 2011-03-15  Richard Guenther  <rguenther@suse.de>
9617
9618         PR tree-optimization/13954
9619         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9620         and friends.
9621
9622 2011-03-15  Richard Guenther  <rguenther@suse.de>
9623
9624         PR tree-optimization/48037
9625         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9626         selects into BIT_FIELD_REFs.
9627         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9628         vector select.
9629
9630 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9631
9632         PR tree-optimization/48129
9633         * builtins.c (fold_builtin_snprintf): Convert to type of
9634         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9635         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9636
9637 2011-03-15  Richard Guenther  <rguenther@suse.de>
9638
9639         PR tree-optimization/41490
9640         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9641         value but with VUSE.
9642         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9643         return statements.
9644         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9645         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9646         * tree-tailcall.c (find_tail_calls): Ignore returns.
9647
9648 2011-03-15  Richard Guenther  <rguenther@suse.de>
9649
9650         PR middle-end/48031
9651         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9652         or variable-indexed array accesses when in gimple form.
9653
9654 2011-03-15  Richard Guenther  <rguenther@suse.de>
9655
9656         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9657
9658 2011-03-15  Alan Modra  <amodra@gmail.com>
9659
9660         PR target/48032
9661         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9662         presume symbol_refs without a symbol_ref_decl are suitably
9663         aligned, nor other trees we may see here.  Handle anchor symbols.
9664         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9665         Check cmodel=medium addresses.  Adjust all calls.
9666         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9667         creating cmodel=medium optimized access to locals.
9668         * config/rs6000/constraints.md (R): Pass QImode to
9669         legitimate_constant_pool_address_p.
9670         * config/rs6000/predicates.md (input_operand): Pass mode to
9671         legitimate_constant_pool_address_p.
9672         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9673         Update prototype.
9674
9675 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9676
9677         PR target/48053
9678         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9679         64-bit constants being loaded into registers other than GPRs such
9680         as loading 0 into a VSX register.
9681
9682 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9683
9684         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9685
9686 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9687
9688         PR middle-end/47917
9689         * builtins.c (fold_builtin_snprintf): New function.
9690         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9691         (fold_builtin_4): Likewise.
9692
9693         PR middle-end/38878
9694         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9695         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9696         and C - X == X also strip nops from +/-/p+ operand.
9697         When optimizing -X == C, fold C to arg0's type.
9698
9699         PR debug/47946
9700         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9701         emit it as add_AT_int instead of add_AT_unsigned.
9702
9703 2011-03-14  Tom Tromey  <tromey@redhat.com>
9704
9705         * unwind-dw2.c: Include sys/sdt.h if it exists.
9706         (_Unwind_DebugHook): Use STAP_PROBE2.
9707         * config.in, configure: Rebuild.
9708         * configure.ac: Check for sys/sdt.h.
9709
9710 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9711
9712         * config/i386/i386.md (ROUND_FLOOR): New constant.
9713         (ROUND_CEIL): Ditto.
9714         (ROUND_TRUNC): Ditto.
9715         (ROUND_MXCSR): Ditto.
9716         (ROUND_NO_EXC): Ditto.
9717         (rint<mode>2): Use new defines instead of numerical constants.
9718         (floor<mode>2): Ditto.
9719         (ceil<mode>2): Ditto.
9720         (btrunc<mode>2): Ditto.
9721         * config/i386/i386-builtin-types.def: Define ROUND function type
9722         aliases.
9723         * config/i386/i386.c (enum ix86_builtins): Add
9724         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9725         (struct builtin_description): Add
9726         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9727         (ix86_expand_sse_round): New static function.
9728         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9729         function types.
9730         (ix86_builtin_vectorized_function): Handle
9731         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9732
9733 2011-03-14  Tom Tromey  <tromey@redhat.com>
9734
9735         * c-parser.c (c_parser_asm_string_literal): Clear
9736         warn_overlength_strings.
9737
9738 2011-03-14  Tom Tromey  <tromey@redhat.com>
9739
9740         * c-parser.c (disable_extension_diagnostics): Save
9741         warn_overlength_strings.
9742         (restore_extension_diagnostics): Restore warn_overlength_strings.
9743
9744 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9745
9746         * BASE-VER: Change to 4.7.0.
9747
9748 2011-03-14  Richard Guenther  <rguenther@suse.de>
9749
9750         PR middle-end/48098
9751         * tree.c (build_vector_from_val): Adjust assert to requirements
9752         and reality.
9753
9754 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9755
9756         PR bootstrap/48102
9757         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9758
9759 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9760
9761         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9762         terms of target_flags_explicit. Adjust copyright year.
9763
9764         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9765         * config/rs6000/t-freebsd: New file. Add override for
9766         LIB2FUNCS_EXTRA.
9767
9768 2011-03-13  Chris Demetriou  <cgd@google.com>
9769
9770         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9771         (-fno-diagnostics-show-option): this, to reflect current default.
9772         (-Werror=): Update text about -fno-diagnostics-show-option.
9773
9774 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9775
9776         PR target/48053
9777         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9778         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9779         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9780         mode is not V2DImode or V2DFmode.
9781         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9782         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9783         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9784         registers to 0.
9785         (movdi_internal64): Likewise.
9786
9787 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9788
9789         PR tree-optimization/47127
9790         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9791         parameter.
9792         (set_cloog_options): Same.
9793         (scop_to_clast): Same.
9794         (print_clast_stmt): Do not call cloog_state_malloc and
9795         cloog_state_free.
9796         (print_generated_program): Same.
9797         (gloog): Same.
9798         * graphite-clast-to-gimple.h (cloog_state): Declared.
9799         (scop_to_clast): Adjust declaration.
9800         * graphite.c (cloog_state): Defined here.
9801         (graphite_initialize): Call cloog_state_malloc.
9802         (graphite_finalize): Call cloog_state_free.
9803
9804 2011-03-11  Jason Merrill  <jason@redhat.com>
9805
9806         * attribs.c (lookup_attribute_spec): Take const_tree.
9807         * tree.h: Adjust.
9808
9809 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9810
9811         * config/sparc/sparc.c (sparc_option_override): Use
9812         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9813
9814 2011-03-11  Richard Guenther  <rguenther@suse.de>
9815
9816         PR tree-optimization/48067
9817         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9818         multiplication result will be only used once on the target
9819         stmt.
9820
9821 2011-03-11  Richard Guenther  <rguenther@suse.de>
9822
9823         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9824
9825 2011-03-11  Richard Guenther  <rguenther@suse.de>
9826
9827         PR lto/48073
9828         * tree.c (find_decls_types_r): Do not walk types only reachable
9829         from IDENTIFIER_NODEs.
9830
9831 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9832
9833         PR middle-end/48044
9834         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9835         all vnode->force_output nodes as needed.
9836
9837 2011-03-11  Jason Merrill  <jason@redhat.com>
9838
9839         PR c++/48069
9840         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9841         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9842
9843 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9844
9845         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9846         cgraph_node.
9847
9848 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9849
9850         PR tree-optimization/48063
9851         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9852         inline functions called once if !tree_can_inline_p (node->callers).
9853
9854 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9855
9856         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9857         extra_objs.
9858         * config/score/score3.c: Delete.
9859         * config/score/score3.h: Delete.
9860         * config/score/mul-div.S: Delete.
9861         * config/score/sfp-machine.h: Add new file.
9862         * config/score/constraints.md: Add new file.
9863         * config/score/t-score-softfp: Add new file.
9864         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9865         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9866         (score7_extra_constraint): Delete.
9867         (score7_option_override): Remove unused code.
9868         * config/score/score.c: Remove score3 and score5 define and code.
9869         * config/score/score.h: Remove score3 and score5 define and code.
9870         * config/score/score.md: Remove score3 template and unusual insn.
9871         * config/score/score.opt: Remove score3 and score5 options.
9872
9873 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9874
9875         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9876         when _HPUX_SOURCE is defined.
9877         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9878
9879 2011-03-10  Jason Merrill  <jason@redhat.com>
9880
9881         PR c++/48029
9882         * stor-layout.c (layout_type): Don't set structural equality
9883         on arrays of incomplete type.
9884         * tree.c (type_hash_eq): Handle comparing them properly.
9885
9886 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9887
9888         PR debug/48043
9889         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9890         result mode matches original rtl mode.
9891
9892 2011-03-10  Nick Clifton  <nickc@redhat.com>
9893
9894         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9895         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9896
9897 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9898
9899         PR rtl-optimization/47866
9900         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9901         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9902         if target wasn't scalar.
9903         * function.c (assign_stack_temp_for_type): Assert that neither
9904         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9905         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9906         macro.
9907         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9908
9909 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9910
9911         * config/s390/s390-protos.h (s390_label_align): New prototype.
9912         * config/s390/s390.c (s390_label_align): New function.
9913         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9914
9915 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9916
9917         PR target/47755
9918         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9919         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9920         (output_vec_const_move): Ditto.
9921
9922 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9923
9924         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9925         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9926         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9927         Change 'rclass' argument and result type to reg_class_t.
9928         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9929
9930 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9931
9932         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9933         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9934         (TARGET_MEMORY_MOVE_COST): Define.
9935         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9936
9937 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9938
9939         PR debug/47881
9940         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9941         removed anything.
9942
9943         PR tree-optimization/48022
9944         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9945         for EQ/NE_EXPR.
9946
9947 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9948
9949         PR debug/47991
9950         * var-tracking.c (find_use_val): Return NULL for
9951         cui->sets && cui->store_p BLKmode MEMs.
9952
9953 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9954
9955         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9956         Remove.
9957         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9958         xstormy16_print_operand_address): Remove.
9959         * config/stormy16/stormy16.c (xstormy16_print_operand,
9960         xstormy16_print_operand_address): Make static.
9961         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9962
9963 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9964
9965         PR target/47862
9966         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9967         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9968         before definition.
9969
9970 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9971
9972         PR bootstrap/48000
9973         * cfgloopmanip.c (fix_bb_placements): Return immediately
9974         if FROM is BASE_LOOP's header.
9975
9976 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9977
9978         * gimplify.c (gimplify_function_tree): Fix building calls
9979         to __builtin_return_address.
9980
9981 2011-03-07  Alan Modra  <amodra@gmail.com>
9982
9983         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9984         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9985         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9986         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9987         return_mode args.
9988         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9989         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9990         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9991         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9992         * config/rs6000/rs6000.c
9993         (rs6000_elf_end_indicate_exec_stack): Rename to..
9994         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9995         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9996         (rs6000_file_start): ..here.
9997         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9998         file scope variables.
9999         (call_ABI_of_interest): New function.
10000         (init_cumulative_args): Set above vars when function return value
10001         is a float, vector, or small struct.
10002         (rs6000_function_arg_advance_1): Likewise for function args.
10003         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10004         references float args.
10005
10006 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10007
10008         * doc/cfg.texi: Remove "See" before @ref.
10009         * doc/invoke.texi: Likewise.
10010
10011 2011-03-05  Jason Merrill  <jason@redhat.com>
10012
10013         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10014
10015 2011-03-05  Anthony Green  <green@moxielogic.com>
10016
10017         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10018
10019 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10020
10021         PR rtl-optimization/47899
10022         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10023         to flow_loop_nested_p when moving the loop upward.
10024
10025 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10026
10027         PR target/47719
10028         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10029
10030 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10031
10032         PR tree-optimization/47967
10033         * ipa-cp.c (build_const_val): Return NULL instead of creating
10034         VIEW_CONVERT_EXPR for mismatching sizes.
10035         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10036         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10037         give up on versioning.
10038
10039 2011-03-05  Alan Modra  <amodra@gmail.com>
10040
10041         PR target/47986
10042         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10043         full cmodel medium/large lo_sum + high addresses.
10044
10045 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10046
10047         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10048         pool references in UNSPEC_LTREL_OFFSET.
10049
10050 2011-03-04  Jan Hubicka  <jh@suse.cz>
10051
10052         PR lto/47497
10053         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10054         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10055         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10056         Add node pointers.
10057         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10058         cgraph_add_thunk): Add node pointers.
10059         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10060         associated to right node.
10061         (input_node): Update use of cgraph_same_body_alias
10062         and cgraph_add_thunk.
10063
10064 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10065
10066         * config/i386/i386.opt (mprefer-avx128): New flag.
10067         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10068         modes when the flag -mprefer-avx128 is on.
10069
10070 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10071
10072         * dwarf2out.c (compare_loc_operands): Fix address handling.
10073
10074 2011-03-04  Alan Modra  <amodra@gmail.com>
10075
10076         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10077
10078 2011-03-04  Richard Guenther  <rguenther@suse.de>
10079
10080         PR middle-end/47968
10081         * expmed.c (extract_bit_field_1): Prefer vector modes that
10082         vec_extract patterns can handle.
10083
10084 2011-03-04  Richard Guenther  <rguenther@suse.de>
10085
10086         PR middle-end/47975
10087         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10088
10089 2011-03-04  Richard Henderson  <rth@redhat.com>
10090
10091         * explow.c (emit_stack_save): Remove 'after' parameter.
10092         (emit_stack_restore): Likewise.
10093         * expr.h: Update to match.
10094         * builtins.c, calls.c, stmt.c: Likewise.
10095         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10096         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10097         * function.c (expand_function_end): Insert the emit_stack_save
10098         sequence before parm_birth_insn instead of after.
10099
10100 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10101
10102         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10103         (ssse3_pmaddubsw128): Ditto.
10104         (ssse3_pmaddubsw): Ditto.
10105
10106 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10107
10108         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10109
10110 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10111
10112         PR c/47963
10113         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10114         on TYPE_SIZE_UNIT if it is a DECL.
10115
10116         PR debug/47283
10117         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10118         first operand is not is_gimple_mem_ref_addr, try to fold it.
10119         If the operand still isn't is_gimple_mem_ref_addr, clear
10120         MEM_EXPR on op0.
10121
10122 2011-03-03  Richard Guenther  <rguenther@suse.de>
10123
10124         PR middle-end/47283
10125         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10126         match comment.
10127         (refs_may_alias_p_1): For release branches return true if
10128         we are confused by our input.
10129
10130 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10131
10132         * config/s390/s390.c (s390_function_value): Rename to ...
10133         (s390_function_and_libcall_value): ... this.
10134         (s390_function_value): New function.
10135         (s390_libcall_value): New function.
10136         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10137         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10138         target macro definitions.
10139         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10140
10141 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10142
10143         * config/i386/freebsd64.h (CC1_SPEC): Define.
10144         * config/i386/linux64.h (CC1_SPEC): Define.
10145         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10146
10147 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10148
10149         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10150         Remove.
10151         * config/stormy16/stormy16.c: Include reload.h.
10152         (xstormy16_memory_move_cost): New function.
10153         (TARGET_MEMORY_MOVE_COST): Define.
10154
10155 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10156
10157         PR rtl-optimization/47925
10158         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10159         with side effects.  Remove the more-specific check for volatile asms.
10160
10161 2011-03-02  Alan Modra  <amodra@gmail.com>
10162
10163         PR target/47935
10164         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10165         toc relative addresses for valid offsets.
10166
10167 2011-03-01  Richard Guenther  <rguenther@suse.de>
10168
10169         PR tree-optimization/47890
10170         * tree-vect-loop.c (get_initial_def_for_induction): Set
10171         related stmt properly.
10172
10173 2011-03-01  Richard Guenther  <rguenther@suse.de>
10174
10175         PR lto/47924
10176         * lto-streamer.c (lto_record_common_node): Also register
10177         the canonical type.
10178
10179 2011-03-01  Richard Guenther  <rguenther@suse.de>
10180
10181         PR lto/46911
10182         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10183         Do not stream DECL_ABSTRACT_ORIGIN.
10184         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10185         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10186         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10187         Do not stream DECL_ABSTRACT_ORIGIN.
10188         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10189         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10190
10191 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10192
10193         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10194         FUNCTION_VALUE_REGNO_P): Remove.
10195         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10196         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10197         Add 'outgoing' argument.
10198         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10199         function.
10200         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10201         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10202
10203 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10204
10205         PR debug/28047
10206         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10207         (lookup_filename): Likewise.
10208         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10209
10210 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10211             Jakub Jelinek  <jakub@redhat.com>
10212
10213         PR middle-end/47893
10214         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10215         (assign_stack_local_1): Change last argument type to int.
10216         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10217         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10218         don't record padding space into frame_space_list nor use those areas.
10219         (assign_stack_local): Adjust caller.
10220         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10221         of assign_stack_local, pass 0 as last argument.
10222         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10223         callers.
10224
10225 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10226
10227         PR debug/47283
10228         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10229         Use target address_mode and pointer_mode hooks instead of hardcoded
10230         Pmode and ptr_mode.  Handle some simple cases of extending if
10231         POINTERS_EXTEND_UNSIGNED < 0.
10232         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10233         Call convert_debug_memory_address.
10234         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10235         convert_debug_memory_address.
10236
10237         PR middle-end/46790
10238         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10239         * configure: Regenerated.
10240         * config.in: Regenerated.
10241         * varasm.c (default_function_section): Return NULL
10242         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10243
10244 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10245
10246         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10247         the description to match the printed values.
10248
10249 2011-02-28  Richard Guenther  <rguenther@suse.de>
10250
10251         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10252         of the copied scope tree.
10253
10254 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10255
10256         * doc/extend.texi (Function Attributes): Avoid deeply (and
10257         wrongly) nested tables.
10258
10259 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10260
10261         PR middle-end/47903
10262         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10263         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10264         r isn't op0 nor op1.
10265
10266 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10267
10268         * config/avr/avr.md: Remove magic comment for emacs.
10269
10270 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10271
10272         PR target/45261
10273         * config/avr/avr.c (avr_option_override): Use error on bad options.
10274         (avr_help): New function.
10275         (TARGET_HELP): Define.
10276
10277 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10278
10279         PR target/42240
10280         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10281         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10282
10283 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10284
10285         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10286         (ARM Options): Ditto.
10287         (i386 and x86-64 Options): Ditto.
10288         (RX Options): Ditto.
10289         (SPARC Options): Ditto.
10290
10291 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10292
10293         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10294         FreeBSD 6 and later.  Generally use cpu generic.
10295
10296 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10297
10298         * doc/cpp.texi: Update copyright years.
10299
10300 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10301
10302         PR target/46898
10303         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10304
10305 2011-02-25  Jon Beniston  <jon@beniston.com>
10306
10307         PR target/46898
10308         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10309         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10310         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10311         (lm32_block_move_inline): Add type cast to remove warning.
10312         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10313         (gen_int_relational): Move declarations to start of function.
10314
10315 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10316
10317         PR tree-optimization/45470
10318         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10319         can throw internally only.
10320         * tree-vect-stmts.c (vectorizable_call): Likewise.
10321
10322 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10323
10324         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10325         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10326         * config/stormy16/stormy16-protos.h
10327         (xstormy16_preferred_reload_class): Remove.
10328         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10329         static. Change 'rclass' argument and return type to reg_class_t.
10330         (TARGET_PREFERRED_RELOAD_CLASS,
10331         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10332
10333 2011-02-24  Richard Guenther  <rguenther@suse.de>
10334
10335         * lto-streamer-in.c (input_bb): Do not find referenced vars
10336         in debug statements.
10337
10338 2011-02-23  Jason Merrill  <jason@redhat.com>
10339
10340         * common.opt (fabi-version): Document v5 and v6.
10341
10342 2011-02-23  Richard Guenther  <rguenther@suse.de>
10343
10344         PR tree-optimization/47849
10345         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10346
10347 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10348
10349         * opts-common.c (decode_cmdline_option): Print empty string
10350         argument as "" in decoded->orig_option_with_args_text.
10351         * gcc.c (execute): Print empty string argument as ""
10352         in the verbose output.
10353         (do_spec_1): Keep empty string argument.
10354
10355 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10356
10357         * config.gcc: Declare score-* and crx-* obsolete.
10358
10359 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10360
10361         PR rtl-optimization/47763
10362         * web.c (web_main): Ignore naked clobber when replacing register.
10363
10364 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10365
10366         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10367         Remove.
10368
10369 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10370
10371         PR doc/47848
10372         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10373
10374 2011-02-22  Mike Stump  <mikestump@comcast.net>
10375
10376         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10377         assembler.
10378         * configure: Regenerate.
10379
10380 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10381
10382         PR rtl-optimization/46002
10383         * ira-color.c (update_copy_costs): Change class intersection
10384         test to reg_class_contents[] test of 'hard_regno'.
10385
10386 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10387
10388         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10389         than Driver option.
10390         * config/hpux11.opt (mt): Likewise.
10391         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10392         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10393         * config/vax/elf.opt (mno-asm-pic): Likewise.
10394         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10395
10396 2011-02-21  Mike Stump  <mikestump@comcast.net>
10397
10398         PR target/47822
10399         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10400         tree so we can get save the type.
10401         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10402         for CFString instead of trying to use past the end of the builtins.
10403         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10404         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10405         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10406         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10407         Rename to darwin_builtin_cfstring.
10408         (darwin_init_cfstring_builtins): Return the built type.
10409
10410 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10411
10412         PR target/47840
10413         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10414         (_mm256_insert_epi64): Use _mm_insert_epi64.
10415
10416 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10417
10418         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10419         * config/stormy16/stormy16-protos.h
10420         (xstormy16_mode_dependent_address_p): Remove.
10421         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10422         Make static. Change return type to bool. Change argument type to
10423         const_rtx. Remove dead code.
10424         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10425
10426 2011-02-21  Richard Guenther  <rguenther@suse.de>
10427
10428         PR lto/47820
10429         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10430         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10431         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10432         TUs context.
10433         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10434         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10435
10436 2011-02-20  Richard Guenther  <rguenther@suse.de>
10437
10438         PR lto/47822
10439         * tree.c (free_lang_data_in_decl): Clean builtins from
10440         the TU decl BLOCK_VARS.
10441
10442 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10443
10444         PR debug/47620
10445         PR debug/47630
10446         * haifa-sched.c (fix_tick_ready): Skip tick computation
10447         for debug insns.
10448
10449 2011-02-19  Richard Guenther  <rguenther@suse.de>
10450
10451         PR lto/47647
10452         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10453         Remove lazy BLOCK_VARS streaming.
10454         (lto_input_ts_block_tree_pointers): Likewise.
10455         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10456
10457 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10458
10459         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10460
10461 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10462
10463         * config/i386/biarch32.h, config/i386/mach.h,
10464         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10465
10466 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10467
10468         PR target/47800
10469         * config/i386/i386.md (peephole2 for shift and plus): Use
10470         operands[1] original mode in the first insn.
10471
10472 2011-02-18  Mike Stump  <mikestump@comcast.net>
10473
10474         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10475
10476 2011-02-18  Jan Hubicka  <jh@suse.cz>
10477
10478         PR middle-end/47788
10479         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10480         to zero when the function is not inlinable at all.
10481
10482 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10483
10484         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10485         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10486         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10487         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10488         * config/pa/t-pa64: Likewise.
10489         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10490
10491 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10492
10493         PR driver/47787
10494         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10495
10496 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10497
10498         PR target/47792
10499         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10500
10501 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10502
10503         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10504         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10505         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10506         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10507         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10508         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10509         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10510         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10511         m32r_legitimate_address_p): New functions.
10512         * config/m32r/constraints.md (constraint "S"): Don't use
10513         STORE_PREINC_PREDEC_P.
10514         (constraint "U"): Don't use LOAD_POSTINC_P.
10515
10516 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10517
10518         PR rtl-optimization/46178
10519         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10520         compute ira_hard_regno_cover_class[].
10521
10522 2011-02-18  Richard Guenther  <rguenther@suse.de>
10523
10524         PR lto/47798
10525         * lto-streamer.h (lto_global_var_decls): Declare.
10526         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10527         statics for global var processing.
10528
10529 2011-02-18  Richard Guenther  <rguenther@suse.de>
10530
10531         PR tree-optimization/47737
10532         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10533         edge dominance check.
10534
10535 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10536
10537         PR debug/47780
10538         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10539         avoid invalid rtx sharing.
10540
10541 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10542
10543         * doc/cpp.texi (Obsolete Features): Add background on the
10544         origin of assertions.
10545
10546 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10547
10548         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10549         objc_abi == 2.
10550         * config/darwin.c (output_objc_section_asm_op): Added support for
10551         ABI v1 and v2.
10552         (is_objc_metadata): New.
10553         (darwin_objc2_section): New.
10554         (darwin_objc1_section): New.
10555         (machopic_select_section): Added support for ABI v1 and v2.
10556         (darwin_emit_objc_zeroed): New.
10557         (darwin_output_aligned_bss): Detect objc metadata and treat it
10558         appropriately.
10559         (darwin_asm_output_aligned_decl_common): Same.
10560         (darwin_asm_output_aligned_decl_local): Same.
10561         * config/darwin-sections.def: Updated for ABI v1 and v2.
10562         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10563         compiling Objective-C code for the NeXT runtime, default to using
10564         ABI version 0 for 32-bit, and version 2 for 64-bit.
10565
10566 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10567
10568         * common.opt (optimize_fast): New Variable.
10569         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10570         instead of local variable ofast.
10571
10572 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10573
10574         * doc/invoke.texi (fobjc-abi-version): Documented.
10575         (fobjc-nilcheck): Documented.
10576         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10577         version.
10578
10579 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10580
10581         PR driver/47390
10582         * common.opt (export-dynamic): New Driver option.
10583         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10584
10585 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10586
10587         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10588
10589 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10590             Jan Hubicka  <jh@suse.cz>
10591
10592         PR debug/47106
10593         PR debug/47402
10594         * cfgexpand.c (account_used_vars_for_block): Remove.
10595         (estimated_stack_frame_size): Use referenced vars.
10596         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10597         that were referenced in the original function.  Test src_fn
10598         rather than cfun.  Drop redundant get_var_ann.
10599         (setup_one_parameter): Drop redundant get_var_ann.
10600         (declare_return_variable): Likewise.
10601         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10602         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10603         * ipa-inline.c (compute_inline_parameters): Do not compute
10604         disregard_inline_limits here.
10605         (compute_inlinable_for_current, pass_inlinable): New.
10606         (pass_inline_parameters): Require PROP_referenced_vars.
10607         * cgraphunit.c (cgraph_process_new_functions): Don't run
10608         compute_inline_parameters explicitly unless function is in SSA form.
10609         (cgraph_analyze_function): Set .disregard_inline_limits.
10610         * tree-sra.c (convert_callers): Compute inliner parameters
10611         only for functions already in SSA form.
10612
10613 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10614
10615         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10616         -mlittle-endian-data.
10617
10618 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10619
10620         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10621         -mno-fpu, not -fpu and -no-fpu.
10622         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10623         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10624
10625 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10626
10627         PR target/43653
10628         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10629         input reload with PLUS RTX.
10630
10631 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10632
10633         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10634         of InverseVar(MDMX).
10635
10636 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10637
10638         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10639         --m4-340.
10640
10641 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10642
10643         * config/mn10300/mn10300.opt (mno-crt0): New.
10644
10645 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10646
10647         * config/m68k/uclinux.opt (static-libc): New Driver option.
10648
10649 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10650
10651         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10652
10653 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10654
10655         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10656         %{muser-extend-enabled}.
10657
10658 2011-02-16  Richard Guenther  <rguenther@suse.de>
10659
10660         PR tree-optimization/47738
10661         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10662         the TODO from tree_predictive_commoning.
10663
10664 2011-02-15  Jeff Law  <law@redhat.com>
10665
10666         Revert
10667         2011-01-25  Jeff Law  <law@redhat.com>
10668
10669         PR rtl-optimization/37273
10670         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10671         handle them like argument loads from stack slots.  Do not double
10672         count memory for memory constants and argument loads from stack slots.
10673
10674 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10675
10676         PR middle-end/47725
10677         * combine.c (cant_combine_insn_p): Revert the last change.
10678
10679 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10680
10681         PR target/47755
10682         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10683         mode for vector constants.  Remove code that checks for TImode.
10684
10685 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10686
10687         PR debug/47106
10688         PR debug/47402
10689         * cgraph.h (compute_inline_parameters): Return void.
10690         * ipa-inline.c (compute_inline_parameters): Adjust.
10691
10692 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10693
10694         PR debug/47106
10695         PR debug/47402
10696         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10697         rather than decl.
10698         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10699         * ipa-inline.c (compute_inline_parameters): Adjust.
10700
10701 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10702
10703         PR debug/47106
10704         PR debug/47402
10705         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10706         Adjust all users.  Pass FN to...
10707         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10708         fn argument.
10709         * ipa-struct-reorg.c: Adjust.
10710         * tree-dfa.c: Adjust.
10711         * tree-into-ssa.c: Adjust.
10712         * tree-sra.c: Adjust.
10713         * tree-ssa-alias.c: Adjust.
10714         * tree-ssa-live.c: Adjust.
10715         * tree-ssa.c: Adjust.
10716         * tree-ssanames.c: Adjust.
10717         * tree-tailcall.c: Adjust.
10718
10719 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10720
10721         PR debug/47106
10722         PR debug/47402
10723         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10724         Adjust all callers.
10725         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10726         * tree-flow-inline.h: Adjust.
10727         * gimple-pretty-print.c: Adjust.
10728         * tree-into-ssa.c: Adjust.
10729         * tree-ssa.c: Adjust.
10730         * cfgexpand.c: Adjust.
10731
10732 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10733
10734         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10735         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10736         (EXTRA_CONSTRAINT): Delete.
10737         * config/iq2000/constraints.md: New file.
10738         * config/iq2000/iq2000.md: Include it.
10739         (define_insn ""): Delete.
10740         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10741         unsupported constraint letters from patterns.
10742         (call_value, call_value_internal1): Likewise.
10743         (call_value_multiple_internal1): Likewise.
10744
10745 2011-02-15  Nick Clifton  <nickc@redhat.com>
10746
10747         * config/mn10300/mn10300.c: Include tm-constrs.h.
10748         (struct liw_data): New data structure describing an LIW candidate
10749         instruction.
10750         (extract_bundle): Use struct liw_data.  Allow small integer
10751         operands for some instructions.
10752         (check_liw_constraints): Use struct liw_data.  Remove swapped
10753         parameter.  Add comments describing the checks.  Fix bug when
10754         assigning the source of liw1 to the source of liw2.
10755         (liw_candidate): Delete.  Code moved into extract_bundle.
10756         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10757         before swapping.
10758         * config/mn10300/predicates.md (liw_operand): New predicate.
10759         Allows registers and small integer constants.
10760         * config/mn10300/constraints.md (O): New constraint.  Accetps
10761         integers in the range -8 to +7 inclusive.
10762         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10763         for moving a small integer into a register.  Give this alternative
10764         LIW attributes.
10765         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10766         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10767         using the J,K,L and M constraints,
10768         (liw): Remove SI mode on second operands to allow for HI and QI
10769         mode values.
10770         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10771         instruction.
10772
10773 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10774
10775         PR middle-end/47725
10776         * combine.c (cant_combine_insn_p): Check zero/sign extended
10777         hard registers.
10778
10779 2011-02-15  Richard Guenther  <rguenther@suse.de>
10780
10781         PR tree-optimization/47743
10782         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10783         for a non-type-compatible VN lookup bail out.
10784
10785 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10786
10787         * config/fr30/constraints.md: New file.
10788         * config/fr30/fr30.md: Include it.
10789         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10790         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10791         (EXTRA_CONSTRAINT): Delete.
10792
10793 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10794
10795         * config/frv/constraints.md: New file.
10796         * config/frv/predicates.md: Include it.
10797         * config/frv/frv.c (reg_class_from_letter): Delete.
10798         (frv_option_override): Don't initialize it.
10799         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10800         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10801         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10802         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10803         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10804         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10805         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10806         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10807         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10808         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10809         (REG_CLASS_FROM_CONSTRAINT): Delete.
10810
10811 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10812
10813         PR middle-end/47581
10814         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10815         if frame size is 0 in a leaf function.
10816
10817 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10818
10819         PR pch/14940
10820         * config/alpha/host-osf.c: New file.
10821         * config/alpha/x-osf: New file.
10822         * config.host (alpha*-dec-osf*): Use it.
10823
10824 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10825
10826         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10827         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10828         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10829         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10830         type to const_rtx.
10831         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10832
10833 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10834
10835         * config/stormy16/constraints.md: New file.
10836         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10837         Use satisfies_constraint_Q and satisfies_constraint_R.
10838         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10839         Delete.
10840         (xstormy16_legitiamte_address_p): Declare.
10841         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10842         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10843         (EXTRA_CONSTRAINT): Delete.
10844         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10845         Un-staticize.
10846         (xstormy16_extra_constraint_p): Delete.
10847
10848 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10849
10850         PR tree-optimization/46494
10851         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10852         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10853         (pass_rtl_loop_done): Add TODO_verify_flow.
10854         * fwprop.c (pass_rtl_fwprop): Likewise.
10855         * modulo-sched.c (pass_sms): Likewise.
10856         * tree-ssa-dom.c (pass_dominator): Likewise.
10857         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10858         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10859         (pass_tree_loop_done): Likewise.
10860         * tree-ssa-pre.c (execute_pre): Likewise.
10861         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10862         * tree-ssa-sink.c (pass_sink_code): Likewise.
10863         * tree-vrp.c (pass_vrp): Likewise.
10864
10865 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10866
10867         * config/v850/constraints.md: New file.
10868         * config/v850/v850.md: Include it.
10869         * config/v850/predicates.md (reg_or_0_operand): Use
10870         satisfies_constraint_G.
10871         (special_symbolref_operand): Use satisfies_constraint_K.
10872         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10873         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10874         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10875         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10876         (EXTRA_CONSTRAINT): Delete.
10877         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10878         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10879         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10880
10881 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10882
10883         PR target/47696
10884         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10885         description.
10886
10887 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10888
10889         * config/mcore/constraints.md: New file.
10890         * config/mcore/mcore.md: Include it.
10891         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10892         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10893         (REG_CLASS_FROM_LETTER): Delete.
10894         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10895         insn_const_int_ok_for_constraint.
10896         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10897         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10898         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10899         (EXTRA_CONSTRAINT): Delete.
10900
10901 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10902
10903         PR ada/41929
10904         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10905         (IS_SIGHANDLER): Define.
10906         (sparc64_is_sighandler): New function, split off from
10907         sparc64_fallback_frame_state.
10908         (sparc_is_sighandler): New function, split off from
10909         sparc_fallback_frame_state.
10910         (sparc64_fallback_frame_state): Merge with ...
10911         (sparc_fallback_frame_state): ... this into ...
10912         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10913         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10914         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10915         stack instead of hardcoded offsets.
10916
10917 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10918
10919         PR target/45808
10920         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10921
10922 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10923
10924         * configure: Regenerate.
10925
10926 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10927
10928         PR driver/45731
10929         * gcc.c (asm_options): Correct spec matching --target-help.
10930
10931 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10932
10933         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10934         to gimple call error.
10935
10936 2011-02-12  Mike Stump  <mikestump@comcast.net>
10937
10938         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10939         comments in backslash regions.
10940
10941 2011-02-12  Mike Stump  <mikestump@comcast.net>
10942             Jakub Jelinek  <jakub@redhat.com>
10943             Iain Sandoe  <iains@gcc.gnu.org>
10944
10945         PR target/47324
10946         * dwarf2out.c (output_cfa_loc): When required, apply the
10947         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10948         (output_loc_sequence): Likewise.
10949         (output_loc_operands_raw): Likewise.
10950         (output_loc_sequence_raw): Likewise.
10951         (output_cfa_loc): Likewise.
10952         (output_loc_list): Suppress register number adjustment when
10953         calling output_loc_sequence()
10954         (output_die): Likewise.
10955
10956 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10957
10958         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10959         Remove macros.
10960         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10961         xtensa_memory_move_cost): New functions.
10962         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10963
10964 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10965
10966         PR lto/47225
10967         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10968         in the current directory.
10969         * configure: Rebuilt.
10970
10971 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10972
10973         * config/darwin.c (darwin_override_options): Add a hunk missed
10974         from the commit of r168571.  Trim comment line lengths and
10975         correct indents of the preceding block.
10976
10977 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10978
10979         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10980         the switch.
10981
10982 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10983
10984         * common.opt (nostartfiles): New Driver option.
10985
10986 2011-02-11  Xinliang David Li  <davidxl@google.com>
10987
10988         PR tree-optimization/47707
10989         * tree-chrec.c (convert_affine_scev): Keep type precision.
10990
10991 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10992
10993         PR tree-optimization/47420
10994         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10995
10996 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10997
10998         PR rtl-optimization/47614
10999         * rtl.h (check_for_inc_dec): Declare.
11000         * dse.c (check_for_inc_dec): Externalize...
11001         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11002         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11003
11004 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11005
11006         PR driver/47678
11007         * gcc.c (main): Do not compile inputs if there were errors in
11008         option handling.
11009         * opts-common.c (read_cmdline_option): Check for wrong language
11010         after other error checks.
11011
11012 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11013
11014         * cgraph.c: Fix comment typos.
11015         * cgraph.h: Likewise.
11016         * cgraphunit.c: Likewise.
11017         * ipa-cp.c: Likewise.
11018         * ipa-inline.c: Likewise.
11019         * ipa-prop.c: Likewise.
11020         * ipa-pure-const.c: Likewise.
11021         * ipa-ref.c: Likewise.
11022         * ipa-reference.c: Likewise.
11023
11024 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11025
11026         PR debug/47684
11027         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11028
11029 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11030
11031         PR testsuite/47400
11032         * doc/sourcebuild.texi (Require Support): Document
11033         dg-require-ascii-locale.
11034
11035 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11036
11037         * doc/lto.texi (Write summary): Fix missing parentheses.
11038
11039 2011-02-10  DJ Delorie  <dj@redhat.com>
11040
11041         * config/m32c/m32c.c (m32c_option_override): Disable
11042         -fcombine-stack-adjustments until flag value tracking and compare
11043         optimization can be rewritten.
11044
11045 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11046
11047         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11048         PROCESSOR_POWER7.
11049         (PROCESSOR_DEFAULT64): Likewise.
11050
11051 2011-02-10  Richard Henderson  <rth@redhat.com>
11052
11053         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11054         change from 2011-02-03.
11055         * config/rx/rx.c (flags_from_code): Likewise.
11056         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11057         is valid, n/pz otherwise.
11058         (rx_select_cc_mode): Return CCmode if Y is not zero.
11059
11060 2011-02-10  Richard Guenther  <rguenther@suse.de>
11061
11062         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11063
11064 2011-02-10  Richard Guenther  <rguenther@suse.de>
11065
11066         PR tree-optimization/47677
11067         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11068
11069 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11070
11071         PR target/47665
11072         * combine.c (make_compound_operation): Only change shifts into
11073         multiplication for SCALAR_INT_MODE_P.
11074
11075 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11076
11077         PR testsuite/47622
11078         Revert
11079         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11080         PR debug/42631
11081         * web.c (entry_register): Don't clobber the number of the
11082         first uninitialized reference in used[].
11083
11084 2011-02-09  Richard Guenther  <rguenther@suse.de>
11085
11086         PR tree-optimization/47664
11087         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11088         all edges again.
11089
11090 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11091
11092         PR target/46481
11093         PR target/47032
11094         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11095         PROCESSOR_POWER7.
11096         (PROCESSOR_DEFAULT64): Same.
11097         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11098
11099 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11100
11101         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11102
11103 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11104
11105         PR middle-end/45505
11106         * tree-sra.c (struct access): New flags grp_scalar_read and
11107         grp_scalar_write.  Changed description of assignment read and write
11108         flags.
11109         (dump_access): Dump new flags, reorder all of them.
11110         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11111         to detect multiple scalar reads.
11112         (analyze_access_subtree): Use the new scalar read write flags instead
11113         of the old flags.  Adjusted comments.
11114
11115 2011-02-08  DJ Delorie  <dj@redhat.com>
11116
11117         PR target/47548
11118         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11119         patterns.
11120
11121 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * config/m68k/uclinux.opt: New.
11124         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11125
11126 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11127
11128         * config/cris/elf.opt (sim): New Driver option.
11129
11130 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11131
11132         * config/xtensa/elf.opt: New.
11133         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11134
11135 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11136
11137         * config/vax/elf.opt: New.
11138         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11139
11140 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11141
11142         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11143
11144 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11145
11146         * config/gnu-user.opt: New.
11147         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11148         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11149         *-*-uclinux*): Use gnu-user.opt.
11150
11151 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11152
11153         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11154         * config/i386/gnu.h (CPP_SPEC): Likewise.
11155
11156 2011-02-08  Ian Lance Taylor  <iant@google.com>
11157
11158         * common.opt (fcx-limited-range): Add SetByCombined flag.
11159         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11160         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11161         (fassociative-math, freciprocal-math): Likewise.
11162         (funsafe-math-optimizations): Likewise.
11163         * opth-gen.awk: Handle SetByCombined.
11164         * optc-gen.awk: Likewise.
11165         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11166         (set_unsafe_math_optimizations_flags): Likewise.
11167         * doc/options.texi (Option properties): Document SetByCombined.
11168
11169 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11170
11171         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11172         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11173         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11174         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11175         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11176
11177 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11178
11179         PR tree-optimization/46834
11180         PR tree-optimization/46994
11181         PR tree-optimization/46995
11182         * graphite-sese-to-poly.c (used_outside_reduction): New.
11183         (detect_commutative_reduction): Call used_outside_reduction.
11184         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11185         translate_scalar_reduction_to_array only when at least one
11186         loop-phi/close-phi tuple has been detected.
11187
11188 2011-02-08  Richard Guenther  <rguenther@suse.de>
11189
11190         PR middle-end/47639
11191         * tree-vect-generic.c (expand_vector_operations_1): Update
11192         stmts here ...
11193         (expand_vector_operations): ... not here.  Cleanup EH info
11194         and the CFG if required.
11195
11196 2011-02-08  Richard Guenther  <rguenther@suse.de>
11197
11198         PR tree-optimization/47641
11199         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11200         require type compatibility.
11201
11202 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11203
11204         * gimple-low.c (lower_function_body): Don't remove the location of
11205         the return statement here.
11206         (lower_gimple_return): Do it here instead but only if the return
11207         statement is actually used twice.
11208
11209 2011-02-08  Richard Guenther  <rguenther@suse.de>
11210
11211         PR tree-optimization/47632
11212         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11213         unused up_to_stmt parameter, return whether cfg-cleanup is
11214         necessary, remove EH info properly.
11215         (forward_propagate_into_gimple_cond): Adjust caller.
11216         (forward_propagate_into_cond): Likewise.
11217         (forward_propagate_comparison): Likewise.
11218         (tree_ssa_forward_propagate_single_use_vars): Make
11219         forward_propagate_comparison case similar to the two others.
11220
11221 2011-02-08  Nick Clifton  <nickc@redhat.com>
11222
11223         * config/mn10300/mn10300.opt (mliw): New command line option.
11224         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11225         (liw_bundling): New automaton.
11226         (liw): New attribute.
11227         (liw_op): New attribute.
11228         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11229         (movsi_internal): Add LIW attributes.
11230         (andsi3): Likewise.
11231         (iorsi3): Likewise.
11232         (xorsi3): Likewise.
11233         (addsi3): Separate register and immediate alternatives.
11234         Add LIW attributes.
11235         (subsi3): Likewise.
11236         (cmpsi): Likewise.
11237         (aslsi3): Likewise.
11238         (lshrsi3): Likewise.
11239         (ashrsi3): Likewise.
11240         (liw): New pattern.
11241         * config/mn10300/mn10300.c (liw_op_names): New
11242         (mn10300_print_operand): Handle 'W' operand descriptor.
11243         (extract_bundle): New function.
11244         (check_liw_constraints): New function.
11245         (liw_candidate): New function.
11246         (mn10300_bundle_liw): New function.
11247         (mn10300_reorg): New function.
11248         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11249         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11250         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11251         __LIW__ or __NO_LIW__.
11252         * doc/invoke.texi: Describe the -mliw command line option.
11253
11254 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11255
11256         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11257         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11258         pthread_mutex_unlock): Remove.
11259         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11260         * config/pa/t-pa64: Likewise.
11261         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11262         shared libc if not linking against libpthread.
11263         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11264
11265 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11266
11267         PR target/47558
11268         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11269         on 10.6 and later to ensure that we always use the unwinder from
11270         the system.  Only add -no_compact_unwind when tarteting darwin
11271         10.6 or later.
11272
11273 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11274
11275         PR target/46997
11276         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11277         (vec_interleave_lowv2sf): Ditto.
11278         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11279         (vec_extract_oddv2sf): Ditto.
11280
11281 2011-02-07  Mike Stump  <mikestump@comcast.net>
11282
11283         PR target/42333
11284         Add __ieee_divdc3 entry point.
11285         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11286         entry point.
11287         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11288         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11289         * config/darwin.c (darwin_rename_builtins): Add.
11290         * config/darwin-protos.h (darwin_rename_builtins): Add.
11291
11292 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11293
11294         PR target/47636
11295         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11296         for the condition.
11297
11298 2011-02-07  Mike Stump  <mikestump@comcast.net>
11299
11300         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11301
11302 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11303
11304         PR target/47534
11305         * config/avr/libgcc.S (exit): Move .endfunc
11306
11307 2011-02-07  Richard Guenther  <rguenther@suse.de>
11308
11309         PR tree-optimization/47615
11310         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11311         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11312         (run_scc_vn): Initialize it.
11313         (visit_reference_op_load): Use it.
11314         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11315
11316 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11317
11318         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11319         DImode trapping arithmetic libfuncs.
11320
11321 2011-02-07  Richard Guenther  <rguenther@suse.de>
11322
11323         PR tree-optimization/47621
11324         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11325         two duplicates ...
11326         (execute_update_addresses_taken): ... here.  Make it more
11327         conservative in what we accept.
11328
11329 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11330
11331         * config/sparc/freebsd.h (ASM_SPEC): Define.
11332         * config/sparc/vxworks.h (ASM_SPEC): Define.
11333
11334 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11335
11336         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11337
11338 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11339
11340         * doc/invoke.texi: Remove reference to compiler internals from
11341         user documentation.
11342
11343         * reg-notes.def: Remove REG_VALUE_PROFILE.
11344         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11345
11346 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11347
11348         PR middle-end/47610
11349         * varasm.c (default_section_type_flags): If decl is NULL,
11350         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11351
11352 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11353
11354         PR debug/42631
11355         * web.c (entry_register): Don't clobber the number of the
11356         first uninitialized reference in used[].
11357
11358 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11359
11360         PR tree-optimization/46194
11361         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11362         (build_classic_dist_vector_1): Do not represent classic distance
11363         vectors when the access functions are variating in different loops.
11364
11365 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11366
11367         * config/mips/iris6.opt: New.
11368         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11369
11370 2011-02-04  Richard Henderson  <rth@redhat.com>
11371             Steve Ellcey  <sje@cup.hp.com>
11372
11373         PR target/46997
11374         * config/ia64/predicates.md (mux1_brcst_element): New.
11375         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11376         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11377         (ia64_unpack_sign): New.
11378         (ia64_expand_unpack): Rewrite using new routines.
11379         (ia64_expand_widen_sum): Ditto.
11380         (ia64_expand_dot_prod_v8qi): Ditto.
11381         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11382         routines, add endian check.
11383         (pmpy2_even): Rename from pmpy2_r, add endian check.
11384         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11385         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11386         (vec_widen_smult_hi_v4hi): Ditto.
11387         (vec_widen_umult_lo_v4hi): Ditto.
11388         (vec_widen_umult_hi_v4hi): Ditto.
11389         (mulv2si3): Change endian checks.
11390         (sdot_prodv4hi): Rewrite with new calls.
11391         (udot_prodv4hi): New.
11392         (vec_pack_ssat_v4hi): Add endian check.
11393         (vec_pack_usat_v4hi): Ditto.
11394         (vec_pack_ssat_v2si): Ditto.
11395         (max1_even): Rename from max1_r, add endian check.
11396         (max1_odd): Rename from max1_l, add endian check.
11397         (*mux1_rev): Format change.
11398         (*mux1_mix): Ditto.
11399         (*mux1_shuf): Ditto.
11400         (*mux1_alt): Ditto.
11401         (*mux1_brcst_v8qi): Use new predicate.
11402         (vec_extract_evenv8qi): Remove endian check.
11403         (vec_extract_oddv8qi): Ditto.
11404         (vec_interleave_lowv4hi): Format change.
11405         (vec_interleave_highv4hi): Ditto.
11406         (mix2_even): Rename from mix2_r, add endian check.
11407         (mix2_odd): Rename from mux2_l, add endian check.
11408         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11409         (vec_extract_evenodd_helper): Format change.
11410         (vec_extract_evenv4hi): Remove endian check.
11411         (vec_extract_oddv4hi): Remove endian check.
11412         (vec_interleave_lowv2si): Format change.
11413         (vec_interleave_highv2si): Format change.
11414         (vec_initv2si): Remove endian check.
11415         (vecinit_v2si): Add endian check.
11416         (reduc_splus_v2sf): Add endian check.
11417         (reduc_smax_v2sf): Ditto.
11418         (reduc_smin_v2sf): Ditto.
11419         (vec_initv2sf): Remove endian check.
11420         (fpack): Add endian check.
11421         (fswap): Add endian check.
11422         (vec_interleave_highv2sf): Add endian check.
11423         (vec_interleave_lowv2sf): Add endian check.
11424         (fmix_lr): Add endian check.
11425         (vec_setv2sf): Format change.
11426         (*vec_extractv2sf_0_be): Use shift to extract operand.
11427         (*vec_extractv2sf_1_be): New.
11428         (vec_pack_trunc_v4hi): Add endian check.
11429         (vec_pack_trunc_v2si): Format change.
11430
11431 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11432
11433         PR inline-asm/23200
11434         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11435         do bb, locus and block comparison and disallow loads if it is not set.
11436         (stmt_is_replaceable_p): New function.
11437         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11438         callers.
11439         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11440         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11441         SSA_NAME_DEF_STMT.
11442         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11443
11444 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11445
11446         * config/rs6000/xilinx.opt: New.
11447         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11448
11449 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11452
11453 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11454
11455         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11456         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11457         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11458         secondary_reload_info, xtensa_secondary_reload): Remove.
11459         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11460         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11461         (xtensa_preferred_reload_class): Make static. Change return and
11462         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11463         Use CONST_DOUBLE_P predicate.
11464         (xtensa_preferred_output_reload_class): New function.
11465         (xtensa_secondary_reload): Make static.
11466
11467 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11468
11469         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11470         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11471         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11472
11473 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11474
11475         PR middle-end/31490
11476         * output.h (SECTION_RELRO): Define.
11477         (SECTION_MACH_DEP): Adjust.
11478         (get_variable_section): New prototype.
11479         * varpool.c (varpool_finalize_named_section_flags): New function.
11480         (varpool_assemble_pending_decls): Call it.
11481         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11482         * cgraphunit.c (cgraph_output_in_order): Call
11483         varpool_finalize_named_section_flags.
11484         * varasm.c (get_section): Allow section flags conflicts between
11485         relro and read-only sections if the section hasn't been declared yet.
11486         Set SECTION_OVERRIDE after diagnosing section type conflict.
11487         (get_variable_section): No longer static.
11488         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11489         readonly sections that need relocations.
11490         (decl_readonly_section_1): New function.
11491         (decl_readonly_section): Use it.
11492
11493         Revert:
11494         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11495                     Steve Ellcey  <sje@cup.hp.com>
11496
11497         PR middle-end/31490
11498         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11499         if section attribute used.
11500
11501 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11502
11503         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11504         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11505         (darwin_init_sections): Remove assertion.
11506
11507 2011-02-03  Nick Clifton  <nickc@redhat.com>
11508
11509         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11510         lt and ge.
11511         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11512         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11513         instead of "n" and "pz".
11514         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11515         CC_FLAG_S.
11516
11517 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11518
11519         PR target/47312
11520         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11521         fma, expand FMA_EXPR as fma{,f,l} call.
11522
11523         PR lto/47274
11524         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11525         copy them into a unsigned char variable and pass address of it to
11526         lto_output_data_stream.
11527
11528         PR target/47564
11529         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11530         around backend_init_target and lang_dependent_init_target calls.
11531         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11532         (verify_cgraph_node): Don't call set_cfun here.  Use
11533         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11534         Set error_found for incorrectly represented calls to thunks.
11535
11536 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11537
11538         PR debug/43092
11539         PR rtl-optimization/43494
11540         * rtl.h (for_each_inc_dec_fn): New type.
11541         (for_each_inc_dec): Declare.
11542         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11543         (for_each_inc_dec_find_inc_dec): New fn.
11544         (for_each_inc_dec_find_mem): New fn.
11545         (for_each_inc_dec): New fn.
11546         * dse.c (struct insn_size): Remove.
11547         (replace_inc_dec, replace_inc_dec_mem): Remove.
11548         (emit_inc_dec_insn_before): New fn.
11549         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11550         (canon_address): Pass mem modes to cselib_lookup.
11551         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11552         (cselib_lookup_from_insn): Likewise.
11553         (cselib_subst_to_values): Likewise.
11554         * cselib.c (find_slot_memmode): New var.
11555         (cselib_find_slot): New fn.  Use it instead of
11556         htab_find_slot_with_hash everywhere.
11557         (entry_and_rtx_equal_p): Use find_slot_memmode.
11558         (autoinc_split): New fn.
11559         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11560         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11561         Deal with autoinc.  Special-case recursion into MEMs.
11562         (cselib_hash_rtx): Likewise.
11563         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11564         address and MEM modes.
11565         (cselib_subst_to_values): Add memmode, pass it on.
11566         Deal with autoinc.
11567         (cselib_lookup): Add memmode argument, pass it on.
11568         (cselib_lookup_from_insn): Add memmode.
11569         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11570         (struct cselib_record_autoinc_data): New.
11571         (cselib_record_autoinc_cb): New fn.
11572         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11573         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11574         (cselib_process_insn): ... here.
11575         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11576         to cselib_lookup.
11577         (add_uses): Likewise, also to cselib_subst_to_values.
11578         (add_stores): Likewise.
11579         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11580         cselib_subst_to_values.
11581         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11582         * gcse.c (do_local_cprop): Adjusted.
11583         * postreload.c (reload_cse_simplify_set): Adjusted.
11584         (reload_cse_simplify_operands): Adjusted.
11585         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11586
11587 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11588
11589         PR tree-optimization/45122
11590         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11591         unsafe assumptions when there's more than one loop exit.
11592
11593 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11594
11595         PR target/47272
11596         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11597         Document using vector double with the load/store builtins, and
11598         that the load/store builtins always use Altivec instructions.
11599
11600         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11601         to use altivec memory instructions, even on VSX.
11602         (vector_altivec_store_<mode>): Ditto.
11603
11604         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11605         function.
11606
11607         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11608         V2DF, V2DI support to load/store overloaded builtins.
11609
11610         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11611         altivec load/store builtins for V2DF/V2DI types.
11612
11613         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11614         set avoid indexed addresses on power6 if -maltivec.
11615         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11616         vector_altivec_load/vector_altivec_store builtins.
11617         (altivec_expand_st_builtin): Ditto.
11618         (altivec_expand_builtin): Add VSX memory builtins.
11619         (rs6000_init_builtins): Add V2DI types to internal types.
11620         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11621         load/store builtins.
11622         (rs6000_address_for_altivec): Insure memory address is appropriate
11623         for Altivec.
11624
11625         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11626         vec_vsx_ld and vec_vsx_st.
11627         (vsx_store_<mode>): Ditto.
11628
11629         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11630         variables to hold long long types for VSX vector memory builtins.
11631         (RS6000_BTI_unsigned_long_long): Ditto.
11632         (long_long_integer_type_internal_node): Ditti.
11633         (long_long_unsigned_type_internal_node): Ditti.
11634
11635         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11636         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11637         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11638
11639         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11640         short cuts.
11641         (vec_vsx_st): Ditto.
11642
11643 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11644
11645         * config/pa/pa-hpux10.opt: New.
11646         * config/hpux11.opt (pthread): New Driver option.
11647         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11648         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11649
11650 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11651
11652         * config/ia64/vms.opt: New.
11653         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11654
11655 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11656
11657         PR target/47580
11658         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11659         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11660         generator functions.
11661         (vsx_floatuns<VSi><mode>2): Ditto.
11662         (vsx_fix_trunc<mode><VSi>2): Ditto.
11663         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11664
11665 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * config/i386/djgpp.opt (posix): New Driver option.
11668
11669 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11670
11671         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11672         Move to the unsupported targets list.
11673
11674 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11675
11676         PR rtl-optimization/47525
11677         * df-scan.c: Update copyright years.
11678         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11679         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11680
11681 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11682
11683         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11684         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11685         (ASM_OUTPUT_ASCII): Remove.
11686         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11687
11688 2011-02-02  Jeff Law  <law@redhat.com>
11689
11690         PR middle-end/47543
11691         * reload.c (find_reloads_address): Handle reg+d address where both
11692         components are invalid by reloading the entire address.
11693
11694 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11695             Richard Guenther  <rguenther@suse.de>
11696
11697         PR tree-optimization/40979
11698         PR bootstrap/47044
11699         * passes.c (init_optimization_passes): After LIM call copy_prop
11700         and DCE to clean up.
11701         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11702
11703 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11704
11705         PR tree-optimization/47576
11706         PR tree-optimization/47555
11707         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11708         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11709         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11710         * tree-scalar-evolution.c (follow_ssa_edge): Use
11711         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11712
11713 2011-02-02  Richard Guenther  <rguenther@suse.de>
11714
11715         PR tree-optimization/47566
11716         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11717
11718 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11719
11720         PR debug/47106
11721         PR debug/47402
11722         * tree-inline.c (declare_return_variable): Remove unused caller
11723         variable.
11724
11725         PR debug/47106
11726         PR debug/47402
11727         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11728         * cfgexpand.c (account_used_vars_for_block): Use them.
11729         * tree-nrv.c (tree_nrv): Likewise.
11730         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11731         (dump_scope_block): Likewise.
11732         (remove_unused_locals): Likewise.
11733
11734         PR debug/47106
11735         PR debug/47402
11736         * tree-inline.c (declare_return_variable): Add result decl to
11737         local decls only once.
11738         * gimple-low.c (record_vars_into): Mark newly-created variables
11739         as referenced.
11740
11741 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11742
11743         PR debug/47498
11744         PR debug/47501
11745         PR debug/45136
11746         PR debug/45130
11747         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11748         debug insns.
11749         (no_real_insns_p, schedule_block, set_priorities): Drop special
11750         treatment of boundary debug insns.
11751         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11752         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11753         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11754         (BOUNDARY_DEBUG_INSN_P): Likewise.
11755         (SCHEDULE_DEBUG_INSN_P): Likewise.
11756         * sched-rgn.c (init_ready_list): Drop special treatment of
11757         boundary debug insns.
11758         * final.c (rest_of_clean_state): Clear notes' BB.
11759
11760 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11761
11762         * config/openbsd.opt (assert=): New Driver option.
11763
11764 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11765
11766         * config/i386/nto.opt: New.
11767         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11768
11769 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11770
11771         * config/i386/netware.opt: New.
11772         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11773
11774 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11775
11776         * config/interix.opt (posix): New Driver option.
11777
11778 2011-02-01  DJ Delorie  <dj@redhat.com>
11779
11780         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11781
11782         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11783         class for A0/A1.
11784
11785 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11786
11787         PR tree-optimization/47561
11788         * toplev.c (process_options): Print the Graphite flags.  Add
11789         flag_loop_flatten to the list of options requiring Graphite.
11790
11791 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11792
11793         * config/i386/cygming.opt (posix): New Driver option.
11794
11795 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11796
11797         * config/arm/vxworks.opt: New.
11798         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11799
11800 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11801
11802         * config/alpha/elf.opt: New.
11803         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11804         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11805
11806 2011-02-01  Richard Guenther  <rguenther@suse.de>
11807
11808         PR tree-optimization/47559
11809         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11810         store-motion on references that can throw.
11811
11812 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11813
11814         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11815         * tree-pass.h (TDF_CSELIB): New macro.
11816         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11817         cselib_lookup): Check for it rather than for TDF_DETAILS.
11818
11819 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11820
11821         PR driver/47547
11822         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11823         is HOST_BIT_BUCKET.
11824
11825         * opts.c (finish_options): Don't add x_aux_base_name if it is
11826         HOST_BIT_BUCKET.
11827
11828 2011-02-01  Richard Guenther  <rguenther@suse.de>
11829
11830         PR tree-optimization/47555
11831         Revert
11832         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11833
11834         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11835
11836 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11837
11838         PR gcc/46692
11839         * config/lm32/t-lm32: Add multilib for all CPU options.
11840
11841 2011-02-01  Richard Guenther  <rguenther@suse.de>
11842
11843         PR tree-optimization/47541
11844         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11845         sure to have a field at offset zero.
11846
11847 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11848
11849         * config/arc/arc.opt (EB, EL): New Driver options.
11850
11851 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11852
11853         * config/alpha/osf5.opt: New.
11854         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11855
11856 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11857
11858         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11859
11860 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11861
11862         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11863         -floop-interchange.
11864         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11865         is an alias of -floop-interchange and that it requires the
11866         Graphite infrastructure.
11867         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11868         flag_loop_interchange based on the value of flag_tree_loop_linear.
11869
11870 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11871             Richard Guenther  <rguenther@suse.de>
11872
11873         PR tree-optimization/47538
11874         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11875         type instead of r1type, except for comparisons.  For right
11876         shifts and comparisons punt if there are mismatches in
11877         sizetype vs. non-sizetype types.
11878
11879 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11880
11881         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11882         avx_runtime.
11883
11884 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11885
11886         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11887         version number.
11888         * configure: Regenerate.
11889
11890 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11891
11892         * configure.ac (gcc_cv_ld_static_option): Define.
11893         (gcc_cv_ld_dynamic_option): Define.
11894         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11895         instead.
11896         (HAVE_LD_STATIC_DYNAMIC): Update message.
11897         (LD_STATIC_OPTION): Define.
11898         (LD_DYNAMIC_OPTION): Define.
11899         * configure: Regenerate.
11900         * config.in: Regenerate.
11901         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11902         HAVE_LD_STATIC_DYNAMIC]: Use them.
11903
11904 2011-01-31  Nick Clifton  <nickc@redhat.com>
11905
11906         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11907         registers inside interrupt handlers if the handler is not a leaf
11908         function.
11909
11910 2011-01-31  Nick Clifton  <nickc@redhat.com>
11911
11912         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11913         reg_renumber returning an INVALID_REGNUM.
11914
11915 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11916
11917         PR libgcj/44341
11918         * doc/install.texi: Document host options discarded when cross
11919         configuring target libraries.
11920
11921 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11922
11923         Reverted:
11924         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11925         PR debug/45136
11926         PR debug/45130
11927         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11928         debug insns.
11929         (no_real_insns_p, schedule_block, set_priorities): Drop special
11930         treatment of boundary debug insns.
11931         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11932         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11933         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11934         (BOUNDARY_DEBUG_INSN_P): Likewise.
11935         (SCHEDULE_DEBUG_INSN_P): Likewise.
11936         * sched-rgn.c (init_ready_list): Drop special treatment of
11937         boundary debug insns.
11938         * final.c (rest_of_clean-state): Clear notes' BB.
11939
11940 2011-01-31  Alan Modra  <amodra@gmail.com>
11941
11942         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11943         toc relative expressions as we do in print_operand_address.
11944
11945 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11946
11947         * doc/extend.texi: Follow spelling conventions.
11948         * doc/invoke.texi: Fix a typo.
11949
11950 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11951
11952         * config/hpux11.opt: New.
11953         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11954         ia64*-*-hpux*): Use hpux11.opt.
11955
11956 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11957
11958         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11959         to tmake_file.
11960
11961 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11962
11963         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11964         support sites.
11965
11966 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11967
11968         * doc/install.texi (Binaries): Remove outdated reference for
11969         Motorola 68HC11/68HC12 downloads.
11970
11971 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11972
11973         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11974         Drepper's paper.
11975
11976 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11977
11978         PR bootstrap/47147
11979         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11980         used by NetBSD.
11981
11982 2011-01-28  Ahmad Sharif  <asharif@google.com>
11983
11984         * value-prof.c (check_counter): Corrected error message.
11985
11986 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11987
11988         * config/arm/arm.c (arm_legitimize_reload_address): New.
11989         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11990         arm_legitimize_reload_address.
11991         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11992
11993 2011-01-28  Ian Lance Taylor  <iant@google.com>
11994
11995         * godump.c (go_define): Ignore macros whose definitions include
11996         two adjacent operands.
11997
11998 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11999
12000         PR target/42894
12001         * varasm.c (force_const_mem): Store copy of x in desc->constant
12002         instead of x itself.
12003         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12004         itself into REG_EQUAL note.
12005
12006 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12007
12008         * config/freebsd.opt (posix, rdynamic): New Driver options.
12009
12010 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12011
12012         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12013         -Bstatic/-Bdynamic.
12014         * configure: Regenerate.
12015
12016 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12019         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12020
12021 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12022
12023         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12024         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12025         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12026         (s390_preferred_reload_class): Make static. Change return and
12027         'rclass' argument type to reg_class_t.
12028
12029 2011-01-27  Jan Hubicka  <jh@suse.cz>
12030
12031         PR middle-end/46949
12032         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12033         (process_function_and_variable_attributes): Check defined weakrefs.
12034
12035 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12036
12037         PR tree-optimization/47228
12038         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12039         build_ref_for_offset.
12040
12041 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12042
12043         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12044
12045 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12046
12047         PR rtl-optimization/46856
12048         * postreload.c (reload_combine_recognize_const_pattern): Do not
12049         separate cc0 setter and user on cc0 targets.
12050
12051 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12052
12053         PR c/43082
12054         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12055         passed a VOID_TYPE expression, immediately emit an error and
12056         return error_mark_node.
12057
12058 2011-01-26  Jeff Law  <law@redhat.com>
12059
12060         PR rtl-optimization/47464
12061         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12062         rather than may_trap_p as needed.
12063
12064 2011-01-26  DJ Delorie  <dj@redhat.com>
12065
12066         PR rtl-optimization/46878
12067         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12068         setter/user dependency as well.
12069
12070 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12071
12072         PR rtl-optimization/44469
12073         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12074         after removing trivially dead basic blocks.
12075
12076 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12077
12078         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12079         * config/frv/frv.h (LINK_SPEC): Likewise.
12080         * config/i386/netware.h (LINK_SPEC): Likewise.
12081         * config/m68k/linux.h (ASM_SPEC): Likewise.
12082         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12083         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12084         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12085         * config/sparc/linux.h (ASM_SPEC): Likewise.
12086         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12087         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12088
12089 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12090
12091         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12092         * config/frv/frv.h (ASM_SPEC): Likewise.
12093         * config/m68k/linux.h (ASM_SPEC): Likewise.
12094         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12095         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12096         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12097         * config/sparc/linux.h (ASM_SPEC): Likewise.
12098         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12099         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12100
12101 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12102
12103         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12104         * config/frv/frv.h (LINK_SPEC): Likewise.
12105         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12106
12107 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12108
12109         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12110         * config/frv/frv.h (ASM_SPEC): Likewise.
12111         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12112         * config/m68k/linux.h (ASM_SPEC): Likewise.
12113         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12114         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12115         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12116         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12117         * config/sparc/linux.h (ASM_SPEC): Likewise.
12118         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12119         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12120         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12121
12122 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12123
12124         PR target/46997
12125         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12126         (*mux2): Ditto.
12127         (vec_extract_evenodd_help): Ditto.
12128         (vec_extract_evenv4hi): Ditto.
12129         (vec_extract_oddv4hi): Ditto.
12130         (vec_interleave_lowv2si): Ditto.
12131         (vec_interleave_highv2si): Ditto.
12132         (vec_extract_evenv2si): Ditto.
12133         (vec_extract_oddv2si: Ditto.
12134         (vec_pack_trunc_v2si): Ditto.
12135
12136 2011-01-22  Jan Hubicka  <jh@suse.cz>
12137
12138         PR target/47237
12139         * cgraph.h (cgraph_local_info): New field can_change_signature.
12140         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12141         signature can change.
12142         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12143         can change.
12144         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12145         (cgraph_function_versioning): We can not change signature of functions
12146         that don't allow that.
12147         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12148         (lto_input_node): Likewise.
12149         * ipa-inline.c (compute_inline_parameters): Compute
12150         local.can_change_signature.
12151         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12152         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12153         functions that can not change signature.
12154         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12155         init_cumulative_args): Do not use local calling conventions
12156         for functions that can not change signature.
12157
12158 2011-01-22  Jan Hubicka  <jh@suse.cz>
12159
12160         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12161
12162 2011-01-26  Richard Guenther  <rguenther@suse.de>
12163
12164         PR tree-optimization/47190
12165         * cgraphunit.c (process_common_attributes): New function.
12166         (process_function_and_variable_attributes): Use it.
12167
12168 2011-01-26  Richard Guenther  <rguenther@suse.de>
12169
12170         PR lto/47423
12171         * cgraphbuild.c (record_eh_tables): Record reference to personality
12172         function.
12173
12174 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12175
12176         PR debug/45454
12177         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12178         non-debug insns from moving up.
12179
12180 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12181
12182         PR target/40125
12183         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12184         t-dlldir{,-x} fragment for build and add it to tmake_file.
12185         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12186         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12187         * config/i386/t-dlldir: New file.
12188         (SHLIB_DLLDIR): Define.
12189         * config/i386/t-dlldir-x: New file.
12190         (SHLIB_DLLDIR): Define.
12191         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12192         (SHLIB_INSTALL): Use it.
12193
12194 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12195
12196         PR target/47246
12197         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12198         lower bound of the allowed Thumb-2 coprocessor load/store
12199         index range to -256. Add explaining comment.
12200
12201 2011-01-25  Ian Lance Taylor  <iant@google.com>
12202
12203         * godump.c (go_define): Improve lexing of macro expansion to only
12204         accept expressions which match Go spec.
12205
12206 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12207
12208         PR c++/43601
12209         * tree.c (handle_dll_attribute): Handle it.
12210         * doc/extend.texi (@item dllexport): Mention it.
12211         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12212
12213 2011-01-25  Ian Lance Taylor  <iant@google.com>
12214
12215         PR tree-optimization/26854
12216         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12217         (decl_jump_unsafe): Move higher in file, with no other change.
12218         (bind): Set has_jump_unsafe_decl if appropriate.
12219         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12220         (check_earlier_gotos): Likewise.
12221         (c_check_switch_jump_warnings): Likewise.
12222
12223 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12224
12225         * doc/invoke.texi (Warning Options): Add missing hyphen.
12226         (-fprofile-dir): Minor grammatical fixes.
12227         (-fbranch-probabilities): Likewise.
12228
12229 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12230
12231         PR debug/45136
12232         PR debug/45130
12233         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12234         debug insns.
12235         (no_real_insns_p, schedule_block, set_priorities): Drop special
12236         treatment of boundary debug insns.
12237         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12238         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12239         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12240         (BOUNDARY_DEBUG_INSN_P): Likewise.
12241         (SCHEDULE_DEBUG_INSN_P): Likewise.
12242         * sched-rgn.c (init_ready_list): Drop special treatment of
12243         boundary debug insns.
12244         * final.c (rest_of_clean-state): Clear notes' BB.
12245
12246 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12247
12248         * Makefile.in (LAMBDA_H): Removed.
12249         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12250         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12251         lambda-trans.o, and tree-loop-linear.o.
12252         (lto-symtab.o): Remove dependence on LAMBDA_H.
12253         (tree-loop-linear.o): Remove rule.
12254         (lambda-mat.o): Same.
12255         (lambda-trans.o): Same.
12256         (lambda-code.o): Same.
12257         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12258         (tree-vect-slp.o): Same.
12259         * hwint.h (gcd): Moved here.
12260         (least_common_multiple): Same.
12261         * lambda-code.c: Removed.
12262         * lambda-mat.c: Removed.
12263         * lambda-trans.c: Removed.
12264         * lambda.h: Removed.
12265         * tree-loop-linear.c: Removed.
12266         * lto-symtab.c: Do not include lambda.h.
12267         * omega.c (gcd): Removed.
12268         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12269         * tree-data-ref.c (print_lambda_vector): Moved here.
12270         (lambda_vector_copy): Same.
12271         (lambda_matrix_copy): Same.
12272         (lambda_matrix_id): Same.
12273         (lambda_vector_first_nz): Same.
12274         (lambda_matrix_row_add): Same.
12275         (lambda_matrix_row_exchange): Same.
12276         (lambda_vector_mult_const): Same.
12277         (lambda_vector_negate): Same.
12278         (lambda_matrix_row_negate): Same.
12279         (lambda_vector_equal): Same.
12280         (lambda_matrix_right_hermite): Same.
12281         * tree-data-ref.h: Do not include lambda.h.
12282         (lambda_vector): Moved here.
12283         (lambda_matrix): Same.
12284         (dependence_level): Same.
12285         (lambda_transform_legal_p): Removed declaration.
12286         (lambda_collect_parameters): Same.
12287         (lambda_compute_access_matrices): Same.
12288         (lambda_vector_gcd): Same.
12289         (lambda_vector_new): Same.
12290         (lambda_vector_clear): Same.
12291         (lambda_vector_lexico_pos): Same.
12292         (lambda_vector_zerop): Same.
12293         (lambda_matrix_new): Same.
12294         * tree-flow.h (least_common_multiple): Removed declaration.
12295         * tree-parloops.c (lambda_trans_matrix): Moved here.
12296         (LTM_MATRIX): Same.
12297         (LTM_ROWSIZE): Same.
12298         (LTM_COLSIZE): Same.
12299         (LTM_DENOMINATOR): Same.
12300         (lambda_trans_matrix_new): Same.
12301         (lambda_matrix_vector_mult): Same.
12302         (lambda_transform_legal_p): Same.
12303         * tree-pass.h (pass_linear_transform): Removed declaration.
12304         * tree-ssa-loop.c (tree_linear_transform): Removed.
12305         (gate_tree_linear_transform): Removed.
12306         (pass_linear_transform): Removed.
12307         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12308         flag_loop_interchange.
12309
12310 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12311
12312         PR tree-optimization/47265
12313         PR tree-optimization/47443
12314         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12315         if name still has some uses.
12316
12317 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12318
12319         PR tree-optimization/47382
12320         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12321         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12322
12323 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12324
12325         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12326         sjlj_except_unwind_info.
12327
12328 2011-01-25  Richard Guenther  <rguenther@suse.de>
12329
12330         PR tree-optimization/47426
12331         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12332         visible functions results escape.
12333
12334 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12335
12336         PR target/45701
12337         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12338         (arm_get_frame_offsets): Use it.
12339
12340 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12341             Jakub Jelinek  <jakub@redhat.com>
12342
12343         PR tree-optimization/47271
12344         * tree-if-conv.c (bb_postdominates_preds): New.
12345         (if_convertible_bb_p): Call bb_postdominates_preds.
12346         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12347         (predicate_scalar_phi): Call bb_postdominates_preds.
12348
12349 2011-01-25  Nick Clifton  <nickc@redhat.com>
12350
12351         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12352         * config/rx/rx.c (rx_function_value): Likewise.
12353         (rx_promote_function_mode): Likewise.
12354         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12355         in order to make it legitimate.
12356         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12357         make sure that the first operand is the same as the result register.
12358         (addsi3_unspec): Delete.
12359         (subdi3): Do not accept immediate operands.
12360         (subdi3_internal): Likewise.
12361
12362 2011-01-25  Jeff Law  <law@redhat.com>
12363
12364         PR rtl-optimization/37273
12365         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12366         handle them like argument loads from stack slots.  Do not double
12367         count memory for memory constants and argument loads from stack slots.
12368
12369 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12370
12371         PR tree-optimization/47427
12372         PR tree-optimization/47428
12373         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12374         coalesce if the new root var would be TREE_READONLY.
12375
12376 2011-01-25  Richard Guenther  <rguenther@suse.de>
12377
12378         PR middle-end/47414
12379         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12380         correct type for TBAA.
12381
12382 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12383
12384         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12385         (close_phi_written_to_memory): Call for_each_index with
12386         dr_indices_valid_in_loop.
12387
12388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12389
12390         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12391         when it is initialized.
12392
12393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12394
12395         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12396         call to graphite_find_data_references_in_stmt.
12397         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12398         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12399         call to graphite_find_data_references_in_stmt.
12400         (analyze_drs_in_stmts): Same.
12401         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12402         in which the scalar analysis of indices is performed.
12403         (create_data_ref): Same.  Update call to dr_analyze_indices.
12404         (find_data_references_in_stmt): Update call to create_data_ref.
12405         (graphite_find_data_references_in_stmt): Same.
12406         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12407         declaration.
12408         (create_data_ref): Same.
12409         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12410         call to create_data_ref.
12411
12412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12413
12414         * graphite-sese-to-poly.c (build_poly_scop): Move
12415         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12416
12417 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12418
12419         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12420         VAR_DECL, PARM_DECL, and RESULT_DECL.
12421
12422 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12423
12424         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12425         in a reduction PBB.
12426         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12427         that have already been marked as PBB_IS_REDUCTION.
12428
12429 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12430
12431         * graphite-scop-detection.c (same_close_phi_node): New.
12432         (remove_duplicate_close_phi): New.
12433         (make_close_phi_nodes_unique): New.
12434         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12435
12436 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12437
12438         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12439         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12440         of both data references to be the same.
12441
12442 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12443
12444         * graphite-dependences.c (build_lexicographical_constraint): Remove
12445         the gdim parameter.
12446         (build_lexicographical_constraint): Adjust call to
12447         ppl_powerset_is_empty.
12448         (dependence_polyhedron): Same.
12449         (graphite_legal_transform_dr): Same.
12450         (graphite_carried_dependence_level_k): Same.
12451         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12452         parameter.
12453         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12454
12455 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12456
12457         * graphite-sese-to-poly.c
12458         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12459         (close_phi_written_to_memory): New.
12460         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12461         and unshare_expr.
12462
12463 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12464
12465         * doc/install.texi: Update the expected version number of PPL to 0.11.
12466         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12467         #if PPL_VERSION_MINOR < 11.
12468
12469 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12470
12471         * graphite-dependences.c: Include graphite-cloog-util.h.
12472         (new_poly_ddr): Inlined into dependence_polyhedron.
12473         (free_poly_ddr): Moved close by new_poly_ddr.
12474         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12475         Early return NULL when ppl_powerset_is_empty returns true.
12476         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12477         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12478         (graphite_legal_transform_dr): Call new_poly_ddr.
12479         (graphite_carried_dependence_level_k): Same.
12480         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12481         (dot_transformed_deps_stmt_1): Removed.
12482         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12483         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12484         (dot_deps_1): Call dot_deps_2.
12485         * Makefile.in (graphite-dependences.o): Add missing dependence on
12486         graphite-cloog-util.h.
12487
12488 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12489
12490         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12491         (build_lexicographical_constraint): Same.
12492         (dependence_polyhedron_1): Same.
12493         (graphite_legal_transform_dr): Same.
12494         (graphite_carried_dependence_level_k): Same.
12495         * graphite-ppl.c (ppl_powerset_is_empty): New.
12496         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12497         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12498
12499 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12500
12501         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12502         the "a followed by b" relation and document it.
12503
12504 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12505
12506         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12507         iteration when the bag of constraints is empty.
12508
12509 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12510
12511         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12512
12513 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12514
12515         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12516         nest and two loop depths as parameters.
12517         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12518         lst_perfect_nestify.
12519
12520 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12521
12522         * graphite-dependences.c (print_pddr): Call
12523         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12524
12525 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12526
12527         * graphite-ppl.c (debug_gmp_value): New.
12528         * graphite-ppl.h (debug_gmp_value): Declared.
12529
12530 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12531
12532         * doc/install.texi: Document availability of cloog-0.16.
12533
12534 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12535
12536         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12537         invalid postdominance info.
12538
12539 2011-01-24  Jan Hubicka  <jh@suse.cz>
12540
12541         PR c/21659
12542         * doc/extend.texi (weak pragma): Drop claim that it must
12543         appear before definition.
12544         * varasm.c (merge_weak, declare_weak): Only sanity check
12545         that DECL is not output at a time it is declared weak.
12546
12547 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12548
12549         * machmode.def: Fixed comments.
12550
12551 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12552
12553         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12554
12555 2011-01-24  Paul Koning  <ni1d@arrl.net>
12556
12557         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12558         WORDS_BIG_ENDIAN.
12559
12560 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12561
12562         PR target/46519
12563         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12564         (block_info): Add scanned and prev.
12565         (move_or_delete_vzeroupper_2): Return if the basic block
12566         has been scanned and the upper 128bit state is unchanged
12567         from the last scan.
12568         (move_or_delete_vzeroupper_1): Return true if the exit
12569         state is changed.
12570         (move_or_delete_vzeroupper): Visit basic blocks using the
12571         work-list based algorithm based on vt_find_locations in
12572         var-tracking.c.
12573
12574         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12575
12576 2011-01-24  Nick Clifton  <nickc@redhat.com>
12577
12578         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12579         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12580         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12581         then define __v850e1__.
12582         * doc/invoke.texi: Document -mv850es.
12583
12584 2011-01-24  Richard Henderson  <rth@redhat.com>
12585
12586         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12587         compound unordered comparisons.
12588         * config/rx/rx.c (rx_split_fp_compare): Remove.
12589         * config/rx/rx-protos.h: Update.
12590         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12591         (cbranchsf4): Don't call rx_split_fp_compare.
12592         (*cbranchsf4): Use rx_split_cbranch.
12593         (*cmpsf): Don't accept "i" constraint.
12594         (*conditional_branch): Only valid after reload.
12595         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12596
12597 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12598
12599         PR target/47385
12600         * config/rs6000/altivec.md (vector constant splitters): Add
12601         support for creating vector single precision constants if -mvsx is
12602         used and we would create the constant using Altivec primitives.
12603
12604 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12605             Richard Sandiford  <rdsandiford@googlemail.com>
12606
12607         PR rtl-optimization/47166
12608         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12609         mechanism for PRE_MODIFY and POST_MODIFY.
12610         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12611         reloadreg.
12612
12613 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12614
12615         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12616
12617 2011-01-22  Jan Hubicka  <jh@suse.cz>
12618
12619         PR lto/47333
12620         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12621
12622 2011-01-22  Jan Hubicka  <jh@suse.cz>
12623
12624         PR tree-optimization/43884
12625         PR lto/44334
12626         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12627         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12628
12629 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12630
12631         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12632         * config/s390/s390.c (s390_register_move_cost,
12633         s390_memory_move_cost): New.
12634         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12635
12636 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12637
12638         PR middle-end/47401
12639         * except.c (sjlj_assign_call_site_values): Move setting the
12640         crtl->uses_eh_lsda flag to ...
12641         (sjlj_mark_call_sites): ... here.
12642         (sjlj_emit_function_enter): Support NULL dispatch label.
12643         (sjlj_build_landing_pads): In a function with no landing pads
12644         that still has must-not-throw regions, generate code to register
12645         a personality function with empty LSDA.
12646
12647 2011-01-21  Richard Henderson  <rth@redhat.com>
12648
12649         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12650
12651         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12652
12653         * compare-elim.c: New file.
12654         * Makefile.in (OBJS-common): Add it.
12655         (compare-elim.o): New.
12656         * common.opt (fcompare-elim): New.
12657         * opts.c (default_options_table): Add OPT_fcompare_elim.
12658         * tree-pass.h (pass_compare_elim_after_reload): New.
12659         * passes.c (init_optimization_passes): Add it.
12660         * recog.h: Protect against re-inclusion.
12661         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12662         * doc/invoke.texi (-fcompare-elim): Document it.
12663         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12664         * doc/tm.texi: Rebuild.
12665
12666 2011-01-22  Nick Clifton  <nickc@redhat.com>
12667
12668         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12669         rx_split_fp_compare.
12670
12671 2011-01-22  Nick Clifton  <nickc@redhat.com>
12672
12673         * config/rx/rx.md (UNSPEC_CONST): New.
12674         (deallocate_and_return): Wrap the amount popped off the stack in
12675         an UNSPEC_CONST in order to stop it being rejected by
12676         -mmax-constant-size.
12677         (pop_and_return): Add a "(return)" rtx.
12678         (call): Drop the immediate operand.
12679         (call_internal): Likewise.
12680         (call_value): Likewise.
12681         (call_value_internal): Likewise.
12682         (sibcall_internal): Likewise.
12683         (sibcall_value_internal): Likewise.
12684         (sibcall): Likewise.  Generate an explicit call using
12685         sibcall_internal.
12686         (sibcall_value): Likewise.
12687         (mov<>): FAIL if a constant operand is not legitimate.
12688         (addsi3_unpsec): New pattern.
12689
12690         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12691         (ok_for_max_constant): New function.
12692         (gen_safe_add): New function.
12693         (rx_expand_prologue): Use gen_safe_add.
12694         (rx_expand_epilogue): Likewise.
12695         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12696         UNSPEC CONSTs.
12697
12698 2011-01-21  Jeff Law  <law@redhat.com>
12699
12700         PR tree-optimization/47053
12701         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12702         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12703         statements are deleted.
12704         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12705         is nonempty, then purge dead edges and cleanup the CFG.
12706
12707 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12708
12709         PR debug/47402
12710         Temporarily revert:
12711         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12712         PR debug/47106
12713         * tree-dfa.c (create_var_ann): Mark variable as used.
12714
12715 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12716
12717         PR middle-end/45566
12718         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12719         notes from other section in hot/cold partitioning even if
12720         last_action is -3.  Increment call_site_base.
12721
12722         PR rtl-optimization/47366
12723         * fwprop.c (forward_propagate_into): Return bool.  If
12724         any changes are made, -fnon-call-exceptions is used and
12725         REG_EH_REGION note is present, call purge_dead_edges
12726         and return true if it purged anything.
12727         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12728         any EH edges were purged.
12729
12730 2011-01-21  Jeff Law  <law@redhat.com>
12731
12732         PR rtl-optimization/41619
12733         * caller-save.c (setup_save_areas): Break out code to determine
12734         which hard regs are live across calls by examining the reload chains
12735         so that it is always used.
12736         Eliminate code which checked REG_N_CALLS_CROSSED.
12737
12738 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12739
12740         PR tree-optimization/47355
12741         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12742         NOP has non-debug uses beyond PHIs in new_bb.
12743
12744 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12745
12746         PR debug/47106
12747         * cfgexpand.c (account_used_vars_for_block): Only account vars
12748         that are annotated as used.
12749         (estimated_stack_frame_size): Don't set TREE_USED.
12750         * tree-dfa.c (create_var_ann): Mark variable as used.
12751
12752 2011-01-21  Richard Guenther  <rguenther@suse.de>
12753
12754         PR middle-end/47395
12755         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12756
12757 2011-01-21  Richard Guenther  <rguenther@suse.de>
12758
12759         PR tree-optimization/47365
12760         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12761         (vn_reference_lookup_pieces): Adjust.
12762         (vn_reference_lookup): Likewise.
12763         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12764         (vn_reference_lookup_3): Only look through kills if in
12765         VN_WALKREWRITE mode.
12766         (vn_reference_lookup_pieces): Adjust.
12767         (vn_reference_lookup): Likewise.
12768         (visit_reference_op_load): Likewise.
12769         (visit_reference_op_store): Likewise.
12770         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12771         (compute_avail): Likewise.
12772         (eliminate): Likewise.
12773
12774 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12775
12776         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12777         DECL_IGNORED_P non-reg vars if they are used.
12778
12779         PR tree-optimization/47391
12780         * varpool.c (const_value_known_p): Return false if
12781         decl is volatile.
12782
12783 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12784
12785         PR bootstrap/47215
12786         * config/i386/i386.c (ix86_local_alignment): Handle
12787         case for va_list_type_node is nil.
12788         (ix86_canonical_va_list_type): Likewise.
12789
12790 2011-01-21  Alan Modra  <amodra@gmail.com>
12791
12792         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12793         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12794
12795 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12796
12797         * config/arm/arm.md (define_attr type): Rename f_load
12798         and f_store to f_fpa_load and f_fpa_store. Update.
12799         (write_conflict): Deal with rename fallout.
12800         (*push_fp_multi): Likewise.
12801         * config/arm/fpa.md (f_load): Use f_fpa_load.
12802         (f_store): Use f_fpa_store.
12803         (*movsf_fpa): Likewise.
12804         (*movdf_fpa): Likewise.
12805         (*movxf_fpa): Likewise.
12806         (*thumb2_movsf_fpa): Likewise.
12807         (*thumb2_movdf_fpa): Likewise.
12808         (*thumb2_movxf_fpa): Likewise.
12809         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12810         f_loadd and f_stored.
12811         (*thumb2_movdi_vfp): Likewise.
12812         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12813         (*thumb2_movsi_vfp): Likewise.
12814         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12815         Use f_loads instead of f_load.
12816         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12817
12818 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12819
12820         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12821         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12822         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12823         (xtensa_mode_dependent_address_p): New function.
12824         (constantpool_address_p): Make static. Change return type to bool.
12825         Change argument type to const_rtx. Use CONST_INT_P predicate.
12826
12827 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12828
12829         PR debug/46583
12830         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12831
12832 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12833
12834         PR debug/47283
12835         * cfgexpand.c (expand_debug_expr): Instead of generating
12836         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12837         etc. handling.
12838
12839 2011-01-20  Richard Guenther  <rguenther@suse.de>
12840
12841         PR middle-end/47370
12842         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12843         the pointer operand of MEM_REFs.
12844
12845 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12846
12847         PR tree-optimization/46130
12848         * ipa-split.c (consider_split): If return_bb contains non-virtual
12849         PHIs other than for retval or if split_function would not adjust it,
12850         refuse to split.
12851
12852 2011-01-20  Richard Guenther  <rguenther@suse.de>
12853
12854         PR tree-optimization/47167
12855         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12856         Revert previous change, only avoid enumeral type changes.
12857
12858 2011-01-19  Mike Stump  <mikestump@comcast.net>
12859
12860         * doc/tm.texi.in (BRANCH_COST): Englishify.
12861         * doc/tm.texi (BRANCH_COST): Likewise.
12862
12863 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12864
12865         PR c++/47291
12866         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12867         (gen_scheduled_generic_parms_dies): New functions.
12868         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12869         generation for the end of CU compilation.
12870         (dwarf2out_finish): Generate template parameters DIEs here.
12871
12872 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12873
12874         PR debug/46240
12875         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12876         debug bind stmt on merge edges.
12877
12878 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12879
12880         PR debug/47079
12881         PR debug/46724
12882         * function.c (instantiate_expr): Instantiate incoming rtl of
12883         implicit arguments, and recurse on VALUE_EXPRs.
12884         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12885         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12886
12887 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12888
12889         * c-parser.c (c_parser_for_statement): Initialize
12890         collection_expression.
12891
12892 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12893
12894         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12895
12896 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12897
12898         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12899         (LINK_SHLIB_SPEC): Don't use %(link_path).
12900         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12901
12902 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12903
12904         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12905         (NO_SHARED_LIB_SUPPORT): Remove.
12906         (LINK_SHLIB_SPEC): Remove one conditional definition.
12907
12908 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12911         %{call_shared}.
12912         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12913         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12914         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12915         %{call_shared} and conditionals on these options not being passed.
12916         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12917         %{call_shared}.
12918
12919 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12920
12921         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12922         simplify.
12923
12924         * ipa-split.c: Spelling fixes.
12925
12926 2011-01-19  Richard Henderson  <rth@redhat.com>
12927
12928         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12929         (*mulsi3): Likewise.
12930
12931         * longlong.h [__mn10300__] (count_leading_zeros): New.
12932         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12933         [__mn10300__] (add_ssaaaa, subddmmss): New.
12934         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12935         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12936
12937 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12938
12939         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12940
12941 2011-01-19  Richard Henderson  <rth@redhat.com>
12942
12943         * config/mn10300/mn10300.md (addsi3_flags): New.
12944         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12945         (subsi3_flags, subc_internal, subdi3): New.
12946         (subdi3_internal, *subdi3_degenerate): New.
12947         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12948
12949         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12950         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12951         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12952         * config/mn10300/mn10300-protos.h: Update.
12953         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12954         (return_ret): Likewise.  Rename from return_internal_regs.
12955         (return_internal): Remove.
12956
12957         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12958         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12959         (mn10300_legitimate_constant_p): Likewise.
12960         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12961         (mn10300_frame_size): New.
12962         (mn10300_expand_prologue): Use it.
12963         (mn10300_expand_epilogue): Likewise.
12964         (mn10300_initial_offset): Likewise.
12965         * config/mn10300/mn10300-protos.h: Update.
12966         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12967         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12968         (prologue, epilogue, return_internal): Tidy output code.
12969         (mn10300_store_multiple_operation, return): Likewise.
12970         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12971         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12972         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12973         (load_pic, am33_load_pic): New.
12974         (mn10300_load_pic0, mn10300_load_pic1): New.
12975
12976         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12977         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12978         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12979         (cc_flags_for_mode, cc_flags_for_code): New.
12980         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12981         overflow flag is not valid.  Validate that the flags we need
12982         for the comparison are valid.
12983         (mn10300_output_cmp): Remove.
12984         (mn10300_output_add): New.
12985         (mn10300_select_cc_mode): Use cc_flags_for_code.
12986         (mn10300_split_cbranch): New.
12987         (mn10300_match_ccmode): New.
12988         (mn10300_split_and_operand_count): New.
12989         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12990         to the function.
12991         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12992         (addsi3): ... here.  Use mn10300_output_add.
12993         (*addsi3_flags): New.
12994         (*am33_subsi3, *mn10300_subsi3): Merge...
12995         (subsi3): ... here.  Use attribute isa.
12996         (*subsi3_flags): New.
12997         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12998         when possible.
12999         (*am33_andsi3, *mn10300_andsi3): Merge...
13000         (andsi3): ... here.
13001         (*andsi3_flags): New.
13002         (andsi3 splitters): New.
13003         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13004         (iorsi3): ... here.
13005         (*iorsi3_flags): New.
13006         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13007         (xorsi3): ... here.
13008         (*xorsi3_flags): New.
13009         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13010         (one_cmplsi2): ... here.
13011         (*one_cmplsi2_flags): New.
13012         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13013         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13014         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13015         use matching constraints to eliminate a self-comparison.
13016         (*integer_conditional_branch): Rename from integer_conditional_branch.
13017         Use int_mode_flags to match CC_REG.
13018         (*cbranchsi4_btst, *btstsi): New.
13019         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13020         mn10300_split_cbranch.
13021         (*am33_cmpsf): Rename from am33_cmpsf.
13022         (*float_conditional_branch): Rename from float_conditional_branch.
13023         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13024         (zero_extendqisi2): ... here.
13025         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13026         (zero_extendhisi2): ... here.
13027         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13028         (extendqisi2): ... here.
13029         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13030         (extendhisi2): ... here.
13031         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13032         (ashlsi3): ... here.
13033         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13034         (lshrsi3): ... here.
13035         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13036         (ashrsi3): ... here.
13037         (consecutive add peephole): Remove.
13038         * config/mn10300/predicates.md (label_ref_operand): New.
13039         (int_mode_flags): New.
13040         (CCZN_comparison_operator): New.
13041
13042         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13043         (throughput_42_latency_43): New reservation.
13044         (mulsidi3, umulsidi3): New expanders.
13045         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13046         the MDR register to allocation; separately allocate the low and
13047         high parts of the DImode result.
13048         (umulsidi3_internal): Similarly.
13049         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13050         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13051         (udivsi3, umodsi3): Remove.
13052         (udivmodsi4, divmodsi4): New expanders.
13053         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13054         (*divmodsi4): Simiarly.
13055         (ext_internal): New.
13056
13057         * config/mn10300/constraints.md ("z"): New constraint.
13058         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13059         (FIXED_REGISTERS): Don't fix MDR.
13060         (CALL_USED_REGSITERS): Reformat nicely.
13061         (REG_ALLOC_ORDER): Add MDR.
13062         (enum regclass): Add MDR_REGS.
13063         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13064         (IRA_COVER_CLASSES): Add MDR_REGS.
13065         (REGNO_REG_CLASS): Handle MDR_REG.
13066         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13067         (mn10300_register_move_cost): Likewise.
13068         * config/mn10300/mn10300.md (MDR_REG): New.
13069         (*movsi_internal): Handle moves to/from MDR_REGS.
13070
13071         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13072         POST_MODIFY.
13073         (mn10300_secondary_reload): Tidy combination reload classes.
13074         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13075         addresses for AM33.  Allow symbolic offsets for reg+imm.
13076         (mn10300_regno_in_class_p): New.
13077         (mn10300_legitimize_reload_address): New.
13078         * config/mn10300/mn10300.h (enum reg_class): Remove
13079         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13080         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13081         SP_OR_GENERAL_REGS.
13082         (REG_CLASS_NAMES): Update to match.
13083         (REG_CLASS_CONTENTS): Likewise.
13084         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13085         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13086         (REGNO_IN_RANGE_P): Remove.
13087         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13088         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13089         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13090         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13091         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13092         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13093         (REGNO_GENERAL_P): New.
13094         (HAVE_POST_MODIFY_DISP): New.
13095         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13096         (LEGITIMIZE_RELOAD_ADDRESS): New.
13097         * config/mn10300/mn10300-protos.h: Update.
13098
13099         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13100         DATA_REGS for AM33 stack-pointer destination.
13101         (mn10300_preferred_output_reload_class): Likewise.
13102         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13103         into a form appropriate for ...
13104         (TARGET_SECONDARY_RELOAD): New.
13105         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13106         * config/mn10300/mn10300-protos.h: Update.
13107         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13108         reload_insi; use the "A" constraint for the scratch; handle AM33
13109         moves of sp to non-address registers.
13110
13111         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13112         (*movqi_internal): ... here.
13113         (*am33_movhi, *mn10300_movhi): Merge into...
13114         (*movhi_internal): ... here.
13115         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13116         as the source/destination of moves from/to SP.
13117         (movsf): Only allow for AM33-2.
13118         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13119         any integer constant constraint.  Only allow for AM33-2.  Tidy
13120         all of the alternative outputs.
13121         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13122         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13123         for MN103.
13124         (udivsi3, umodsi3): New patterns for MN103 only.
13125
13126 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13127
13128         * doc/tm.texi.in: Spell out that a lack of register class unions
13129         can lead to ICEs.
13130         * doc/tm.texi: Regenerate.
13131
13132 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13133
13134         PR rtl-optimization/47337
13135         * dce.c (check_argument_store): New function.
13136         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13137
13138         PR tree-optimization/47290
13139         * tree-eh.c (infinite_empty_loop_p): New function.
13140         (cleanup_empty_eh): Use it.
13141
13142 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13143
13144         PR target/46997
13145         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13146         (a64_expand_widen_sum): Ditto.
13147         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13148         (vec_extract_evenodd_help): Ditto.
13149         (vec_extract_evenv4hi): Ditto.
13150         (vec_extract_oddv4hi): Ditto.
13151         (vec_extract_evenv2si): Ditto.
13152         (vec_extract_oddv2si): Ditto.
13153         (vec_extract_evenv2sf): Ditto.
13154         (vec_extract_oddv2sf): Ditto.
13155         (vec_pack_trunc_v4hi: Ditto.
13156         (vec_pack_trunc_v2si): Ditto.
13157         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13158         (vec_interleave_highv8qi): Ditto.
13159         (mix1_r): Ditto.
13160         (vec_extract_oddv8qi): Ditto.
13161         (vec_interleave_lowv4hi): Ditto.
13162         (vec_interleave_highv4hi): Ditto.
13163         (vec_interleave_lowv2si): Ditto.
13164         (vec_interleave_highv2si): Ditto.
13165
13166 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13167
13168         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13169         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13170         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13171         (pa_c_mode_for_suffix): New.
13172         (TARGET_EXPAND_BUILTIN): Define.
13173         (TARGET_C_MODE_FOR_SUFFIX): Define.
13174         (pa_builtins): Define.
13175         (pa_init_builtins): Register __float128 type and init new support
13176         builtins.
13177         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13178         * config/pa/quadlib.c (_U_Qfcopysign): New.
13179
13180 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13181
13182         PR middle-end/46894
13183         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13184         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13185         are defined.
13186
13187 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13188
13189         PR tree-optimization/47179
13190         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13191         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13192
13193 2011-01-18  Richard Guenther  <rguenther@suse.de>
13194
13195         PR rtl-optimization/47216
13196         * emit-rtl.c: Include tree-flow.h.
13197         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13198         of replicating it with different semantics.
13199         * Makefile.in (emit-rtl.o): Adjust.
13200
13201 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13202
13203         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13204         (cortex_a9_dp): Handle neon types correctly.
13205
13206 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13207
13208         PR rtl-optimization/47299
13209         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13210         subtarget.  Use normal multiplication if both operands are constants.
13211         * expmed.c (expand_widening_mult): Don't try to optimize constant
13212         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13213         before using it.
13214
13215 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13216
13217         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13218         spacing after 'e.g.', typos, comma, hyphenation.
13219
13220 2011-01-17  Richard Henderson  <rth@redhat.com>
13221
13222         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13223         (rx_restricted_mem_operand): New.
13224         (rx_shift_operand): Use register_operand.
13225         (rx_source_operand, rx_compare_operand): Likewise.
13226         * config/rx/rx.md (addsi3_flags): New expander.
13227         (adddi3): Rewrite as expander.
13228         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13229         (subsi3_flags): New expander.
13230         (subdi3): Rewrite as expander.
13231         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13232
13233         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13234         (rx_init_builtins): Remove sat builtin.
13235         (rx_expand_builtin): Likewise.
13236         * config/rx/rx.md (ssaddsi3): New.
13237         (*sat): Rename from sat.  Represent the CC_REG input.
13238
13239         * config/rx/predicates.md (rshift_operator): New.
13240         * config/rx/rx.c (rx_expand_insv): Remove.
13241         * config/rx/rx-protos.h: Update.
13242         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13243         operand to the canonical position.
13244         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13245         (*bitclr, *bitclr_in_memory): Similarly.
13246         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13247         (insv): Retain the zero_extract in the expansion.
13248
13249         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13250         (bswaphi2, bitinvert, revw): Likewise.
13251
13252         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13253         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13254         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13255         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13256         (bitset, bitset_in_memory): Likewise.
13257         (bitinvert, bitinvert_in_memory): Likewise.
13258         (bitclr, bitclr_in_memory): Likewise.
13259         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13260         (rx_strend, rx_cmpstrn): Likewise.
13261         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13262         (bitop peep2 patterns): Remove.
13263
13264         * config/rx/rx.c (rx_match_ccmode): New.
13265         * config/rx/rx-protos.h: Update.
13266         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13267         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13268         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13269         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13270         (fix_truncsfsi2, floatsisf2): Likewise.
13271         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13272         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13273         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13274         (*subsi3_flags, *xorsi3_flags): New.
13275
13276         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13277
13278         * config/rx/rx.c (rx_print_operand): Remove workaround for
13279         unsplit comparison operations.
13280
13281         * config/rx/rx.md (movsicc): Split after reload.
13282         (*movsicc): Merge *movsieq and *movsine via match_operator.
13283         (*stcc): New pattern.
13284
13285         * config/rx/rx.c (rx_float_compare_mode): Remove.
13286         * config/rx/rx.h (rx_float_compare_mode): Remove.
13287         * config/rx/rx.md (cstoresi4): Split after reload.
13288         (*sccc): New pattern.
13289
13290         * config/rx/predicates.md (label_ref_operand): New.
13291         (rx_z_comparison_operator): New.
13292         (rx_zs_comparison_operator): New.
13293         (rx_fp_comparison_operator): New.
13294         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13295         Validate that the flags are set properly for the comparison.
13296         (rx_gen_cond_branch_template): Remove.
13297         (rx_cc_modes_compatible): Remove.
13298         (mode_from_flags): New.
13299         (flags_from_code): Rename from flags_needed_for_conditional.
13300         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13301         (rx_select_cc_mode): Likewise.
13302         (rx_split_fp_compare): New.
13303         (rx_split_cbranch): New.
13304         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13305         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13306         (*cbranchsf4): Similarly.
13307         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13308         match_operator and rx_split_cbranch.
13309         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13310         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13311         (*cmpsi): Rename from cmpsi.
13312         (*tstsi): Rename from tstsi.
13313         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13314         (*conditional_branch): Rename from conditional_branch.
13315         (*reveresed_conditional_branch): Remove.
13316         (b<code>): Remove expander.
13317         * config/rx/rx-protos.h: Update.
13318
13319         * config/rx/rx.c (rx_compare_redundant): Remove.
13320         * config/rx/rx.md (cmpsi): Don't use it.
13321         * config/rx/rx-protos.h: Update.
13322
13323         * config/rx/rx-modes.def (CC_F): New mode.
13324         * config/rx/rx.c (rx_select_cc_mode): New.
13325         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13326         * config/rx/rx-protos.h: Update.
13327
13328 2011-01-17  Richard Henderson  <rth@redhat.com>
13329
13330         * except.c (dump_eh_tree): Fix stray ; after for statement.
13331
13332 2011-01-17  Richard Guenther  <rguenther@suse.de>
13333
13334         PR tree-optimization/47313
13335         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13336         handling before copying the body.  Properly deal with
13337         by-reference result in SSA form.
13338
13339 2011-01-17  Ian Lance Taylor  <iant@google.com>
13340
13341         PR target/47219
13342         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13343         (struct_value_alias_set): Don't define.
13344         (sparc_option_override): Don't set sparc_sr_alias_set and
13345         struct_value_alias_set.
13346         (save_or_restore_regs): Use gen_frame_mem rather than calling
13347         set_mem_alias_set.
13348         (sparc_struct_value_rtx): Likewise.
13349
13350 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13351
13352         PR target/47318
13353         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13354         (_mm_maskstore_pd): Likewise.
13355         (_mm_maskload_ps): Likewise.
13356         (_mm_maskstore_ps): Likewise.
13357         (_mm256_maskload_pd): Change mask to __m256i.
13358         (_mm256_maskstore_pd): Likewise.
13359         (_mm256_maskload_ps): Likewise.
13360         (_mm256_maskstore_ps): Likewise.
13361
13362         * config/i386/i386-builtin-types.def: Updated.
13363         (ix86_expand_special_args_builtin): Likewise.
13364
13365         * config/i386/i386.c (bdesc_special_args): Update
13366         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13367         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13368         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13369         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13370
13371         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13372         Use <avxpermvecmode> on mask register.
13373         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13374
13375 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13376             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13377             Eric Botcazou  <ebotcazou@adacore.com>
13378
13379         PR target/46655
13380         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13381         if <= USHRT_MAX in 32-bit mode.
13382
13383 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13384
13385         * doc/install.texi (Configuration, Specific): Wrap long
13386         lines in examples.  Allow line wrapping in long options
13387         and URLs where beneficial for PDF output.
13388
13389 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13390
13391         * config/mips/mips.c (mips_classify_symbol): Don't return
13392         SYMBOL_PC_RELATIVE for nonlocal labels.
13393
13394 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13395
13396         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13397
13398 2011-01-15  Jan Hubicka  <jh@suse.cz>
13399
13400         PR tree-optimization/47276
13401         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13402         declarations as needed.
13403
13404 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13405
13406         * common.opt (fdevirtualize): New flag.
13407         * doc/invoke.texi (Option Summary): Document it.
13408         * opts.c (default_options_table): Add devirtualize flag.
13409         * ipa-prop.c (detect_type_change): Return immediately if
13410         devirtualize flag is not set.
13411         (detect_type_change_ssa): Likewise.
13412         (compute_known_type_jump_func): Likewise.
13413         (ipa_analyze_virtual_call_uses): Likewise.
13414
13415 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13416
13417         PR tree-optimization/45934
13418         PR tree-optimization/46302
13419         * ipa-prop.c (type_change_info): New type.
13420         (stmt_may_be_vtbl_ptr_store): New function.
13421         (check_stmt_for_type_change): Likewise.
13422         (detect_type_change): Likewise.
13423         (detect_type_change_ssa): Likewise.
13424         (compute_complex_assign_jump_func): Check for dynamic type change.
13425         (compute_complex_ancestor_jump_func): Likewise.
13426         (compute_known_type_jump_func): Likewise.
13427         (compute_scalar_jump_functions): Likewise.
13428         (ipa_analyze_virtual_call_uses): Likewise.
13429         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13430
13431 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13432
13433         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13434         * config/i386/i386.opt (msse5): New Alias.
13435
13436 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13437
13438         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13439         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13440         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13441         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13442
13443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13444
13445         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13446         -mcpu options.
13447         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13448         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13449         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13450         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13451         Likewise.
13452         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13453
13454 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13455
13456         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13457
13458 2011-01-14  Mike Stump  <mikestump@comcast.net>
13459
13460         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13461         * config/fr30/fr30.md: Likweise
13462         (movsi_push): Likewise.
13463         (movsi_pop): Likewise.
13464         (enter_func): Likewise.
13465         * config/moxie/moxie.md (movsi_push): Likewise.
13466         (movsi_pop): Likewise.
13467
13468 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13469
13470         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13471         %{no_archive} %{exact_version}.
13472         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13473         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13474         %{no_archive} %{exact_version}.
13475         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13476         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13477         * config/mips/vxworks.h: Likewise.
13478
13479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13480
13481         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13482
13483 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13484
13485         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13486         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13487
13488 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13489
13490         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13491         -nodefaultlib.
13492
13493 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13494
13495         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13496         for mcpu not cpu.
13497         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13498         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13499         not cpu.
13500         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13501         Don't handle -shlib.
13502
13503 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13504
13505         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13506         (CC1_SPEC): Don't handle -profile.
13507
13508 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13509
13510         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13511         * config/mips/mips.h (CC1_SPEC): Likewise.
13512
13513 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13514
13515         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13516         * config/mips/mips.h (CC1_SPEC): Likewise.
13517
13518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13519
13520         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13521         * config/m32r/linux.h (LINK_SPEC): Likewise.
13522         * config/mips/linux.h (LINK_SPEC): Likewise.
13523         * config/mips/linux64.h (LINK_SPEC): Likewise.
13524         * config/sparc/linux.h (LINK_SPEC): Likewise.
13525         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13526         LINK_SPEC): Likewise.
13527         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13528
13529 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13530
13531         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13532         %{version:-v}.
13533         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13534
13535 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13538         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13539
13540 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13541
13542         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13543
13544 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13545
13546         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13547         supports -Bstatic/-Bdynamic.
13548         * configure: Regenerate.
13549
13550 2011-01-14  Jan Hubicka  <jh@suse.cz>
13551             Jack Howarth  <howarth@bromo.med.uc.edu>
13552
13553         PR target/46037
13554         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13555         when checking debug_info_level. Test write_symbols instead of
13556         debug_hooks->var_location when setting flag_var_tracking_uninit.
13557
13558 2011-01-14  Richard Guenther  <rguenther@suse.de>
13559
13560         PR tree-optimization/47179
13561         * target.def (ref_may_alias_errno): New target hook.
13562         * targhooks.h (default_ref_may_alias_errno): Declare.
13563         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13564         (default_ref_may_alias_errno): New function.
13565         * target.h (struct ao_ref_s): Declare.
13566         * tree-ssa-alias.c: Include target.h.
13567         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13568         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13569         (targhooks.o): Likewise.
13570         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13571         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13572
13573 2011-01-14  Richard Guenther  <rguenther@suse.de>
13574
13575         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13576
13577 2011-01-14  Richard Guenther  <rguenther@suse.de>
13578
13579         PR tree-optimization/47280
13580         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13581         return CFG changes.
13582         (tree_ssa_forward_propagate_single_use_vars): Deal with
13583         CFG changes from associate_plusminus.
13584
13585 2011-01-14  Richard Guenther  <rguenther@suse.de>
13586
13587         PR middle-end/47281
13588         Revert
13589         2011-01-11  Richard Guenther  <rguenther@suse.de>
13590
13591         PR tree-optimization/46076
13592         * tree-ssa.c (useless_type_conversion_p): Conversions from
13593         unprototyped to empty argument list function types are useless.
13594
13595 2011-01-14  Richard Guenther  <rguenther@suse.de>
13596
13597         PR tree-optimization/47286
13598         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13599
13600 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13601
13602         PR middle-end/46823
13603         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13604
13605 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13606
13607         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13608         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13609         * config/xtensa/xtensa.c (xtensa_libcall_value,
13610         xtensa_function_value_regno_p): New functions.
13611         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13612
13613 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13614
13615         PR c++/47213
13616         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13617         PE specific hook.
13618         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13619         New function prototype.
13620         * config/i386/winnt.c (i386_pe_assemble_visibility):
13621         Warn only if attribute was specified by user.
13622
13623 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13624
13625         PR target/47251
13626         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13627         floating point.
13628         (floatunsdidf2_fcfidu): Ditto.
13629
13630 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13631
13632         * config/s390/s390.c (print_operand_address): Replace 'error' with
13633         'output_operand_lossage'.
13634         (print_operand): Likewise.
13635
13636 2011-01-13  Jeff Law  <law@redhat.com>
13637
13638         PR rtl-optimization/39077
13639         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13640         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13641         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13642         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13643         * gcse.c (prune_insertions_deletions): New function.
13644         (compute_pre_data): Use it.
13645
13646 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13647
13648         PR debug/PR46973
13649         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13650         static function.
13651         (prune_unused_types_mark): Use it.
13652
13653 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13654
13655         PR rtl-optimization/45352
13656         * sel-sched.c: Update copyright years.
13657         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13658         in the advancing loop when we have issued issue_rate insns.
13659
13660 2011-01-12  Richard Henderson  <rth@redhat.com>
13661
13662         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13663         (TARGET_MD_ASM_CLOBBERS): New.
13664
13665         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13666         (TARGET_DELEGITIMIZE_ADDRESS): New.
13667
13668         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13669         (clzsi2, *bsch): New patterns.
13670
13671         * config/mn10300/mn10300.md (INT): New mode iterator.
13672         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13673
13674         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13675         flag_split_wide_types.
13676
13677         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13678         (mn10300_trampoline_init): Rewrite without a template, an immediate
13679         load and a direct branch.
13680         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13681
13682 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13683
13684         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13685         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13686         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13687         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13688
13689 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13690
13691         PR debug/47209
13692         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13693         of type.
13694
13695 2011-01-12  Jan Hubicka  <jh@suse.cz>
13696
13697         PR driver/47244
13698         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13699         (PLUGIN_COND_CLOSE): New macro.
13700         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13701
13702 2011-01-12  Richard Guenther  <rguenther@suse.de>
13703
13704         PR lto/47259
13705         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13706         register variables in a MEM_REF.
13707
13708 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13709
13710         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13711         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13712         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13713         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13714         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13715         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13716         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13717         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13718         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13719         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13720         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13721         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13722         * config/gnu-user.h: New.  Copied from linux.h.
13723         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13724         GNU_USER_TARGET_STARTFILE_SPEC.
13725         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13726         GNU_USER_TARGET_ENDFILE_SPEC.
13727         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13728         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13729         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13730         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13731         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13732         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13733         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13734         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13735         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13736         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13737         * config/arm/linux-eabi.h (CC1_SPEC): Use
13738         GNU_USER_TARGET_CC1_SPEC.
13739         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13740         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13741         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13742         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13743         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13744         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13745         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13746         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13747
13748 2011-01-12  Richard Guenther  <rguenther@suse.de>
13749
13750         PR other/46946
13751         * doc/invoke.texi (ffast-math): Document it is turned on
13752         with -Ofast.
13753
13754 2011-01-12  Jan Hubicka  <jh@suse.cz>
13755
13756         PR tree-optimization/47233
13757         * opts.c (common_handle_option): Disable ipa-reference with profile
13758         feedback.
13759
13760 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13761
13762         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13763         error message.
13764
13765 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13766
13767         * c-parser.c (c_lex_one_token): Updated and reindented some
13768         comments.  No changes in code.
13769
13770 2011-01-11  Ian Lance Taylor  <iant@google.com>
13771
13772         * godump.c (go_output_var): Don't output the variable if there is
13773         already a type with the same name.
13774
13775 2011-01-11  Ian Lance Taylor  <iant@google.com>
13776
13777         * godump.c (go_format_type): Don't generate float80.
13778
13779 2011-01-11  Richard Henderson  <rth@redhat.com>
13780
13781         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13782         declaration.  Rewrite for both speed and size.
13783         (mn10300_address_cost_1): Remove.
13784         (mn10300_register_move_cost): New.
13785         (mn10300_memory_move_cost): New.
13786         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13787         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13788         extensions, shifts, BSWAP, CLZ.
13789         (mn10300_wide_const_load_uses_clr): Remove.
13790         (TARGET_REGISTER_MOVE_COST): New.
13791         (TARGET_MEMORY_MOVE_COST): New.
13792         * config/mn10300/mn10300-protos.h: Update.
13793         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13794
13795         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13796         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13797         * config/mn10300/mn10300-protos.h: Update.
13798         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13799         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13800         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13801         (*test_int_bitfield, *test_byte_bitfield): Remove.
13802         (*bit_test, *subreg_bit_test): Remove.
13803         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13804
13805         * config/mn10300/constraints.md ("c"): Rename from "A".
13806         ("A", "D"): New constraint letters.
13807         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13808         (fmssf4, fnmasf4, fnmssf4): Likewise.
13809
13810         * config/mn10300/mn10300.md (isa): New attribute.
13811         (enabled): New attribute.
13812
13813         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13814         (abssf2, negsf2): Define only for hardware fp.
13815         (sqrtsf2): Reformat.
13816         (addsf3, subsf3, mulsf3): Merge expander and insn.
13817
13818         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13819         (DEBUGGER_AUTO_OFFSET): Remove.
13820         (DEBUGGER_ARG_OFFSET): Remove.
13821
13822         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13823         Emit register stores with the same offsets as the hardware.
13824         (mn10300_store_multiple_operation): Don't check that the register
13825         save offsets are monotonic.
13826         * config/mn10300/mn10300-protos.h: Update.
13827
13828         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13829
13830         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13831         in terms of the value on the stack, not the MDR register.
13832
13833 2011-01-11  Jan Hubicka  <jh@suse.cz>
13834
13835         PR lto/45721
13836         PR lto/45375
13837         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13838         (symbol_alias_set_destroy, symbol_alias_set_contains,
13839         propagate_aliases_backward): Declare.
13840         * lto-streamer-out.c (struct sets): New sturcture.
13841         (trivally_defined_alias): New function.
13842         (output_alias_pair_p): Rewrite.
13843         (output_unreferenced_globals): Fix output of alias pairs.
13844         (produce_symtab): Likewise.
13845         * ipa.c (function_and_variable_visibility): Set weak alias destination
13846         as needed in lto.
13847         * varasm.c (symbol_alias_set_t): Remove.
13848         (symbol_alias_set_destroy): Export.
13849         (propagate_aliases_forward, propagate_aliases_backward): New functions
13850         based on ...
13851         (compute_visible_aliases): ... this one; remove.
13852         (trivially_visible_alias): New
13853         (trivially_defined_alias): New.
13854         (remove_unreachable_alias_pairs): Rewrite.
13855         (finish_aliases_1): Reorganize code checking if alias is defined.
13856         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13857         in LTO mode.
13858
13859 2011-01-11  Richard Guenther  <rguenther@suse.de>
13860
13861         PR tree-optimization/46076
13862         * tree-ssa.c (useless_type_conversion_p): Conversions from
13863         unprototyped to empty argument list function types are useless.
13864
13865 2011-01-11  Richard Guenther  <rguenther@suse.de>
13866
13867         PR middle-end/45235
13868         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13869         volatile MEMs as MEM_READONLY_P.
13870
13871 2011-01-11  Richard Guenther  <rguenther@suse.de>
13872
13873         PR tree-optimization/47239
13874         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13875
13876 2011-01-11  Jeff Law  <law@redhat.com>
13877
13878         PR tree-optimization/47086
13879         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13880         IVs from statements that might throw.
13881
13882 2011-01-10  Jan Hubicka  <jh@suse.cz>
13883
13884         PR lto/45375
13885         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13886
13887 2011-01-10  Jan Hubicka  <jh@suse.cz>
13888
13889         PR lto/45375
13890         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13891         when correcting profile.
13892
13893 2011-01-10  Jan Hubicka  <jh@suse.cz>
13894
13895         PR lto/46083
13896         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13897         DECL_FINI_PRIORITY.
13898         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13899         Restore DECL_FINI_PRIORITY.
13900
13901 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13902
13903         * doc/gimple.texi: Fix quoting of multi-word return values in
13904         @deftypefn statements.  Ensure presence of return value.  Wrap
13905         overlong @deftypefn lines.
13906         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13907         descriptions of removed functions.
13908         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13909         of multi-word return value in @deftypefn statement.
13910
13911 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13912
13913         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13914         (Conditional Expressions, Logical Operators)
13915         (Statement and operand traversals): Do not indent smallexample
13916         code.  Fix duplicate function argument in example.
13917
13918 2011-01-10  Jeff Law  <law@redhat.com>
13919
13920         PR tree-optimization/47141
13921         * ipa-split.c (split_function): Handle case where we are
13922         returning a value and the return block has a virtual operand phi.
13923
13924 2011-01-10  Jan Hubicka  <jh@suse.cz>
13925
13926         PR tree-optimization/47234
13927         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13928         (pass_feedback_split_functions): Declare.
13929         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13930         tree-profile.
13931         * ipa-split.c (gate_split_functions): Update comments; disable
13932         split-functions for profile_arc_flag and branch_probabilities.
13933         (gate_feedback_split_functions): New function.
13934         (execute_feedback_split_functions): New function.
13935         (pass_feedback_split_functions): New global var.
13936
13937 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13938
13939         PR lto/46760
13940         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13941         calling gimple_call_set_cannot_inline.
13942
13943 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13944
13945         * config/darwin-sections.def: Remove unused section.
13946
13947 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13948
13949         PR c++/47218
13950         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13951
13952 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13953
13954         PR objc/47232
13955         * c-parser.c (c_parser_declaration_or_fndef): Improved
13956         error message.
13957
13958 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13959
13960         * config/i386/winnt.c (i386_pe_start_function): Make sure
13961         to switch back to function's section.
13962
13963 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13964
13965         PR gcc/46902
13966         PR testsuite/46912
13967         * plugin.c: Move include of dlfcn.h from here...
13968         * system.h: ... to here.
13969
13970 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13971
13972         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13973         file name.
13974         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13975         two extra empty pages in PDF output.
13976
13977 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13978
13979         PR objc/47078
13980         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13981         for error recovery purposes behave as if it was not specified so
13982         that the default type is usd.
13983
13984 2011-01-07  Jan Hubicka  <jh@suse.cz>
13985
13986         PR tree-optmization/46469
13987         * ipa.c (function_and_variable_visibility): Clear needed flags on
13988         nodes with external decls; handle weakrefs merging correctly.
13989
13990 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13991
13992         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13993         not false.
13994
13995 2011-01-07  Jan Hubicka  <jh@suse.cz>
13996
13997         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13998         and no longer claim that gold is required for linker plugin.
13999         * configure: Regenerate.
14000         * gcc.c (PLUGIN_COND): New macro.
14001         (LINK_COMMAND_SPEC): Use it.
14002         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14003         * config.in (HAVE_LTO_PLUGIN): New.
14004         * configure.ac (--with-lto-plugin): New parameter; autodetect
14005         HAVE_LTO_PLUGIN.
14006
14007 2011-01-07  Jan Hubicka  <jh@suse.cz>
14008
14009         PR tree-optimization/46367
14010         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14011         when we can update original.
14012         (cgraph_mark_inline_edge): Sanity check.
14013         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14014
14015 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14016
14017         * config/spu/spu.h (ASM_COMMENT_START): Define.
14018
14019 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14020
14021         PR driver/42445
14022         * gcc.c (%>S): New.
14023         (SWITCH_KEEP_FOR_GCC): Likewise.
14024         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14025         (do_spec_1): Handle "%>".
14026
14027         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14028
14029 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14030
14031         PR target/47201
14032         * config/i386/i386.c (ix86_delegitimize_address): If
14033         simplify_gen_subreg fails, return orig_x.
14034
14035         PR bootstrap/47187
14036         * value-prof.c (gimple_stringop_fixed_value): Handle
14037         lhs of the call properly.
14038
14039 2011-01-07  Jan Hubicka  <jh@suse.cz>
14040
14041         PR lto/45375
14042         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14043
14044 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14045
14046         * target.def (function_switched_text_sections): New hook.
14047         * doc/tm.texi: Regenerated.
14048         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14049         * final.c (default_function_switched_text_sections): New.
14050         (final_scan_insn): Call function_switched_text_sections when a
14051         mid-function section change occurs.
14052         * output.h (default_function_switched_text_sections): Declare.
14053         * config/darwin-protos.h (darwin_function_switched_text_sections):
14054         Likewise.
14055         * config/darwin.c (darwin_function_switched_text_sections): New.
14056         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14057
14058 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14059
14060         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14061         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14062         the secondary code fragment when outputting for DWARF == 2.
14063
14064 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14065
14066         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14067         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14068         Remove.
14069         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14070         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14071
14072 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14073
14074         PR debug/46704
14075         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14076         when it is not empty.
14077
14078 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14079
14080         Bobcat Enablement
14081         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14082         (case ${target}): Add btver1.
14083         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14084         -march=native recognize btver1 processors.
14085         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14086         btver1 def_and_undef
14087         * config/i386/i386.c (struct processor_costs btver1_cost): New
14088         btver1 cost table.
14089         (m_BTVER1): New definition.
14090         (m_AMD_MULTIPLE): Includes m_BTVER1.
14091         (initial_ix86_tune_features): Add btver1 tune.
14092         (processor_target_table): Add btver1 entry.
14093         (static const char *const cpu_names): Add btver1 entry.
14094         (software_prefetching_beneficial_p): Add btver1.
14095         (ix86_option_override_internal): Add btver1 instruction sets.
14096         (ix86_issue_rate): Add btver1.
14097         (ix86_adjust_cost): Add btver1.
14098         * config/i386/i386.h (TARGET_BTVER1): New definition.
14099         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14100         (enum processor_type): Add PROCESSOR_BTVER1.
14101         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14102
14103 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14104
14105         PR target/43309
14106         * config/i386/i386.c (legitimize_tls_address)
14107         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14108         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14109         (tls_initial_exec_64_sun): New pattern.
14110
14111 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14112
14113         * doc/invoke.texi (Overall Options): Improve wording and markup
14114         of the description of -wrapper.
14115
14116 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14117
14118         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14119         rdynamic, threads): New Driver options.
14120
14121 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14122
14123         PR target/38118
14124         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14125         if coming from .tdata.
14126         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14127
14128 2011-01-06  Jan Hubicka  <jh@suse.cz>
14129
14130         PR lto/47188
14131         * collect2.c (main): Do not enable LTOmode when plugin is active.
14132
14133 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14134
14135         PR other/45915
14136         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14137         --version output if supported.
14138         * configure: Regenerate.
14139
14140 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14141
14142         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14143         Driver options.
14144
14145 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14146
14147         PR c/47150
14148         * c-convert.c (convert): When converting a complex expression
14149         other than COMPLEX_EXPR to a different complex type, ensure
14150         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14151         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14152         when converting COMPLEX_TYPE.
14153
14154 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14155
14156         PR tree-optimization/47139
14157         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14158         only the last reduction value is used outside the loop.  Update
14159         documentation.
14160
14161 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14162
14163         * config/rtems.opt: New.
14164         * config.gcc (*-*-rtems*): Use rtems.opt.
14165
14166 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14167
14168         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14169         processors do not support 3DNow instructions.
14170
14171 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14172
14173         * config/spu/spu.c (spu_option_override): Set parameter
14174         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14175
14176 2011-01-05  Jan Hubicka  <jh@suse.cz>
14177
14178         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14179         at the command line.
14180
14181 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14182
14183         PR lto/47162
14184         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14185         deltas on streamed outgoing edges.
14186         (output_node_opt_summary): Output info for outgoing edges only when
14187         the node is in new parameter set.
14188         (output_cgraph_opt_summary): New parameter set, passed to the two
14189         aforementioned functions.  Update its forward declaration and its
14190         callee too.
14191
14192 2011-01-05  Tom Tromey  <tromey@redhat.com>
14193
14194         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14195         operator to c_finish_omp_atomic.
14196         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14197         (build_unary_op): Update.
14198         (build_modify_expr): Update.
14199         (build_asm_expr): Update.
14200
14201 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14202
14203         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14204         newly inserted insns.
14205         (pad_bb): Likewise.
14206         (spu_emit_branch_hint): Likewise.
14207         (insert_hbrp_for_ilb_runout): Likewise.
14208         (spu_machine_dependent_reorg): Call df_finish_pass after
14209         schedule_insns returns.
14210
14211 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14212
14213         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14214
14215 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14216
14217         PR tree-optimization/47005
14218         * tree-sra.c (struct access): Add 'non_addressable' bit.
14219         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14220         (decide_one_param_reduction): Return 0 if the parameter is passed by
14221         reference and one of the accesses in the group is non_addressable.
14222
14223 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14224
14225         PR tree-optimization/47056
14226         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14227         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14228         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14229
14230 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14231
14232         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14233         initializer.  Skip view conversions from aggregate types.
14234
14235 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14236
14237         PR bootstrap/47055
14238         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14239
14240 2011-01-04  Philipp Thomas  <pth@suse.de>
14241
14242         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14243         obvious typo.
14244
14245 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14246
14247         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14248         on empty epilogue sequences.
14249
14250 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14251
14252         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14253         non-static): New Driver options.
14254
14255 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14256
14257         PR driver/47137
14258         * gcc.c (default_compilers[]): Set combinable field to 0
14259         for all assembly languages.
14260
14261 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14262
14263         * config/mips/loongson3a.md: New file.
14264         * config/mips/mips.md: Include loongson3a.md.
14265         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14266         TUNE_LOONGSON_3A.
14267
14268 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14269
14270         PR middle-end/47017
14271         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14272         instead of convert_memory_address_addr_space on the base expression.
14273
14274 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14275
14276         * config/spu/spu.c (spu_option_override): Update error text
14277         for bad -march= / -mtune= values.
14278
14279 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14280
14281         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14282         if branch-hint optimization will be performed.
14283
14284 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14285
14286         PR tree-optimization/47148
14287         * ipa-split.c (split_function): Convert arguments to
14288         DECL_ARG_TYPE if possible.
14289
14290         PR tree-optimization/47155
14291         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14292         when computing uns.
14293
14294         PR rtl-optimization/47157
14295         * combine.c (try_combine): If undobuf.other_insn becomes
14296         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14297         and set *new_direct_jump_p too.
14298
14299 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14300
14301         PR tree-optimization/47021
14302         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14303
14304 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14305
14306         * gcc.c (process_command): Update copyright notice dates.
14307         * gcov.c (print_version): Likewise.
14308         * gcov-dump.c (print_version): Likewise.
14309         * mips-tfile.c (main): Likewise.
14310         * mips-tdump.c (main): Likewise.
14311
14312 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14313
14314         PR tree-optimization/46801
14315         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14316         aggregate fields start at byte boundary instead of the bit-field flag.
14317
14318 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14319
14320         PR driver/47137
14321         * gcc.c (main): Revert revision 168407.
14322
14323 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14324
14325         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14326
14327 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14328
14329         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14330         vector optab to expand vector/scalar shift, update gimple to vector.
14331
14332 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14333
14334         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14335         a thunk.
14336
14337 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14338
14339         PR tree-optimization/46984
14340         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14341         HOST_WIDE_INT.
14342         (cgraph_create_indirect_edge): Fixed line length.
14343         (cgraph_indirect_call_info): Declare.
14344         (cgraph_make_edge_direct) Update declaration.
14345         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14346         (cgraph_create_indirect_edge): Use it.
14347         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14348         callees.
14349         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14350         the new thunk_delta representation.
14351         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14352         HOST_WIDE_INT.
14353         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14354         (ipa_read_indirect_edge_info): Likewise.
14355         * lto-cgraph.c (output_edge_opt_summary): New function.
14356         (output_node_opt_summary): Call it on all outgoing edges.
14357         (input_edge_opt_summary): New function.
14358         (input_node_opt_summary): Call it on all outgoing edges.
14359
14360 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14361
14362         PR driver/47137
14363         * gcc.c (main): Don't check have_o when settting combine_inputs.
14364
14365 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14366
14367         * regrename.c: Add general comment describing the pass.
14368         (struct du_head): Remove 'length' field.
14369         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14370         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14371         Force renaming to the preferred class (if any) in the first pass and do
14372         not consider registers that belong to it in the second pass.
14373         (create_new_chain): Do not set 'length' field.
14374         (scan_rtx_reg): Likewise.
14375
14376 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14377
14378         PR tree-optimization/47140
14379         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14380         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14381         to bit_value_binop.
14382
14383         PR rtl-optimization/47028
14384         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14385         parm_birth_insn instead of at the beginning of first bb.
14386
14387 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14388
14389         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14390         Remove the word "see" before "@pxref".
14391         * doc/rtl.texi: Remove the word "see" before "@pxref".
14392
14393 2011-01-01  Jan Hubicka  <jh@suse.cz>
14394
14395         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14396         memory.
14397
14398 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14399
14400         PR target/38662
14401         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14402
14403 \f
14404 Copyright (C) 2011 Free Software Foundation, Inc.
14405
14406 Copying and distribution of this file, with or without modification,
14407 are permitted in any medium without royalty provided the copyright
14408 notice and this notice are preserved.