OSDN Git Service

2011-05-13 Kai Tietz <ktietz@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2
3         * gimplify.c (gimplify_expr): Make sure operand is boolified.
4         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5         compatible type for TRUTH_NOT_EXPR.
6
7 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8
9         * config/i386/i386.c (ix86_save_reg): Change return type to
10         bool.
11         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
12         can_create_pseudo_p ().
13
14 2011-05-13  Richard Guenther  <rguenther@suse.de>
15
16         PR lto/48978
17         * gimple.c (iterative_hash_gimple_type): Revert change in
18         pointer target and function result and argument hashing.
19
20 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
21
22         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
23         (*movxf_internal_nointeger): Ditto.
24         (*movdf_internal_rex64): Ditto.
25         (*movdf_internal): Ditto.
26         (*movdf_internal_nointeger): Ditto.
27         (*movsf_internal): Ditto.
28         (sincos splitters): Use can_create_pseudo ().
29
30 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
31
32         * config/i386/i386-opts.h: New.
33         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
34         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
35         ix86_section_threshold): Remove.
36         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
37         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
38         OPT_mbranch_cost_.
39         (ix86_option_override_internal): Don't decode strings for options
40         other than -march=, -mtune= and -mfpmath=.  Don't allow for
41         __attribute__ uses in remaining diagnostics for options with
42         string arguments.  Don't check for integer arguments being negative.
43         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
44         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
45         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
46         ix86_branch_cost, ix86_section_threshold): Remove.
47         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
48         HeaderInclude.
49         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
50         but not Var.
51         (masm=): Use Enum and Init.
52         (asm_dialect): New Enum and EnumValue entries.
53         (mbranch-cost=): Use UInteger.
54         (mlarge-data-threshold=): Use UInteger and Init.
55         (mcmodel=): Use Enum and Init.
56         (cmodel): New Enum and EnumValue entries.
57         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
58         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
59         mregparm=): Use UInteger.
60         (mstringop-strategy=): Use Enum and Init.
61         (stringop_alg): New Enum and EnumValue entries.
62         (mtls-dialect=): Use Enum and Init.
63         (tls_dialect): New Enum and EnumValue entries.
64         (mabi=): Use Enum and Init.
65         (calling_abi): New Enum and EnumValue entries.
66         (mveclibabi=): Use Enum and Init.
67         (ix86_veclibabi): New Enum and EnumValue entries.
68
69 2011-05-13  Nick Clifton  <nickc@redhat.com>
70
71         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
72         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
73
74 2011-05-13  Kai Tietz  <ktietz@redhat.com>
75
76         PR middle-end/48984
77         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
78         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
79         (gimple_boolify): Check for cast for boolean_type_node instead for
80         BOOLEAN_TYPE.
81
82 2011-05-13  Richard Guenther  <rguenther@suse.de>
83
84         PR tree-optimization/48172
85         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
86         multiplying by number of iterations for equal step.
87         (vect_create_cond_for_alias_checks): Likewise.
88
89 2011-05-13  Andreas Schwab  <schwab@redhat.com>
90
91         * configure.ac: Use AS_HELP_STRING throughout.
92         * configure: Regenerate.
93
94 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
95
96         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
97         (ix86_emit_restore_regs_using_mov): Likewise.
98         (ix86_emit_restore_sse_regs_using_mov): Likewise.
99
100 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
101
102         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
103         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
104         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
105         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
106         RTX_OK_FOR_OLO10_P): ...here.
107         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
108         SYMBOLIC_CONST.
109
110 2011-05-12  Kai Tietz  <ktietz@redhat.com>
111
112         * gimplify.c (gimple_boolify): Re-boolify expression
113         arguments even if expression type is of kind BOOLEAN_TYPE.
114         (gimplify_boolean_expr): Removed.
115         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
116         and XOR. Additional take care that we keep expression's type.
117         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
118         of TRUTH_AND|OR|XOR_EXPR.
119
120 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
121
122         PR tree-optimization/48975
123         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
124         on all bbs here and free and clear ifc_bbs at the end.
125
126 2011-05-12  Richard Guenther  <rguenther@suse.de>
127
128         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
129         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
130         until after simple checks.
131         (gimple_types_compatible_p): Likewise.
132         (iterative_hash_gimple_type): Always hash pointer targets
133         and function return and argument types.
134         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
135         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
136         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
137         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
138         completely in the simple compare section.
139         (gimple_register_canonical_type): Query the cache again after
140         registering.
141
142 2011-05-12  Richard Guenther  <rguenther@suse.de>
143
144         PR tree-optimization/48172
145         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
146         the number of iterations from the segment size calculation.
147         (vect_create_cond_for_alias_checks): Adjust.
148
149 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
150
151         PR debug/48967
152         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
153         if validate_subreg fails.
154
155 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
156
157         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
158         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
159         early.
160
161 2011-05-12  DJ Delorie  <dj@redhat.com>
162
163         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
164         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
165         created builtin into rx_builtins array.
166         (rx_builtin_decl): New function.
167         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
168
169 2011-05-12  DJ Delorie  <dj@redhat.com>
170             Nick Clifton  <nickc@redhat.com>
171
172         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
173         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
174         (rx_is_legitimate_address): Add pre-decrement and post-increment
175         addressing in HImode and QImode.  Fix test for out of range
176         REG+INT addressing.
177         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
178         (rx_align_for_label): Test label before extracting its usage count.
179         (rx_adjust_insn_lengths): Fix selection of insn codes.
180         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
181
182 2011-05-11  Jason Merrill  <jason@redhat.com>
183
184         * tree.c (type_hash_canon): Use struct tree_type_non_common.
185
186 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
187
188         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
189         reindent the subsequent block.
190
191 2011-05-11  Satoru Takabayashi  <satorux@google.com>
192             Paul Pluzhnikov  <ppluzhnikov@google.com>
193
194         * doc/install.texi (Configuration): Document --with-linker-hash-style.
195         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
196         * config.in: Add LINKER_HASH_STYLE.
197         * configure.ac: Add --with-linker-hash-style.
198         * configure: Regenerate.
199
200 2011-05-11  Richard Guenther  <rguenther@suse.de>
201
202         PR middle-end/48964
203         * gimple.c (iterative_hash_canonical_type): Fix typo.
204
205 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
206
207         * config/i386/i386.c (legitimize_tls_address)
208         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
209         expanders directly for TARGET_GNU2_TLS.  Determine pic and
210         __tls_get_addr symbol reference here.  Update call to
211         gen_tls_global_dynamic_{32,64} for added arguments.
212         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
213         expanders directly for TARGET_GNU2_TLS.  Determine
214         __tls_get_addr symbol reference here.  Update call to
215         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
216         unique UNSPEC REG_EQUIV to libcall block.
217         (ix86_tls_get_addr): Declare static.
218         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
219         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
220         Do not determine pic and __tls_get_addr symbol reference here. Do not
221         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
222         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
223         (tls_global_dynamic_64): Add operand 2.  Do not determine
224         __tls_get_addr symbol reference here.  Do not call
225         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
226         (tls_local_dynamic_base64): Ditto for operand 1.
227
228 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
229
230         * function.c (expand_function_start): Initialize stack_check_probe_note
231         only if the generic stack checking mechanism is used.
232
233 2011-05-11  Richard Guenther  <rguenther@suse.de>
234
235         PR tree-optimization/15256
236         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
237         (A & B) | C, combine (A op CST1) op CST2.
238         (tree_ssa_forward_propagate_single_use_vars): Only bother to
239         visit assigns that have uses.
240
241 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
242
243         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
244         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
245         (unpack_ts_type_common_value_fields): ...this.  Update comment.
246         (unpack_value_fields): Adjust for renaming.
247         (lto_input_ts_type_tree_pointers): Split into...
248         (lto_input_ts_type_common_tree_pointer): ...this and...
249         (lto_input_ts_type_non_common_tree_pointers): ...this.
250         (lto_input_tree_pointers): Adjust for above split.
251         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
252         (pack_ts_type_common_value_fields): ...this.  Update comment.
253         (lto_output_ts_type_tree_pointers): Split into...
254         (lto_output_ts_type_common_tree_pointers): ...this and...
255         (lto_output_ts_type_non_common_tree_pointers): ...this.
256         (lto_output_tree_pointers): Adjust for above split.
257         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
258         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
259         * stor-layout.c (vector_type_mode): Adjust location of mode field.
260         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
261         Define.
262         (struct tree_type): Split into...
263         (struct tree_type_common: ...this and...
264         (struct tree_type_with_lang_specific): ...this and...
265         (struct tree_type_non_common): ...this.  Adjust accessor macros
266         accordingly.
267         (TYPE_VALUES_RAW): Define.
268         (union tree_node): Update for above changes.
269         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
270         TS_TYPE_NON_COMMON.
271         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
272         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
273         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
274         * treestructu.def (TS_TYPE): Remove.
275         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
276         Define.
277
278 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
279
280         PR debug/48159
281         * tree-ssa.c (reset_debug_uses): New function.
282         * tree-flow.h (reset_debug_uses): New prototype.
283         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
284         * tree-loop-distribution.c (generate_loops_for_partition): Call
285         reset_debug_uses on the stmts that will be removed.  Keep around
286         all debug stmts, don't count them as bits in partition bitmap.
287         (generate_builtin): Don't count debug stmts or labels as bits in
288         partition bitmap.
289
290 2011-05-11  Richard Guenther  <rguenther@suse.de>
291
292         * gimple.c (gimple_type_hash_1): Merge with ...
293         (gimple_type_hash): ... this.
294         (gtc_visit): Remove mode parameter and simplify accordingly.
295         (gimple_types_compatible_p_1): Likewise.
296         (gimple_types_compatible_p): Likewise.
297         (iterative_hash_gimple_type): Likewise.
298         (visit): Likewise.
299         (gimple_type_eq): Adjust.
300
301 2011-05-11  Revital Eres  <revital.eres@linaro.org>
302
303         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
304         enters the branch create an anti edge in the opposite direction
305         to prevent the creation of reg-moves.
306         * modulo-sched.c: Adjust comment to reflect the fact we are
307         scheduling closing branch.
308         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
309         (stage_count): New field in struct partial_schedule.
310         (calculate_stage_count): New function.
311         (normalize_sched_times): Rename to reset_sched_times and handle
312         incrementing the sched time of the nodes by a constant value
313         passed as parameter.
314         (duplicate_insns_of_cycles): Skip closing branch.
315         (sms_schedule_by_order): Schedule closing branch.
316         (ps_insn_find_column): Handle closing branch.
317         (sms_schedule): Call reset_sched_times and adjust the code to
318         support scheduling of the closing branch.
319         (ps_insert_empty_row): Update calls to normalize_sched_times
320         and rotate_partial_schedule functions.
321
322 2011-05-11  Richard Guenther  <rguenther@suse.de>
323
324         PR middle-end/48953
325         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
326
327 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
328
329         * opts.c (finish_options): Move warning settings from process_options.
330         * toplev.c (process_options): Move warning settings to finish_options.
331
332 2011-05-11  Richard Guenther  <rguenther@suse.de>
333
334         PR tree-optimization/18041
335         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
336         (simplify_bitwise_binary): ... this.  Handle operand conversions
337         by applying them to the result instead.
338         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
339
340 2011-05-11  Richard Guenther  <rguenther@suse.de>
341
342         * gimple.c (gimple_canonical_types_compatible_p): Split out
343         from gimple_types_compatible_p and friends.  Do not recurse
344         to pointed-to types.
345         (gimple_canonical_type_eq): Use it.
346         (iterative_hash_canonical_type): Split out from
347         iterative_hash_gimple_type and friends.  Do not recurse
348         to pointed-to types.
349         (gimple_canonical_type_hash): Use it, allocate the hash here.
350
351 2011-05-11  Revital Eres  <revital.eres@linaro.org>
352
353         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
354         recognizing doloop.
355
356 2011-05-11  Revital Eres  <revital.eres@linaro.org>
357
358         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
359         instead of PREV_INSN.
360
361 2011-05-11  Revital Eres  <revital.eres@linaro.org>
362
363         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
364         * loop-doloop.c (doloop_condition_get): Likewise.
365         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
366         (doloop_end): New.
367         * config/arm/arm.md (*addsi3_compare0): Remove "*".
368
369 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
370
371         * tree.def (CASE_LABEL_EXPR): Add an operand.
372         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
373
374 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
375
376         * c-decl.c (c_override_global_bindings_to_false): Remove.
377         (global_bindings_p): Don't check
378         c_override_global_bindings_to_false.
379         * c-tree.h (c_override_global_bindings_to_false): Remove.
380         * c-typeck.c (composite_type): Don't set
381         c_override_global_bindings_to_false.
382
383 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
384
385         PR target/48857, 48495
386         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
387         (VSX_MODE): Ditto.
388         (VSX_MOVE_MODE): Ditto.
389         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
390         VSX vector types.  Add V2DImode.
391         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
392         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
393         (MODES_TIEABLE_P): Ditto.
394
395         * config/rs6000/rs6000.c (rs6000_emit_move): Use
396         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
397         VSX_VECTOR_MODE.
398         (init_cumulative_args): Ditto.
399         (rs6000_function_arg_boundary): Ditto.
400         (rs6000_function_arg_advance_1): Ditto.
401         (rs6000_function_arg): Ditto.
402         (rs6000_function_ok_for_sibcall): Ditto.
403         (emit_frame_save): Ditto.
404         (rs6000_function_value): Ditto.
405         (rs6000_libcall_value): Ditto.
406
407 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
408
409         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
410         i386/darwin-lib.h to $libgcc_tm_file.
411         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
412
413 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
414
415         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
416
417 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
418
419         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
420         * config/rs6000/rs6000-tables.opt: New file (generated).
421         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
422         rs6000/rs6000-tables.opt to extra_options.
423         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
424         * config/rs6000/rs6000.c (rs6000_select): Remove.
425         (processor_target_table): Move contents to rs6000-cpus.def.
426         (darwin_rs6000_override_options): Check
427         global_options_set.x_rs6000_cpu_index instead of
428         rs6000_select[1].string.
429         (rs6000_option_override_internal): Likewise.
430         (rs6000_handle_option): Don't assert that global structures are in
431         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
432         (rs6000_default_cpu): New variable.
433         (rs6000_file_start): Set it instead of local default_cpu.  Check
434         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
435         global_options_set.x_rs6000_tune_index instead of rs6000_select.
436         (rs6000_darwin_file_start): Check rs6000_default_cpu and
437         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
438         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
439         rs6000_select): Remove.
440         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
441         Remove.
442         (mcpu=, mtune=): Use Var, Init, Enum and Save.
443         * config/rs6000/t-rs6000
444         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
445         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
446         global_options_set.x_rs6000_cpu_index instead of
447         rs6000_select[1].string.
448         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
449         global_options_set.x_rs6000_cpu_index instead of
450         rs6000_select[1].string.
451
452 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
453
454         * config.gcc (libgcc_tm_file): Define instead of including files
455         from ../../libgcc/config/ in tm_file.
456         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
457         * configure: Regenerate.
458         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
459         libgcc_tm.h, cs-libgcc_tm.h): New.
460         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
461         (clean): Remove libgcc_tm.h.
462         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
463         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
464         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
465
466 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
467
468         PR target/48896
469         * config/avr/avr.c (avr_ret_register): Return unsigned int
470         instead of int.
471         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
472         it to avr_libcall_value.
473         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
474         expand_expr.
475         (avr_expand_binop_builtin): Ditto.
476         (avr_expand_unop_builtin): Ditto.
477
478 2011-05-10  DJ Delorie  <dj@redhat.com>
479
480         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
481         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
482         * config/rx/rx.c (rx_align_for_label): Add label and
483         uses_threshold parameters.  Do not align when the label is not
484         used enough.
485         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
486
487 2011-05-10  Richard Guenther  <rguenther@suse.de>
488
489         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
490         a series of conversions and apply foldings similar to what
491         fold-const does.
492         (tree_ssa_forward_propagate_single_use_vars): Call it.
493
494 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
495
496         PR tree-optimization/48611
497         PR tree-optimization/48794
498         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
499         referenced from RESX or EH_DISPATCH arguments.
500
501         PR debug/48928
502         * dfp.c (decimal_to_decnumber): Handle conversion from
503         dconst{1,2,m1,half}.
504
505 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
506
507         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
508         for !flag_prefer_avx128.
509         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
510
511 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
512
513         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
514         (fold_ternary_loc): Use expr_location_or.
515
516 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
517
518         PR debug/48853
519         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
520         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
521         Pmode and mem_mode is not VOIDmode.
522
523 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
524
525         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
526         TYPE_QUAL_RESTRICT): Convert to enum.
527
528 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
529
530         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
531         (const_pow2_1_to_8_operand): Ditto.
532         (const_pow2_1_to_128_operand): Ditto.
533         (const_pow2_1_to_32768_operand): Ditto.
534         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
535         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
536         in insn constraint to check integer value of operand 3.
537         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
538
539         (PINSR_MODE): New mode iterator.
540         (sse2p4_1): New mode attribute.
541         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
542         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
543         iterator.  Use const_int_operand instead of
544         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
545         exact_log2 in insn constraint to check integer value of operand 3.
546
547 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
548
549         * config/i386/sse.md (blendbits): Remove mode attribute.
550         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
551         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
552         Check integer value of operand 3 in insn constraint.
553
554 2011-05-09  Richard Guenther  <rguenther@suse.de>
555
556         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
557         for diagnostics.
558         (lto_symtab_merge): Likewise.  Do not register types here.
559         (lto_symtab_merge_decls_2): Likewise.
560         (lto_symtab_merge_decls_1): Likewise.
561         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
562         * gimple.c (enum gtc_mode): Declare.
563         (gimple_types_compatible_p): Make static.
564
565 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
566
567         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
568         temporary register to match Pmode.
569
570 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
571
572         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
573         and *vec_concatv4si_1_avx.
574
575 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
576
577         PR rtl-optimization/48927
578         * ira-conflicts.c (commutative_constraint_p): Use
579         recog_data.alternative_enabled_p to disable alternatives where
580         "enabled" attribute is false.
581         (get_dup_num): Ditto.
582         * ira-lives.c (single_reg_class): Ditto.
583         (ira_implicitly_set_insn_hard_regs): Ditto.
584
585 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
586
587         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
588         (dataflow_set_preserve_mem_locs): Likewise.
589
590 2011-05-09  Philipp Thomas  <pth@suse.de>
591
592         * config/mep/mep.c (mep_validate_vliw): Syntax description
593         should not be translated.
594
595 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
596
597         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
598         * config/mips/mips-tables.opt: New file (generated).
599         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
600         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
601         MIPS_ARCH_OPTION_NATIVE): Define.
602         * config/mips/mips.c (mips_cpu_info_table): Move contents to
603         mips-cpus.def.
604         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
605         mips_parse_cpu): Remove.
606         (mips_cpu_info_from_opt, mips_default_arch): New.
607         (mips_handle_option): Don't assert that global structures are in
608         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
609         (mips_option_override): Use new variables and functions to set
610         state of these options.  Use strcmp to check for individual CPU names.
611         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
612         definition.
613         * config/mips/mips.opt (march=): Use ToLower and Enum.
614         (mips): Use ToLower, Enum and Var.
615         (mtune=): Use ToLower and Enum.
616         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
617
618 2011-05-08  Jan Hubicka  <jh@suse.cz>
619
620         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
621         Arrange type pairs to be UID ordered.
622         (gimple_lookup_type_leader): Make inline.
623
624 2011-05-09  Nick Clifton  <nickc@redhat.com>
625
626         PR target/48899
627         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
628         PROCESSOR_DEFAULT.
629
630         PR target/48897
631         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
632         variable 's'.
633
634 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
635
636         * combine.c (simplify_comparison): Abstract out parts into...
637         (simplify_compare_const): ... new function.
638         (try_combine): Generalize parallel arithmetic/compare combining
639         to call simplify_compare_const() and CANONICALIZE_COMPARE().
640
641 2011-05-08  Jan Hubicka  <jh@suse.cz>
642
643         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
644         (cgraph_create_virtual_clone): Call hooks once virtual clone
645         is finished.
646         * cgraph.h (cgraph_clone_node): Update prototype.
647         * ipa-cp.c (ipcp_estimate_growth): Use
648         estimate_ipcp_clone_size_and_time.
649         * ipa-inline-transform.c (clone_inlined_nodes): Update.
650         * lto-cgraph.c (input_node): Update.
651         * ipa-inline.c (recursive_inlining): Update.
652         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
653         (evaluate_conditions_for_known_args): Break out from ...
654         (evaluate_conditions_for_edge): ... here.
655         (evaluate_conditions_for_ipcp_clone): New function.
656         (inline_node_duplication_hook): Update clone summary based
657         on parameter map.
658         (estimate_callee_size_and_time): Rename to ...
659         (estimate_node_size_and_time): take NODE instead of EDGE;
660         take POSSIBLE_TRUTHS as argument.
661         (estimate_callee_size_and_time): Update.
662         (estimate_ipcp_clone_size_and_time): New function.
663         (do_estimate_edge_time): Update.
664
665 2011-05-08  Richard Guenther  <rguenther@suse.de>
666
667         PR middle-end/48908
668         PR middle-end/48905
669         * expmed.c (expand_shift_1): Compute adjusted constant shift
670         amount manually.
671
672 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
673
674         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
675
676 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
677
678         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
679
680 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
681
682         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
683
684 2011-05-07  Jan Hubicka  <jh@suse.cz>
685
686         * ipa-inline-transform.c (inline_call): Account when program size
687         decreases.
688         * ipa-inline.c (relative_time_benefit): New function.
689         (edge_badness): Reorganize to be power 2 based; fix thinko when
690         computing badness for negative growth; update comments to match
691         reality; better dumps.
692
693 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
694
695         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
696         type to bool and adjust comment.
697         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
698         (fold_mathfn_compare): Remove calls to global_bindings_p.
699         (fold_inf_compare): Likewise.
700         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
701         * c-tree.h (global_bindings_p): Adjust prototype.
702         * c-decl.c (global_bindings_p): Return bool and simplify.
703
704 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
705
706         PR tree-optimization/48837
707         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
708         when accumulator transformation is performed.
709
710 2011-05-06  Jan Hubicka  <jh@suse.cz>
711
712         * i386.h (ix86_tune_indices): Add
713         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
714         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
715         * i386.c (initial_ix86_tune_features): Add
716         X86_SOFTARE_PREFETCHING_BENEFICIAL.
717         (software_prefetching_beneficial_p): Remove predicate.
718         (ix86_option_override_internal): Use new macro.
719
720 2011-05-06  Jan Hubicka  <jh@suse.cz>
721
722         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
723
724 2011-05-06  Jan Hubicka  <jh@suse.cz>
725
726         * cgraph.c (cgraph_add_thunk): Create real function node instead
727         of alias node; finalize it and mark needed/reachale; arrange visibility
728         to be right and add it into the corresponding same comdat group list.
729         (dump_cgraph_node): Dump thunks.
730         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
731         cgraph_function_with_gimple_body_p,
732         cgraph_first_function_with_gimple_body,
733         cgraph_next_function_with_gimple_body): New functions.
734         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
735         New macros.
736         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
737         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
738         * cgraphunit.c (cgraph_finalize_function): Only look into possible
739         devirtualization when optimizing.
740         (verify_cgraph_node): Verify thunks.
741         (cgraph_analyze_function): Analyze thunks.
742         (cgraph_mark_functions_to_output): Output thunks only in combination
743         with function they are assigned to.
744         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
745         alias into normal node.
746         (assemble_thunks): New functoin.
747         (cgraph_expand_function): Use it.
748         * lto-cgraph.c (lto_output_node): Stream thunks.
749         (input_overwrite_node): Stream in thunks.
750         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
751         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
752         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
753         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
754         (inline_analyze_function): Do not care about thunk jump functions.
755         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
756         * ipa-prop.c (ipa_prop_write_jump_functions): Use
757         cgraph_function_with_gimple_body_p.
758         * passes.c (do_per_function_toporder): Use
759         cgraph_function_with_gimple_body_p.
760         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
761         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
762         (function_called_by_processed_nodes_p): Likewise.
763
764 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
765
766         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
767         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
768         entries.
769         (mabi=): Replace with separate entries for mabi=altivec,
770         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
771         mabi=ieeelongdouble and mabi=ibmlongdouble.
772         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
773         check for -mabi=spe without SPE ABI support here.
774         (rs6000_handle_option): Replace OPT_mabi_ handling with
775         OPT_mabi_altivec and OPT_mabi_spe handling.
776
777 2011-05-06  Cary Coutant  <ccoutant@google.com>
778
779         * dwarf2out.c (contains_subprogram_definition): New function.
780         (should_move_die_to_comdat): Call it.
781
782 2011-05-06  Jeff Law  <law@redhat.com>
783
784         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
785         remove_ctrl_stmt_and_useless_edges.
786         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
787         (fixup_template_block, thread_single_edge): Likewise.
788         (mark_threaded_blocks): Use THREAD_TARGET.
789
790 2011-05-06  Alan Modra  <amodra@gmail.com>
791
792         PR target/48900
793         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
794         const0_rtx as the arg to the dummy __tls_get_addr libcall.
795
796 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
797
798         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
799         constraint modifier to "r".
800
801 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
802
803         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
804         fall through for OPT_mcmodel_.
805
806 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
807
808         * config/s390/s390.c (s390_asm_trampoline_template): Comment
809         instruction sizes.
810         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
811
812 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
813
814         PR target/47930
815         * config/arm/arm.opt (marm): Document it.
816         (mthumb): Reject negative variant.
817
818 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
819
820         PR target/48898
821         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
822         Fix typo in "ccvt" variable name.
823
824 2011-05-06  Tristan Gingold  <gingold@adacore.com>
825
826         PR target/48895
827         * config/vms/vms-ar.c (main): Remove cwd variable.
828
829 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
830
831         PR debug/48902
832         * var-tracking.c (prepare_call_arguments): Move else before #endif.
833
834 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
835
836         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
837         * gimplify.c (gimplify_switch_expr): Likewise.
838         * omp-low.c (expand_omp_sections): Likewise.
839         * tree-eh.c (lower_try_finally_switch): Likewise.
840         (lower_eh_dispatch): Likewise.
841         * tree.h (build_case_label): Declare.
842         * tree.c (build_case_label): Define.
843
844 2011-05-05  Jason Merrill  <jason@redhat.com>
845
846         PR c++/40975
847         * tree-inline.c (copy_tree_r): Use copy_statement_list.
848         (copy_statement_list): Don't recurse.
849         * stor-layout.c (copy_self_referential_tree_r): Don't allow
850         STATEMENT_LIST.
851
852 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
853
854         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
855         through from -mfpu= handling.
856         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
857
858 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
859
860         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
861         POST_MODIFY.
862
863 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
864
865         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
866         for 11.31.
867         (hppa[12]*-*-hpux11*): Ditto.
868         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
869         * config/ia64/hpux-unix2003.h: New.
870         * config/pa/pa-hpux1131.opt: New.
871         * config/pa/pa-hpux1131.h: New.
872         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
873         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
874         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
875
876 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
877
878         PR debug/48853
879         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
880         instead of mode as 3rd argument to recursive call.
881         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
882         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
883         VOIDmode.
884         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
885         don't give up if mode is Pmode and mem_mode is not VOIDmode.
886         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
887         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
888
889 2011-05-05  Julian Brown  <julian@codesourcery.com>
890
891         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
892         parenthesis in D-register case.
893
894 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
895
896         * opt-functions.awk (var_type_struct): Handle Enum options.
897         * optc-gen.awk: Don't check range of variables of character type.
898         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
899         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
900         rs6000_sdata_name, rs6000_explicit_options): Remove.
901         (rs6000_option_override_internal): Check for -malign-power here.
902         Use global_options_set instead of rs6000_explicit_options.
903         (rs6000_parse_fpu_option): Remove.
904         (rs6000_handle_option): Access variables via opts and opts_set
905         pointers.  Use error_at and warning_at.  Add fall-through
906         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
907         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
908         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
909         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
910         here.  Don't use rs6000_parse_fpu_option.
911         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
912         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
913         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
914         (mrecip=): Use Var.
915         (mspe): Use Var and Save.
916         (mtraceback=): Use Enum and Var.
917         (rs6000_traceback_type): New Enum and EnumValue entries.
918         (mfloat-gprs=): Use Enum, Var and Save.
919         (rs6000_float_gprs): New Enum and EnumValue entries.
920         (mlong-double-): use Var and Save.
921         (msched-costly-dep=, minsert-sched-nops=): Use Var.
922         (malign-): Use Enum and Var.
923         (rs6000_alignment_flags): New Enum and EnumValue entries.
924         (mfpu=): Use Enum.
925         (fpu_type_t): New Enum and EnumValue entries.
926         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
927         global_options_set instead of rs6000_explicit_options.
928         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
929         global_options_set instead of rs6000_explicit_options.
930         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
931         global_options_set instead of rs6000_explicit_options.
932         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
933         global_options_set instead of rs6000_explicit_options.
934         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
935         global_options_set instead of rs6000_explicit_options.
936         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
937         global_options_set instead of rs6000_explicit_options.
938         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
939         definition.
940         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
941         global_options_set instead of rs6000_explicit_options.
942         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
943         (rs6000_cmodel): New Enum and EnumValue entries.
944         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
945         global_options_set instead of rs6000_explicit_options.
946         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
947         (mtls-size=): Use Enum and Var.
948         (rs6000_tls_size): New Enum and EnumValue entries.
949
950 2011-05-05  Michael Matz  <matz@suse.de>
951
952         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
953         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
954         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
955         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
956         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
957         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
958         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
959         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
960         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
961         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
962         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
963         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
964         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
965         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
966         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
967         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
968
969 2011-05-05  Richard Guenther  <rguenther@suse.de>
970
971         * expmed.c (expand_variable_shift): Rename to ...
972         (expand_shift_1): ... this.  Take an expanded shift amount.
973         For rotates recurse directly not building trees for the shift amount.
974         (expand_variable_shift): Wrap around expand_shift_1.
975         (expand_shift): Adjust.
976
977 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
978
979         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
980
981 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
982
983         * tree.h (get_pending_sizes): Remove prototype.
984         (put_pending_size): Likewise.
985         (put_pending_sizes): Likewise.
986         * stor-layout.c (pending_sizes): Delete.
987         (get_pending_sizes): Likewise.
988         (put_pending_size): Likewise.
989         (put_pending_sizes): Likewise.
990         (variable_size): Do not call put_pending_size and tidy up.
991         * function.h (struct function): Remove dont_save_pending_sizes_p.
992         * lto-streamer-in.c (input_function): Do not stream it.
993         * lto-streamer-out.c (output_function): Likewise.
994         * tree-inline.c (initialize_cfun): Do not copy it.
995         * c-decl.c (store_parm_decls): Do not set it.
996         * omp-low.c (create_task_copyfn): Likewise.
997         * tree-optimize.c (tree_rest_of_compilation): Likewise.
998
999 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1000
1001         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1002         conditions.
1003         (*movdf_internal): Ditto.
1004         (*movdf_internal_nointeger): Ditto.
1005         (*movsf_internal): Ditto.
1006
1007 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1008
1009         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1010         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1011         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1012         (c_variable_size): Remove.
1013         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1014         call put_pending_sizes.
1015         (get_parm_info): Add parameter expr.  Use it to set
1016         arg_info->pending_sizes.
1017         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1018         get_pending_sizes.
1019         * c-parser.c (c_parser_parms_declarator): Update call to
1020         c_parser_parms_list_declarator.
1021         (c_parser_parms_list_declarator): Take parameter expr.  Update
1022         call to push_parm_decl.  Update recursive call.  Don't call
1023         get_pending_sizes.  Update calls to get_parm_info.
1024         (c_parser_objc_method_definition): Update calls to
1025         c_parser_objc_method_decl and objc_start_method_definition.
1026         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1027         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1028         grokparm.
1029         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1030         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1031         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1032
1033 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1034
1035         PR pch/45979
1036         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1037         __ARM_EABI__ hosts.
1038
1039 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1040
1041         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1042         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1043         (spu_output_mi_thunk): New function.
1044
1045 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1046
1047         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1048         targetm.asm_out.print_operand.
1049         * config/sol2.c: Include target.h.
1050
1051 2011-05-04  Jan Hubicka  <jh@suse.cz>
1052
1053         * ipa-inline.c (reset_edge_caches): New function.
1054         (update_caller_keys): Add check_inlinablity_for; do not
1055         reset edge caches; remove now unnecesary loop.
1056         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1057         (update_all_callee_keys): Likewise.
1058         (inline_small_functions): Sanity check cache; update code
1059         recomputing it.
1060
1061 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1062
1063         PR rtl-optimization/47612
1064         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1065         as the last insn of the sequence to be moved.
1066
1067 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1068
1069         PR fortran/48864
1070         * doc/invoke.texi (Ofast): Document that it
1071         enables Fortran's -fno-protect-parens.
1072
1073 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1076
1077 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1078
1079         * stor-layout.c (variable_size): Do not issue errors.
1080
1081 2011-05-04  Richard Guenther  <rguenther@suse.de>
1082
1083         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1084         for array-ref indices.
1085         (tree_coverage_counter_addr): Likewise.
1086         (build_fn_info_type): Use size_int for index types.
1087         (build_gcov_info): Likewise.
1088
1089 2011-05-04  Richard Guenther  <rguenther@suse.de>
1090
1091         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1092         to build_int_cst.
1093         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1094         for constructor indices.
1095         (push_init_level): Likewise.
1096
1097 2011-05-04  Richard Guenther  <rguenther@suse.de>
1098
1099         * explow.c (promote_mode): Move variable declarations before code.
1100
1101 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1102
1103         * tree.h (build_function_type_array): Declare.
1104         (build_varargs_function_type_array): Declare.
1105         (build_function_type_vec, build_varargs_function_type_vec): Define.
1106         * tree.c (build_function_type_array_1): New function.
1107         (build_function_type_array): New function.
1108         (build_varargs_function_type_array): New function.
1109
1110 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1111
1112         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1113         before setting STMT_VINFO_TYPE.
1114
1115 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1116
1117         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1118         instead of spu_pass_by_reference.
1119
1120 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1121
1122         * calls.c (emit_library_call_value_1): Invoke
1123         promote_function_mode hook on libcall arguments.
1124         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1125         argument being NULL.
1126         * targhooks.c (default_promote_function_mode): Lisewise.
1127         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1128         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1129
1130         * doc/tm.texi: Document that TYPE argument might be NULL.
1131
1132 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1133
1134         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1135
1136 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1137
1138         From Bernd Schmidt
1139         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1140
1141 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1142
1143         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1144         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1145         Move ...
1146         * mips-tfile.c: ... here.
1147         Don't include coretypes.h, tm.h, filenames.h.
1148         (saber_stop): Remove definition and all calls.
1149         [__SABER__]: Remove.
1150         (__LINE__): Remove default.
1151         (Size_t, Ptrdiff_t): Remove definitions.
1152         Replace by size_t, ptrdiff_t.
1153         [!MIPS_DEBUGGING_INFO]: Remove.
1154         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1155         (progname): Add const.
1156         (STATIC): Remove.
1157         Replace all uses by static.
1158         (ALIGN_SYMTABLE_OFFSET): Remove default.
1159         * mips-tdump.c: Don't include coretypes.h, tm.h.
1160         Remove !MIPS_IS_STAB guard.
1161         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1162         $(TM_H), filenames.h dependencies.
1163         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1164
1165 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1166
1167         From Jie Zhang
1168         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1169         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1170
1171 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1172
1173         From Bernd Schmidt
1174         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1175         account and save/restore RETS.
1176         (PROFILE_BEFORE_PROLOGUE): Define.
1177         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1178         the push insn to use predecrement.
1179
1180 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1181
1182         From Jie Zhang
1183         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1184
1185 2011-05-04  Nick Clifton  <nickc@redhat.com>
1186
1187         * config/mn10300/mn10300.c: Include cfgloop.h.
1188         (DUMP): New macro.
1189         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1190         Lcc or a FLcc insn into the instruction stream.
1191         (mn10300_block_contains_call): New function.  Returns true if the
1192         given basic block contains a CALL insn.
1193         (mn10300_loop_contains_call_insn): New function.  Returns true if
1194         the given loop contains a CALL insn.
1195         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1196         to use the SETLB and Lcc or FLcc insns.
1197         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1198         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1199         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1200         disable the SETLB optimization.
1201         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1202         __SETLB__ or __NO_SETLB__.
1203         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1204         (movsf_internal): Handle MDR register.
1205         (cmpsi): Make visible.
1206         (setlb): New pattern.
1207         (Lcc): New pattern.
1208         (FLcc): New pattern.
1209
1210 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1211
1212         PR target/48860
1213         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1214         for reg<->xmm moves.
1215         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1216         (vec_concatv2di_rex64_sse): Ditto.
1217         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1218         (*vec_extractv2di_1_rex64): Ditto.
1219
1220         Revert:
1221         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1222
1223         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1224         reg<->xmm moves.
1225         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1226
1227 2011-05-04  Richard Guenther  <rguenther@suse.de>
1228
1229         * tree.h (int_const_binop): Remove notrunc argument.
1230         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1231         create integer constants that are properly truncated.
1232         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1233         (const_binop): Remove zero notrunc argument to int_const_binop.
1234         (size_binop_loc): Likewise.
1235         (fold_div_compare): Likewise.
1236         (maybe_canonicalize_comparison_1): Likewise.
1237         (fold_comparison): Likewise.
1238         (fold_binary_loc): Likewise.
1239         (multiple_of_p): Likewise.
1240         * expr.c (store_constructor): Likewise.
1241         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1242         (maybe_fold_stmt_addition): Likewise.
1243         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1244         * stor-layout.c (layout_type): Likewise.
1245         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1246         * tree-sra.c (build_ref_for_offset): Likewise.
1247         (build_user_friendly_ref_for_offset): Likewise.
1248         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1249         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1250         * tree-ssa-loop-niter.c (inverse): Likewise.
1251         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1252         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1253         * tree-switch-conversion.c (check_range): Likewise.
1254         (build_constructors): Likewise.
1255         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1256         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1257         (extract_range_from_assert): Likewise.
1258         (vrp_int_const_binop): Likewise.
1259         (extract_range_from_binary_expr): Likewise.
1260         (extract_range_from_unary_expr): Likewise.
1261         (check_array_ref): Likewise.
1262         (find_case_label_range): Likewise.
1263         (simplify_div_or_mod_using_ranges): Likewise.
1264         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1265         comparing case labels for merging.
1266
1267 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1268
1269         * dwarf2out.c (debug_str_hash_forced): Removed.
1270         (gen_label_for_indirect_string): Removed.
1271         (get_debug_string_label): Removed.
1272         (AT_string_form): Generate label directly.
1273         (output_indirect_string): Test indirect_string_node for
1274         DW_FORM_strp instead of checking label and refcount.
1275         (prune_indirect_string): Removed.
1276         (prune_unused_types): Don't check debug_str_hash_forced or
1277         call prune_indirect_string.
1278
1279 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1280
1281         PR other/48093
1282         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1283
1284 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1285
1286         PR debug/47994
1287         PR debug/47919
1288         * combine.c (try_combine): Skip debug insns at m_split tests.
1289
1290 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1291
1292         PR42288
1293         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1294         when info_section_emitted.
1295
1296 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1297
1298         * config/mips/mips-opts.h: New.
1299         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1300         to mips-opts.h.
1301         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1302         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1303         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1304         via opts pointer.
1305         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1306         mips-opts.h.
1307         (mips_abi, mips_code_readable): Don't declare.
1308         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1309         (mabi=): Use Enum and Var.
1310         (mips_abi): New Enum and EnumValue entries.
1311         (mcode-readable=): Use Enum and Var.
1312         (mips_code_readable_setting): New Enum and EnumValue entries.
1313         (mr10k-cache-barrier=): Use Enum and Var.
1314         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1315
1316 2011-05-03  Jan Hubicka  <jh@suse.cz>
1317
1318         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1319         replace hash by pointer map.
1320         (cgraph_node_set_element_def, cgraph_node_set_element,
1321         const_cgraph_node_set_element, varpool_node_set_element_def,
1322         varpool_node_set_element, const_varpool_node_set_element): Remove.
1323         (free_cgraph_node_set, free_varpool_node_set): New function.
1324         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1325         * tree-emutls.c: Free varpool node set.
1326         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1327         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1328         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1329         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1330         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1331         Move here from ipa.c; implement using pointer_map
1332         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1333         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1334         debug_cgraph_node_set, varpool_node_set_new,
1335         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1336         dump_varpool_node_set, debug_varpool_node_set):
1337         Move to ipa-uitls.c.
1338         * passes.c (ipa_write_summaries): Update.
1339
1340 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1341
1342         From Mike Frysinger:
1343         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1344         bf542/bf544/bf547/bf548/bf549.
1345
1346 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1347
1348         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1349
1350 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1351
1352         From Bernd Schmidt:
1353         * config/bfin/bfin.md (MOVCC): New mode_macro.
1354         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1355         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1356         comments from generated assembly.
1357
1358 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1359
1360         From Bernd Schmidt
1361         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1362         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1363         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1364         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1365         * config/bfin/lib1funcs.asm (___muldi3): New function.
1366
1367 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1368
1369         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1370         build_function_type_list instead of build_function_type.
1371         Rearrange initialization of `args' to do so.
1372
1373 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1374
1375         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1376         instead of build_function_type.
1377
1378 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1379
1380         * config/rs6000/rs6000.c (spe_init_builtins): Call
1381         build_function_type_list instead of build_function_type.
1382         (paired_init_builtins, altivec_init_builtins): Likewise.
1383         (builtin_function_type): Likewise.
1384
1385 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1386
1387         * config/sh/sh.c (sh_media_init_builtins): Call
1388         build_function_type_list instead of build_function_type.
1389
1390 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1391
1392         * config/sparc/sparc.c (sparc_file_end): Call
1393         build_function_type_list instead of build_function_type.
1394
1395 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1396
1397         * config/alpha/alpha.c (alpha_init_builtins): Call
1398         build_function_type_list instead of build_function_type.
1399
1400 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1401
1402         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1403         build_function_type_list instead of build_function_type.
1404
1405 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1406
1407         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1408         build_function_type_list instead of build_function_type.
1409         Delete `endlink' variable.
1410
1411 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1412
1413         * config/avr/avr.c (avr_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/picochip/picochip.c (picochip_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/bfin/bfin.c (bfin_init_builtins): Call
1425         build_function_type_list instead of build_function_type.
1426
1427 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1428
1429         From Bernd Schmidt
1430         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1431         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1432
1433 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1434
1435         From Jie Zhang:
1436         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1437         libbffastfp overrides libgcc when -mfast-fp.
1438
1439 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1440
1441         Originally from Bernd Schmidt
1442         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1443         * config/bfin/bfin.c (override_options): Test it and error if
1444         TARGET_FDPIC.
1445
1446 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1447
1448         Originally From Bernd Schmidt
1449         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1450         FD-PIC.
1451
1452 2011-05-03  Jeff Law  <law@redhat.com>
1453
1454         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1455         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1456         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1457         than accessing AUX field directly.  Free the AUX field before
1458         clearing it.
1459         (thread_block, thread_through_loop_header): Likewise.
1460         (thread_single_edge, mark_threaded_blocks): Likewise.
1461         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1462         (register_jump_thread): Do not attempt to thread to a NULL edge.
1463
1464 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1465
1466         * function.c (init_function_start): Call decide_function_section.
1467         * varasm.c (decide_function_section): New function.
1468         (assemble_start_function): When not using
1469         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1470         or first_function_block_is_cold.
1471         * rtl.h (decide_function_section): Declare.
1472
1473 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1474             Jakub Jelinek  <jakub@redhat.com>
1475
1476         PR target/48774
1477         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1478         only succeed if req_mode is the same as set_mode.
1479
1480 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1481
1482         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1483         * genemit.c (gen_exp): Handle RETURN.
1484         * emit-rtl.c (verify_rtx_sharing): Likewise.
1485         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1486         * rtl.c (copy_rtx): RETURN is shared.
1487         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1488         (ret_rtx): New.
1489         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1490         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1491         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1492         * config/cris/cris.c (cris_expand_return): Likewise.
1493         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1494         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1495         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1496         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1497         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1498         Likewise.
1499         * config/v850/v850.c (expand_epilogue): Likewise.
1500         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1501         * config/arm/arm.md (epilogue): Likewise.
1502         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1503         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1504         variable to ret_reg.
1505
1506 2011-05-03  Richard Guenther  <rguenther@suse.de>
1507
1508         PR lto/48846
1509         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1510         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1511         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1512
1513 2011-05-03  Richard Guenther  <rguenther@suse.de>
1514
1515         * c-decl.c (grokdeclarator): Instead of looking at
1516         TREE_OVERFLOW check if the constant fits in the index type.
1517
1518 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1519
1520         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1521         (vec_store_lanes<mode><mode>): Likewise.
1522
1523 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1524
1525         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1526         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1527         convert_optab_index values.
1528         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1529         * genopinit.c (optabs): Initialize the new optabs.
1530         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1531         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1532         (expand_STORE_LANES): New functions.
1533         * tree.h (build_array_type_nelts): Declare.
1534         * tree.c (build_array_type_nelts): New function.
1535         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1536         (vect_model_load_cost): Likewise.
1537         (vect_store_lanes_supported, vect_load_lanes_supported)
1538         (vect_record_strided_load_vectors): Declare.
1539         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1540         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1541         (vect_transform_strided_load): Split out statement recording into...
1542         (vect_record_strided_load_vectors): ...this new function.
1543         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1544         (write_vector_array, create_array_ref): New functions.
1545         (vect_model_store_cost): Add store_lanes_p argument.
1546         (vect_model_load_cost): Add load_lanes_p argument.
1547         (vectorizable_store): Try to use store-lanes functions for
1548         interleaved stores.
1549         (vectorizable_load): Likewise load-lanes and loads.
1550         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1551         to vect_model_store_cost.
1552         (vect_build_slp_tree): Likewise vect_model_load_cost.
1553
1554 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1555
1556         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1557         * hooks.c (hook_bool_mode_uhwi_false): New function.
1558         * target.def (array_mode_supported_p): New hook.
1559         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1560         * doc/tm.texi: Regenerate.
1561         * stor-layout.c (mode_for_array): New function.
1562         (layout_type): Use it.
1563         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1564         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1565
1566 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1567
1568         PR target/48723
1569         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1570         for -fstack-check if the size to allocate is negative.
1571
1572 2011-05-02  Lawrence Crowl  <crowl@google.com>
1573
1574         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1575         (timevar_cond_start): New for starting a timer only when it is not
1576         already running.
1577         (timevar_cond_stop): New for stopping a timer when it was not already
1578         running.
1579
1580         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1581         (timevar_cond_start): New as above.
1582         (timevar_cond_stop): New as above.
1583
1584         * timevar.def: Add start/stop timers for compiler phases,
1585         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1586         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1587         and TV_PHASE_FINALIZE.
1588         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1589         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1590         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1591         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1592         Make unused TV_OVERLOAD into a start/stop timer.
1593
1594         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1595         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1596         to indicate that they are start/stop timers.
1597
1598         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1599         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1600         Move initialization to do_compile.
1601         (do_compile): Add initialization from above.
1602         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1603
1604         * c-decl.c (c_write_global_declarations): Add start/stop of
1605         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1606
1607         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1608         or TV_PARSE_INLINE, as appropriate.
1609         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1610         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1611
1612 2011-05-02  Jason Merrill  <jason@redhat.com>
1613
1614         PR c++/40975
1615         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1616
1617 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1618
1619         PR c/35445
1620         * c-decl.c (finish_decl): Only create a composite if the types are
1621         compatible.
1622
1623 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1624
1625         * config/fr30/fr30-protos.h (Mmode): Don't define.
1626         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1627         definition where used.
1628         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1629         define.  Expand definitions where used.
1630         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1631         Expand definitions where used.
1632         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1633         rx_function_arg, rx_function_arg_advance,
1634         rx_function_arg_boundary): Expand definitions of those macros.
1635         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1636         definition where used.
1637
1638 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1639
1640         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1641         reg<->xmm moves.
1642         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1643         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1644         with *movv2sf_internal_rex64_avx.
1645         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1646         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1647         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1648         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1649         "vex" in "prefix" attribute calculation.
1650         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1651
1652 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1653
1654         PR target/47951
1655         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1656         inputs match the output.
1657
1658 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1659
1660         PR target/47955
1661         * config/m68k/m68k.c (m68k_expand_prologue): Set
1662         current_function_static_stack_size.
1663
1664 2011-05-02   Jan Hubicka  <jh@suse.cz>
1665
1666         * lto-streamer.c (lto_streamer_cache_insert_1,
1667         lto_streamer_cache_lookup, lto_streamer_cache_create,
1668         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1669         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1670
1671 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1672
1673         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1674         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1675         config/m68k/t-opts: New files.
1676         * config/m68k/m68k-tables.opt: New file (generated).
1677         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1678         extra_options and m68k/t-opts to tmake_file.
1679         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1680         (all_isas): Initialize using m68k-isas.def.
1681         (all_microarchs): Initialize using m68k-microarchs.def.
1682         (m68k_find_selection): Remove.
1683         (m68k_handle_option): Don't assert that global structures are in
1684         use.  Use error_at.  Access variables via opts pointer.  Don't
1685         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1686         directly for -m68020-40 and -m68020-60.
1687         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1688         m68k_tune_entry here.
1689         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1690         to m68k-opts.h.
1691         (m68k_library_id_string): Remove declaration.
1692         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1693         (m68k_library_id_string): New Variable.
1694         (march=, mcpu=, mtune=): Use Enum and Var.
1695
1696 2011-05-02  Richard Guenther  <rguenther@suse.de>
1697
1698         * varasm.c (output_constructor_regular_field): Compute zero-based
1699         index with double-ints.  Make sure to ICE instead of producing
1700         wrong code.
1701         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1702         in asserts.  Properly use a signed type.
1703
1704 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1705
1706         * config/i386/sse.md (V): New mode iterator.
1707         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1708         TARGET_SSE2.
1709         (V_256): Rename from AVX256MODE.
1710         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1711         condition to all users.
1712         (VF1): Ditto.
1713         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1714         condition to all users.
1715         (VF_128): Make V4SF mode unconditional.
1716         (VF_256): Rename from AVX256MODEF2P.
1717         (VI4F_128): Rename from SSEMODE4S.
1718         (VI8F_128): Rename from SSEMODE2D.
1719         (VI4F_256): Rename from AVX256MODE8P.
1720         (VI8F_256): Rename from AVX256MODE4P.
1721         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1722         (ssescalarmodesuffix): Remove SF and DF modes.
1723         (SSEMODE124): Remove.
1724         (SSEMODE1248): Ditto.
1725         (SSEMODEF2P): Ditto.
1726         (AVXMODEF2P): Ditto.
1727         (AVXMODEFDP): Ditto.
1728         (AVXMODEFSP): Ditto.
1729         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1730         unconditional.
1731         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1732         unconditional.
1733         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1734         xop_pcmov_<mode>256.  Use V mode iterator.
1735
1736         Adjust RTX patterns globally for renamed mode attributes.
1737
1738 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1739
1740         * haifa-sched.c (sched_emit_insn): Emit insn before first
1741         non-scheduled insn.  Inform back-end about new insn.  Add
1742         new insn to scheduled_insns list.
1743
1744 2011-05-02  Richard Guenther  <rguenther@suse.de>
1745
1746         PR tree-optimization/48822
1747         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1748         (process_scc): Indicate which iteration we start.
1749
1750 2011-05-02  Jan Hubicka  <jh@suse.cz>
1751
1752         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1753         (lto_section_overrun): New.
1754         * lto-section-out.c (append_block): Rename to ...
1755         (lto_append_block): ... this one; export.
1756         (lto_output_1_stream): Move lto lto-streamer.h
1757         (lto_output_data_stream): Update.
1758         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1759         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1760         functions.
1761
1762 2011-05-02  Richard Guenther  <rguenther@suse.de>
1763
1764         * tree.c (tree_code_counts): New global array.
1765         (record_node_allocation_statistics): Count individual tree codes.
1766         (dump_tree_statistics): Dump individual code stats.
1767
1768 2011-05-01  Jan Hubicka  <jh@suse.cz>
1769
1770         * ipa-inline.c (caller_growth_limits): Fix thinko when
1771         looking for largest stack frame.
1772         * ipa-inline.h (dump_inline_summary): Declare.
1773         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1774         on stack usage.
1775         (dump_inline_summary): Export.
1776         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1777
1778 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1779
1780         * reginfo.c (memory_move_cost): Change rclass argument type form
1781         'enum reg_class' to reg_class_t.
1782         * reload.h (memory_move_cost): Update prototype.
1783         * postreload.c reload_cse_simplify_set): Change type dclass var to
1784         reg_class_t.
1785         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1786         Update prototype.
1787         (ira_allocate_and_set_costs): Change aclass argument type form
1788         'enum reg_class' to reg_class_t.
1789         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1790         Change aclass argument type to reg_class_t.
1791         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1792         to reg_class_t.
1793         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1794         memory_move_cost call.
1795
1796         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1797         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1798         Change type tmp var to reg_class_t.
1799
1800 2011-04-30  Jan Hubicka  <jh@suse.cz>
1801
1802         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1803         inlining into function with flatten attribute.
1804         (want_inline_small_function_p): Be more realistic about inlining
1805         cold calls where callee size grows.
1806
1807 2011-04-30  Jan Hubicka  <jh@suse.cz>
1808
1809         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1810         flags.
1811
1812 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1813
1814         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1815         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1816         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1817         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1818         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1819         (print_operand): Rename to...
1820         (sparc_print_operand): ...this. Make static. Adjust
1821         sparc_print_operand function call.
1822         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1823         functions.
1824
1825 2011-04-30  Jan Hubicka  <jh@suse.cz>
1826
1827         PR middle-end/48752
1828         * ipa-inline.c (early_inliner): Disable when doing late
1829         addition of function.
1830
1831 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1832
1833         * dwarf2out.c (get_address_mode): New inline.
1834         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1835         if not dwarf_strict emit
1836         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1837         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1838         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1839         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1840         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1841         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1842         mem_loc_descriptor callers.
1843         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1844         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1845         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1846         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1847         (base_types): New variable.
1848         (get_base_type_offset, calc_base_type_die_sizes,
1849         base_type_for_mode, mark_base_types, base_type_cmp,
1850         move_marked_base_types): New functions.
1851         (calc_die_sizes): Assert that die_offset is 0 or equal to
1852         next_die_offset.
1853         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1854         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1855         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1856         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1857         (gen_subprogram_die): Don't give up on call site parameters
1858         with non-integral or large integral modes.  Adjust
1859         mem_loc_descriptor callers.
1860         (prune_unused_types): Call prune_unused_types_mark on base_types
1861         vector entries.
1862         (resolve_addr): Call mark_base_types.
1863         (dwarf2out_finish): Call move_marked_base_types.
1864
1865         PR tree-optimization/48809
1866         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1867         type.
1868         (gen_inbound_check): Don't compute index_expr - range_min in utype
1869         again, instead reuse SSA_NAME initialized in build_arrays.
1870         Remove two useless gsi_for_stmt calls.
1871
1872 2011-04-29  Jeff Law  <law@redhat.com>
1873
1874         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1875
1876 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1877
1878         * cgraph.h (cgraph_postorder): Remove declaration.
1879         * ipa-utils.h (ipa_free_postorder_info): Declare.
1880         (ipa_reverse_postorder): Likewise.
1881         * cgraphunit.c: Include ipa-utils.h.
1882         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1883         * ipa-inline.c: Include ipa-utils.h.
1884         (ipa_inline): Update call to ipa_reverse_postorder.
1885         * ipa-pure-const.c (propagate_pure_const): Update call to
1886         ipa_reduced_postorder and ipa_print_order.  Call
1887         ipa_free_postorder_info to clean up.
1888         (propagate_nothrow): Likewise.
1889         * ipa-reference.c (propagate): Removed a useless call to
1890         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1891         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1892         * ipa.c: Include ipa-utils.h.
1893         (ipa_profile): Update call to ipa_reverse_postorder.
1894         (cgraph_postorder): Moved to...
1895         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1896         (ipa_utils_print_order): Renamed to ipa_print_order.
1897         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1898         comments.
1899         (ipa_free_postorder_info): New function.
1900         * passes.c: Include ipa-utils.h.
1901         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1902         (ipa_write_summaries): Likewise.
1903         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1904         (cgraphunit.o): Likewise.
1905         (ipa.o): Likewise.
1906         (ipa-inline.o): Likewise.
1907
1908 2011-04-29  Jan Hubicka  <jh@suse.cz>
1909
1910         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1911         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1912         * ipa-inline.h (clause_t): Turn into unsigned int.
1913         * ipa-inline-analysis.c (add_clause): Do more simplification.
1914         (and_predicates): Shortcut more cases.
1915         (predicates_equal_p): Move forward; check that clauses are properly
1916         ordered.
1917         (or_predicates): Shortcut more cases.
1918         (edge_execution_predicate): Rewrite as...
1919         (set_cond_stmt_execution_predicate): ... this function; handle
1920         __builtin_constant_p.
1921         (set_switch_stmt_execution_predicate): New .
1922         (compute_bb_predicates): New.
1923         (will_be_nonconstant_predicate): Update TODO.
1924         (estimate_function_body_sizes): Use compute_bb_predicates
1925         and free them later, always try to estimate if stmt is constant.
1926         (estimate_time_after_inlining, estimate_size_after_inlining):
1927         Gracefully handle optimized out edges.
1928         (read_predicate): Fix off by one error.
1929
1930 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1931
1932         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1933
1934 2011-04-27  Xinliang David Li  <davidxl@google.com>
1935
1936         * tree-profile.c (init_ic_make_global_vars): Set
1937         tls attribute on ic vars.
1938         * coverage.c (coverage_end_function): Initialize
1939         function_list with zero.
1940
1941 2011-04-29  Richard Guenther  <rguenther@suse.de>
1942
1943         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1944         for the type of the result.
1945         (fold_builtin_isascii): Likewise.
1946         (fold_builtin_toascii): Use integer_type_node where appropriate.
1947         (fold_builtin_logb): Likewise.
1948         (fold_builtin_frexp): Likewise.
1949         (fold_builtin_strstr): Likewise.
1950         (fold_builtin_strpbrk): Likewise.
1951         (fold_builtin_fputs): Likewise.
1952         (fold_builtin_sprintf): Likewise.
1953         (fold_builtin_snprintf): Likewise.
1954         (fold_builtin_printf): Likewise.
1955         (do_mpfr_remquo): Use a proper type for the assigned constant.
1956         (do_mpfr_lgamma_r): Likewise.
1957         * dwarf2out.c (resolve_one_addr): Use size_int.
1958         * except.c (init_eh): Likewise.
1959         (assign_filter_values): Use integer_type_node for filter values.
1960         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1961         indices.
1962         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1963         for EH region numbers.
1964         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1965         for the shift amount.
1966
1967 2011-04-29  Richard Guenther  <rguenther@suse.de>
1968
1969         * expr.h (expand_shift): Rename to ...
1970         (expand_variable_shift): ... this.
1971         (expand_shift): Take a constant shift amount.
1972         * expmed.c (expand_shift): Rename to ...
1973         (expand_variable_shift): ... this.
1974         (expand_shift): New wrapper around expand_variable_shift.
1975         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1976         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1977         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1978         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1979         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1980         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1981         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1982         emit_store_flag_1, emit_store_flag): Likewise.
1983         * builtins.c (expand_builtin_signbit): Likewise.
1984         * calls.c (load_register_parameters): Likewise.
1985         * function.c (assign_parm_setup_block): Likewise.
1986         * lower-subreg.c (resolve_shift_zext): Likewise.
1987         * optabs.c (widen_bswap, expand_abs_nojump,
1988         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1989         * spu/spu.c (spu_expand_extv): Likewise.
1990         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1991
1992 2011-04-29  Richard Guenther  <rguenther@suse.de>
1993
1994         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1995         for the remapped region number.
1996         * predict.c (build_predict_expr): Use integer_type_node for the
1997         predict kind.
1998         * fold-const.c (fold_binary_loc): Use integer_type_node for
1999         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2000
2001 2011-04-29  Michael Matz  <matz@suse.de>
2002
2003         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2004         other trees that just builtins.
2005         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2006
2007 2011-04-29  Richard Guenther  <rguenther@suse.de>
2008
2009         * tree-nested.c (get_trampoline_type): Use size_int.
2010         (get_nl_goto_field): Likewise.
2011         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2012         for all indexes.
2013         (lower_eh_constructs_2): Likewise.
2014         (lower_resx): Likewise.
2015         (lower_eh_dispatch): Likewise.
2016         * tree-mudflap.c (mf_build_string): Use size_int.
2017         (mudflap_register_call): Use integer_type_node for the flag.
2018         (mudflap_enqueue_constant): Use size_int.
2019         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2020         instead of rebuilding it.
2021
2022 2011-04-29  Richard Guenther  <rguenther@suse.de>
2023
2024         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2025         Handle OBJ_TYPE_REF.
2026         (find_func_aliases_for_call): Use it more consistently.
2027
2028 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2029
2030         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2031         (rank_for_schedule): Use it.
2032         (schedule_block): Set it.
2033
2034 2011-04-28  David Li  <davidxl@google.com>
2035
2036         * tree.c (crc32_string): Use crc32_byte.
2037         (crc32_byte): New function.
2038         * tree.h (crc32_byte): New function.
2039         * gcov.c (read_graph_file): Handle new cfg_cksum.
2040         (read_count_file): Ditto.
2041         * profile.c (instrument_values): Ditto.
2042         (get_exec_counts): Ditto.
2043         (read_profile_edge_counts): Ditto.
2044         (compute_branch_probabilities): Ditto.
2045         (compute_value_histograms): Ditto.
2046         (branch_prob): Ditto.
2047         (end_branch_prob): Ditto.
2048         * coverage.c (read_counts_file): Ditto.
2049         (get_coverage_counts): Ditto.
2050         (tree_coverage_counter_addr): Ditto.
2051         (coverage_checksum_string): Ditto.
2052         (coverage_begin_output): Ditto.
2053         (coverage_end_function): Ditto.
2054         (build_fn_info_type): Ditto.
2055         (build_fn_info_value): Ditto.
2056         * libgcov.c (gcov_exit): Ditto.
2057         * gcov-dump.c (tag_function): Ditto.
2058         (compute_checksum): Remove.
2059
2060 2011-04-29  Alan Modra  <amodra@gmail.com>
2061
2062         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2063         unspec plus offset.  Tidy macho code.
2064
2065 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2066
2067         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2068         node instead of a decl.  Update all callers.
2069         * cgraph.h: Update declaration.
2070
2071 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2072
2073         PR tree-optimization/48765
2074         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2075         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2076         to indicate if loop aware SLP is being used.  Scan the statements
2077         and update the vectorization factor according to the type of
2078         vectorization before statement analysis.
2079         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2080         pass it to vect_analyze_loop_operations.
2081         (vectorizable_reduction): Set number of copies to 1 in case of pure
2082         SLP statement.
2083         * tree-vect-stmts.c (vectorizable_conversion,
2084         vectorizable_assignment, vectorizable_shift,
2085         vectorizable_operation, vectorizable_type_demotion,
2086         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2087         Likewise.
2088         (vectorizable_condition): Move the check that it is not SLP
2089         vectorization before the number of copies check.
2090         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2091         to vectorize the loop using SLP.
2092
2093 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2094
2095         PR middle-end/48597
2096         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2097         inline asm.
2098
2099 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2100
2101         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2102         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2103         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2104         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2105         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2106         linux*.h headers.
2107         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2108         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2109         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2110         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2111         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2112         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2113         REG_NAME.
2114         * config/i386/linux.h (REG_NAME): Don't define.
2115         * config/i386/linux64.h (REG_NAME): Don't define.
2116         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2117         Undefine before defining.
2118
2119 2011-04-28  Jan Hubicka  <jh@suse.cz>
2120
2121         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2122         nonconstant_names array.
2123         (estimate_function_body_sizes): Build nonconstant_names array; handle
2124         BUILT_IN_CONSTANT_P.
2125
2126 2011-04-28  Richard Guenther  <rguenther@suse.de>
2127
2128         PR bootstrap/48804
2129         Revert
2130         2011-04-28  Richard Guenther  <rguenther@suse.de>
2131
2132         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2133         as late as possible.
2134
2135 2011-04-28  Richard Guenther  <rguenther@suse.de>
2136
2137         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2138         (debug_constraint): Do it here.
2139         (dump_constraints): And here.
2140         (rewrite_constraints): And here.
2141         (dump_constraint_edge): Remove.
2142         (dump_constraint_graph): Rewrite to produce DOT output.
2143         (solve_constraints): Build succ graph as late as possible.
2144         Dump constraint graphs before and after solving.
2145
2146 2011-04-28  Richard Guenther  <rguenther@suse.de>
2147
2148         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2149         New function split out from ...
2150         (find_func_aliases): ... here.  Call it.
2151         (find_func_aliases_for_call): Likewise.
2152
2153 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2154
2155         * internal-fn.h (internal_fn_name_array): Declare.
2156         (internal_fn_flags_array): Likewise.
2157
2158 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2159
2160         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2161         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2162         Move from sse.md.
2163         (ssemodefsuffix): Remove.
2164         (ssevecmodesuffix): New mode attribute.
2165         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2166         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2167         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2168         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2169         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2170         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2171         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2172         ssemodesuffix mode attribute.
2173         (float splitters): Use ssevecmodesuffix mode attribute.
2174         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2175         (sseinsmode): Rename from avxvecmode.
2176         (avxsizesuffix): Rename from avxmodesuffix.
2177         (sseintvecmode): Rename from avxpermvecmode.
2178         (ssedoublevecmode): Rename from ssedoublesizemode.
2179         (ssehalfvecmode): Rename from avxhalfvecmode.
2180         (ssescalarmode): Rename from avxscalarmode.
2181         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2182         templates for ssemodesuffix mode attribute.
2183         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2184         mode attribute.
2185
2186         Adjust RTX patterns globally for renamed mode attributes.
2187
2188 2011-04-27  Jan Hubcika  <jh@suse.cz>
2189
2190         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2191         * ipa-inline-analysis.c: Include alloc-pool.h.
2192         (edge_predicate_pool): New.
2193         (trye_predicate_p): New function
2194         (false_predicate_p): New function.
2195         (add_clause): Sanity check that false clauses are "optimized";
2196         never add clauses to predicate that is already known to be false.
2197         (and_predicate): Use flase_predicate_p.
2198         (evaulate_predicate): Rename to ...
2199         (evaluate_predicate): ... this one; update all callers; assert
2200         that false is not listed among possible truths.
2201         (dump_predicate): Use true_predicate_p.
2202         (account_size_time): Use false_predicate_p.
2203         (evaulate_conditions_for_edge): Rename to ...
2204         (evaluate_conditions_for_edge) ... this one.
2205         (edge_set_predicate): New function.
2206         (inline_edge_duplication_hook): Duplicate edge predicates.
2207         (inline_edge_removal_hook): Free edge predicates.
2208         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2209         (dump_inline_summary): Update.
2210         (estimate_function_body_sizes): Set edge predicates.
2211         (estimate_calls_size_and_time): Handle predicates.
2212         (estimate_callee_size_and_time): Update.
2213         (remap_predicate): Add toplev_predicate; update comment.
2214         (remap_edge_predicates): New function.
2215         (inline_merge_summary): Compute toplev predicate; update.
2216         (read_predicate): New function.
2217         (read_inline_edge_summary): Use it.
2218         (inline_read_section): Likewise.
2219         (write_predicate): New function.
2220         (write_inline_edge_summary): Use it.
2221         (inline_write_summary): Likewise.
2222         (inline_free_summary): Free alloc pool and edge summary vec.
2223
2224 2011-04-27  Richard Guenther  <rguenther@suse.de>
2225
2226         * tree-ssa-structalias.c (changed_count): Remove.
2227         (changed): Use a bitmap.
2228         (unify_nodes): Adjust.
2229         (do_sd_constraint): Likewise.
2230         (do_ds_constraint): Likewise.
2231         (do_complex_constraint): Likewise.
2232         (solve_graph): Likewise.
2233
2234 2011-04-27  Jan Hubicka  <jh@suse.cz>
2235
2236         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2237
2238 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2239
2240         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2241         (avx_vperm2f128_*_operand): Ditto.
2242         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2243         Use avx_vpermilp_parallel in insn condition.
2244         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2245         Use avx_vperm2f128_parallel in insn condition.
2246
2247 2011-04-27  Richard Guenther  <rguenther@suse.de>
2248
2249         * Makefile.in (tree-ssa-structalias.o): Remove
2250         gt-tree-ssa-structalias.h dependency.
2251         (GTFILES): Remove tree-ssa-structalias.c.
2252         * tree.c (allocate_decl_uid): New function.
2253         (make_node_stat): Use it.
2254         (copy_node_stat): Likewise.
2255         * tree.h (allocate_decl_uid): Declare.
2256         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2257         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2258         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2259         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2260         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2261         (struct heapvar_map): Likewise.
2262         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2263         heapvar_insert): Likewise.
2264         (make_heapvar_for): Rename to ...
2265         (make_heapvar): ... this.  Simplify.
2266         (fake_var_decl_obstack): New global var.
2267         (build_fake_var_decl): New function.
2268         (make_constraint_from_heapvar): Adjust.
2269         (handle_lhs_call): Likewise.
2270         (create_function_info_for): Likewise.
2271         (intra_create_variable_infos): Likewise.
2272         (init_alias_vars): Allocate fake_var_decl_obstack.
2273         (init_alias_heapvars, delete_alias_heapvars): Remove.
2274         (compute_points_to_sets): Do not call init_alias_heapvars.
2275         (ipa_pta_execute): Likewise.
2276         (delete_points_to_sets): Free fake_var_decl_obstack.
2277
2278 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2279
2280         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2281         (si_from_UTItype, si_to_UTItype): New functions.
2282         (__udivmodti4): Use them to implement type-punning.
2283         * config/spu/multi3.c (union qword_TItype): New data type.
2284         (si_from_TItype, si_to_TItype): New functions.
2285         (__multi3): Use them to implement type-punning.
2286
2287 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2288
2289         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2290
2291 2011-04-27  Jan Hubicka  <jh@suse.cz>
2292
2293         * ipa-prop.c (function_insertion_hook_holder): New holder.
2294         (ipa_add_new_function): New function.
2295         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2296         Register/deregister holder.
2297
2298 2011-04-27  Richard Guenther  <rguenther@suse.de>
2299
2300         PR tree-optimization/48772
2301         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2302
2303 2011-04-27  Richard Guenther  <rguenther@suse.de>
2304
2305         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2306         TARGET_MEM_REF handling.
2307
2308 2011-04-27  Nick Clifton  <nickc@redhat.com>
2309
2310         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2311         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2312         (REG_CLASS_NAMES): Likewise.
2313         (REG_CLASS_CONTENTS): Likewise.
2314         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2315         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2316         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2317         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2318         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2319         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2320         duplicate register classes.
2321         (frv_class_likely_spilled_p): Likewise.
2322         (frv_register_move_cost): Likewise.
2323
2324         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2325         end of the regno_reg_class array.
2326
2327 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2328
2329         PR c/48742
2330         * c-typeck.c (build_binary_op): Don't wrap arguments if
2331         int_operands is true.
2332
2333 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2334
2335         PR target/48767
2336         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2337         targetm.calls.must_pass_in_stack for void type.
2338
2339 2011-04-26  Jan Hubicka  <jh@suse.cz>
2340
2341         * cgraphbuild.c (build_cgraph_edges): Update call
2342         of cgraph_create_edge and cgraph_create_indirect_edge.
2343         * cgraph.c (cgraph_create_edge_including_clones,
2344         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2345         cgraph_update_edges_for_call_stmt_node): Do not take nest
2346         argument; do not initialize call_stmt_size/time.
2347         (dump_cgraph_node): Do not dump nest.
2348         (cgraph_clone_edge): Do not take loop_nest argument;
2349         do not propagate it; do not clone call_stmt_size/time.
2350         (cgraph_clone_node): Likewise.
2351         (cgraph_create_virtual_clone): Update.
2352         * cgraph.h (struct cgraph_edge): Remove
2353         call_stmt_size/call_stmt_time/loop_nest.
2354         (cgraph_create_edge, cgraph_create_indirect_edge,
2355         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2356         prototype.
2357         * tree-emutls.c (gen_emutls_addr): Update.
2358         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2359         loop_nest; handle indirect calls, too.
2360         (clone_inlined_nodes): Do not care about updating inline summaries.
2361         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2362         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2363         stream call_stmt_size/call_stmt_time/loop_nest.
2364         * ipa-inline.c (edge_badness): Update.
2365         (ipa_inline): dump summaries after inlining.
2366         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2367         New.
2368         (inline_edge_summary): New function.
2369         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2370         (inline_edge_removal_hook): Handle edge summaries.
2371         (inline_edge_duplication_hook): New hook.
2372         (inline_summary_alloc): Alloc hooks.
2373         (initialize_growth_caches): Do not register removal hooks.
2374         (free_growth_caches); Do not free removal hook.
2375         (dump_inline_edge_summary): New function.
2376         (dump_inline_summary): Use it.
2377         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2378         (inline_update_callee_summaries): New function.
2379         (inline_merge_summary): Use it.
2380         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2381         (read_inline_edge_summary): New function.
2382         (inline_read_section): Use it.
2383         (write_inline_edge_summary): New function.
2384         (inline_write_summary): Use it.
2385         (inline_free_summary): Free edge new holders.
2386         * tree-inline.c (copy_bb): Update.
2387
2388 2011-04-26  Jason Merrill  <jason@redhat.com>
2389
2390         * tree-eh.c (lower_try_finally_switch): Create the label along with
2391         the CASE_LABEL_EXPR.
2392
2393 2011-04-26  David S. Miller  <davem@davemloft.net>
2394             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2395
2396         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2397         * configure: Regenerate.
2398
2399 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2400
2401         PR target/48258
2402         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2403         reduction.
2404         (VEC_reduc): New code iterator and splitters for vector reduction.
2405         (VEC_reduc_name): Ditto.
2406         (VEC_reduc_rtx): Ditto.
2407         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2408         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2409
2410         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2411         support for extracting SF on VSX.
2412
2413         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2414         generating xscvspdp.
2415         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2416         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2417         double add, minimum, maximum vector reduction.
2418         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2419         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2420         optimize double vector reduction.
2421         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2422
2423 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2424
2425         * config/fr30/fr30.h (inhibit_libc): Don't define.
2426         * config/m32r/m32r-protos.h: Correct comment.
2427         * config/v850/v850.h (GHS_default_section_names,
2428         GHS_current_section_names): Use tree, not union tree_node *.
2429
2430 2011-04-26  Xinliang David Li  <davidxl@google.com>
2431
2432         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2433         * c-family/c-opts.c (c_common_handle_option): Set
2434         warn_maybe_uninitialized.
2435         * opts.c (common_handle_option): Ditto.
2436         * common.opt:  New option.
2437         * tree-ssa.c (warn_uninit): Add one more parameter.
2438         (warn_uninitialized_var): Pass warning code.
2439         * tree-flow.h: Interface change.
2440
2441
2442 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2443
2444         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2445         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2446         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2447
2448 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2449
2450         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2451         * config/mips/mips.opt (mmips-tfile): Remove.
2452
2453         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2454         mips-tdump reference to ...
2455         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2456         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2457         reference by Tru64 UNIX.
2458
2459 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2460
2461         PR debug/48768
2462         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2463         is error_mark_node, set value to NULL.
2464
2465         PR tree-optimization/48734
2466         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2467         if return value from maybe_fold_*_comparsions isn't something
2468         the code is prepared to handle.
2469
2470 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2471
2472         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2473         mode check.
2474         (ext_QIreg_nomode_operands): Remove.
2475         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2476         (*andsi_1): Ditto.
2477         (*andhi_1): Ditto.
2478
2479 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2480
2481         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2482
2483 2011-04-26  Richard Guenther  <rguenther@suse.de>
2484
2485         * c-typeck.c (build_unary_op): Do not expand array-refs via
2486         pointer arithmetic.  Only adjust qualifiers for function types.
2487
2488 2011-04-26  Richard Guenther  <rguenther@suse.de>
2489
2490         PR middle-end/48694
2491         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2492         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2493         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2494         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2495
2496 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2497
2498         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2499         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2500         * doc/extend.texi: Document __underlying_type.
2501
2502 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2503
2504         * config/rs6000/titan.md (automata_option "progress"): Remove.
2505
2506 2011-04-25  Jeff Law  <law@redhat.com>
2507
2508         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2509
2510 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2511
2512         * system.h (ENUM_BITFIELD): Remove.
2513
2514 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2515             Eric Botcazou  <ebotcazou@adacore.com>
2516
2517         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2518         for STORE_FLAG_VALUE==-1 case.
2519
2520 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2521
2522         PR target/43804
2523         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2524         LEGITIMATE_PIC_OPERAND_P.
2525
2526 2011-04-24  Jan Hubicka  <jh@suse.cz>
2527
2528         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2529         WPA hack.
2530         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2531         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2532         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2533         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2534         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2535         Sanity check predicate length.
2536         (remap_predicate): Likewise; sanity check jump functions.
2537         (inline_read_section, inline_write_summary): Sanity check
2538         predicate length.
2539
2540 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2541
2542         PR other/48748
2543         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2544         __is_literal_type, and __is_trivial; update throughout about
2545         possibly cv-qualified void types.
2546
2547 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2548
2549         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2550         testsuite and make it version agnostic.
2551
2552 2011-04-22  Jan Hubicka  <jh@suse.cz>
2553
2554         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2555
2556 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2557
2558         PR c/48685
2559         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2560         to VOID_TYPE even around MODIFY_EXPR.
2561
2562 2011-04-22  Mike Stump  <mikestump@comcast.net>
2563
2564         * gensupport.c (read_md_rtx): Fix typo in comment.
2565         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2566         comment.
2567
2568 2011-04-22  Jan Hubicka  <jh@suse.cz>
2569
2570         * gengtype.c (open_base_files): Add ipa-inline.h include.
2571         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2572         ipa-prop.c; update all uses.
2573         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2574         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2575         merge summary of inlined function into former caller.
2576         * ipa-inline.c (max_benefit): Remove.
2577         (edge_badness): Compensate for removal of benefits.
2578         (update_caller_keys): Use
2579         reset_node_growth_cache/reset_edge_growth_cache.
2580         (update_callee_keys): Likewise.
2581         (update_all_callee_keys): Likewise.
2582         (inline_small_functions): Do not collect max_benefit; do not reset
2583         estimated_growth; call free_growth_caches and initialize_growth_caches.
2584         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2585         struct size_time_entry): New structures.
2586         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2587         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2588         and estimated_growth.
2589         (edge_growth_cache_entry): New structure.
2590         (node_growth_cache, edge_growth_cache): New global vars.
2591         (estimate_growth): Turn into inline.
2592         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2593         initialize_growth_caches, free_growth_caches): Declare.
2594         (estimate_edge_growth): Rewrite.
2595         (estimate_edge_time): Implement as inline cache lookup.
2596         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2597         functions.
2598         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2599         (NUM_CONDITIONS): New constant.
2600         (predicate_conditions): New enum.
2601         (IS_NOT_CONSTANT): New constant.
2602         (edge_removal_hook_holder): New var.
2603         (node_growth_cache, edge_growth_cache): New global vars.
2604         (true_predicate, single_cond_predicate, false_predicate,
2605         not_inlined_predicate, add_condition, add_clause, and_predicates,
2606         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2607         dump_clause, dump_predicate, account_size_time,
2608         evaulate_conditions_for_edge): New functions.
2609         (inline_summary_alloc): Move to heap.
2610         (inline_node_removal_hook): Clear condition and entry vectors.
2611         (inline_edge_removal_hook): New function.
2612         (initialize_growth_caches, free_growth_caches): New function.
2613         (dump_inline_summary): Update.
2614         (edge_execution_predicate): New function.
2615         (will_be_nonconstant_predicate): New function.
2616         (estimate_function_body_sizes): Compute BB and constantness predicates.
2617         (compute_inline_parameters): Do not clear estimated_growth.
2618         (estimate_edge_size_and_time): New function.
2619         (estimate_calls_size_and_time): New function.
2620         (estimate_callee_size_and_time): New function.
2621         (remap_predicate): New function.
2622         (inline_merge_summary): New function.
2623         (do_estimate_edge_time): New function based on...
2624         (estimate_edge_time): ... this one.
2625         (do_estimate_edge_growth): New function.
2626         (do_estimate_growth): New function based on....
2627         (estimate_growth): ... this one.
2628         (inline_analyze_function): Analyze after deciding on jump functions.
2629         (inline_read_section): New function.
2630         (inline_read_summary): Use it.
2631         (inline_write_summary): Write all the new data.
2632         * ipa-prop.c (ipa_get_param_decl_index): Export.
2633         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2634         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2635         Declare.
2636         (ipa_get_lattice): Move here from ipa-cp.c
2637         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2638         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2639         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2640         cgraph_edge_inlinable_p): Remove.
2641         * cgraphunit.c: Include ipainline.h
2642         (cgraph_process_new_functions): Update call of
2643         compute_inline_parameters.
2644
2645 2011-04-22  Richard Guenther  <rguenther@suse.de>
2646
2647         * tree.c (build_int_cst): Properly create canonicalized integer
2648         constants.
2649         (build_int_cst_type): Remove scary comments.
2650
2651 2011-04-22  Xinliang David Li  <davidxl@google.com>
2652
2653         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2654         by default when -Wno-error is not specified.
2655         * opts-global.c (decode_options): Remove call to
2656         control_warning_options.
2657
2658 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2659
2660         PR tree-optimization/48717
2661         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2662         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2663
2664 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2665
2666         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2667         definition where used.
2668
2669 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2670
2671         PR c/48716
2672         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2673         TREE_STATIC variables declared inside of some OpenMP construct.
2674
2675 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2676
2677         PR middle-end/48585
2678         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2679
2680 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2681
2682         PR c/36750
2683         * c-typeck.c (pop_init_level): Do not warn about initializing
2684         with ` = {0}'.
2685
2686 2011-04-22  Alan Modra  <amodra@gmail.com>
2687
2688         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2689         when returning call_cookie.
2690         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2691         pointers, to functions with no more vector args than the current
2692         function, and some non-local calls for ABI_V4.
2693         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2694         sibcall_nonlocal_aix64): Combine to ..
2695         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2696         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2697         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2698         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2699         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2700         operand.
2701         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2702         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2703         sibcall_value_symbolic_64): Delete.
2704
2705 2011-04-21  Xinliang David Li  <davidxl@google.com>
2706
2707         * cgraph.h: Remove pid.
2708         * cgraph.c: Remove pid.
2709         * value-prof.c (init_node_map): New function.
2710         (del_node_map): New function.
2711         (find_func_by_funcdef_no): New function.
2712         (gimple_ic_transform): Call new function.
2713         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2714         * function.c (get_last_funcdef_no): New function.
2715         * function.h (get_last_funcdef_no): New function.
2716         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2717         to libgcov function.
2718         (tree-profiling): Call node map init and delete function.
2719
2720 2011-04-21  Ian Lance Taylor  <iant@google.com>
2721
2722         * godump.c (go_format_type): Use exported Go name for anonymous
2723         field name.
2724
2725 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2726
2727         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2728         Call builtin_function_type_list instead of builtin_function_type.
2729         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2730
2731 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2732
2733         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2734         build_function_type_list instead of build_function_type.
2735         Delete variable `endlink'.
2736
2737 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2738
2739         * config/s390/s390.c (s390_init_builtins): Call
2740         build_function_type_list instead of build_function_type.
2741
2742 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2743
2744         * config/ia64/ia64.c (ia64_init_builtins): Call
2745         build_function_type_list instead of builtin_function_type.
2746
2747 2011-04-21  Easwaran Raman  <eraman@google.com>
2748
2749         * cfgexpand.c (stack_var): Remove OFFSET...
2750         (add_stack_var): ...and its reference here...
2751         (expand_stack_vars): ...and here.
2752         (stack_var_cmp): Sort by descending order of size.
2753         (partition_stack_vars): Change heuristic.
2754         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2755         (dump_stack_var_partition): Add newline after each partition.
2756
2757 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2758             Jeff Law  <law@redhat.com>
2759
2760         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2761         * gengtype.c (matching_file_name_substitute): Likewise.
2762
2763 2011-04-21  Richard Guenther  <rguenther@suse.de>
2764
2765         PR lto/48703
2766         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2767
2768 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2769
2770         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2771
2772 2011-04-21  Richard Guenther  <rguenther@suse.de>
2773
2774         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2775         file name.
2776
2777 2011-04-21  Richard Guenther  <rguenther@suse.de>
2778
2779         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2780         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2781         Use DECL_P, not SSA_VAR_P.
2782         (ptr_derefs_may_alias_p): Likewise.
2783         (ptr_deref_may_alias_ref_p_1): Likewise.
2784         (decl_refs_may_alias_p): Likewise.
2785         (refs_may_alias_p_1): Likewise.
2786         (ref_maybe_used_by_call_p_1): Likewise.
2787         (call_may_clobber_ref_p_1): Likewise.
2788         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2789         are either MEM_REF or TARGET_MEM_REF.
2790         (indirect_refs_may_alias_p): Likewise.
2791         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2792         for MEM_EXPR of indirect calls.
2793
2794 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2795
2796         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2797         (dst_file_info_struct): Remove flen field.
2798         (lookup_filename): Remove code that set flen field.
2799
2800 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2801
2802         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2803
2804 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2805
2806         PR target/48708
2807         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2808         vec_extract and vec_concat for non-SSE4_1 targets.
2809
2810 2011-04-21  Richard Guenther  <rguenther@suse.de>
2811
2812         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2813         return statements.
2814
2815 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2816
2817         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2818         undefine.
2819         (FILE): Don't undefine.
2820
2821 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2822
2823         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2824         struct rtx_def *.
2825         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2826         struct rtx_def *.
2827         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2828         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2829         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2830         rtx_def *.
2831         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2832         definitions where used.
2833         * config/microblaze/microblaze.h (struct microblaze_args): Use
2834         rtx, not struct rtx_def *.
2835         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2836         rtx_def *.
2837         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2838         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2839         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2840         not struct rtx_def *.
2841         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2842         struct rtx_def *.
2843         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2844         rtx_def *.
2845         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2846
2847 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2848
2849         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2850         operand_equal_p to compare DR_BASE_ADDRESSes.
2851         (vect_check_interleaving): Likewise.
2852
2853 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2854
2855         PR target/46329
2856         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2857         for all Neon struct constants.
2858
2859 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2860
2861         * target.def (legitimate_constant_p): New hook.
2862         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2863         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2864         * doc/tm.texi: Regenerate.
2865         * hooks.h (hook_bool_mode_rtx_true): Declare.
2866         * hooks.c (hook_bool_mode_rtx_true): Define.
2867         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2868         * calls.c (precompute_register_parameters): Replace uses of
2869         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2870         (emit_library_call_value_1): Likewise.
2871         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2872         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2873         * ira-costs.c (scan_one_insn): Likewise.
2874         * recog.c (general_operand, immediate_operand): Likewise.
2875         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2876         * reload1.c (init_eliminable_invariants): Likewise.
2877
2878         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2879         mode argument.
2880         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2881         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2882         argument.
2883         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2884         * config/alpha/predicates.md (input_operand): Update call to
2885         alpha_legitimate_constant_p.
2886
2887         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2888         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2889         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2890         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2891         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2892         (arm_legitimate_constant_p): New functions.
2893         (arm_cannot_force_const_mem): Make static.
2894
2895         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2896
2897         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2898         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2899         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2900         instead of bfin_legitimate_constant_p.
2901         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2902         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2903
2904         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2905
2906         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2907
2908         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2909         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2910         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2911         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2912
2913         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2914         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2915         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2916
2917         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2918         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2919         * config/i386/i386.c (legitimate_constant_p): Rename to...
2920         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2921         argument.
2922         (ix86_cannot_force_const_mem): Update accordingly.
2923         (ix86_legitimate_address_p): Likewise.
2924         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2925         * config/i386/i386.md: Update commentary.
2926
2927         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2928         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2929         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2930         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2931
2932         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2933
2934         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2935         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2936         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2937         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2938
2939         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2940         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2941         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2942
2943         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2944         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2945         (m32r_legitimate_constant_p): New function.
2946
2947         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2948         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2949         LEGITIMATE_CONSTANT_P.
2950         (LEGITIMATE_CONSTANT_P): Delete.
2951         * config/m68k/m68k.c (m68k_expand_prologue): Call
2952         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2953         (m68k_legitimate_constant_p): New function.
2954         * config/m68k/m68k.md: Update comments.
2955
2956         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2957         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2958         (mcore_legitimate_constant_p): New function.
2959
2960         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2961         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2962         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2963         Add a mode argument.
2964         (mep_legitimate_address): Update accordingly.
2965         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2966
2967         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2968         Delete.
2969         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2970         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2971         static.  Check OP's mode for VOIDmode.
2972         (microblaze_legitimate_constant_p): New function.
2973         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2974
2975         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2976         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2977         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2978         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2979         * config/mips/predicates.md: Update comments.
2980
2981         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2982         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2983         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2984         (mmix_legitimate_constant_p): Make static, return a bool, and take
2985         a mode argument.
2986         (mmix_print_operand_address): Update accordingly.
2987
2988         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2989         Delete.
2990         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2991         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2992         static.  Add a mode argument.
2993         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2994
2995         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2996
2997         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2998         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2999         (pa_legitimate_constant_p): New function.
3000
3001         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3002
3003         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3004         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3005         (pdp11_legitimate_constant_p): New function.
3006
3007         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3008         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3009         (rs6000_legitimate_constant_p): New function.
3010
3011         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3012         (rx_legitimate_constant_p): ...this.
3013         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3014         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3015         (rx_legitimate_constant_p): ...this.
3016         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3017         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3018
3019         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3020         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3021         * config/s390/s390.c (legitimate_constant_p): Rename to...
3022         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3023         and add a mode argument.
3024         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3025
3026         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3027
3028         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3029         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3030         (sh_legitimate_constant_p): New function.
3031
3032         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3033         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3034         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3035         (legitimate_constant_p): Rename to...
3036         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3037         argument.
3038         (constant_address_p): Update accordingly.
3039
3040         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3041         argument and return a bool.
3042         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3043         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3044         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3045         (spu_rtx_costs): Update accordingly.
3046         * config/spu/predicates.md (vec_imm_operand): Likewise.
3047
3048         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3049
3050         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3051         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3052         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3053
3054         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3055         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3056         * config/vax/vax.c (legitimate_constant_p): Likewise.
3057
3058         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3059         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3060         (xtensa_legitimate_constant_p): New function.
3061
3062 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3063
3064         * target.def (cannot_force_const_mem): Add a mode argument.
3065         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3066         * doc/tm.texi: Regenerate.
3067         * hooks.h (hook_bool_mode_rtx_false): Declare.
3068         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3069         (hook_bool_mode_const_rtx_true): Likewise.
3070         (hook_bool_mode_rtx_false): New function.
3071         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3072         to be non-VOID.  Update call to cannot_force_const_mem.
3073         (find_reloads): Update accordingly.
3074         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3075         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3076         argument.
3077         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3078         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3079         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3080         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3081         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3082         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3083         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3084         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3085         (m68k_cannot_force_const_mem): ...this new function.
3086         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3087         argument.
3088         (mips_const_insns, mips_legitimize_const_move): Update calls.
3089         (mips_secondary_reload_class): Likewise.
3090         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3091         (pa_cannot_force_const_mem): ...this new function.
3092         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3093         (rs6000_cannot_force_const_mem): ...this new function.
3094         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3095         argument.
3096         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3097         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3098         to...
3099         (xtensa_cannot_force_const_mem): ...this new function.
3100
3101 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3102
3103         * config/mips/mips.c (mips16_build_function_stub): Call
3104         build_function_type_list instead of build_function_type.
3105         (mips16_build_call_stub): Likewise.
3106
3107 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3108
3109         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3110         instead of build_function_type.
3111
3112 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3113
3114         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3115         instead of build_function_type.
3116
3117 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3118
3119         PR target/48678
3120         * config/i386/i386.md (insv): Change operand 0 constraint to
3121         "register_operand".  Change operand 1 and 2 constraint to
3122         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3123         * config/i386/sse.md (sse4_1_pinsrb): Export.
3124         (sse2_pinsrw): Ditto.
3125         (sse4_1_pinsrd): Ditto.
3126         (sse4_1_pinsrq): Ditto.
3127         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3128         * config/i386/i386.c (ix86_expand_pinsr): New.
3129
3130 2011-04-20  Easwaran Raman  <eraman@google.com>
3131
3132         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3133         containing union type only with -fstrict-aliasing.
3134
3135 2011-04-20  Jim Meyering  <meyering@redhat.com>
3136
3137         Remove useless if-before-free tests.
3138         * calls.c (expand_call, save_area): Likewise.
3139         * cfgcleanup.c (try_forward_edges): Likewise.
3140         * collect2.c (collect_execute): Likewise.
3141         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3142         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3143         * coverage.c (coverage_checksum_string): Likewise.
3144         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3145         * cselib.c (cselib_init): Likewise.
3146         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3147         (df_set_clean_cfg): Likewise.
3148         * function.c (free_after_compilation): Likewise.
3149         * gcc.c (do_spec_1, main): Likewise.
3150         * gcov.c (create_file_names): Likewise.
3151         * gensupport.c (identify_predicable_attribute): Likewise.
3152         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3153         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3154         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3155         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3156         * ipa-pure-const.c (local_pure_const): Likewise.
3157         * ipa-reference.c (propagate): Likewise.
3158         * ira-costs.c (free_ira_costs): Likewise.
3159         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3160         * matrix-reorg.c (mat_free): Likewise.
3161         * prefix.c (get_key_value): Likewise.
3162         * profile.c (compute_value_histograms): Likewise.
3163         * reload1.c (free_reg_equiv): Likewise.
3164         * sched-deps.c (free_deps): Likewise.
3165         * sel-sched-ir.c (fence_clear): Likewise.
3166         * sese.c (set_rename, if_region_set_false_region): Likewise.
3167         * tree-data-ref.c (free_rdg): Likewise.
3168         * tree-eh.c (lower_try_finally): Likewise.
3169         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3170         * tree-ssa-live.c (delete_var_map): Likewise.
3171         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3172         * tree-ssa-pre.c (phi_trans_add): Likewise.
3173
3174 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3175
3176         PR tree-optimization/48611
3177         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3178         beyond ERT_MUST_NOT_THROW region.
3179
3180 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3181
3182         * config/mips/mips.opt (mfix-24k): New.
3183         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3184         * config/mips/mips.md (length): Increase by 4 for stores if
3185         fixing 24K errata.
3186         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3187         all noreorder if fixing 24K errata.
3188         * doc/invoke.texi: Document mfix-24k.
3189
3190 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3191
3192         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3193         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3194
3195 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3196
3197         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3198         (const_ok_for_op): ... to here.
3199
3200 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3201
3202         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3203         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3204
3205 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3206
3207         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3208
3209 2011-04-20  Richard Guenther  <rguenther@suse.de>
3210
3211         PR tree-optimization/47892
3212         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3213         are if-convertible.
3214
3215 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3216
3217         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3218
3219 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3220
3221         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3222
3223 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3224
3225         PR target/18145
3226
3227         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3228         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3229         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3230         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3231         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3232
3233         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3234         New prototype.
3235
3236         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3237         (avr_asm_named_section, avr_asm_output_aligned_common,
3238         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3239         New functions to update...
3240         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3241         (avr_asm_init_sections): Overwrite section callbacks for
3242         data_section, bss_section.
3243         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3244         from here to...
3245         (avr_file_end): ...here.
3246
3247 2011-04-20  Richard Guenther  <rguenther@suse.de>
3248
3249         PR middle-end/48695
3250         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3251         objects and types here.  Adjust for their offset before comparing.
3252
3253 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3254
3255         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3256         statement per copy.
3257
3258 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3259
3260         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3261         (GIMPLE_H): Include $(INTERNAL_FN_H).
3262         (OBJS-common): Add internal-fn.o.
3263         (internal-fn.o): New rule.
3264         * internal-fn.def: New file.
3265         * internal-fn.h: Likewise.
3266         * internal-fn.c: Likewise.
3267         * gimple.h: Include internal-fn.h.
3268         (GF_CALL_INTERNAL): New gf_mask.
3269         (gimple_statement_call): Put fntype into a union with a new
3270         internal_fn field.
3271         (gimple_build_call_internal): Declare.
3272         (gimple_build_call_internal_vec): Likewise.
3273         (gimple_call_same_target_p): Likewise.
3274         (gimple_call_internal_p): New function.
3275         (gimple_call_internal_fn): Likewise.
3276         (gimple_call_fntype): Return null for internal calls.
3277         (gimple_call_set_fntype): Assert that the function is not internal.
3278         (gimple_call_set_fn): Likewise.
3279         (gimple_call_set_fndecl): Likewise.
3280         (gimple_call_set_internal_fn): New function.
3281         (gimple_call_addr_fndecl): Handle null functions.
3282         (gimple_call_return_type): Likewise null types.
3283         * gimple.c (gimple_build_call_internal_1): New function.
3284         (gimple_build_call_internal): Likewise.
3285         (gimple_build_call_internal_vec): Likewise.
3286         (gimple_call_same_target_p): Likewise.
3287         (gimple_call_flags): Handle calls to internal functions.
3288         (gimple_call_fnspec): New function.
3289         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3290         (gimple_has_side_effects): Handle null functions.
3291         (gimple_rhs_has_side_effects): Likewise.
3292         (gimple_call_copy_skip_args): Handle calls to internal functions.
3293         * cfgexpand.c (expand_call_stmt): Likewise.
3294         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3295         * gimple-fold.c (gimple_fold_call): Handle null functions.
3296         (gimple_fold_stmt_to_constant_1): Don't fold
3297         calls to internal functions.
3298         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3299         functions.
3300         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3301         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3302         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3303         (do_warn_unused_result): Likewise.
3304         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3305         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3306         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3307         the target of a call.
3308         (initialize_hash_element): Update accordingly.
3309         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3310         (iterative_hash_hashable_expr): Handle calls to internal functions.
3311         (print_expr_hash_elt): Likewise.
3312         * tree-ssa-pre.c (can_value_number_call): Likewise.
3313         (eliminate): Handle null functions.
3314         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3315         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3316         (find_func_aliases): Likewise.
3317         * value-prof.c (gimple_ic_transform): Likewise.
3318         (gimple_indirect_call_to_profile): Likewise.
3319         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3320         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3321
3322 2011-04-19  Jan Hubicka  <jh@suse.cz>
3323
3324         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3325         * ipa-inline.c (inline_small_functions): Compute summaries first,
3326         populate heap later.
3327
3328 2011-04-19  Jan Hubicka  <jh@suse.cz>
3329
3330         * cgraph.h (save_inline_function_body): Remove.
3331         * ipa-inline-transform.c: New file, broke out of...
3332         * ipa-inline.c: ... this one; Update toplevel comment.
3333         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3334         make global.
3335         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3336         (cgraph_mark_inline_edge): Rename to inline_call; move to
3337         ipa-inline-transform.c.
3338         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3339         move to ipa-inline-transform.c
3340         (recursive_inlining, inline_small_functions, flatten_function,
3341         ipa_inline, inline_always_inline_functions,
3342         early_inline_small_functions): Update.
3343         (inline_transform): Move to ipa-inline-transform.c.
3344         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3345         Declare.
3346         * Makefile.in (ipa-inline-transform.o): New file.
3347         * cgraphunit.c (save_inline_function_body): Move to
3348         ipa-inline-transform.c
3349
3350 2011-04-19  DJ Delorie  <dj@redhat.com>
3351
3352         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3353         registers if we already know there aren't any.
3354         (m32c_emit_epilogue): Don't emit a barrier here.
3355         (m32c_emit_eh_epilogue): Likewise.
3356         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3357         operands at expand time.
3358         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3359         int" wchar type.
3360         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3361         duplicates.  Provide aliases instead.
3362         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3363         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3364         the compiler.
3365
3366 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3367
3368         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3369         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3370         (general_or_i64_p, sparc_register_move_cost): New function.
3371
3372 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3373
3374         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3375         Add lynx, mipssde.  Sort table.
3376
3377 2011-04-19  Xinliang David Li  <davidxl@google.com>
3378
3379         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3380         not negative.
3381
3382 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3383
3384         PR target/48678
3385         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3386         is a SUBREG with non-MODE_INT mode inside of it.
3387
3388 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3389
3390         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3391         also according to actual contants.
3392         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3393         (gimple_fold_call): Use it.
3394         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3395
3396 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3397
3398         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3399         non-pointer assignments.
3400
3401 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3402
3403         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3404         account anc_offset and otr_type from the indirect edge info.
3405         * ipa-prop.c (get_ancestor_addr_info): New function.
3406         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3407         get_ancestor_addr_info, call it.
3408         (ipa_note_param_call): Do not initialize information about polymorphic
3409         calls, return the indirect call graph edge.  Remove the last
3410         parameter, adjust all callers.
3411         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3412         parameters.  Initialize polymorphic information in the indirect edge.
3413
3414 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3415
3416         PR lto/48148
3417         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3418         the types if they have different enumeration identifiers.
3419
3420 2011-04-19  Jan Hubicka  <jh@suse.cz>
3421
3422         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3423         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3424         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3425         (optimize_function_for_size_p) ... here.
3426
3427 2011-04-19  Richard Guenther  <rguenther@suse.de>
3428
3429         PR lto/48207
3430         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3431         langhook.
3432
3433 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3434
3435         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3436         if DECL_NO_INLINE_WARNING_P is set on the function.
3437
3438 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3439
3440         PR fortran/47976
3441         * reload1.c (inc_for_reload): Return void. All callers changed.
3442         (emit_input_reload_insns): Don't try to delete previous output
3443         reloads to a register, or record spill_reg_store for autoincs.
3444
3445 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3446
3447         * gengtype.h: Updated copyright year.
3448         (struct input_file_st): Add inpisplugin field.
3449         (type_fileloc): New function.
3450         * gengtype.c
3451         (write_typed_struct_alloc_def): Add gcc_assert.
3452         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3453         (write_typed_alloc_defns): Don't output for plugin files.
3454         (input_file_by_name): Clear inpisplugin field.
3455         (main): Set inpisplugin field for plugin files.
3456
3457 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3458
3459         * gengtype-state.c (string_eq): New.
3460         (read_state): Use string_eq instead of strcmp when creating the
3461         state_ident_tab.
3462
3463 2011-04-19  Wei Guozhi  <carrot@google.com>
3464
3465         PR target/47855
3466         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3467         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3468         linkage.
3469         * config/arm/constraints.md (Uu): New constraint.
3470         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3471
3472 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3473
3474         * config.gcc (-*-*-*vms): Added.
3475         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3476         definitions moved.
3477         * config/vms/vms-ld.c: New file.
3478         * config/vms/vms-ar.c: New file.
3479         * config/vms/t-vmsnative: New file.
3480
3481 2011-04-18  Xinliang David Li  <davidxl@google.com>
3482
3483         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3484
3485 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3486
3487         PR middle-end/48661
3488         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3489         if TREE_TYPE (v) is non-NULL.
3490
3491         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3492         gimple_get_virt_mehtod_for_binfo.
3493         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3494         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3495         callers.
3496         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3497
3498 2011-04-18  Michael Matz  <matz@suse.de>
3499             Steve Ellcey  <sje@cup.hp.com>
3500
3501         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3502         use its mode as source mode if it isn't VOIDmode.
3503
3504 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3505
3506         * doc/passes.texi: Fill crossref nodes.
3507
3508 2011-04-18  Jim Meyering  <meyering@redhat.com>
3509
3510         Fix doubled-word typos in comments and strings
3511         * config/alpha/vms-unwind.h: s/for for/for/
3512         * config/arm/unwind-arm.h: Likewise.
3513         * config/microblaze/microblaze.c: Likewise.
3514         * config/sh/constraints.md: s/in in/in/
3515         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3516
3517 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3518
3519         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3520         (AVX_FLOAT_MODE_P): Ditto.
3521         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3522         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3523         (AVX_VEC_FLOAT_MODE_P): Ditto.
3524         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3525         (UNSPEC_MASKSTORE): Ditto.
3526         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3527         Merge from <sse>_movmsk<ssemodesuffix> and
3528         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3529         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3530         iterator.
3531         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3532         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3533         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3534
3535 2011-04-18  Jan Hubicka  <jh@suse.cz>
3536
3537         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3538
3539         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3540         (want_inline_function_called_once_p): Break out the logic from
3541         ipa_inline.
3542         (edge_badness): Ensure that profile is not misupdated.
3543         (lookup_recursive_calls): Prioritize by call frequencies.
3544         (inline_small_functions): Move program size estimates here;
3545         actually process whole queue even when unit growth has been
3546         met. (to properly compute inline_failed reasons and for the
3547         case unit size decrease.) Revisit comments on recursive inlining.
3548         (ipa_inline): Remove unit summary code; first inline hot calls
3549         of functions called once, cold calls next.
3550         (order, nnodes): Remove unused variables.
3551         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3552         (GTFILES): Remove ipa-inline.c
3553         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3554
3555 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3556
3557         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3558
3559 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3560             Richard Earnshaw  <rearnsha@arm.com>
3561
3562         * arm.c (neon_builtin_type_bits): Remove.
3563         (typedef enum neon_builtin_mode): New.
3564         (T_MAX): Don't define.
3565         (typedef enum neon_builtin_datum): Remove bits, codes[],
3566         num_vars and base_fcode.  Add mode, code and fcode.
3567         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3568         VAR10): Change accordingly.
3569         (neon_builtin_data[]): Change accordingly
3570         (arm_init_neon_builtins): Change accordingly.
3571         (neon_builtin_compare): Remove.
3572         (locate_neon_builtin_icode): Remove.
3573         (arm_expand_neon_builtin): Change accordingly.
3574
3575         * arm.h (enum arm_builtins): Move to ...
3576         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3577
3578         * arm.c (arm_builtin_decl): Declare.
3579         (TARGET_BUILTIN_DECL): Define.
3580         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3581         (arm_builtin_decls[]): New.
3582         (arm_init_neon_builtins): Store builtin declarations in
3583         arm_builtin_decls[].
3584         (arm_init_tls_builtins): Likewise.
3585         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3586         (arm_builtin_decl): New.
3587
3588 2011-04-18  Richard Guenther  <rguenther@suse.de>
3589
3590         * tree.c (upper_bound_in_type): Build properly canonicalized
3591         INTEGER_CSTs.
3592         (lower_bound_in_type): Likewise.
3593
3594 2011-04-18  Richard Guenther  <rguenther@suse.de>
3595
3596         * gimple.h (gimple_call_addr_fndecl): New function.
3597         (gimple_call_fndecl): Use it.
3598         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3599         for direct calls.
3600         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3601         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3602
3603 2011-04-18  Richard Guenther  <rguenther@suse.de>
3604
3605         PR middle-end/48650
3606         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3607
3608 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3609
3610         PR lto/48492
3611         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3612         DECL_IN_CONSTANT_POOL without RTL.
3613
3614 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3615             Ira Rosen  <ira.rosen@linaro.org>
3616
3617         PR target/48252
3618         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3619         to match neon_vzip/vuzp/vtrn_internal.
3620         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3621         outputs explicitly dependent on both inputs.
3622         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3623
3624 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3625
3626         PR tree-optimization/48616
3627         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3628         whether the shift is by scalar or vector based on whether all SLP
3629         scalar stmts have the same rhs.
3630
3631 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3632
3633         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3634         memory operands.
3635
3636 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3637
3638         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3639         registers.
3640
3641 2011-04-17  Jan Hubicka  <jh@suse.cz>
3642
3643         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3644         * cgrpahunit.c (cgraph_finalize_function): Do not set
3645         finalized_by_frontend.
3646         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3647         finalized_by_frontend.
3648
3649 2011-04-17  Jan Hubicka  <jh@suse.cz>
3650
3651         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3652         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3653         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3654         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3655         method.
3656         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3657         gimple-fold.c
3658         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3659
3660 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3661
3662         PR lto/48538
3663         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3664         is non-null before accessing it.
3665         (input_cgraph): Remove trailing spaces.
3666
3667 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3668
3669         * params.def (sms-min-sc): New param flag.
3670         * modulo-sched.c (sms_schedule): Use it.
3671         * doc/invoke.texi (sms-min-sc): Document it.
3672
3673 2011-04-17  Jan Hubicka  <jh@suse.cz>
3674
3675         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3676         present, also set gimple_call_set_cannot_inline.
3677         * ipa-inline.c: Update toplevel comment.
3678         (MAX_TIME): Remove.
3679         (cgraph_clone_inlined_nodes): Fix linebreaks.
3680         (cgraph_check_inline_limits): Restructure to ...
3681         (caller_growth_limits): ... this one; be more tolerant
3682         on growth in nested inline chains; add explanatory comment;
3683         fix stack accounting thinko introduced by previous patch.
3684         (cgraph_default_inline_p): Remove.
3685         (report_inline_failed_reason): New function.
3686         (can_inline_edge_p): New function.
3687         (can_early_inline_edge_p): New function.
3688         (leaf_node_p): Move upwards in file.
3689         (want_early_inline_function_p): New function.
3690         (want_inline_small_function_p): New function.
3691         (want_inline_self_recursive_call_p): New function.
3692         (cgraph_edge_badness): Rename to ...
3693         (edge_badness) ... this one; fix linebreaks.
3694         (update_edge_key): Update call of edge_baddness; add
3695         detailed dump about queue updates.
3696         (update_caller_keys): Use can_inline_edge_p and
3697         want_inline_small_function_p.
3698         (cgraph_decide_recursive_inlining): Rename to...
3699         (recursive_inlining): Use can_inline_edge_p and
3700         want_inline_self_recursive_call_p; simplify and remove no longer
3701         valid FIXME.
3702         (cgraph_set_inline_failed): Remove.
3703         (add_new_edges_to_heap): Use can_inline_edge_p and
3704         want_inline_small_function_p.
3705         (cgraph_decide_inlining_of_small_functions): Rename to ...
3706         (inline_small_functions): ... this one; cleanup; use
3707         can/want predicates; cleanup debug ouput; work edges till fibheap
3708         is exhausted and do not stop once unit growth is reached; remove
3709         later loop processing remaining edges.
3710         (cgraph_flatten): Rename to ...
3711         (flatten_function): ... this one; use can_inline_edge_p
3712         and can_early_inline_edge_p predicates.
3713         (cgraph_decide_inlining): Rename to ...
3714         (ipa_inline): ... this one; remove unreachable nodes before
3715         inlining functions called once; simplify the pass.
3716         (cgraph_perform_always_inlining): Rename to ...
3717         (inline_always_inline_functions): ... this one; use
3718         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3719         (cgraph_decide_inlining_incrementally): Rename to ...
3720         (early_inline_small_functions): ... this one; simplify
3721         using new predicates; cleanup; make dumps prettier.
3722         (cgraph_early_inlining): Rename to ...
3723         (early_inliner): newer inline regular functions into always-inlines;
3724         fix updating of call stmt summaries.
3725         (pass_early_inline): Update for new names.
3726         (inline_transform): Fix formating.
3727         (gate_cgraph_decide_inlining): Rename to ...
3728         (pass_ipa_inline): ... this one.
3729         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3730         * ipa-inline-analysis.c (dump_inline_summary): Update.
3731         (compute_inline_parameters): Do not compute disregard_inline_limits;
3732         look for mismatching arguments.
3733         (estimate_growth): Fix handlig of non-trivial self recursion.
3734         (inline_read_summary): Do not read info->disregard_inline_limits.
3735         (inline_write_summary): Do not write info->disregard_inline_limits.
3736         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3737         and move all checks into can_inline_edge_p predicate; re-enable code
3738         comparing optimization levels.
3739         (expand_call_inline): Do not test inline_forbidden_into_p.
3740         * Makefile.in (ipa-inline.o): Update arguments.
3741
3742 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3743
3744         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3745
3746 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3747
3748         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3749
3750 2011-04-17  Michael Matz  <matz@suse.de>
3751
3752         PR tree-optimization/48622
3753         PR lto/48645
3754         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3755         in same order as they're written.
3756
3757 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3758
3759         * config/pa/predicates.md: Reorganize and simplify predicates.
3760         Eliminate duplicate code checks.
3761         (arith_operand): Rename to arith14_operand
3762         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3763         * config/pa/pa.md: Use renamed operands.
3764         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3765         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3766         arith11_operand, adddi3_operand, indexed_memory_operand,
3767         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3768         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3769         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3770         move_dest_operand, move_src_operand, prefetch_cc_operand,
3771         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3772         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3773         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3774         div_operand, int5_operand, movb_comparison_operator,
3775         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3776         arith_double_operand, ireg_operand, lhs_lshift_operand,
3777         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3778         integer_store_memory_operand): Likewise.
3779         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3780         (integer_store_memory_operand, read_only_operand,
3781         function_label_operand, borx_reg_operand,
3782         non_hard_reg_operand): Likewise.
3783         (eq_neq_comparison_operator): Delete unused operator.
3784         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3785         function_label_operand.
3786         (emit_move_sequence): Likewise.
3787
3788 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3789
3790         * config/i386/sse.md (sseunpackmode): New mode attribute.
3791         (ssepackmode): Ditto.
3792         (vec_pack_trunc_<mode>): Macroize expander from
3793         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3794         (vec_unpacks_lo_<mode>): Macroize expander from
3795         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3796         (vec_unpacks_hi_<mode>): Macroize expander from
3797         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3798         (vec_unpacku_lo_<mode>): Macroize expander from
3799         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3800         (vec_unpacku_hi_<mode>): Macroize expander from
3801         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3802         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3803         ix86_expand_sse4_unpack.
3804         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3805
3806 2011-04-16  Jan Hubicka  <jh@suse.cz>
3807
3808         * cgraphbuild.c: Include ipa-inline.h.
3809         (reset_inline_failed): Use initialize_inline_failed.
3810         * cgraph.c: Include ipa-inline.h.
3811         (cgraph_create_node_1): Do not initialize estimated_growth.
3812         (initialize_inline_failed): More to ipa-inline-analysis.c
3813         (dump_cgraph_node): Do not dump inline flags.
3814         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3815         and disregard_inline_limits flags.
3816         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3817         time, size, estimated_growth.
3818         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3819         Update.
3820         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3821         DECL_DISREGARD_INLINE_LIMITS.
3822         (cgraph_analyze_function): Do not initialize
3823         node->local.disregard_inline_limits.
3824         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3825         inlinable, versionable and disregard_inline_limits.
3826         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3827         cgraph_check_inline_limits, cgraph_default_inline_p,
3828         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3829         add_new_edges_to_heap): Update.
3830         (cgraph_decide_inlining_of_small_function): Update; set
3831         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3832         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3833         cgraph_decide_inlining_incrementally): Update.
3834         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3835         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3836         time, size and estimated_growth parameters.
3837         (estimate_edge_growth): Update.
3838         (initialize_inline_failed): Declare.
3839         * ipa-split.c: Include ipa-inline.h
3840         (execute_split_functions): Update.
3841         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3842         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3843         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3844         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3845         estimated_growth to INT_MIN.
3846         (inline_node_duplication_hook): Likewise.
3847         (dump_inline_summary): Dump new fields.
3848         (compute_inline_parameters): Update.
3849         (estimate_edge_time, estimate_time_after_inlining,
3850         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3851         inline_write_summary):
3852         (initialize_inline_failed): Move here from cgraph.c.
3853         * tree-sra.c: Include ipa-inline.h.
3854         (ipa_sra_preliminary_function_checks): Update.
3855         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3856         ipa-inline.h.
3857
3858 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3859
3860         * config/i386/sse.md (V16): New mode iterator.
3861         (VI1, VI8): Ditto.
3862         (AVXMODEQI, AVXMODEDI): Remove.
3863         (sse2, sse3): New mode attribute.
3864         (mov<mode>): Use V16 mode iterator.
3865         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3866         (push<mode>1): Use V16 mode iterator.
3867         (movmisalign<mode>): Ditto.
3868         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3869         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3870         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3871         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3872         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3873         avx_movdqu<avxmodesuffix>.
3874         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3875         *avx_movdqu<avxmodesuffix>.
3876         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3877         avx_lddqu<avxmodesuffix>.
3878         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3879         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3880         avx_movnt<AVXMODEDI:mode>.
3881         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3882         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3883
3884 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3885
3886         PR target/48629
3887         * haifa-sched.c (prune_ready_list, schedule_block): Use
3888         sched_pressure_p rather than flag_sched_pressure.
3889
3890 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3891
3892         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3893         cgraph_get_node instead of cgraph_get_create_node.
3894
3895 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3896
3897         * cfgexpand.c (expand_debug_expr): Use
3898         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3899
3900 2011-04-15  Michael Matz  <matz@suse.de>
3901
3902         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3903         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3904         * function.c (gimplify_parameters): Ditto.
3905         * gimplify.c (gimplify_vla_decl): Ditto.
3906
3907         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3908         (gimple_call_set_alloca_for_var): New inline function.
3909         (gimple_call_alloca_for_var_p): Ditto.
3910         * gimple.c (gimple_build_call_from_tree): Remember
3911         CALL_ALLOCA_FOR_VAR_P state.
3912         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3913
3914         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3915         calls if they were for VLA objects.
3916
3917 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3918
3919         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3920         of ADR_EXPRs.
3921
3922 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3923
3924         PR middle-end/48601
3925         * tree-emutls.c (lower_emutls_function_body): Call
3926         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3927         result is non-NULL.
3928
3929 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3930
3931         * c-decl.c (detect_field_duplicates): Call
3932         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3933
3934 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3935
3936         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3937         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3938         * ipa-pure-const.c (check_stmt): Call it.
3939         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3940
3941 2011-04-15  Richard Guenther  <rguenther@suse.de>
3942
3943         PR tree-optimization/48290
3944         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3945         Properly decide inhibiting propagation based on the valueized
3946         operand.  Do loop-closed SSA form preserving here ...
3947         (init_copy_prop): ... not here.
3948
3949 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         PR target/48612
3952         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3953         (*ieee_smax<mode>3): Likewise.
3954
3955 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3956
3957         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3958         Replace match_operand with match_dup for the third operand in
3959         these expanders.
3960
3961 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3962
3963         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3964         to track processing of conditionals.  Update all callers.
3965         (try_combine, simplify_if_then_else): Update.
3966
3967 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3968
3969         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3970         -fsched-pressure.
3971
3972 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3973
3974         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3975         instead of match_operand for operand 3.
3976
3977 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3978
3979         * recog.h (insn_operand_data): Add an "allows_mem" field.
3980         * genoutput.c (output_operand_data): Initialize it.
3981         * optabs.c (maybe_legitimize_operand_same_code): New function.
3982         (maybe_legitimize_operand): Use it when matching the original
3983         op->value.
3984
3985 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3986
3987         * gimplify.c: Fix issues in comments throughout.
3988         (voidify_wrapper_expr): Fix long line.
3989         (build_stack_save_restore): Likewise.
3990         (gimplify_loop_expr): Likewise.
3991         (gimplify_compound_lval): Likewise.
3992         (gimplify_init_ctor_eval): Likewise.
3993         (gimplify_modify_expr_rhs): Likewise.
3994         (omp_notice_threadprivate_variable): Likewise.
3995
3996 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3997
3998         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3999         original one if this is not a builtin function.
4000
4001 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4002
4003         PR target/48605
4004         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4005         offset it as needed based on top 2 bits in operands[3], change
4006         MEM mode to SFmode and mask those 2 bits away from operands[3].
4007
4008 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4009
4010         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4011         change from objc_declare_protocols() to objc_declare_protocol().
4012
4013 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4014
4015         * config/i386/sse.md (sse4_1): New mode attribute.
4016         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4017         avx_blend<ssemodesuffix><avxmodesuffix> and
4018         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4019         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4020         avx_blendv<ssemodesuffix><avxmodesuffix> and
4021         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4022         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4023         avx_dp<ssemodesuffix><avxmodesuffix> and
4024         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4025         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4026         (sse4_1_packusdw): Merge with *avx_packusdw.
4027         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4028         (sse4_1_pblendw): Merge with *avx_pblendw.
4029         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4030         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4031         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4032         VF mode iterator.
4033         (sse4_1_round<ssescalarmodesuffix>): Merge with
4034         *avx_round<ssescalarmodesuffix>.
4035         (aesenc): Merge with *avx_aesenc.
4036         (aesenclast): Merge with *avx_aesenclast.
4037         (aesdec): Merge with *avx_aesdec.
4038         (aesdeclast): Merge with *avx_aesdeclast.
4039         (pclmulqdq): Merge with *pclmulqdq.
4040         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4041         New predicate.
4042         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4043
4044 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4045
4046         PR middle-end/48608
4047         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4048         (align_local_variable): This.  Update DECL_ALIGN.
4049         (add_stack_var): Updated.
4050         (expand_one_stack_var): Likewise.
4051
4052 2011-04-14  Richard Guenther  <rguenther@suse.de>
4053
4054         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4055         Remove.
4056         (dse_initialize_block_local_data, dse_leave_block,
4057         record_voperand_set, get_stmt_uid): Likewise.
4058         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4059         (dse_optimize_stmt): Remove voperand set handling code.
4060         Simplify and improve to handle any kind of killing stmt.
4061         (dse_record_phi): Remove.
4062         (dse_enter_block): Simplify.
4063         (tree_ssa_dse): Likewise.
4064         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4065
4066 2011-04-14  Jan Hubicka  <jh@suse.cz>
4067
4068         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4069         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4070         (cgraph_local_info): Remove inline_summary.
4071         * ipa-cp.c: Include ipa-inline.h.
4072         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4073         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4074         accesor.
4075         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4076         (input_overwrite_node): Do not set inline summary.
4077         (input_node): Do not stream inline summary.
4078         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4079         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4080         growth; we do not have inline parameters computed for that anyway.
4081         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4082         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4083         (inline_summary_t): New type and VECtor.
4084         (debug_inline_summary, dump_inline_summaries): Declare.
4085         (inline_summary): Use VOCtor.
4086         (estimate_edge_growth): Kill hack computing call stmt size directly.
4087         * lto-section-in.c (lto_section_name): Add inline section.
4088         * ipa-inline-analysis.c: Include lto-streamer.h
4089         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4090         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4091         (inline_summary_vec): Define.
4092         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4093         dump_inline_summaries): New functions.
4094         (estimate_function_body_sizes): Properly compute size/time of outgoing
4095         calls.
4096         (compute_inline_parameters): Alloc inline_summary; do not compute
4097         size/time of incomming calls.
4098         (estimate_edge_time): Avoid missing time summary hack.
4099         (inline_read_summary): Read inline summary info.
4100         (inline_write_summary): Write inline summary info.
4101         (inline_free_summary): Free all hooks and inline summary vector.
4102         * lto-streamer.h: Add LTO_section_inline_summary section.
4103         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4104         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4105
4106 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4107
4108         * tree-vectorizer.h (vect_strided_store_supported): Add a
4109         HOST_WIDE_INT argument.
4110         (vect_strided_load_supported): Likewise.
4111         (vect_permute_store_chain): Return void.
4112         (vect_transform_strided_load): Likewise.
4113         (vect_permute_load_chain): Delete.
4114         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4115         count argument.  Check that the count is a power of two.
4116         (vect_strided_load_supported): Likewise.
4117         (vect_permute_store_chain): Return void.  Update after above changes.
4118         Assert that the access is supported.
4119         (vect_permute_load_chain): Likewise.
4120         (vect_transform_strided_load): Return void.
4121         * tree-vect-stmts.c (vectorizable_store): Update calls after
4122         above interface changes.
4123         (vectorizable_load): Likewise.
4124         (vect_analyze_stmt): Don't check for strided powers of two here.
4125
4126 2011-04-14  Richard Guenther  <rguenther@suse.de>
4127
4128         PR tree-optimization/48590
4129         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4130         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4131         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4132         BUILT_IN_STACK_SAVE.
4133         * tree-ssa-dce.c (propagate_necessity): Handle
4134         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4135
4136 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4137
4138         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4139         objc_declare_class.
4140
4141 2011-04-14  Richard Guenther  <rguenther@suse.de>
4142
4143         * tree.h (get_object_alignment_1): Declare.
4144         * builtins.c (get_object_alignment_1): Split out worker from ...
4145         (get_object_alignment): ... here.
4146         * fold-const.c (get_pointer_modulus_and_residue): Use
4147         get_object_alignment_1.
4148
4149 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4150
4151         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4152         type parameter.
4153         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4154         parameter.  Generalise code to handle arrays as well as vectors.
4155         (vect_setup_realignment): Update accordingly.
4156         * tree-vect-stmts.c (vectorizable_store): Likewise.
4157         (vectorizable_load): Likewise.
4158
4159 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4160
4161         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4162         within the per-copy loop.
4163
4164 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4165
4166         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4167         in the dump file.
4168
4169 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4170
4171         * doc/options.texi (Negative): Explicitly mention that the
4172         Negative chain must be circular.
4173
4174 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4175
4176         * function.h (block_chainon): Declare.
4177         * function.c (block_chainon): Define.
4178
4179 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4180             Eric Weddington  <eric.weddington@atmel.com>
4181             Georg-Johann Lay <avr@gjlay.de>
4182
4183         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4184         New Includes
4185         (avr_init_builtins, avr_expand_builtin,
4186         avr_expand_delay_cycles, avr_expand_unop_builtin,
4187         avr_expand_binop_builtin ): New functions.
4188         (avr_builtin_id): New enum
4189         (struct avr_builtin_description): New struct
4190         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4191         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4192
4193         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4194         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4195         UNSPECV_DELAY_CYCLES): new enumeration values
4196         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4197         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4198         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4199         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4200         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4201         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4202         "fmulsu"): New insns
4203
4204         * config/avr/avr-c.c: fix line endings
4205         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4206         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4207         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4208         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4209         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4210
4211         * doc/extend.texi (AVR Built-in Functions): New node
4212         (Target Builtins): Add documentation of AVR
4213         built-in functions.
4214
4215 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4216
4217         PR target/44643
4218         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4219         alone. Error if non-const data has attribute progmem.
4220
4221 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4222
4223         * tree.h (struct tree_constructor): Include tree_typed instead of
4224         tree_common.
4225         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4226         TS_TYPED instead of TS_COMMON.
4227
4228 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4229
4230         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4231         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4232         (sse2_psadbw): Merge with *avx_psadbw.
4233         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4234         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4235         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4236         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4237         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4238         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4239         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4240         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4241         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4242         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4243         (ssse3_palignrti): Merge with *avx_palignrti.
4244
4245 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4246
4247         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4248         * tree-ssanames.c (fini_ssanames): VEC_free it.
4249         (make_ssa_name_fn): Update for VECness of free_ssanames.
4250         (release_ssa_name, release_dead_ssa_names): Likewise.
4251         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4252         tree_common.
4253         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4254         TS_TYPED instead of TS_COMMON.
4255
4256 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4257
4258         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4259         statistics_counter_event.
4260         * tree-ssa-copyrename.c (stats): Define.
4261         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4262         statistics_counter_event.
4263         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4264         (bswap_stats, widen_mul_stats): Define.
4265         (insert_reciprocals): Increment rdivs_inserted.
4266         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4267         rfuncs_inserted.  Add calls to statistics_counter_event.
4268         (execute_cse_sincos_1): Increment inserted.
4269         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4270         statistics_counter_event.
4271         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4272         of bswap_stats.  Add calls to statistics_counter_event.
4273         (convert_mult_to_widen): Increment widen_mults_inserted.
4274         (convert_plusminus_to_widen): Increment maccs_inserted.
4275         (convert_mult_to_fma): Increment fmas_inserted.
4276         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4277         calls to statistics_counter_event.
4278
4279 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4280
4281         PR rtl-optimization/48455
4282         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4283         `temp_costs->mem_cost'.
4284
4285 2011-04-13  Jan Hubicka  <jh@suse.cz>
4286
4287         * ipa-inline.h: New file.
4288         * ipa-inline-analysis.c: New file. Broken out of ...
4289         * ipa-inline.c: ... this file; update toplevel comment;
4290         include ipa-inline.h
4291         (inline_summary): Move to ipa-inline.h
4292         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4293         ipa-inline-analysis.c.
4294         (cgraph_estimate_time_after_inlining): Rename to
4295         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4296         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4297         to estimate_edge_growth.
4298         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4299         rename to estimate_size_after_inlining.
4300         (cgraph_mark_inline_edge): Update for new naming convention.
4301         (cgraph_check_inline_limits): Likewise.
4302         (cgraph_edge_badness): Likewise.
4303         (cgraph_decide_recursive_inlining): Likewise.
4304         (cgraph_decide_inlining_of_small_functions): Likewise.
4305         (cgraph_decide_inlining_incrementally): Likewise.
4306         (cgraph_estimate_growth): Rename to estimate_growth; move to
4307         ipa-inline-analysis.c.
4308         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4309         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4310         (compute_inline_parameters): Likewise.
4311         (compute_inline_parameters_for_current): Likewise.
4312         (pass_inline_parameters): Likewise.
4313         (inline_indirect_intraprocedural_analysis): Likewise.
4314         (analyze_function): Rename to inline_analyze_function; likewise.
4315         (add_new_function): Move to ipa-inline-analysis.c.
4316         (inline_generate_summary): Likewise.
4317         (inline_read_summary): Likewise.
4318         (inline_write_summary): Likewise.
4319         * Makefile.in (ipa-inline-analysis.c): New file.
4320
4321 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4322
4323         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4324         * configure: Regenerate.
4325
4326 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4327
4328         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4329         instead of tree_common.
4330         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4331         Likewise.
4332         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4333         TS_TYPED rather than TS_COMMON.
4334         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4335
4336 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4337
4338         PR target/45263
4339         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4340         r20 around calls of __tablejump_elpm__
4341
4342 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4343
4344         PR middle-end/48591
4345         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4346         NULL.
4347         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4348
4349 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4350
4351         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4352         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4353         (cfi_vec): New typedef.
4354         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4355         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4356         (cie_cfi_vec): New static variable.
4357         (cie_cfi_head): Delete.
4358         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4359         declaration changed. Use vector rather than list operations.
4360         (new_cfi): Don't initialize the dw_cfi_next field.
4361         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4362         rather than list operations.
4363         (lookup_cfa): Use vector rather than list operations.
4364         (output_cfis): New argument upto. Accept a cfi_vec rather than
4365         a dw_cfi_ref list head as argument. All callers changed.
4366         Iterate over the vector using upto as a maximum index.
4367         (output_all_cfis): New static function.
4368         (output_fde): Use vector rather than list operations. Use the
4369         new upto argument for output_cfis rather than manipulating a
4370         list.
4371         (dwarf2out_begin_prologue): Change initializations to match
4372         new struct members.
4373         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4374         from the vector length rather than searching for the end of a list.
4375         Use output_all_cfis.
4376         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4377
4378 2011-04-13  Nick Clifton  <nickc@redhat.com>
4379
4380         * config/rx/rx.md (movmemsi): Do not use this pattern when
4381         volatile pointers are involved.
4382
4383 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4384
4385         * config/i386/sse.md (pinsrbits): Remove.
4386         (sse2_packsswb): Merge with *avx_packsswb.
4387         (sse2_packssdw): Merge with *avx_packssdw.
4388         (sse2_packuswb): Merge with *avx_packuswb.
4389         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4390         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4391         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4392         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4393         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4394         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4395         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4396         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4397         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4398         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4399         (sse2_loadld): Merge with *avx_loadld.
4400         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4401         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4402         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4403         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4404         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4405
4406 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4407
4408         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4409         calling TREE_CHAIN.
4410         * print-tree.c (print_node): Likewise.
4411         * tree-inline.c (copy_tree_r): Likewise.
4412         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4413         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4414         instead of TS_COMMON.
4415         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4416         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4417         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4418         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4419         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4420         ...and these...
4421         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4422         * tree.h: ...here.
4423         (TREE_CHAIN): Check for a TS_COMMON structure.
4424         (TREE_TYPE): Check for a TS_TYPED structure.
4425
4426 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4427
4428         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4429         cgraph_get_create_node instead of cgraph_node.
4430
4431 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4432
4433         * c-parser.c (c_parser_initelt): Updated call to
4434         objc_build_message_expr.
4435         (c_parser_postfix_expression): Likewise.
4436
4437 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4438
4439         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4440         MASK_MS_BITFIELD_LAYOUT bit.
4441
4442 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4443
4444         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4445         assert it is always true.
4446         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4447         moves.
4448
4449 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4450
4451         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4452         compiling Objective-C to be more efficient.
4453
4454 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4455
4456         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4457         argv_copied.
4458
4459 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4460
4461         * recog.h, genoutput.c, optabs.c: Revert last patch.
4462
4463 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4464
4465         PR target/48090
4466         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4467
4468 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4469
4470         * recog.h (insn_operand_data): Add an "allows_mem" field.
4471         * genoutput.c (output_operand_data): Initialize it.
4472         * optabs.c (maybe_legitimize_operand_same_code): New function.
4473         (maybe_legitimize_operand): Use it when matching the original
4474         op->value.
4475
4476 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4477
4478         * genpreds.c (process_define_predicate): Move most processing
4479         to gensupport.c.  Continue to validate the expression.
4480         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4481         (process_define_predicate): Move processing to gensupport.c.
4482         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4483         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4484         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4485         argument.
4486         (valid_predicate_name_p): New function, split out from old
4487         genpreds.c:process_define_predicate.
4488         (process_define_predicate): New function, combining code from
4489         old genpreds.c and genrecog.c functions.
4490         (process_rtx): Call it for DEFINE_PREDICATE and
4491         DEFINE_SPECIAL_PREDICATE.
4492
4493 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4494
4495         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4496         size of a '%A' memory reference.
4497         (T_DREG, T_QREG): New neon_builtin_type_bits.
4498         (arm_init_neon_builtins): Assert that the load and store operands
4499         are neon_struct_operands.
4500         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4501         (NEON_ARG_MEMORY): New builtin_arg.
4502         (neon_dereference_pointer): New function.
4503         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4504         Handle NEON_ARG_MEMORY.
4505         (arm_expand_neon_builtin): Update after above interface changes.
4506         Use NEON_ARG_MEMORY for loads and stores.
4507         * config/arm/predicates.md (neon_struct_operand): New predicate.
4508         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4509         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4510         (V_four_elem): Tweak formatting.
4511         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4512         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4513         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4514         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4515         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4516         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4517         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4518         Use %A in the output template.
4519         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4520         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4521         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4522         the width of the memory access.  Remove post-increment.
4523         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4524
4525 2011-04-12  Nick Clifton  <nickc@redhat.com>
4526
4527         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4528         instruction for interrupt handlers if the target is the basic V850
4529         architecture.
4530         (expand_epilogue): Likewise.
4531
4532 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4533
4534         PR rtl-optimization/48549
4535         * combine.c (propagate_for_debug): Also stop after BB_END of
4536         this_basic_block.  Process LAST and just stop processing after it.
4537         (combine_instructions): If last_combined_insn has been deleted,
4538         set last_combined_insn to its PREV_INSN.
4539
4540 2011-04-12  Richard Guenther  <rguenther@suse.de>
4541
4542         PR tree-optimization/46076
4543         * gimple.h (struct gimple_statement_call): Add fntype field.
4544         (gimple_call_fntype): Adjust.
4545         (gimple_call_set_fntype): New function.
4546         * gimple.c (gimple_build_call_1): Set the call function type.
4547         * gimplify.c (gimplify_call_expr): Preserve the function
4548         type the frontend used for the call.
4549         (gimplify_modify_expr): Likewise.
4550         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4551         function type.
4552         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4553         function type.
4554         * tree-ssa.c (useless_type_conversion_p): Function pointer
4555         conversions are useless.
4556
4557 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4558
4559         * cgraph.h (cgraph_node): Remove function declaration.
4560         (cgraph_create_node): Declare.
4561         (cgraph_get_create_node): Likewise.
4562         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4563         Updated all callers.
4564         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4565         the decl does not already exist.  Call cgraph_get_create_node instead
4566         of cgraph_node.
4567         (cgraph_get_create_node): New function.
4568         (cgraph_same_body_alias): Update comment.
4569         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4570         assert it does not return NULL.
4571         (cgraph_update_edges_for_call_stmt): Likewise.
4572         (cgraph_clone_edge): Likewise.
4573         (cgraph_create_virtual_clone): Likewise.
4574         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4575         instead of cgraph_node.
4576         (cgraph_add_new_function): Call cgraph_create_node or
4577         cgraph_get_create_node instead of cgraph_node.
4578         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4579         instead of cgraph_node.
4580         (record_eh_tables): Likewise.
4581         (mark_address): Likewise.
4582         (mark_load): Likewise.
4583         (build_cgraph_edges): Call cgraph_get_create_node instead
4584         of cgraph_node.
4585         (rebuild_cgraph_edges): Likewise.
4586         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4587         instead of cgraph_node.
4588         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4589         cgraph_node.
4590         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4591         cgraph_create_node instead of cgraph_node.
4592         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4593         of cgraph_node.
4594         * lto-cgraph.c (input_node): Likewise.
4595         * lto-streamer-in.c (input_function): Likewise.
4596         * varasm.c (mark_decl_referenced): Likewise.
4597         (assemble_alias): Likewise.
4598
4599 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4600
4601         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4602         instead of cgraph_node and assert it does not return NULL.
4603         * lto-streamer-in.c (lto_read_body): Likewise.
4604         * omp-low.c (new_omp_context): Likewise.
4605         (create_task_copyfn): Likewise.
4606         * tree-emutls.c (lower_emutls_function_body): Likewise.
4607         * matrix-reorg.c (transform_allocation_sites): Likewise.
4608
4609 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4610
4611         PR c/48552
4612         * c-typeck.c (build_asm_expr): Error out on attempts to use
4613         void type outputs or inputs for constraints that allow reg or
4614         don't allow memory.
4615
4616 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4617             Richard Earnshaw  <rearnsha@arm.com>
4618
4619         PR target/48250
4620         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4621         to use sign-magnitude offsets. Reject unsupported unaligned
4622         cases. Add detailed description in comments.
4623         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4624         condition from TARGET_32BIT to TARGET_ARM.
4625
4626 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4627
4628         * tree.h (struct typed_tree): New.
4629         (struct tree_common): Include it instead of tree_base.
4630         (TREE_TYPE): Update for new location of type field.
4631         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4632         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4633         (union tree_node): Add typed field.
4634         * treestruct.def (TS_TYPED): New.
4635         * lto-streamer.c (check_handled_ts_structures): Handle it.
4636         * tree.c (MARK_TS_TYPED): New macro.
4637         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4638
4639 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4640
4641         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4642         (force_nonfallthru): Do not alter the loop nest if no basic block
4643         was created.
4644
4645 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4646
4647         * config/i386/sse.md (VI): New mode iterator.
4648         (SSEMODEI): Remove.
4649         (AVX256MODEI): Ditto.
4650         (AVXMODEF4P): Ditto.
4651         (avxvecpsmode): Ditto.
4652         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4653         (sse2_andnot<mode>3): New expander.
4654         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4655         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4656         (<any_logic:code><mode>3): Use VI mode iterator.
4657         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4658         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4659         (*andnottf3): Handle AVX three-operand constraints.
4660         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4661
4662 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4663             Robert Millan  <rmh@gnu.org>
4664
4665         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4666         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4667         GNU_USER_DYNAMIC_LINKER64): Define.
4668         (REG_NAME): Don't undefine.
4669         (MD_UNWIND_SUPPORT): Undefine.
4670         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4671         (REG_NAME): Don't undefine.
4672         (MD_UNWIND_SUPPORT): Undefine.
4673         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4674
4675 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4676
4677         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4678         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4679
4680 2011-04-11  Xinliang David Li  <davidxl@google.com>
4681
4682         * value-profile.c (check_ic_target): New function.
4683         (gimple_ic_transform): Sanity check indirect call target.
4684         * gimple-low.c (gimple_check_call_args): Interface change.
4685         (gimple_check_call_matching_types): New function.
4686         * tree-inline.c (tree_can_inline_p): Call new function.
4687
4688 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4689
4690         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4691         tree-pretty-print.h & realmpfr.h.
4692
4693 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4694
4695         PR middle-end/48464
4696         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4697         (setup_allocno_and_important_classes): Ditto.
4698
4699 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4700
4701         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4702         GNU_USER_DYNAMIC_LINKER.
4703         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4704         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4705         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4706         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4707         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4708         GNU_USER_TARGET_OS_CPP_BUILTINS.
4709         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4710         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4711         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4712         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4713         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4714         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4715         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4716         GNU_USER_TARGET_OS_CPP_BUILTINS.
4717         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4718         GNU_USER_DYNAMIC_LINKER.
4719         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4720         GNU_USER_TARGET_OS_CPP_BUILTINS.
4721         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4722         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4723         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4724         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4725         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4726         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4727         GNU_USER_DYNAMIC_LINKER64): Remove.
4728         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4729         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4730         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4731         GNU_USER_DYNAMIC_LINKER.
4732         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4733         GNU_USER_TARGET_OS_CPP_BUILTINS.
4734         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4735         GNU_USER_TARGET_OS_CPP_BUILTINS.
4736         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4737         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4738         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4739         GNU_USER_TARGET_OS_CPP_BUILTINS.
4740         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4741         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4742         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4743         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4744         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4745         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4746         GNU_USER_DYNAMIC_LINKER.
4747         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4748         GNU_USER_TARGET_OS_CPP_BUILTINS.
4749         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4750         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4751         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4752         GNU_USER_DYNAMIC_LINKER.
4753         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4754         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4755         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4756         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4757         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4758         GNU_USER_DYNAMIC_LINKER.
4759         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4760         GNU_USER_DYNAMIC_LINKERN32.
4761         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4762         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4763         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4764         GNU_USER_DYNAMIC_LINKER32.
4765         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4766         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4767         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4768         GNU_USER_DYNAMIC_LINKER.
4769         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4770         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4771         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4772         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4773         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4774         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4775         GNU_USER_DYNAMIC_LINKER32.
4776         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4777         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4778         GNU_USER_DYNAMIC_LINKER.
4779         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4780         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4781         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4782         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4783         GNU_USER_DYNAMIC_LINKER64.
4784         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4785         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4786         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4787         GNU_USER_DYNAMIC_LINKER.
4788         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4789         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4790         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4791         GNU_USER_DYNAMIC_LINKER.
4792         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4793         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4794         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4795         GNU_USER_DYNAMIC_LINKER32.
4796         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4797         GNU_USER_DYNAMIC_LINKER64.
4798         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4799         GNU_USER_DYNAMIC_LINKER64.
4800         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4801         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4802         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4803         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4804         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4805
4806 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4807
4808         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4809         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4810         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4811         GNU_USER_DYNAMIC_LINKER.
4812         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4813         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4814         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4815         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4816         GNU_USER_DYNAMIC_LINKER64.
4817         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4818         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4819         GNU_USER_LINK_EMULATION.
4820         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4821         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4822         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4823         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4824         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4825         CPP_SPEC, CC1_SPEC): Remove.
4826         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4827         (GNU_USER_DYNAMIC_LINKER): Define.
4828         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4829         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4830         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4831         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4832         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4833         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4834         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4835         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4836         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4837         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4838         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4839         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4840         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4841         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4842         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4843         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4844         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4845         GNU_USER_DYNAMIC_LINKER.
4846         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4847         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4848         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4849         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4850         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4851         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4852         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4853         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4854         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4855         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4856
4857 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4858
4859         PR target/9601
4860         PR target/11772
4861         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4862         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4863         comment.
4864         (ix86_is_msabi_thiscall): Removed.
4865         (ix86_is_type_thiscall): Likewise.
4866         (ix86_get_callcvt): New function.
4867         (ix86_comp_type_attributes): Simplify check.
4868         (ix86_function_regparm): Use ix86_get_callcvt for calling
4869         convention attribute checks.
4870         (ix86_return_pops_args): Likewise.
4871         (ix86_static_chain): Likewise.
4872         (x86_this_parameter): Likewise.
4873         (x86_output_mi_thunk): Likewise.
4874         (ix86_function_type_abi): Optimize check for types without attributes.
4875         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4876         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4877         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4878         by flag-values.
4879         (IX86_BASE_CALLCVT): Helper macro.
4880         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4881         Use ix86_get_callcvt for calling convention attribute checks and avoid
4882         symbol-decoration for stdcall in TARGET_RTD case.
4883         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4884         Likewise.
4885         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4886         for declaration.
4887
4888 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4889
4890         * config/i386/sse.md (VI_128): New mode iterator.
4891         (VI12_128): Rename from SSEMODE12.
4892         (VI14_128): Rename from SSEMODE14.
4893         (VI124_128): New mode iterator.
4894         (VI24_128): Rename from SSEMODE248.
4895         (VI248_128): Rename from SSEMODE248.
4896         (SSEMODE124C8): Remove.
4897         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4898         (*sse2_<plusminus_insn><mode>3): Merge with
4899         *avx_<plusminus_insn><mode>3.
4900         (*mulv8hi3): Merge with *avx_mulv8hi3.
4901         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4902         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4903         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4904         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4905         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4906         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4907         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4908         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4909         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4910         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4911         (*<smaxmin:code>v8hi3): Ditto.
4912         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4913         (*<smaxmin:code>v16qi3): Ditto.
4914         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4915         (*sse2_eq<mode>3): Ditto.
4916         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4917         (*sse2_gt<mode>3): Ditto.
4918         (vcondv2di): Split out of vcond<mode>.
4919         (vconduv2di): Split out of vcondu<mode>.
4920
4921 2011-04-11  Richard Guenther  <rguenther@suse.de>
4922
4923         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4924         before calling tree_low_cst.
4925
4926 2011-04-11  Richard Guenther  <rguenther@suse.de>
4927
4928         * stor-layout.c (layout_type): Compute all array index size operations
4929         in the original type.
4930         (initialize_sizetypes): Add comment.
4931         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4932
4933 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4934
4935         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4936
4937 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4938
4939         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4940         of cgraph_node, handle NULL return value.
4941         (cgraph_global_info): Likewise.
4942         (cgraph_rtl_info): Likewise.
4943         * tree-inline.c (estimate_num_insns): Likewise.
4944         * gimplify.c (unshare_body): Likewise.
4945         (unvisit_body): Likewise.
4946         (gimplify_body): Likewise.
4947         * predict.c (optimize_function_for_size_p): Likewise.
4948         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4949         (call_may_clobber_ref_p_1): Likewise.
4950         * varasm.c (function_section_1): Likewise.
4951         (assemble_start_function): Likewise.
4952
4953 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4954
4955         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4956         of cgraph_node.
4957         * final.c (rest_of_clean_state): Likewise.
4958         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4959         * passes.c (pass_init_dump_file): Likewise.
4960         (execute_all_ipa_transforms): Likewise.
4961         (function_called_by_processed_nodes_p): Likewise.
4962         * predict.c (maybe_hot_frequency_p): Likewise.
4963         (probably_never_executed_bb_p): Likewise.
4964         (compute_function_frequency): Likewise.
4965         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4966         (unnest_nesting_tree_1): Likewise.
4967         (lower_nested_functions): Likewise.
4968         * tree-optimize.c (execute_fixup_cfg): Likewise.
4969         (tree_rest_of_compilation): Likewise.
4970         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4971         * tree-sra.c (ipa_early_sra): Likewise.
4972         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4973         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4974         * ipa.c (record_cdtor_fn): Likewise.
4975         * ipa-inline.c (cgraph_early_inlining): Likewise.
4976         (compute_inline_parameters_for_current): Likewise.
4977         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4978         * ipa-pure-const.c (local_pure_const): Likewise.
4979         * ipa-split.c (split_function): Likewise.
4980         (execute_split_functions): Likewise.
4981         * cgraphbuild.c (build_cgraph_edges): Likewise.
4982         (rebuild_cgraph_edges): Likewise.
4983         (cgraph_rebuild_references): Likewise.
4984         (remove_cgraph_callee_edges): Likewise.
4985         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4986         (verify_cgraph_node): Likewise.
4987         (cgraph_analyze_functions): Likewise.
4988         (cgraph_preserve_function_body_p): Likewise.
4989         (save_inline_function_body): Likewise.
4990         (save_inline_function_body): Likewise.
4991         * tree-inline.c (copy_bb): Likewise.
4992         (optimize_inline_calls): Likewise.
4993
4994 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4995
4996         PR tree-optimization/48195
4997         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4998         ipa_check_create_edge_args.
4999         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5000         ipa_check_create_edge_args.
5001         * ipa-inline.c (inline_generate_summary): Do not call
5002         ipa_check_create_node_params and ipa_check_create_edge_args.
5003         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5004         ipa_check_create_edge_args.
5005
5006 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5007
5008         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5009         instead of loop.
5010         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5011         * function.c (record_hard_reg_sets): Likewise.
5012         * ira.c (compute_regs_asm_clobbered): Likewise.
5013         * sched-deps.c (sched_analyze_1): Likewise.
5014         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5015
5016 2011-04-09  Xinliang David Li  <davidxl@google.com>
5017
5018         PR tree-optimization/PR48484
5019         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5020         has_valid_pred lazily
5021
5022 2011-04-09  Duncan Sands  <baldrick@free.fr>
5023
5024         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5025
5026 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5027
5028         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5029         cost of I0 to zero at the end, if any.
5030
5031 2011-04-08  Xinliang David Li  <davidxl@google.com>
5032
5033         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5034         to insane profile data.
5035
5036 2011-04-08  Xinliang David Li  <davidxl@google.com>
5037
5038         * ipa-cp.c (ipcp_update_profiling): Correct
5039          negative scale factor due to insane profile data.
5040
5041 2011-04-08  Xinliang David Li  <davidxl@google.com>
5042
5043         * final.c (dump_basic_block_info): New function.
5044         (final): Dump basic block.
5045         (final_scan_insn): Remove old dump.
5046
5047 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5048
5049         PR target/47829
5050         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5051         crtbegin/crtend.
5052
5053 2011-04-08  Michael Matz  <matz@suse.de>
5054
5055         PR middle-end/48389
5056         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5057         functions.
5058         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5059         * rtl.h (rebuild_jump_labels_chain): Declare.
5060         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5061         insns inserted on edges.
5062
5063 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5064
5065         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5066         * config/arm/arm-arches.def: New.
5067         * config/arm/arm-opts.h: New.
5068         * config/arm/genopt.sh: New.
5069         * config/arm/arm-tables.opt: New (generated).
5070         * config/arm/arm.c (arm_handle_option, arm_target_help,
5071         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5072         (all_architectures): Get most table contents from arm-arches.def.
5073         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5074         arm_selected_tune here.
5075         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5076         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5077         (march=, mcpu=, mtune=): Use Enum and Var.
5078         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5079         (arm.o): Update dependencies.
5080
5081 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5082
5083         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5084         of header_file.
5085         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5086         (write_typed_alloc_defns): Likewise.
5087         (main): Calls write_typed_alloc_defns with output_header.
5088
5089 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5090
5091         PR inline-asm/48435
5092         * ira-color.c (setup_profitable_hard_regs): Add comments.
5093         Don't take prohibited hard regs into account.
5094         (setup_conflict_profitable_regs): Rename to
5095         get_conflict_profitable_regs.
5096         (check_hard_reg_p): Check prohibited hard regs.
5097
5098 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5099
5100         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5101         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5102         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5103
5104 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5105
5106         PR target/48366
5107         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5108         move from floating point to shift amount register.
5109         (emit_move_sequence): Remove secondary reload support for floating
5110         point to shift amount amount register copies.
5111         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5112         amount register copies.
5113         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5114         register, return false if mode isn't a scalar integer mode.
5115         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5116
5117 2011-04-08  Richard Guenther  <rguenther@suse.de>
5118
5119         * gimple.c (gimple_call_flags): Remove kludge.
5120
5121 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5122
5123         * sel-sched.c (sel_region_init): Move call to
5124         sel_setup_region_sched_flags after setup_current_loop_nest.
5125
5126 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5127
5128         PR rtl-optimization/48272
5129         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5130         init_insn_reg_pressure_info.  Adjust a caller.
5131         * sched-int.h (init_insn_reg_pressure_info): Declare.
5132         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5133         when sched-pressure is enabled.
5134
5135 2011-04-08  Richard Guenther  <rguenther@suse.de>
5136
5137         * gimple.c (gimple_set_modified): Do not queue calls to
5138         MODIFIED_NORETURN_CALLS here ...
5139         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5140
5141 2011-04-08  Richard Guenther  <rguenther@suse.de>
5142
5143         PR lto/48467
5144         * toplev.c (lang_dependent_init): Do not open asm_out_file
5145         in WPA mode, nor perform debug machinery initialization.
5146         (finalize): Do not unlink asm_out_file in WPA mode.
5147
5148 2011-04-08  Richard Guenther  <rguenther@suse.de>
5149
5150         * gimple.h (gimple_call_fntype): New function.
5151         (gimple_call_return_type): Use it.
5152         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5153         * gimple-low.c (gimple_check_call_args): Likewise.
5154         * gimple.c (gimple_call_flags): Likewise.
5155         (gimple_call_arg_flags): Likewise.
5156         (gimple_call_return_flags): Likewise.
5157         * tree-cfg.c (verify_gimple_call): Likewise.
5158         (do_warn_unused_result): Likewise.
5159         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5160         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5161
5162 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5163
5164         PR rtl-optimization/48235
5165         * sel-sched.c (code_motion_process_successors): Recompute the last
5166         insn in basic block if control flow changed.
5167         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5168         Update condition for ilist_remove.
5169
5170 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5171
5172         PR rtl-optimization/48302
5173         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5174         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5175         it to record added preheader blocks.
5176         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5177         on to sel_add_loop_preheaders.
5178         (sel_region_init): Move call to setup_current_loop_nest after
5179         sel_init_bbs.
5180
5181 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5182
5183         PR target/48273
5184         * cfgloop.h (loop_has_exit_edges): New helper.
5185         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5186         non-clonable.
5187         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5188         that have no exit edges.
5189
5190 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5191
5192         PR rtl-optimization/48442
5193         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5194         all callers.  Adjust assert.
5195
5196 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5197
5198         PR tree-optimization/48377
5199         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5200         is_packed to true even for types with smaller TYPE_ALIGN than
5201         TYPE_SIZE.
5202
5203 2011-04-08  Richard Guenther  <rguenther@suse.de>
5204
5205         PR bootstrap/48513
5206         * doc/tm.texi: Re-generate.
5207
5208 2011-04-08  Wei Guozhi  <carrot@google.com>
5209
5210         PR target/47855
5211         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5212         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5213         * config/arm/arm.md (*push_multi): Change the length computation to
5214         call a C function.
5215
5216 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5217
5218         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5219         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5220         * doc/tm.texi: Regenerate.
5221         * system.h (ASM_OUTPUT_BSS): Poison.
5222         * varasm.c (asm_output_bss): Remove function.
5223         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5224
5225         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5226         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5227         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5228         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5229         Likewise.
5230         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5231         Likewise.
5232         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5233         Likewise.
5234         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5235
5236 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5237
5238         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5239         EnumValue lines.
5240
5241 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5244         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5245         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5246         OPT_mcpu32.
5247         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5248         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5249         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5250         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5251         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5252         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5253         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5254         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5255         options.  Don't map other m68k options manually.  Don't handle
5256         old-style options as canonical.
5257         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5258         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5259
5260 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5261
5262         * basic-block.h (force_nonfallthru): Move to...
5263         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5264         (force_nonfallthru): ...here.
5265         * cfghooks.c (force_nonfallthru): New function.
5266         * cfgrtl.c (force_nonfallthru): Rename into...
5267         (rtl_force_nonfallthru): ...this.
5268         (commit_one_edge_insertion): Do not set AUX field.
5269         (commit_edge_insertions): Do not discover new basic blocks.
5270         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5271         (cfg_layout_rtl_cfg_hooks): Likewise.
5272         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5273         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5274         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5275
5276 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5277
5278         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5279         Remove macros.
5280
5281 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5282
5283         * config/i386/sse.md: Update copyright year.
5284         (avxcvtvecmode): Remove.
5285         (sse_movhlps): Merge with *avx_movhlps.
5286         (sse_movlhps): Merge with *avx_movlhps.
5287         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5288         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5289         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5290         (sse_loadhps): Merge with *avx_loadhps.
5291         (sse_storelps): Merge with *avx_storelps.
5292         (sse_loadlps): Merge with *avx_loadlps.
5293         (sse_movss): Merge with *avx_movss.
5294         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5295         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5296         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5297         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5298         (vec_set<mode>_0): Ditto.
5299         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5300         (sse4_1_insertps): Merge with *avx_insertps.
5301         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5302         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5303         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5304         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5305         (sse2_storehpd): Merge with *avx_storehpd.
5306         (sse2_loadhpd): Merge with *avx_loadhpd.
5307         (sse2_loadlpd): Merge with *avx_loadlpd.
5308         (sse2_movsd): Merge with *avx_movsd.
5309         (*vec_concatv2df): Merge with *vec_concatv2df.
5310
5311 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5312
5313         PR debug/48343
5314         * combine.c (combine_instructions): Add last_combined_insn,
5315         update it if insn is after it, pass it to all try_combine calls.
5316         (try_combine): Add last_combined_insn parameter, pass it instead of
5317         i3 to propagate_for_debug.
5318
5319 2011-04-07  Nick Clifton  <nickc@redhat.com>
5320
5321         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5322         to handle MDR <-> data register transfers.
5323         (movhi_internal): Likewise.
5324
5325 2011-04-07  Alan Modra  <amodra@gmail.com>
5326
5327         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5328         previous stack info.
5329
5330 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5331
5332         PR target/43920
5333         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5334         flow_find_cross_jump.  Swap variables to implement backward replacement.
5335         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5336
5337 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5338
5339         PR target/43920
5340         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5341         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5342         and bb2.
5343         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5344         src1 or src2.  Redirect edges to the last basic block.  Update
5345         frequency and count on multiple basic blocks in case of fallthru.
5346
5347 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5348
5349         PR target/43920
5350         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5351         function.
5352         (old_insns_match_p): Change return type.  Replace return false/true
5353         with return dir_none/dir_both.  Use can_replace_by.
5354         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5355         direction from dir_p.  Register replacement direction in dir, last_dir
5356         and afterlast_dir.  Handle new return type of old_insns_match_p using
5357         merge_dir.  Return replacement direction in dir_p.
5358         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5359         return type of old_insns_match_p.
5360         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5361         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5362         flow_find_cross_jump.
5363         * basic-block.h (enum replace_direction): New type.
5364         (flow_find_cross_jump): Add parameter to declaration.
5365
5366 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5367
5368         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5369         (AVXMODEDCVTPS2DQ): Ditto.
5370         (VEC_FLOAT_MODE): Ditto.
5371         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5372         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5373         (<any_logic:code><mode>3): Use VF mode iterator.
5374         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5375         Use VF mode iterator.
5376         (copysign<mode>3): Use VF mode iterator.
5377         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5378         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5379         (*<any_logic:code><MODEF:mode>3): Merge with
5380         *avx_<any_logic:code><MODEF:mode>3.
5381         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5382         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5383         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5384         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5385         (sse2_cvtdq2ps): Use %v modifier.
5386         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5387         (avx_cvtps2dq<avxmodesuffix>): Remove.
5388         (sse2_cvtps2dq): Use %v modifier.
5389         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5390         (avx_cvttps2dq<avxmodesuffix>): Remove.
5391         (sse2_cvttps2dq): Use %v modifier.
5392         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5393         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5394         (sse2_cvtsd2siq): Fix insn template.
5395         (sse2_cvtsd2siq_2): Ditto.
5396         (sse2_cvttsd2siq): Ditto.
5397         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5398         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5399
5400 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5401
5402         * gcov-io.c: Use GCC Runtime Library Exception.
5403
5404 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5405
5406         PR debug/48466
5407         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5408         as base_reg whatever register reg has been eliminated to, instead
5409         of hardcoding STACK_POINTER_REGNUM.
5410
5411 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5412
5413         * doc/tm.texi.in: Document C target hooks as separate from general
5414         target hooks.
5415         * doc/tm.texi: Regenerate.
5416         * genhooks.c (struct hook_desc): Add docname field.
5417         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5418         docname field.
5419         (hook_array): Include c-target.def.
5420         (emit_documentation): Use docname field in output.
5421         (emit_init_macros): Take docname argument.  Only emit definitions
5422         for hooks matching docname.
5423         (main): Expect additional arguments in all cases.  Pass argument
5424         to emit_init_macros.
5425         * target.def: Move initial macro definitions and comments to
5426         target-hooks-macros.h.
5427         (gcc_targetcm): Move to c-family/c-target.def.
5428         * target.h (targetcm): Move declaration to c-family/c-target.h.
5429         * targhooks.c (default_handle_c_option): Move to
5430         c-family/c-opts.c.
5431         * targhooks.h (default_handle_c_option): Move declaration to
5432         c-family/c-common.h.
5433         * target-hooks-macros.h: New file.
5434         * config.gcc (target_has_targetcm): Define and use to add to
5435         c_target_objs and cxx_target_objs.
5436         * config/default-c.c: New file.
5437         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5438         of target.h and target-def.h.
5439         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5440         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5441         darwin_check_cfstring_format_arg): Make static.
5442         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5443         TARGET_STRING_OBJECT_REF_TYPE_P,
5444         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5445         * config/darwin-protos.h (darwin_objc_construct_string,
5446         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5447         declare.
5448         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5449         TARGET_STRING_OBJECT_REF_TYPE_P,
5450         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5451         * config/t-darwin (darwin-c.o): Update dependencies.
5452         * system.h (TARGET_HAS_TARGETCM): Poison.
5453         * Makefile.in (TARGET_H): Update.
5454         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5455         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5456         (default-c.o): New target.
5457         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5458         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5459         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5460         c-target.def.
5461         (build/genhooks.o): Update dependencies.
5462
5463 2011-04-06  Richard Guenther  <rguenther@suse.de>
5464
5465         * ipa-inline.c (enum inlining_mode): Remove.
5466         (cgraph_flatten): Use some other token.
5467         (cgraph_edge_early_inlinable_p): New function, split out from ...
5468         (cgraph_perform_always_inlining): New function, split out from ...
5469         (cgraph_decide_inlining_incrementally): ... here.
5470         (cgraph_mark_inline_edge): Adjust.
5471         (cgraph_early_inlining): Re-structure.
5472         (pass_early_inline): Require SSA form.
5473
5474 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5475             Julian Brown  <julian@codesourcery.com>
5476             Mark Shinwell  <shinwell@codesourcery.com>
5477
5478         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5479         LO_REGS only for Thumb-1.
5480         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5481         be used in short instructions when optimising for size on Thumb-2.
5482
5483 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5484
5485         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5486         associated with user returns to be preserved.
5487
5488 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5489
5490         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5491         symbol_queue_size, DBXOUT_DECR_NESTING,
5492         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5493         if XCOFF_DEBUGGING_INFO.
5494
5495 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5496
5497         * config/i386/i386.md (attribute isa): New.
5498         (attribute enabled): New.
5499         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5500         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5501         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5502         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5503         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5504         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5505         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5506         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5507
5508         * config/i386/sse.md (VF): New mode iterator.
5509         (VF1): Ditto.
5510         (VF2): Ditto.
5511         (VF_128): Ditto.
5512         (SSEMODEF4): Remove.
5513         (attribute sse): Handle V8SF and V4DF modes.
5514         (<absneg:code><mode>2): Use VF mode iterator.
5515         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5516         mode iterator.
5517         (<plusminus_insn><mode>3): Use VF mode iterator.
5518         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5519         Use VF mode iterator.
5520         (<sse>_vm<plusminus_insn><mode>3): Merge with
5521         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5522         (mul<mode>3): Use VF mode iterator.
5523         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5524         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5525         mode iterator.
5526         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5527         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5528         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5529         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5530         mode iterator.
5531         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5532         Use VF1 mode iterator.
5533         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5534         (sqrt<VF2:mode>2): New expander.
5535         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5536         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5537         and sqrtv2df2.  Use VF mode iterator.
5538         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5539         mode iterator.
5540         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5541         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5542         Use VF1 mode iterator.
5543         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5544         (<smaxmin:code><mode>3): Use VF mode iterator.
5545         (*<smaxmin:code><mode>3_finite): Merge with
5546         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5547         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5548         (<sse>_vm<smaxmin:code><mode>2): Merge with
5549         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5550         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5551         mode iterator.
5552         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5553         mode iterator.
5554         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5555         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5556         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5557         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5558         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5559         VF mode iterator.
5560         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5561         Use VF_128 mode iterator.
5562         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5563         mode iterator.
5564         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5565         VF_128 mode iterator.
5566         (vcond<mode>): Use VF mode iterator.
5567         * config/i386/predicates.md (sse_comparison_operator): Merge with
5568         avx_comparison_float_operator.  Do not declare as special_predicate.
5569         * config/i386/i386.c (struct builtin_description): Update for renamed
5570         compare patterns.
5571         (ix86_expand_args_builtin): Ditto.
5572         (ix86_expand_sse_compare_mask): Ditto.
5573
5574 2011-04-06  Richard Guenther  <rguenther@suse.de>
5575
5576         * tree-inline.c (estimate_num_insns): For calls simply account
5577         for all passed arguments and a used return value.
5578
5579 2011-04-06  Richard Guenther  <rguenther@suse.de>
5580
5581         PR tree-optimization/47663
5582         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5583         call_stmt_time fields.
5584         (cgraph_edge_inlinable_p): Declare.
5585         (cgraph_edge_recursive_p): New inline function.
5586         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5587         (cgraph_clone_edge): Copy it.
5588         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5589         Account for call stmt time.
5590         (cgraph_estimate_time_after_inlining): Take edge argument.
5591         (cgraph_estimate_edge_growth): Account call stmt size.
5592         (cgraph_estimate_size_after_inlining): Take edge argument.
5593         (cgraph_mark_inline_edge): Adjust.
5594         (cgraph_check_inline_limits): Likewise.
5595         (cgraph_recursive_inlining_p): Remove.
5596         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5597         (cgraph_decide_recursive_inlining): Take edge argument and
5598         adjust.
5599         (cgraph_decide_inlining_of_small_functions): Do not avoid
5600         diags for recursive inlining here.
5601         (cgraph_flatten): Adjust.
5602         (cgraph_decide_inlining_incrementally): Likewise.
5603         (estimate_function_body_sizes): Remove call cost handling.
5604         (compute_inline_parameters): Initialize caller edge call costs.
5605         (cgraph_estimate_edge_growth): New function.
5606         (cgraph_estimate_growth): Use it.
5607         (cgraph_edge_badness): Likewise.
5608         (cgraph_check_inline_limits): Take an edge argument.
5609         (cgraph_decide_inlining_of_small_functions): Adjust.
5610         (cgraph_decide_inlining): Likewise.
5611         * tree-inline.c (estimate_num_insns): Only account for call
5612         return value if it is used.
5613         (expand_call_inline): Avoid diagnostics on recursive inline
5614         functions here.
5615         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5616         (input_edge): Input edge call costs.
5617
5618 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5619
5620         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5621
5622 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5623
5624         * doc/invoke.texi (Spec Files): Fix typo.
5625
5626 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5627
5628         * profile.c (branch_prob): Move declaration of local variable.  Remove
5629         obsolete ??? comment.  Expand the location explicitly instead of using
5630         the LOCATION_FILE and LOCATION_LINE macros.
5631
5632 2011-04-06  Wei Guozhi  <carrot@google.com>
5633
5634         PR target/47855
5635         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5636         (arm_cond_branch): Likewise.
5637         (arm_cond_branch_reversed): Likewise.
5638         (arm_jump): Likewise.
5639         (push_multi): Likewise.
5640         * config/arm/constraints.md (Py): New constraint.
5641
5642 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5643
5644         PR bootstrap/48471
5645         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5646         Move these...
5647         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5648         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5649         #ifdef DBX_DEBUGGING_INFO.
5650
5651 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5652
5653         PR bootstrap/48403
5654         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5655         if old and new states differ.
5656
5657 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5658
5659         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5660         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5661         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5662         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5663         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5664         mcfv4e): Use Alias.
5665         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5666         ColdFire options to -mcpu= options.
5667
5668 2011-04-05  Jeff Law  <law@redhat.com>
5669
5670         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5671         check if BB is a successor of LOOP->header and return
5672         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5673
5674 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5675
5676         * cprop.c (struct reg_use): Remove.
5677         (reg_use_table): Make an array of RTX.
5678         (find_used_regs, constprop_register, local_cprop_pass,
5679         bypass_block): Simplify users of reg_use_table.
5680         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5681         on one of the uses found by find_used_regs.
5682
5683 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5684
5685         PR bootstrap/48469
5686         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5687         declaration.
5688
5689 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5690
5691         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5692         as an rtx.
5693         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5694
5695 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5696
5697         PR middle-end/48441
5698         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5699
5700 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5701
5702         * combine.c: Include obstack.h.
5703         (struct insn_link): Define.
5704         (uid_log_links): Adjust type.
5705         (FOR_EACH_LOG_LINK): New macro.
5706         (insn_link_obstack): Declare.
5707         (alloc_insn_link): Define.
5708         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5709         type of link variables.
5710         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5711         (try_combine, record_promoted_values, distribute_notes): Likewise.
5712         (distribute_links): Likewise.  Tweak prototype.
5713         (clear_log_links): Delete.
5714         (adjust_for_new_dest): Call alloc_insn_link.
5715         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5716
5717 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5718
5719         * gcse.c (modify_mem_list): Convert to an array of VECs.
5720         (canon_modify_mem_list, compute_transp): Tweak formatting.
5721         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5722         (load_killed_in_block_p): Likewise.
5723         (record_last_mem_set_info): Likewise.
5724         (clear_modify_mem_tables): Likewise.
5725
5726 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5727
5728         PR middle-end/48461
5729         * function.c (emit_use_return_register_into_block): Only define if
5730         HAVE_return.
5731
5732 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5733
5734         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5735
5736 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5737
5738         * config/rx/rx-opts.h: New.
5739         * config/rx/rx.c (rx_cpu_type): Remove.
5740         (rx_handle_option): Don't assert that global structures are in
5741         use.  Access variables via opts pointer.  Defer most handling of
5742         OPT_mint_register_.  Use error_at.
5743         (rx_option_override): Handle deferred OPT_mint_register_ here.
5744         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5745         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5746         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5747         (rx_cpu_types): New Enum and EnumValue entries.
5748         (mint-register=): Use Defer and use Var accordingly.
5749
5750 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5751
5752         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5753         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5754         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5755         Move these...
5756         (debug_free_queue, debug_nesting, symbol_queue_index):
5757         ...and these...
5758         * dbxout.c: ...to here.  Make static.
5759
5760 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5761
5762         * gcse.c (modify_pair): Define.  Define a VEC of it.
5763         (canon_modify_mem_list): Convert to an array of VECs.
5764         (free_insn_expr_list_list): Delete.
5765         (clear_modify_mem_tables): Call VEC_free instead.
5766         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5767         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5768         (canon_list_insert, compute_transp): Likewise.
5769
5770 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5771
5772         PR target/43920
5773         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5774         for size.
5775
5776 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5777
5778         PR target/43920
5779         * function.c (emit_use_return_register_into_block): New function.
5780         (thread_prologue_and_epilogue_insns): Use
5781         emit_use_return_register_into_block.
5782
5783 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5784
5785         PR target/43920
5786         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5787         insn.
5788
5789 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5790
5791         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5792
5793 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5794
5795         * config/arm/arm.md (define_constants for unspec): Replace with
5796         define_c_enum.
5797         (define_constants for unspecv): Replace with define_c_enum.
5798         * config/arm/neon.md (define_constants for unspec): Replace with
5799         define_c_enum.
5800
5801 2011-04-04  Richard Henderson  <rth@redhat.com>
5802
5803         PR bootstrap/48400
5804         * dwarf2out.c (output_line_info): Always emit line info from
5805         at least one section.
5806         (dwarf2out_init): Create text_section_line_info here ...
5807         (set_cur_line_info_table): ... not here.
5808
5809 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5810
5811         PR target/48380
5812         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5813         not called.
5814
5815         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5816
5817 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5818
5819         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5820         (expr_equiv_p): Remove.
5821         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5822         (hash_scan_set): Update call to insert_set_in_table.
5823         (dump_hash_table): Dump <dest, src> pair.
5824         (lookup_set): Simplify.  Lookup <dest, src> pair.
5825         (compute_transp): Remove, fold heavily simplified code into...
5826         (compute_local_properties): ...here.  Expect COMP and TRANSP
5827         unconditionally.
5828         (find_avail_set): Take set directly from struct expr.
5829         (find_bypass-set): Likewise.
5830         (bypass_block): Likewise.
5831         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5832
5833         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5834         checks on form of COND from find_implicit_sets to here.
5835         (find_implicit_sets): Cleanup control flow. Split critical edges
5836         if it exposes implicit sets.  Allocate/resize implicit_sets as
5837         necessary.
5838         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5839         changed something.  Run df_analyze after find_implicit_sets if any
5840         edges were split.  Do not allocate implicit_sets here.
5841
5842         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5843         (gcse_obstack): Renamed to cprop_obstack.
5844         (GNEW, GNEWVEC, GNEWVAR): Remove.
5845         (gmalloc): Remove.
5846         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5847         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5848         (gcse_alloc): Likewise, and rename to cprop_alloc.
5849         (alloc_gcse_men, free_gcse_mem): Remove.
5850         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5851         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5852         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5853
5854         * cprop.c (oprs_not_set_p): Remove.
5855         (mark_set, mark_clobber): Remove.
5856         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5857         (reg_not_set_p): New function.
5858         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5859         (cprop_insn): Likewise.
5860         (cprop_jump): Use FOR_EACH_EDGE.
5861
5862 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5863
5864         PR bootstrap/48403
5865         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5866         (rank_for_schedule): Use scheduled_insns vector instead of
5867         last_scheduled_insn.
5868         (ok_for_early_queue_removal): Likewise.
5869         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5870         we have a dbg_cnt.
5871         (choose_ready): Likewise.
5872         (commit_schedule): Use VEC_iterate.
5873         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5874         a dbg_cnt, use it and ensure the first insn is in the ready list.
5875         (haifa_sched_init): Allocate scheduled_insns.
5876         (sched_extend_ready_list): Don't allocate it; reserve space.
5877         (haifa_sched_finish): Free it.
5878
5879 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5880
5881         * optc-gen.awk: Always remove type from Variable entry before
5882         recording in var_seen.
5883
5884 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5885
5886         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5887         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5888         call to tidy_fallthru_edges.
5889
5890 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5891
5892         * doc/options.texi (ToLower): Document.
5893         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5894         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5895         * opts.h (cl_option): Add cl_tolower field.
5896         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5897         arguments with lowercase strings.
5898         * config/rx/rx.opt (mcpu=): Add ToLower.
5899         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5900         argument.
5901
5902 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5903
5904         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5905
5906 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5907
5908         * config/vax/vax.c: Include reload.h.
5909
5910 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5911
5912         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5913         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5914         (sparc_preferred_reload_class): New function.
5915
5916 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5917
5918         PR debug/48401
5919         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5920         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5921
5922 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5923
5924         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5925         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5926
5927 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5928
5929         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5930         (ASM_OUTPUT_ALIGNED_BSS): Define.
5931
5932 2011-04-03  Michael Matz  <matz@suse.de>
5933
5934         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5935         and next_slot members.
5936         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5937         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5938         (lto_streamer_cache_append): Declare.
5939         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5940         unsigned index, remove offset parameter, ensure that we append
5941         or update existing entries.
5942         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5943         parameter, update next_slot for append.
5944         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5945         parameter.
5946         (lto_streamer_cache_insert_at): Likewise.
5947         (lto_streamer_cache_append): New function.
5948         (lto_streamer_cache_lookup): Use unsigned index.
5949         (lto_streamer_cache_get): Likewise.
5950         (lto_record_common_node): Don't test tree_node_can_be_shared.
5951         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5952         (lto_streamer_cache_delete): Don't free offsets member.
5953         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5954         (lto_output_string_with_length): Use lto_output_data_stream.
5955         (lto_output_tree_header): Remove ix parameter, don't write it.
5956         (lto_output_builtin_tree): Likewise.
5957         (lto_write_tree): Adjust callers to above, don't track and write
5958         offset, write unsigned index.
5959         (output_unreferenced_globals): Don't emit all global vars.
5960         (write_global_references): Use unsigned indices.
5961         (lto_output_decl_state_refs): Likewise.
5962         (write_symbol): Likewise.
5963         * lto-streamer-in.c (lto_input_chain): Move earlier.
5964         (input_function): Use unsigned index.
5965         (input_alias_pairs): Don't read and then ignore all global vars.
5966         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5967         don't pass it back, use lto_streamer_cache_append.
5968         (lto_register_var_decl_in_symtab): Use unsigned index.
5969         (lto_register_function_decl_in_symtab): Likewise.
5970         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5971         index.
5972         (lto_get_builtin_tree): Don't read index, use
5973         lto_streamer_cache_append.
5974         (lto_read_tree): Adjust call to lto_materialize_tree.
5975
5976         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5977         don't use function calls in arguments to MIN.
5978
5979         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5980         twice.
5981
5982         * gimple.c (gimple_type_leader_entry): Mark deletable.
5983
5984 2011-04-03  Alan Modra  <amodra@gmail.com>
5985
5986         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5987
5988 2011-04-03  Michael Matz  <matz@suse.de>
5989
5990         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5991         an integer.
5992         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5993
5994 2011-04-03  Michael Matz  <matz@suse.de>
5995
5996         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5997         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5998         without function context.
5999         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6000         current_function_decl and cfun.
6001
6002 2011-04-03  Michael Matz  <matz@suse.de>
6003
6004         * tree.c (decl_init_priority_insert): Don't create entry for
6005         default priority.
6006         (decl_fini_priority_insert): Ditto.
6007         (fields_compatible_p, find_compatible_field): Remove.
6008         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6009         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6010
6011 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6012
6013         * combine.c (try_combine): Remove useless local variable.
6014
6015 2011-04-03  Richard Guenther  <rguenther@suse.de>
6016             Ira Rosen  <ira.rosen@linaro.org>
6017
6018         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6019         non-variable offsets and compare the remaining bases of the two
6020         accesses instead of looking for exact same data-ref.
6021
6022 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6023
6024         PR target/48416
6025         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6026
6027         * i386.c (ix86_is_msabi_thiscall): New helper function.
6028         (ix86_is_type_thiscall): New helper function.
6029         (ix86_comp_type_attributes): Handle thiscall for method-functions
6030         special.
6031         (init_cumulative_args): Likewise.
6032         (find_drap_reg): Likewise.
6033         (ix86_static_chain): Likewise.
6034         (x86_this_parameter): Likewise.
6035         (x86_output_mi_thunk): Likewise.
6036
6037 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6038             Nicolas Setton  <setton@adacore.com>
6039             Eric Botcazou  <ebotcazou@adacore.com>
6040
6041         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6042         (add_gnat_descriptive_type_attribute): New function.
6043         (gen_array_type_die): Call it.
6044         (gen_enumeration_type_die): Likewise.
6045         (gen_struct_or_union_type_die): Likewise.
6046         (modified_type_die): Likewise.
6047         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6048         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6049         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6050
6051 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6052
6053         PR bootstrap/48148
6054         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6055         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6056
6057         Revert:
6058         2011-03-17  Richard Guenther  <rguenther@suse.de>
6059
6060         PR bootstrap/48148
6061         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6062         origin for decls in other ltrans units.
6063         (input_varpool_node): Likewise.
6064
6065 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6066
6067         PR middle-end/48335
6068         * expr.c (expand_assignment): Handle all possibilities
6069         if TO_RTX is CONCAT.
6070         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6071         (store_split_bit_field): If SUBREG_REG (op0) or
6072         op0 itself has smaller mode than word, return it
6073         for offset 0 and const0_rtx for out-of-bounds stores.
6074         If word is const0_rtx, skip it.
6075
6076 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6077
6078         * config/h8300/h8300.c (print_operand_address): Rename to...
6079         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6080         Call h8300_print_operand and h8300_print_operand_address instead of
6081         print_operand and print_operand_address. Declare.
6082         (print_operand): Renake to...
6083         (h8300_print_operand): ...this. Make static. Adjust comments.
6084         Call h8300_print_operand instead of print_operand. Declare.
6085         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6086         (h8300_register_move_cost): Likewise.
6087         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6088         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6089         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6090         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6091         * config/h8300/h8300-protos.h (print_operand): Delete.
6092         (print_operand_address): Delete.
6093
6094 2011-04-01  Richard Henderson  <rth@redhat.com>
6095
6096         PR 48400
6097         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6098         in strict mode before dwarf4.  Re-order tests to early out
6099         before switching sections.
6100
6101 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6102
6103         * config/h8300/constraints.md: New file.
6104         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6105         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6106         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6107         * config/h8300/predicates.md (bit_operand): Likewise.
6108         (incdec_operand): Use satisfies_constraint_M and
6109         satisfies_constraint_O.  Don't use C code block.
6110         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6111         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6112         (compute_mov_length): Use satisfies_constraint_G.
6113         (fix_bit_operand): Use satisfies_constraint_U.
6114         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6115         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6116         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6117         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6118         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6119         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6120         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6121         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6122         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6123         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6124         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6125         (EXTRA_MEMORY_CONSTRAINT): Delete.
6126
6127 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6128             Michael Meissner  <meissner@linux.vnet.ibm.com>
6129
6130         PR target/48262
6131         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6132         operands, as per the specifications.
6133
6134         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6135         (vec_extract_evenv4sf): Ditto.
6136         (vec_extract_evenv8hi): Ditto.
6137         (vec_extract_evenv16qi): Ditto.
6138         (vec_extract_oddv4si): Ditto.
6139
6140 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6141
6142         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6143         high_pc attribute if the CU has no associated code. Only output
6144         DW_AT_entry_pc for CU if not generating strict dwarf and
6145         dwarf_version < 4.
6146
6147 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6148
6149         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6150         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6151         out of ...
6152         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6153         * final.c (final_start_function): Call the new function rather
6154         than using a NULL argument for dwarf2out_frame_debug.
6155
6156         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6157         that contains the prologue.
6158
6159         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6160         changed.  Print it in debugging output.
6161
6162         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6163
6164         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6165         Split most of the code into...
6166         (begin_move_insn): ... here.  New function.
6167         (ebb_sched_info): Add a pointer to it.
6168         * haifa-sched.c (scheduled_insns): New static variable.
6169         (sched_extend_ready_list): Allocate it.
6170         (schedule_block): Use it to record the order of scheduled insns.
6171         Perform RTL changes to move insns only after all scheduling
6172         decisions have been made.
6173         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6174         begin_move_insn field.
6175         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6176         * sched-int.h (struct haifa_sched_info): Remove second argument
6177         from begin_schedule_ready hook.  Add new member begin_move_insn.
6178         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6179         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6180
6181         * haifa-sched.c (prune_ready_list): New function, broken out of
6182         schedule_block.
6183         (schedule_block): Use it.
6184
6185 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6186
6187         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6188
6189 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6190
6191         * config.gcc (*-*-mingw*): Allow as option the
6192         posix threading model.
6193         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6194         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6195         definition.
6196         (CPP_SPEC): Add pthread/no-pthread handling.
6197         (LIB_SPEC): Likewise.
6198         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6199         (LIB_SPEC): Likewise.
6200         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6201         flag to pass -pthread option for shared libgcc build.
6202         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6203         for shared libgcc build.
6204         * config/i386/t-mingw-pthread: New file.
6205         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6206         New define to enable use of library pthread by default.
6207         * config/i386/mingw.opt (pthread): New driver option.
6208         (no-pthread): New driver option.
6209         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6210         * config/i386/mingw-w64.opt: Likewise.
6211
6212 2011-04-01  Gary Funck <gary@intrepid.com>
6213
6214         * c-decl.c (grokdeclarator): Fix formatting.
6215
6216 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6217
6218         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6219         instead of n_operands.
6220         (set_storage_via_setmem): Likewise.
6221         * optabs.c (maybe_gen_insn): Likewise.
6222         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6223         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6224         (mips_expand_builtin_direct): Likewise.
6225         * config/spu/spu.c (expand_builtin_args): Likewise.
6226
6227 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6228
6229         * recog.h (insn_data_d): Add n_generator_args.
6230         * genoutput.c (data): Likewise.
6231         (output_insn_data): Print it.
6232         (max_opno, num_dups): Delete.
6233         (scan_operands): Just fill in "d->operand[...]".
6234         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6235
6236 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6237
6238         * gensupport.h (pattern_stats): New structure.
6239         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6240         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6241         (max_operand_1, max_operand_vec): Delete.
6242         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6243
6244 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6245
6246         * emit-rtl.c (emit_pattern_after_setloc): New function.
6247         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6248         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6249         (emit_pattern_after): New function.
6250         (emit_insn_after, emit_jump_insn_after): Call it.
6251         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6252         (emit_pattern_before_setloc): New function.
6253         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6254         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6255         Likewise.
6256         (emit_pattern_before): New function.
6257         (emit_insn_before, emit_jump_insn_before): Call it.
6258         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6259
6260 2011-03-31  Richard Henderson  <rth@redhat.com>
6261
6262         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6263         (dw_separate_line_info_entry): Remove.
6264         (enum dw_line_info_opcode): New.
6265         (dw_line_info_entry): Use it.
6266         (dw_line_info_table, dw_line_info_table_p): New.
6267         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6268         (line_info_table, line_info_label_num): Remove.
6269         (line_info_table_in_use): Remove.
6270         (separate_line_info_table): Remove.
6271         (separate_line_info_table_allocated): Remove.
6272         (separate_line_info_table_in_use): Remove.
6273         (LINE_INFO_TABLE_INCREMENT): Remove.
6274         (line_info_label_num): New.
6275         (cur_line_info_table): New.
6276         (text_section_line_info, cold_text_section_line_info): New.
6277         (separate_line_info): New.
6278         (SEPARATE_LINE_CODE_LABEL): Remove.
6279         (print_dwarf_line_table): Remove.
6280         (debug_dwarf): Don't dump it.
6281         (output_one_line_info_table): New.
6282         (output_line_info): Use it.
6283         (new_line_info_table): New.
6284         (set_cur_line_info_table): New.
6285         (dwarf2out_switch_text_section): Use it.
6286         (dwarf2out_begin_function): Likewise.
6287         (push_dw_line_info_entry): New.
6288         (dwarf2out_source_line): Rewrite for new line info tables.
6289         (dwarf2out_init): Remove dead initailizations.
6290
6291 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6292
6293         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6294         various flags.
6295         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6296         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6297         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6298         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6299         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6300         * opt-functions.awk (flag_init, switch_bit_fields): New.
6301         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6302         generate CL_MISSING_OK or CL_SAVE.
6303         * optc-gen.awk: Update to generate bit-field output as well as
6304         flags field.
6305         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6306         bit-field instead of CL_REJECT_DRIVER flag.
6307         * opts-common.c (generate_canonical_option,
6308         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6309         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6310         instead of CL_REJECT_NEGATIVE flag.
6311         * toplev.c (print_switch_values): Use cl_report bit-field instead
6312         of CL_REPORT flag.
6313
6314 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6315
6316         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6317         a zero minimum index only if it is redundant.
6318
6319 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6320
6321         PR rtl-optimization/48381
6322         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6323         instead of ira_class_hard_reg_index for calculating conflicting
6324         hard registers.
6325
6326 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6327
6328         * cprop.c: Clean up hash table building.
6329         (reg_avail_info): Remove.
6330         (oprs_available_p): Remove.
6331         (record_last_reg_set_info): Remove.
6332         (record_last_set_info): Remove.
6333         (reg_available_p): New function.
6334         (gcse_constant_p): Do not treat unfolded conditions as constants.
6335         (make_set_regs_unavailable): New function.
6336         (hash_scan_set): Simplify with new reg_available_p.
6337         (compute_hash_table_work): Traverse insns stream only once.
6338         Do not compute reg_avail_info. Traverse insns in reverse order.
6339         Record implicit sets after recording explicit sets from the block.
6340
6341 2011-03-31  Michael Matz  <matz@suse.de>
6342
6343         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6344
6345 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6346
6347         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6348         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6349         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6350         (h8300_mode_dependent_address_p): New function.
6351         (h8300_get_index): Make static.
6352
6353 2011-03-31  Jeff Law  <law@redhat.com>
6354
6355         * reload1.c (elimination_effects): Fix typo in recent change.
6356
6357         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6358         typo potentially leading to null pointer dereference.
6359
6360         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6361         (setup_save_areas): Corresponding changes to avoid useless
6362         assignments.
6363
6364         * jump.c (reversed_comparison_code_parts): Avoid successive return
6365         statements when REVERSE_CONDITION is defined.
6366
6367         * expr.c (expand_assignment): Avoid useless assignments.
6368         (expand_expr_real_1): Likewise.
6369         (expand_expr_real_2): Avoid useless statements.
6370
6371         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6372
6373         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6374
6375         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6376         statements.
6377
6378         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6379
6380 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6381
6382         PR target/47109
6383         * doc/tm.texi.in (TARGET_VERSION): Remove.
6384         * doc/tm.texi: Regenerate.
6385         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6386         * collect2.c (main): Don't use TARGET_VERSION.
6387         * mips-tdump.c (main): Don't use TARGET_VERSION.
6388         * mips-tfile.c (main): Don't use TARGET_VERSION.
6389         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6390         * config/rs6000/vxworksae.h: Remove.
6391         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6392         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6393         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6394         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6395         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6396         * config/arm/arm.h (TARGET_VERSION): Remove.
6397         * config/arm/coff.h (TARGET_VERSION): Remove.
6398         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6399         * config/arm/elf.h (TARGET_VERSION): Remove.
6400         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6401         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6402         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6403         * config/arm/pe.h (TARGET_VERSION): Remove.
6404         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6405         * config/arm/semi.h (TARGET_VERSION): Remove.
6406         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6407         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6408         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6409         * config/avr/avr.h (TARGET_VERSION): Remove.
6410         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6411         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6412         * config/frv/frv.h (TARGET_VERSION): Remove.
6413         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6414         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6415         * config/i386/darwin.h (TARGET_VERSION): Remove.
6416         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6417         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6418         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6419         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6420         * config/i386/gnu.h (TARGET_VERSION): Remove.
6421         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6422         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6423         * config/i386/linux.h (TARGET_VERSION): Remove.
6424         * config/i386/linux64.h (TARGET_VERSION): Remove.
6425         * config/i386/lynx.h (TARGET_VERSION): Remove.
6426         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6427         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6428         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6429         * config/i386/netware.h (TARGET_VERSION): Remove.
6430         * config/i386/nto.h (TARGET_VERSION): Remove.
6431         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6432         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6433         * config/ia64/elf.h (TARGET_VERSION): Remove.
6434         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6435         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6436         * config/ia64/linux.h (TARGET_VERSION): Remove.
6437         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6438         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6439         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6440         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6441         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6442         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6443         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6444         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6445         * config/m68k/linux.h (TARGET_VERSION): Remove.
6446         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6447         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6448         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6449         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6450         * config/mep/mep.h (TARGET_VERSION): Remove.
6451         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6452         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6453         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6454         * config/mips/linux.h (TARGET_VERSION): Remove.
6455         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6456         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6457         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6458         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6459         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6460         * config/pa/pa.h (TARGET_VERSION): Remove.
6461         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6462         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6463         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6464         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6465         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6466         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6467         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6468         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6469         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6470         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6471         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6472         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6473         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6474         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6475         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6476         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6477         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6478         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6479         * config/s390/linux.h (TARGET_VERSION): Remove.
6480         * config/s390/s390.h (TARGET_VERSION): Remove.
6481         * config/s390/tpf.h (TARGET_VERSION): Remove.
6482         * config/score/score.h (TARGET_VERSION): Remove.
6483         * config/sh/linux.h (TARGET_VERSION): Remove.
6484         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6485         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6486         * config/sh/sh.h (TARGET_VERSION): Remove.
6487         * config/sh/sh64.h (TARGET_VERSION): Remove.
6488         * config/sh/superh.h (TARGET_VERSION): Remove.
6489         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6490         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6491         * config/sparc/linux.h (TARGET_VERSION): Remove.
6492         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6493         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6494         TARGET_NAME32, TARGET_NAME): Remove.
6495         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6496         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6497         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6498         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6499         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6500         * config/spu/spu.h (TARGET_VERSION): Remove.
6501         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6502         * config/v850/v850.h (TARGET_VERSION): Remove.
6503         * config/vax/linux.h (TARGET_VERSION): Remove.
6504         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6505         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6506         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6507
6508 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6509
6510         PR target/48142
6511         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6512         frame-related from frame-unrelated adjustments to the stack pointer.
6513
6514 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6515
6516         * common.opt (fdebug-types-section): Move earlier.
6517         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6518
6519 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6520
6521         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6522         var.
6523
6524 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6525
6526         * tree.h (CASE_CHAIN): Define.
6527         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6528         (gimple_redirect_edge_and_branch): Likewise.
6529
6530 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6531
6532         PR middle-end/48367
6533         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6534         calculation.
6535
6536 2011-03-30  Jeff Law  <law@redhat.com>
6537
6538         * PR bootstrap/48371
6539         * reload1.c (reload): Fix botch in last change.
6540
6541         * reload.h (struct reload): Fix typo introduced in last change.
6542
6543 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6544
6545         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6546         Undocumented.  Remove help text.
6547         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6548         -mhard-float.
6549
6550 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6551
6552         * doc/options.texi (NegativeAlias): Document.
6553         (Alias): Mention NegativeAlias.
6554         * opt-functions.awk: Handle NegativeAlias.
6555         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6556         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6557         * opts.h (CL_NEGATIVE_ALIAS): Define.
6558         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6559         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6560         OPT_mspe_.
6561         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6562         Alias entries.
6563         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6564         mno-spe and mno-isel instead of mspe=no and -misel=no.
6565
6566 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6567
6568         * common.opt (fdebug-types-section): New flag.
6569         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6570         * dwarf2out.c (use_debug_types): New define.
6571         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6572         (print_die): Guard output of type unit signatures using
6573         use_debug_types.
6574         (build_abbrev_table): Replace assert of dwarf_version >= 4
6575         with assert on use_debug_types.
6576         (size_of_die): Likewise.
6577         (unmark_dies): Likewise.
6578         (value_format): Decide AT_ref_external form on use_debug_types.
6579         (output_die): Replace dwarf_version version check guard with
6580         use_debug_types where appropriate.
6581         (modified_type_die): Likewise.
6582         (gen_reference_type_die): Likewise.
6583         (dwarf2out_start_source_file): Likewise.
6584         (dwarf2out_end_source_file): Likewise.
6585         (prune_unused_types_walk_attribs): Likewise.
6586         (dwarf2out_finish): Likewise.
6587
6588 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6589
6590         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6591
6592 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6593
6594         PR rtl-optimization/48332
6595         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6596         mode of input operand N and modeN to its actual mode.
6597
6598 2011-03-30  Jeff Law  <law@redhat.com>
6599
6600         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6601         define accessor macro.
6602         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6603         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6604         (reg_equiv_init): Likewise.
6605         (reg_equivs_size): New variable.
6606         (reg_equiv_init_size): Remove.
6607         (allocate_initial_values): Move prototype to here from....
6608         * integrate.h (allocate_initial_values): Remove prototype.
6609         * integrate.c: Include reload.h.
6610         (allocate_initial_values): Corresponding changes.
6611         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6612         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6613         (update_equiv_regs): Corresponding changes.
6614         (ira): Corresponding changes.
6615         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6616         (push_secondary_reload): Corresponding changes.
6617         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6618         (make_memloc, find_reloads_address): Corresponding changes.
6619         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6620         (find_reloads_address_1): Corresponding changes.
6621         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6622         (refers_to_regno_for_reload_p): Corresponding changes.
6623         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6624         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6625         * reload1.c: Include ggc.h.
6626         (grow_reg_equivs): New function.
6627         (replace_pseudos_in, reload): Corresponding changes.
6628         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6629         (eliminate_regs_1, elimination_effects): Corresponding changes.
6630         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6631         (delete_output_reload): Likewise.
6632         * caller-save.c (mark_referenced_regs): Corresponding changes.
6633         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6634         * frv/predicates.md (frv_load_operand): Corresponding changes.
6635         * microblaze/microblaze.c (double_memory_operand): Corresponding
6636         changes.
6637         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6638         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6639         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6640         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6641         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6642         changes.
6643         * pa/pa.c (emit_move_sequence): Corresponding changes.
6644         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6645
6646 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6647
6648         PR target/47551
6649         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6650         structure modes.  Don't check neon_vector_mem_operand for
6651         vector or structure modes.
6652
6653 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6654             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6655
6656         PR target/43590
6657         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6658         operand 1 and reshuffle the operands to match.
6659         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6660
6661 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6662
6663         PR driver/48208
6664         * config/c.opt (F): Added 'Driver' to -F option.
6665
6666         PR driver/48260
6667         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6668           handler function.
6669         * config/darwin.opt: Added '-arch' option.
6670
6671 2011-03-30  Nick Clifton  <nickc@redhat.com>
6672
6673         * config/rx/rx.md: Add peepholes and patterns to combine
6674         extending loads and simple arithmetic instructions.
6675         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6676         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6677         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6678         modes to use pre-decrement and post-increment addressing.
6679         (rx_is_restricted_memory_address): Add range checking of REG+INT
6680         addresses.
6681         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6682         (rx_memory_move_cost): Adjust cost of stores.
6683         (rx_adjust_insn_length): New function.
6684
6685 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6686
6687         PR c/48305
6688         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6689         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6690         matching arg00/arg01 types.
6691
6692 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6693
6694         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6695         last_location to UNKNOWN_LOCATION.
6696
6697 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6698
6699         PR target/48349
6700         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6701         FLOAT_SSE_REGS.
6702
6703 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6704             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6705
6706         PR bootstrap/48337
6707         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6708         Init(PROCESSOR_V7).
6709         (sparc_cpu): Likewise.
6710         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6711         PROCESSOR_V7.
6712
6713 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6714
6715         PR target/48336
6716         PR middle-end/48342
6717         PR rtl-optimization/48345
6718         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6719         hard regs for given mode from profitable regs when doing secondary
6720         allocation.
6721
6722 2011-03-29  Jeff Law  <law@redhat.com>
6723
6724         PR bootstrap/48327
6725         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6726         do_not_duplicate field.
6727         (lookup_redirection_data): Corresponding changes.
6728         (create_duplicates): Always create a template block.
6729         (redirect_edges): Remove code which reused the original block
6730         when it was going to become unreachable code.
6731         (thread_block): Don't set do_not_duplicate field.
6732
6733 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6734
6735         * lto-opts.c (register_user_option_p, lto_register_user_option):
6736         Make type argument unsigned.
6737         * lto-streamer.h (lto_register_user_option): Make type argument
6738         unsigned.
6739         * opth-gen.awk: Make CL_* macros unsigned.
6740         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6741         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6742         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6743         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6744         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6745         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6746         (find_opt): Make lang_mask argument unsigned.
6747
6748 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6749
6750         PR rtl-optimization/48331
6751         PR rtl-optimization/48334
6752         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6753         for any used algorithm.
6754
6755 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6756
6757         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6758         to parent_max.
6759
6760 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6761
6762         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6763         (alpha_option_override): Don't set alpha_sr_alias_set.
6764         (emit_frame_store_1): Use gen_frame_mem rather than calling
6765         set_mem_alias_set.
6766         (alpha_expand_epilogue): Ditto.
6767
6768 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6769
6770         PR tree-optimization/48290
6771         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6772         vectorization, check that relevant phis in the basic block after
6773         the inner loop are really inner loop's exit phis.
6774
6775 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6776
6777         PR debug/48190
6778         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6779         (cached_dw_loc_list_def): New structure.
6780         (cached_dw_loc_list): New typedef.
6781         (cached_dw_loc_list_table): New variable.
6782         (cached_dw_loc_list_table_hash): New function.
6783         (cached_dw_loc_list_table_eq): Likewise.
6784         (add_location_or_const_value_attribute): Take a bool cache_p.
6785         Cache the list when the parameter is true.
6786         (gen_formal_parameter_die): Update caller.
6787         (gen_variable_die): Likewise.
6788         (dwarf2out_finish): Likewise.
6789         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6790         while generating debug info for the decl.
6791         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6792         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6793         (resolve_addr): Cache the result of resolving a chain of
6794         location lists.
6795
6796 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6797
6798         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6799         conflict object hard regset nodes have intersecting hard reg sets.
6800
6801         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6802         after regstat_init_n_sets_and_refs.
6803
6804         * ira.c: Add more comments at the top.
6805         (setup_stack_reg_pressure_class, setup_pressure_classes):
6806         Add comments how we compute the register pressure classes.
6807         (setup_allocno_and_important_classes): Add more comments.
6808         (setup_class_translate_array, reorder_important_classes)
6809         (setup_reg_class_relations): Add comments.
6810
6811         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6812         start of the file.
6813
6814         * ira-color.c: Add 2011 to the Copyright line.
6815         (assign_hard_reg):  Add more comments.
6816         (improve_allocation): Ditto.
6817
6818         * ira-costs.c: Add 2011 to the Copyright line.
6819         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6820         comments.
6821         (setup_regno_cost_classes_by_mode): Ditto.
6822
6823         Initial patches from ira-improv branch:
6824
6825         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6826
6827         * ira-build.c (ira_create_object): Remove initialization of
6828         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6829         (ira_create_allocno): Remove initialization of
6830         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6831         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6832         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6833         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6834         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6835         Initialize ALLOCNO_ADD_DATA.
6836         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6837         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6838         ALLOCNO_REG.
6839         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6840         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6841
6842         * ira.c (ira_reallocate): Remove.
6843         (setup_pressure_classes): Call
6844         ira_init_register_move_cost_if_necessary.  Use
6845         ira_register_move_cost instead of ira_get_register_move_cost.
6846         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6847         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6848
6849         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6850         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6851         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6852         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6853         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6854         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6855         Fix formatting.
6856         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6857         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6858         (struct allocno_color_data): New.
6859         (allocno_color_data_t): New typedef.
6860         (allocno_color_data): New definition.
6861         (ALLOCNO_COLOR_DATA): New macro.
6862         (struct object_color_data): New.
6863         (object_color_data_t): New typedef.
6864         (object_color_data): New definition.
6865         (OBJECT_COLOR_DATA): New macro.
6866         (update_copy_costs, calculate_allocno_spill_cost): Call
6867         ira_init_register_move_cost_if_necessary.  Use
6868         ira_register_move_cost instead of ira_get_register_move_cost.
6869         (move_spill_restore, update_curr_costs): Ditto.
6870         (allocno_spill_priority): Make it inline.
6871         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6872         (struct coalesce_data, coalesce_data_t): New.
6873         (allocno_coalesce_data): New definition.
6874         (ALLOCNO_COALESCE_DATA): New macro.
6875         (merge_allocnos, coalesced_allocno_conflict_p): Use
6876         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6877         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6878         (coalesce_allocnos): Ditto.
6879         (setup_coalesced_allocno_costs_and_nums): Ditto.
6880         (collect_spilled_coalesced_allocnos): Ditto.
6881         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6882         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6883         (coalesce_spill_slots): Ditto.
6884         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6885         free allocno_coalesce_data.
6886
6887         * ira-conflicts.c: Fix formatting.
6888         (process_regs_for_copy): Call
6889         ira_init_register_move_cost_if_necessary.  Use
6890         ira_register_move_cost instead of ira_get_register_move_cost.
6891         (build_object_conflicts): Optimize.
6892
6893         * ira-costs.c (record_reg_classes): Optimize.  Call
6894         ira_init_register_move_cost_if_necessary.  Use
6895         ira_register_move_cost, ira_may_move_in_cost, and
6896         ira_may_move_out_cost instead of ira_get_register_move_cost and
6897         ira_get_may_move_cost.
6898         (record_address_regs): Ditto.
6899         (scan_one_insn): Optimize.
6900         (find_costs_and_classes): Optimize.
6901         (process_bb_node_for_hard_reg_moves): Call
6902         ira_init_register_move_cost_if_necessary.  Use
6903         ira_register_move_cost instead of ira_get_register_move_cost.
6904
6905         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6906         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6907         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6908         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6909         definitions.
6910         (ira_initiate_emit_data, ira_finish_emit_data)
6911         (create_new_allocno): New functions.
6912         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6913         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6914         Use ira_register_move_cost instead of ira_get_register_move_cost.
6915
6916         * ira-int.h: Fix some comments.
6917         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6918         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6919         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6920         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6921         add_data.
6922         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6923         bitfield after mode.  Make hard_regno a short int.  Make
6924         hard_regno short.  Remove first_coalesced_allocno and
6925         next_coalesced_allocno.  Move mem_optimized_dest_p,
6926         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6927         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6928         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6929         temp, colorable_p.  Add new member add_data.
6930         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6931         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6932         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6933         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6934         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6935         (ALLOCNO_ADD_DATA): New macro.
6936         (ira_emit_data_t): New typedef.
6937         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6938         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6939         from struct ira_allocno.
6940         (ALLOCNO_EMIT_DATA): New macro.
6941         (ira_allocno_emit_data, allocno_emit_reg): New.
6942         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6943         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6944         (OBJECT_ADD_DATA): New macro.
6945         (ira_reallocate): Remove.
6946         (ira_initiate_emit_data, ira_finish_emit_data): New.
6947         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6948         (ira_init_register_move_cost_if_necessary): New.
6949         (ira_object_conflict_iter_next): Merge into
6950         ira_object_conflict_iter_cond.
6951         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6952
6953         * ira-live.c (process_single_reg_class_operands): Call
6954         ira_init_register_move_cost_if_necessary.  Use
6955         ira_register_move_cost instead of ira_get_register_move_cost.
6956
6957         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6958
6959         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6960
6961         * ira-costs.c: Fix formatting.
6962         (cost_classes, cost_classes_num): Remove.
6963         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6964         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6965         (cost_classes_del, cost_classes_htab): New.
6966         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6967         (initiate_regno_cost_classes, setup_cost_classes): New.
6968         (setup_regno_cost_classes_by_aclass): New.
6969         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6970         (record_reg_classes): Use regno_cost_classes instead of
6971         cost_classes.  Move checking opposite operand up.
6972         (record_address_regs): Use regno_cost_classes
6973         instead of cost_classes.
6974         (scan_one_insn): Ditto.  Use always general register.
6975         (print_allocno_costs): Use regno_cost_classes instead of
6976         cost_classes.
6977         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6978         (find_costs_and_classes): Set up cost classes for each registers.
6979         Use also their mode for this.  Use regno_cost_classes instead of
6980         cost_classes.
6981         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6982         cost_classes.
6983         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6984         (ira_costs, ira_set_pseudo_classes): Call
6985         initiate_regno_cost_classes and finish_regno_cost_classes.
6986
6987         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6988
6989         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6990
6991         * target.def (ira_cover_classes): Remove.
6992
6993         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6994
6995         * doc/tm.texi.in: Ditto.
6996
6997         * ira-conflicts.c: Remove mentioning cover classes from the file.
6998         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6999         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7000
7001         * targhooks.c (default_ira_cover_classes): Remove.
7002
7003         * targhooks.h (default_ira_cover_classes): Ditto.
7004
7005         * haifa-sched.c: Remove mentioning cover classes from the file.
7006         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7007         ira_pressure_classes and ira_pressure_classes_num instead of
7008         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7009         sched_regno_pressure_class instead of sched_regno_cover_class.
7010         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7011         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7012
7013         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7014         classes from the file.
7015         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7016         (struct object_hard_regs, struct object_hard_regs_node): New.
7017         (struct ira_object): New members profitable_hard_regs,
7018         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7019         (struct ira_allocno): Rename cover_class to aclass.  Rename
7020         cover_class_cost and updated_cover_class_cost to class_cost and
7021         updated_class_cost.  Remove splay_removed_p and
7022         left_conflict_size.  Add new members colorable_p.
7023         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7024         (ALLOCNO_COLORABLE_P): New macro.
7025         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7026         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7027         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7028         (OBJECT_...): Rename parameter C to O.
7029         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7030         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7031         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7032         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7033         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7034         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7035         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7036         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7037         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7038         x_ira_reg_class_subunion.
7039         (ira_max_memory_move_cost, ira_max_register_move_cost)
7040         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7041         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7042         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7043         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7044         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7045         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7046         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7047         (ira_tune_allocno_costs_and_cover_classes): Rename to
7048         ira_tune_allocno_costs.
7049         (ira_debug_hard_regs_forest): New.
7050         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7051         (ira_object_conflict_iter_next): Fix comments.
7052         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7053         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7054         cover_class to aclass.
7055         (ira_allocate_and_accumulate_costs): Ditto.
7056         (ira_allocate_and_set_or_copy_costs): Ditto.
7057
7058         * opts.c (decode_options): Remove ira_cover_class check.
7059
7060         * ira-color.c: Remove mentioning cover classes from the file.  Use
7061         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7062         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7063         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7064         (splay-tree.h): Remove include.
7065         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7066         before copy_freq_compare_func.
7067         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7068         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7069         New definitions.
7070         (hard_regs_roots, hard_regs_node_vec): Ditto.
7071         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7072         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7073         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7074         (create_new_object_hard_regs_node): Ditto.
7075         (add_new_object_hard_regs_node_to_forest): Ditto.
7076         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7077         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7078         Ditto.
7079         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7080         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7081         (remove_unused_object_hard_regs_nodes): Ditto.
7082         (enumerate_object_hard_regs_nodes): Ditto.
7083         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7084         (object_hard_regs_subnode_t): Ditto.
7085         (struct object_hard_regs_subnode): Ditto.
7086         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7087         (setup_object_hard_regs_subnode_index): Ditto.
7088         (get_object_hard_regs_subnodes_num): Ditto.
7089         (form_object_hard_regs_nodes_forest): Ditto.
7090         (finish_object_hard_regs_nodes_tree): Ditto.
7091         (finish_object_hard_regs_nodes_forest): Ditto.
7092         (allocnos_have_intersected_live_ranges_p): Rename to
7093         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7094         (pseudos_have_intersected_live_ranges_p): Rename to
7095         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7096         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7097         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7098         (update_copy_costs): Remove assert.  Skip cost update if the hard
7099         reg does not belong the class.
7100         (assign_hard_reg): Process only profitable hard regs.
7101         (uncolorable_allocnos_num): Make it scalar.
7102         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7103         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7104         and ira_reg_class_max_nregs.
7105         (bucket_allocno_compare_func): Check frequency first.
7106         (sort_bucket): Add compare function as a parameter.
7107         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7108         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7109         (push_allocno_to_stack): Rewrite for checking new allocno
7110         colorability.
7111         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7112         (push_only_colorable): Pass new parameter to sort_bucket.
7113         (push_allocno_to_spill): Remove.
7114         (allocno_spill_priority_compare): Make it inline and rewrite.
7115         (splay_tree_allocate, splay_tree_free): Remove.
7116         (allocno_spill_sort_compare): New function.
7117         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7118         build and use splay tree.  Choose first allocno in uncolorable
7119         allocno bucket to spill.  Remove setting spill cost.
7120         (all_conflicting_hard_regs): Remove.
7121         (setup_allocno_available_regs_num): Check only profitable hard
7122         regs.  Print info about hard regs nodes.
7123         (setup_allocno_left_conflicts_size): Remove.
7124         (put_allocno_into_bucket): Don't call
7125         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7126         (improve_allocation): New.
7127         (color_allocnos): Call setup_profitable_hard_regs,
7128         form_object_hard_regs_nodes_forest, improve_allocation,
7129         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7130         (print_loop_title): Use pressure classes.
7131         (color_allocnso): Ditto.
7132         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7133         and allocnos_for_spilling.
7134         (ira_sort_regnos_for_alter_reg): Don't setup members
7135         {first,next}_coalesced_allocno.
7136         (color): Remove allocating and freeing removed_splay_allocno_vec.
7137         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7138         prohibited_class_mode_regs.
7139
7140         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7141         formatting.
7142         (update_allocno_pressure_excess_length): Use pressure classes.
7143         (inc_register_pressure, dec_register_pressure): Check for pressure
7144         class.
7145         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7146         pressure class.  Use ira_reg_class_nregs instead of
7147         ira_reg_class_max_nregs.
7148         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7149         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7150         (single_reg_class): Use ira_reg_class_nregs instead of
7151         ira_reg_class_max_nregs.
7152         (process_bb_node_lives): Use pressure classes.
7153
7154         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7155         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7156         (change_loop): Use pressure classes.
7157         (modify_move_list): Call ira_set_allocno_class instead of
7158         ira_set_allocno_cover_class.
7159
7160         * ira-build.c: Remove mentioning cover classes from the file.  Use
7161         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7162         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7163         ALLOCNO_UPDATED_CLASS_COST instead of
7164         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7165         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7166         (ira_create_allocno): Remove initialization of
7167         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7168         ALLOCNO_COLORABLE_P.
7169         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7170         Update conflict regs for the objects.
7171         (create_cap_allocno): Remove assert.  Don't propagate
7172         ALLOCNO_AVAILABLE_REGS_NUM.
7173         (ira_free_allocno_costs): New function.
7174         (finish_allocno): Change a part of code into call of
7175         ira_free_allocno_costs.
7176         (low_pressure_loop_node_p): Use pressure classes.
7177         (object_range_compare_func): Don't compare classes.
7178         (setup_min_max_conflict_allocno_ids): Ditto.
7179
7180         * loop-invariant.c: Remove mentioning cover classes from the file.
7181         Use ira_pressure_classes and ira_pressure_classes_num instead of
7182         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7183         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7184         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7185         Use reg_allocno_class instead of reg_cover_class.
7186         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7187         STACK_REG_COVER_CLASS.
7188         (get_regno_cover_class): Rename to get_regno_pressure_class.
7189         (move_loop_invariants): Initialize and finalize regstat.
7190
7191         * ira.c: Remove mentioning cover classes from the file.  Add
7192         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7193         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7194         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7195         setup_class_subset_and_memory_move_costs.
7196         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7197         (setup_cover_and_important_classes): Rename to
7198         setup_allocno_and_important_classes.
7199         (setup_class_translate_array): New.
7200         (setup_class_translate): Call it for allocno and pressure classes.
7201         (cover_class_order): Rename to allocno_class_order.
7202         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7203         of ira_class_translate.
7204         (reorder_important_classes): Set up ira_important_class_nums.
7205         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7206         (print_class_cover): Rename to print_classes.  Add parameter.
7207         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7208         Print pressure classes too.
7209         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7210         setup_reg_subclasses.
7211         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7212         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7213         (setup_prohibited_class_mode_regs): Use
7214         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7215         (clarify_prohibited_class_mode_regs): New function.
7216         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7217         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7218         (ira_init_once): Initialize them.
7219         (free_register_move_costs): Process them.
7220         (ira_init): Move calls of find_reg_classes and
7221         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7222         Call clarify_prohibited_class_mode_regs.
7223         (ira_no_alloc_reg): Remove.
7224         (too_high_register_pressure_p): Use pressure classes.
7225
7226         * sched-deps.c: Remove mentioning cover classes from the file.
7227         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7228         ira_pressure_classes and ira_pressure_classes_num instead of
7229         ira_reg_class_cover_size and ira_reg_class_cover.
7230         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7231         sched_regno_pressure_class instead of sched_regno_cover_class.
7232         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7233         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7234
7235         * ira.h: Add 2010 to Copyright.
7236         (ira_no_alloc_reg): Remove external.
7237         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7238         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7239         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7240         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7241         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7242         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7243         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7244         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7245         x_ira_no_alloc_regs.
7246         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7247         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7248         ira_allocno_classes_num and ira_allocno_classes.
7249         (ira_class_translate): Rename to ira_allocno_class_translate.
7250         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7251         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7252         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7253         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7254         (ira_no_alloc_regs): New.
7255
7256         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7257         classes from the file.  Use ALLOCNO_CLASS instead of
7258         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7259         ALLOCNO_COVER_CLASS_COST.
7260         (regno_cover_class): Rename to regno_aclass.
7261         (record_reg_classes): Use ira_reg_class_subunion instead of
7262         ira_reg_class_union.
7263         (record_address_regs): Check overflow.
7264         (scan_one_insn): Ditto.
7265         (print_allocno_costs): Print total mem cost fore regional allocation.
7266         (print_pseudo_costs): Use REG_N_REFS.
7267         (find_costs_and_classes): Use classes intersected with them on the
7268         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7269         ira_reg_class_union.  Use ira_allocno_class_translate and
7270         regno_aclass instead of ira_class_translate and regno_cover_class.
7271         Modify code for finding regno_aclass.  Setup preferred classes for
7272         the next pass.
7273         (setup_allocno_cover_class_and_costs): Rename to
7274         setup_allocno_class_and_costs.  Use regno_aclass instead of
7275         regno_cover_class.  Use ira_set_allocno_class instead of
7276         ira_set_allocno_cover_class.
7277         (init_costs, finish_costs): Use regno_aclass instead of
7278         regno_cover_class.
7279         (ira_costs): Use setup_allocno_class_and_costs instead of
7280         setup_allocno_cover_class_and_costs.
7281         (ira_tune_allocno_costs_and_cover_classes): Rename to
7282         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7283         by processing objects.  Use ira_reg_class_max_nregs instead of
7284         ira_reg_class_nregs.
7285
7286         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7287
7288         * sched-int.h: Remove mentioning cover classes from the file.
7289         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7290
7291         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7292         classes from the file.
7293         (struct reg_pref): Rename coverclass into allocnoclass.
7294         (reg_cover_class): Rename to reg_allocno_class.
7295
7296         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7297
7298         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7299
7300         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7301
7302         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7303
7304         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7305
7306         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7307
7308         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7309
7310         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7311
7312         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7313
7314         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7315
7316         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7317         (i386_ira_cover_classes): Ditto.
7318
7319         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7320
7321         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7322
7323         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7324
7325         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7326
7327         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7328
7329         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7330
7331         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7332         (mips_ira_cover_classes): Ditto.
7333
7334         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7335
7336         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7337
7338         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7339
7340         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7341
7342         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7343
7344         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7345         (IRA_COVER_CLASSES_VSX): Ditto.
7346
7347         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7348         (rs6000_ira_cover_classes): Ditto.
7349
7350         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7351
7352         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7353
7354         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7355
7356         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7357
7358         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7359
7360         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7361
7362         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7363
7364         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7365
7366         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7367
7368         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7369
7370 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7371
7372         PR debug/48253
7373         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7374         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7375         dw_fde_unlikely_section_end_label, cold_in_std_section,
7376         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7377         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7378         fields.
7379         (output_fde): Use dw_fde_second_{begin,end} if second is
7380         true, otherwise dw_fde_{begin,end}.
7381         (output_call_frame_info): Test dw_fde_second_begin != NULL
7382         instead of dw_fde_switched_sections.
7383         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7384         fields, initialize new fields.  Initialize in_std_section
7385         unconditionally from the first partition.
7386         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7387         dw_fde_second_begin is non-NULL.
7388         (dwarf2out_switch_text_section): Stop initializing removed
7389         dw_fde_struct fields, initialize new fields, initialize
7390         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7391         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7392         (struct var_loc_list_def): Add last_before_switch field.
7393         (arange_table, arange_table_allocated, arange_table_in_use,
7394         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7395         (size_of_aranges): Count !in_std_section and !second_in_std_section
7396         hunks in fdes, instead of looking at arange_table_in_use.
7397         (output_aranges): Add aranges_length argument, don't call
7398         size_of_aranges here.  Instead of using aranges_table*
7399         emit ranges for fdes when !in_std_section resp.
7400         !second_in_std_section.
7401         (dw_loc_list): Break ranges crossing section switch.
7402         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7403         use dw_fde_second_end instead of dw_fde_end as end of last range.
7404         (gen_subprogram_die): Don't call add_arange.  Use
7405         dw_fde_{begin,end} for first partition and if switched
7406         section dw_fde_second_{begin,end} for the second.
7407         (var_location_switch_text_section_1,
7408         var_location_switch_text_section): New functions.
7409         (dwarf2out_begin_function): Initialize cold_text_section even
7410         when function_section () isn't text_section.
7411         (prune_unused_types): Don't walk arange_table.
7412         (dwarf2out_finish): Don't needlessly test
7413         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7414         If info_section_emitted, call size_of_aranges and if it indicates
7415         non-empty .debug_aranges, call output_aranges with the computed
7416         size.  Stop using removed dw_fde_struct fields, use
7417         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7418         for second.
7419
7420         PR debug/48203
7421         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7422         create ENTRY_VALUE if incoming or address of incoming's MEM
7423         is a hard REG.
7424         * dwarf2out.c (mem_loc_descriptor): Don't emit
7425         DW_OP_GNU_entry_value of DW_OP_fbreg.
7426         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7427         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7428         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7429         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7430         ENTRY_VALUE_EXPs.
7431         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7432         is a REG_P or MEM_P with REG_P address, compute hash directly
7433         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7434         (preserve_only_constants): Don't clear VALUES forwaring
7435         ENTRY_VALUE to some other VALUE.
7436
7437 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7438
7439         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7440         instead of GEN_INT.
7441
7442 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7443
7444         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7445         block before expanding the statement.
7446         (expand_gimple_stmt_1): Likewise.  Set them here...
7447         (expand_gimple_stmt): ...and not here.  Tidy.
7448         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7449         unknown.
7450
7451 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7452
7453         * Makefile.in: New rule for cprop.o.
7454         * gcse.c: Move constant/copy propagation to cprop.c.
7455         (compute_local_properties): Only handle expression tables.
7456         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7457         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7458         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7459         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7460         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7461         compute_cprop_data, find_used_regs, try_replace_reg,
7462         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7463         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7464         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7465         find_bypass_set, reg_killed_on_edge, bypass_block,
7466         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7467         execute_rtl_cprop, pass_rtl_cprop): Move to...
7468         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7469         moved from gcse.c to here with minor cleanups in duplicated code.
7470
7471 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7472
7473         * config/i386/i386.c (flag_opts): Fix a typo in
7474         -mavx256-split-unaligned-store.
7475
7476 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7477
7478         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7479         LIBCALL_VALUE): Remove macros.
7480         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7481         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7482         (h8300_function_value, h8300_libcall_value,
7483         h8300_function_value_regno_p): New functions.
7484
7485 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7486
7487         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7488
7489 2011-03-28  Jeff Law  <law@redhat.com>
7490
7491         * tree-ssa-threadupdate.c (redirect_edges): Call
7492         create_edge_and_update_destination_phis as needed.
7493         (create_edge_and_update_destination_phis): Accept new BB argument.
7494         All callers updated.
7495         (thread_block): Do not update the profile when threading around
7496         intermediate blocks.
7497         (thread_single_edge): Likewise.
7498         (determine_bb_domination_status): If BB is not a successor of the
7499         loop header, return NONDOMINATING.
7500         (register_jump_thread): Note when we register a jump thread around
7501         an intermediate block.
7502         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7503         (thread_across_edge): Use it.
7504
7505 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7506
7507         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7508         when for_return is 2.
7509
7510 2011-03-28  Jeff Law  <law@redhat.com>
7511
7512         * var-tracking.c (canonicalize_values_mark): Delete unused
7513         lhs assignment.
7514         (canonicalize_values_star, set_variable_part): Likewise.
7515         (clobber_variable_part, delete_variable_part): Likewise.
7516
7517 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7518
7519         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7520
7521 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7522
7523         * tree-inline.c (expand_call_inline): Do not check that destination
7524         node is analyzed.
7525         (optimize_inline_calls): Assert that destination node is analyzed.
7526         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7527         not call tree_lowering_passes.
7528         * cgraph.h (cgraph_analyze_function): Declare.
7529         * cgraphunit.c (cgraph_analyze_function): Make public.
7530
7531 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7532
7533         * config/sparc/sparc-opts.h: New.
7534         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7535         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7536         (sparc_option_override): Store processor_type enumeration rather
7537         than string in cpu_default.  Remove name and enumeration from
7538         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7539         without using sparc_select.  Use target_flags_explicit instead of
7540         fpu_option_set.
7541         * config/sparc/sparc.h (enum processor_type): Move to
7542         sparc-opts.h.
7543         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7544         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7545         HeaderInclude entry.
7546         (mcpu=, mtune=): Use Var and Enum.
7547         (sparc_processor_type): New Enum and EnumValue entries.
7548
7549 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7550             Iain Sandoe  <iains@gcc.gnu.org>
7551
7552         PR target/48245
7553         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7554
7555 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7556
7557         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7558         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7559         Insert new statements at it in lieu of STMT.
7560         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7561         * tree-vect-stmts.c (vectorizable_store): Likewise.
7562         (vectorizable_load): Likewise.
7563
7564 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7565
7566         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7567         (divtf3): Ditto.
7568         (multf3): Ditto.
7569         (subtf3): Ditto.
7570
7571 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7572
7573         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7574         unaligned 256bit load/store.
7575         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7576         (*avx_movdqu<avxmodesuffix>): Likewise.
7577
7578 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7579
7580         PR target/48288
7581         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7582         * config/pa/pa.md (iordi3): Use new predicate in expander.
7583         (iorsi3): Likewise.
7584
7585 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7586
7587         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7588         FUNCTION_VALUE_REGNO_P): Remove macros.
7589         * config/mips/mips-protos.h (mips_function_value): Remove.
7590         * config/mips/mips.c (mips_function_value): Rename to...
7591         (mips_function_value_1): ... this. Make static.  Handle receiving
7592         the function type in 'fn_decl_or_type' argument.
7593         (mips_function_value, mips_libcall_value,
7594         mips_function_value_regno_p): New function.
7595         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7596         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7597
7598 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7599
7600         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7601         and -mavx256-split-unaligned-store.
7602         (ix86_option_override_internal): Split 32-byte AVX unaligned
7603         load/store by default.
7604         (ix86_avx256_split_vector_move_misalign): New.
7605         (ix86_expand_vector_move_misalign): Use it.
7606
7607         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7608         -mavx256-split-unaligned-store.
7609
7610         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7611         256bit load/store.  Generate unaligned store on misaligned memory
7612         operand.
7613         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7614         256bit load/store.
7615         (*avx_movdqu<avxmodesuffix>): Likewise.
7616
7617         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7618         -mavx256-split-unaligned-store.
7619
7620 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7621
7622         PR target/38598
7623         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7624         Update commentary.
7625
7626 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7627
7628         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7629         opno arguments with an expand_operand.  Use create_input_operand.
7630         (mips_prepare_builtin_target): Delete.
7631         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7632         functions.
7633         (mips_expand_builtin_direct): Use create_output_operand and
7634         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7635         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7636         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7637
7638 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7639
7640         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7641         function.
7642         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7643
7644 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7645
7646         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7647         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7648         basic blocks and call commit_edge_insertions directly.
7649         (fixup_abnormal_edges): Move from here to...
7650         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7651         on the edges and return whether some have actually been inserted.
7652         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7653         compensation code.
7654
7655 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7656
7657         PR rtl-optimization/48144
7658         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7659         (merge_expr_data): ... here.
7660         (av_set_intersect): Rename to av_set_code_motion_filter.
7661         Update all callers.  Call merge_history_vect when an expression
7662         is found in both sets.
7663         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7664
7665 2011-03-26  Alan Modra  <amodra@gmail.com>
7666
7667         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7668         cmodel medium addresses.
7669         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7670         64-bit gpr loads and stores.
7671         (rs6000_secondary_reload_ppc64): New function.
7672         * config/rs6000/rs6000-protos.h: Declare it.
7673         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7674
7675 2011-03-26  Alan Modra  <amodra@gmail.com>
7676
7677         PR target/47487
7678         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7679         GNU Go in traceback table.
7680
7681 2011-03-25  Richard Henderson  <rth@redhat.com>
7682
7683         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7684         if there are exactly 6 operands.
7685         (set_storage_via_setmem): Similarly.
7686
7687 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7688
7689         * collect2.c (write_c_file_stat): Handle backslash
7690         as right-hand directory separator.
7691         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7692         checking just for slash.
7693         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7694         instead of checking for trailing slash.
7695         * gcc.c (record_temp_file): Use filename_cmp instead
7696         of strcmp.
7697         (do_spec_1): Likewise.
7698         (replace_outfile_spec_function): Likewise.
7699         (is_directory): Use filename_ncmp instead of strncmp.
7700         (print_multilib_info): Likewise.
7701         * gcov.c (find_source): Use filename_cmp instead
7702         instead of strcmp.
7703         (make_gcov_file_name): Fix order of slash/backslash
7704         checks.
7705         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7706         (add_standard_paths): Likewise.
7707         * mips-tfile.c (saber_stop): Handle backslash.
7708         * prefix.c (update_path): Use filename_ncmp instead of
7709         strncmp.
7710         * profile.c (output_location): Use filename_cmp instead
7711         of strcmp.
7712         * read-md.c (handle_toplevel_file): Handle backslash.
7713         * tlink.c (frob_extension):  Likewise.
7714         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7715         strcmp.
7716         * tree-dump.c (dequeue_and_dump): Handle backslash.
7717         * tree.c (get_file_function_name): Likewise.
7718         * gengtype.c (read_input_list): Likewise.
7719         (get_file_realbasename): Likewise.
7720         (get_output_file_with_visibility): Use filename_cmp
7721         instead of strcmp.
7722
7723 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7724
7725         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7726         case to VFPv1.
7727
7728 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7729
7730         * fold-const.c (expr_location_or): New function.
7731         (fold_truth_not_expr): Call it.
7732
7733 2011-03-25  Jeff Law  <law@redhat.com>
7734
7735         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7736         va_end.
7737         * c-family/c-common.c (def_fn_type): Likewise.
7738         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7739         * emit-rtl.c (gen_rtvec): Likewise.
7740         * lto/lto-lang.c (def_fn_type): Likewise.
7741
7742 2011-03-25  Richard Guenther  <rguenther@suse.de>
7743
7744         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7745         also generate copies.
7746         (fini_copy_prop): Handle constant values properly.
7747
7748 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7749
7750         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7751         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7752         (hash_loc_operands, compare_loc_operands): Handle
7753         DW_OP_GNU_entry_value.
7754
7755 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7756
7757         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7758         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7759         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7760         comment and use macro TARGET_64BIT_MS_ABI instead.
7761         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7762         and change default behavior for 32-bit MS_ABI.
7763         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7764         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7765         32-bit, too.
7766         (ix86_cfun_abi): Likewise.
7767         (ix86_maybe_switch_abi): Adjust comment.
7768         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7769         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7770         instead of checking for SYSV_ABI.
7771         (ix86_nsaved_sseregs): Likewise.
7772         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7773         to 16 bytes.
7774         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7775         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7776         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7777         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7778         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7779
7780 2011-03-25  Richard Guenther  <rguenther@suse.de>
7781
7782         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7783         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7784         (verify_gimple): Remove.
7785         * tree-cfg.c (verify_gimple_call): Merge verification
7786         from verify_stmts.
7787         (verify_gimple_phi): Merge verification from verify_stmts.
7788         (verify_gimple_label): New function.
7789         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7790         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7791         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7792         (verify_stmts): Rename to verify_gimple_in_cfg.
7793         (verify_gimple_in_cfg): New function.
7794         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7795         * tree-ssa.c (verify_ssa): Likewise.
7796         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7797
7798 2011-03-25  Richard Guenther  <rguenther@suse.de>
7799
7800         * passes.c (init_optimization_passes): Add FRE pass after
7801         early SRA.
7802
7803 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7804             Andrew Stubbs  <ams@codesourcery.com>
7805
7806         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7807         for Cortex-A8.
7808         (arm_movdi_vfp_cortexa8): New pattern.
7809         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7810         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7811         instructions when tuning for Cortex-A8.  Set attribute "arch".
7812         * config/arm/arm.md: Move include arm-tune.md up a bit.
7813         (define_attr "arch"): Add "onlya8" and "nota8" values.
7814         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7815
7816 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7817
7818         PR bootstrap/48282
7819         Revert:
7820         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7821
7822         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7823         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7824         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7825         * passes.c (init_optimization_passes): Move
7826         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7827
7828 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7829
7830         * c-typeck.c (comptypes_internal): Replace target
7831         hook call of comp_type_attributes by version in tree.c file.
7832         * gimple.c (gimple_types_compatible_p_1): Likewise.
7833         * tree-ssa.c (useless_type_conversion_p): Likewise.
7834         * tree.c (build_type_attribute_qual_variant): Likewise.
7835         (attribute_value_equal): New static helper function.
7836         (comp_type_attributes): New function.
7837         (merge_attributes): Use attribute_value_equal for comparison.
7838         (attribute_list_contained): Likewise.
7839         * tree.h (comp_type_attributes): New prototype.
7840
7841 2011-03-25  Richard Guenther  <rguenther@suse.de>
7842
7843         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7844         of complex types at -O0.
7845         (verify_gimple_assign_binary): Likewise.
7846         (verify_gimple_assign_ternary): Likewise.
7847
7848 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7849
7850         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7851         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7852
7853 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7854
7855         PR debug/48041
7856         * dwarf2out.c (output_abbrev_section): Only write table when
7857         abbrev_die_table_in_use > 1.
7858
7859 2011-02-24  Richard Henderson  <rth@redhat.com>
7860
7861         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7862         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7863         (alpha_expand_unaligned_load_words): Use extql.
7864         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7865         (emit_insxl): Handle all modes for consistency.
7866
7867 2011-02-24  Richard Henderson  <rth@redhat.com>
7868
7869         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7870         (alpha_expand_unaligned_load): Likewise.
7871         (alpha_expand_unaligned_store): Likewise.
7872         (alpha_expand_unaligned_load_words): Likewise.
7873         (alpha_expand_unaligned_store_words): Likewise.
7874         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7875         (alpha_split_lock_test_and_set_12): Likewise.
7876         (print_operand, alpha_fold_builtin_extxx): Likewise.
7877         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7878         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7879         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7880         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7881         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7882         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7883         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7884         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7885         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7886         (extwl, extll, extql): Similarly.
7887         (inswh, inslh, insqh): Similarly.
7888         (mskbl, mskwl, mskll, mskql): Similarly.
7889         (mskwh, msklh, mskqh): Similarly.
7890
7891 2011-02-24  Richard Henderson  <rth@redhat.com>
7892
7893         * config/alpha/alpha.md (attribute isa): Add er, ner.
7894         (attribute enabled): Handle them.
7895         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7896
7897 2011-02-24  Richard Henderson  <rth@redhat.com>
7898
7899         * config/alpha/alpha.md (attribute isa): Add vms.
7900         (attribute enabled): Handle it.
7901         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7902         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7903         (*movtf): Rename from *movtf_internal for consistency.
7904         (*movsi): Merge with *movsi_nt_vms.
7905         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7906         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7907         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7908         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7909
7910 2011-02-24  Richard Henderson  <rth@redhat.com>
7911
7912         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7913         (extendqisi2, extendhisi2): Likewise.
7914         (extendqidi2): Simplify BWX/non-BWX expansions.
7915         (extendhidi2): Similarly.
7916
7917 2011-02-24  Richard Henderson  <rth@redhat.com>
7918
7919         * config/alpha/alpha.md (attribute isa): New.
7920         (attribute enabled): New.
7921         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7922         (zero_extendqisi2, zero_extendqidi2): Similarly.
7923         (zero_extendhisi2, zero_extendhidi2): Similarly.
7924         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7925
7926 2011-02-24  Richard Henderson  <rth@redhat.com>
7927
7928         * config/alpha/predicates.md (input_operand): Revert last change;
7929         update comment to mention 32-bit VMS rather than Windows.
7930
7931 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7932
7933         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7934         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7935         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7936         * passes.c (init_optimization_passes): Move
7937         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7938
7939 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7940
7941         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7942
7943 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7944
7945         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7946         correctly.
7947
7948 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7949
7950         PR debug/48204
7951         * simplify-rtx.c (simplify_const_unary_operation): Call
7952         real_convert when changing mode class with FLOAT_EXTEND.
7953
7954 2011-03-24  Nick Clifton  <nickc@redhat.com>
7955
7956         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7957         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7958         * config/rx/rx.c (rx_option_override): Set align_jumps,
7959         align_loops and align_labels if not set by the user.
7960         (rx_align_for_label): New function.
7961         (rx_max_skip_for_label): New function.
7962         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7963         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7964         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7965         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7966         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7967
7968 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7969
7970         PR rtl-optimization/48263
7971         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7972         and original commutative_p handling.  Use maybe_gen_insn.
7973
7974 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7975
7976         * reload.c (find_reloads_subreg_address): Add address_reloaded
7977         parameter and return true there if the full address has been
7978         reloaded.
7979         (find_reloads_toplev): Pass address_reloaded flag.
7980         (find_reloads_address_1): Don't use address_reloaded parameter.
7981
7982 2011-03-24  Jeff Law  <law@redhat.com>
7983
7984         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7985         unused variable "ann".
7986         (remove_unused_locals): Likewise.
7987
7988         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7989         statement.
7990
7991         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7992         after it is freed.
7993
7994 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7995
7996         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7997         for invalid symbolic addresses.
7998         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7999         larl operands.
8000
8001 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8002
8003         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8004         the argument in calls to fold_truth_not_expr.
8005
8006 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8007
8008         * tree.c (record_node_allocation_statistics): New function.
8009         (make_node_stat, copy_node_stat, build_string): Call it.
8010         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8011         (build1_stat, build_omp_clause): Likewise.
8012
8013 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8014
8015         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8016         last commit.
8017
8018 2011-03-24  Richard Guenther  <rguenther@suse.de>
8019
8020         PR tree-optimization/48271
8021         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8022         blocks that still exist.
8023
8024 2011-03-24  Richard Guenther  <rguenther@suse.de>
8025
8026         PR tree-optimization/48270
8027         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8028         not free datarefs before ddrs.
8029
8030 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8031
8032         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8033         from the address built for a reference with variable offset.
8034
8035 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8036
8037         PR target/48237
8038         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8039         alternatives that can be handled with movq or movabsq insn.
8040         (*movdf_internal): Disable for !TARGET_64BIT.
8041         (*movdf_internal_nointeger): Ditto.
8042         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8043
8044 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8045
8046         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8047         (FUNCTION_ARG_ADVANCE): Likewise.
8048         * tm.texi.in: Change references to them to hook references.
8049         * tm.texi: Regenerate.
8050         * targhooks.c (default_function_arg): Eliminate check for target macro.
8051         (default_function_incoming_arg): Likewise.
8052         (default_function_arg_advance): Likewise.
8053         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8054         (function_arg_advance): Likewise.
8055         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8056
8057 2011-03-24  Richard Guenther  <rguenther@suse.de>
8058
8059         PR middle-end/48269
8060         * tree-object-size.c (addr_object_size): Do not double-account
8061         for MEM_REF offsets.
8062
8063 2011-03-24  Diego Novillo  <dnovillo@google.com>
8064
8065         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8066         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8067         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8068         Update all users.
8069         (lto_input_string): Rename from input_string.  Make extern.
8070         Update all users.
8071         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8072         output_string_with_length.
8073         Output 0 to indicate a non-NULL string.  Update all callers to
8074         not emit 0.
8075         (lto_output_string): Rename from output_string.  Make extern.
8076         Update all users.
8077         (lto_output_decl_state_streams): Make extern.
8078         (lto_output_decl_state_refs): Make extern.
8079         * lto-streamer.h (lto_input_string): Declare.
8080         (lto_input_data_block): Declare.
8081         (lto_output_string): Declare.
8082         (lto_output_string_with_length): Declare.
8083         (lto_output_decl_state_streams): Declare.
8084         (lto_output_decl_state_refs): Declare.
8085
8086 2011-03-24  Richard Guenther  <rguenther@suse.de>
8087
8088         PR tree-optimization/46562
8089         * tree.c (build_invariant_address): New function.
8090         * tree.h (build_invariant_address): Declare.
8091         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8092         a renamed function moved ...
8093         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8094         Take valueization callback parameter.
8095         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8096         * gimple-fold.h: New file.
8097         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8098         (ccp_fold, fold_const_aggregate_ref,
8099         fold_ctor_reference, fold_nonarray_ctor_reference,
8100         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8101         get_base_constructor): Move ...
8102         * gimple-fold.c: ... here.
8103         (gimple_fold_stmt_to_constant_1): New function
8104         split out from ccp_fold.  Take a valueization callback parameter.
8105         Valueize all operands.
8106         (gimple_fold_stmt_to_constant): New wrapper function.
8107         (fold_const_aggregate_ref_1): New function split out from
8108         fold_const_aggregate_ref.  Take a valueization callback parameter.
8109         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8110         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8111         invariant POINTER_PLUS_EXPRs to invariant form.
8112         (vn_valueize): New function.
8113         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8114         * tree-vrp.c (vrp_valueize): New function.
8115         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8116         to fold statements to constants.
8117         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8118         function declarations.
8119         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8120         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8121
8122 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8123
8124         * config/h8300/predicates.md (jump_address_operand): Fix register
8125         mode check.
8126
8127 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8128
8129         * doc/invoke.texi (max-stores-to-sink): Document.
8130         * params.h (MAX_STORES_TO_SINK): Define.
8131         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8132         if either vectorization or if-conversion is disabled.
8133         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8134         tree-vect-data-refs.c vect_equal_offsets.
8135         (dr_equal_offsets_p): New function.
8136         (find_data_references_in_bb): Remove static.
8137         * tree-data-ref.h (find_data_references_in_bb): Declare.
8138         (dr_equal_offsets_p): Likewise.
8139         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8140         (vect_drs_dependent_in_basic_block): Update calls to
8141         vect_equal_offsets.
8142         (vect_check_interleaving): Likewise.
8143         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8144         (cond_if_else_store_replacement): Rename to...
8145         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8146         documentation.
8147         (cond_if_else_store_replacement): New function.
8148         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8149         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8150
8151 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8152
8153         PR target/46934
8154         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8155         to subtract lower bound instead of GEN_INT().
8156
8157 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8158
8159         PR other/48179
8160         PR other/48221
8161         PR other/48234
8162         * doc/extend.texi (Alignment): Move section to match order in TOC.
8163         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8164         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8165
8166 2011-03-23  Jeff Law  <law@redhat.com>
8167
8168         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8169         before removing the edge.
8170
8171         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8172         it may have been freed by redirect_branch_edge or
8173         redirect_edge_succ_nodup.
8174
8175 2011-03-23  Richard Guenther  <rguenther@suse.de>
8176
8177         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8178         (check_va_list_escapes): Likewise.
8179         (check_all_va_list_escapes): Likewise.
8180
8181 2011-03-23  Richard Guenther  <rguenther@suse.de>
8182
8183         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8184         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8185         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8186         (alias.o): Likewise.
8187         (ipa-type-escape.o): Remove.
8188         (ipa-struct-reorg.o): Likewise.
8189         (GTFILES): Remove ipa-struct-reorg.c.
8190         * alias.c: Do not include ipa-type-escape.h.
8191         * tree-ssa-alias.c: Likewise.
8192         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8193         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8194         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8195         and ipa-type-escape passes.
8196         * tree-pass.h (pass_ipa_type_escape): Remove.
8197         (pass_ipa_struct_reorg): Likewise.
8198         * ipa-struct-reorg.h: Remove.
8199         * ipa-struct-reorg.c: Likewise.
8200         * ipa-type-escape.h: Likewise.
8201         * ipa-type-escape.c: Likewise.
8202         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8203         (--param struct-reorg-cold-struct-ratio): Likewise.
8204         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8205         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8206         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8207
8208 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8209
8210         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8211         cpu attribute value.
8212         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8213         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8214         * config/s390/s390.c (processor_flags_table): New constant array.
8215         (s390_handle_arch_option): Remove.
8216         (s390_handle_option): Remove s390_handle_arch_option invocations
8217         and OPT_mwarn_framesize_ handling.
8218         (s390_option_override): Remove s390_handle_arch_option invocation.
8219         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8220         warnings.
8221         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8222         * config/s390/s390.opt (s390_tune, s390_arch)
8223         (march=): Replace s390_arch_option enum and values with
8224         processor_type.  Set variable name to s390_arch.  Set
8225         initialization value.
8226         (mtune=): Replace s390_arch_option with processor_type.  Set
8227         variable name to s390_tune.  Set initialization value.
8228
8229 2011-03-23  Julian Brown  <julian@codesourcery.com>
8230
8231         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8232         accesses which are not naturally aligned.
8233
8234 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8235
8236         PR target/47553
8237         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8238
8239 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8240
8241         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8242         parameter from "int" to "enum insn_code".
8243         (expand_operand_type): New enum.
8244         (expand_operand): New structure.
8245         (create_expand_operand): New function.
8246         (create_fixed_operand, create_output_operand): Likewise
8247         (create_input_operand, create_convert_operand_to): Likewise.
8248         (create_convert_operand_from, create_address_operand): Likewise.
8249         (create_integer_operand): Likewise.
8250         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8251         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8252         (expand_insn, expand_jump_insn): Likewise.
8253         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8254         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8255         (expand_movstr, expand_builtin___clear_cache): Likewise.
8256         (expand_builtin_lock_release): Likewise.
8257         * explow.c (allocate_dynamic_stack_space): Likewise.
8258         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8259         and use the default handling in that case.
8260         * expmed.c (check_predicate_volatile_ok): Delete.
8261         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8262         (emit_cstore): Likewise.
8263         * expr.c (emit_block_move_via_movmem): Likewise.
8264         (set_storage_via_setmem, expand_assignment): Likewise.
8265         (emit_storent_insn, try_casesi): Likewise.
8266         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8267         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8268         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8269         (expand_twoval_unop, expand_twoval_binop): Likewise.
8270         (expand_unop_direct, emit_indirect_jump): Likewise.
8271         (emit_conditional_move, vector_compare_rtx): Likewise.
8272         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8273         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8274         (expand_sync_lock_test_and_set): Likewise.
8275         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8276         (emit_unop_insn): Likewise.
8277         (expand_copysign_absneg): Change icode to an insn_code.
8278         (create_convert_operand_from_type): New function.
8279         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8280         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8281         (expand_insn, expand_jump_insn): Likewise.
8282         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8283         than const_int_operand for operand 2.
8284
8285 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8286
8287         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8288         if possible.
8289
8290 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8291
8292         * emit-rtl.c (emit_pattern_before_noloc): New function.
8293         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8294         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8295         (emit_pattern_after_noloc): New function.
8296         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8297         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8298
8299 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8300
8301         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8302         (__ffsDI2): Likewise.
8303
8304 2011-03-22  Richard Henderson  <rth@redhat.com>
8305
8306         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8307         of !TARGET_ABI_OPEN_VMS.
8308         (alpha_trampoline_init, alpha_start_function): Likewise.
8309         (alpha_expand_epilogue, alpha_file_start): Likewise.
8310         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8311         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8312         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8313         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8314         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8315
8316 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8317
8318         * config/s390/s390-opts.h: New.
8319         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8320         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8321         s390_stack_guard): Remove.
8322         (s390_handle_arch_option): Return void.  Take enum
8323         s390_arch_option value instead of string and searching array.
8324         (s390_handle_option): Don't assert that global structures are in
8325         use.  Access variables via opts pointer.  Use error_at.  Don't use
8326         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8327         s390_handle_arch_option.
8328         (s390_option_override): Update call to s390_handle_arch_option.
8329         (s390_emit_prologue): Use %d format for s390_stack_size in
8330         diagnostic.  Use %wd for HOST_WIDE_INT.
8331         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8332         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8333         * config/s390/s390.opt (config/s390/s390-opts.h): New
8334         HeaderInclude entry.
8335         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8336         s390_arch_flags, s390_warn_framesize): New Variable entries.
8337         (s390_arch_option): New Enum and EnumValue entries.
8338         (march=): Use Enum instead of Var.
8339         (mstack-guard=, mstack-size=): Use UInteger and Var.
8340         (mtune=): Use Enum.
8341
8342 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8343
8344         * config/score/score.c (score_handle_option): Don't assert that
8345         global structures are in use.  Access target_flags via opts
8346         pointer.  Use value of -march= option to determine target_flags
8347         settings.
8348         * config/score/score.opt (march=): Use Enum.
8349         (score_arch): New Enum and EnumValue entries.
8350
8351 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8352
8353         * config/mep/mep.c (option_mtiny_specified): Remove.
8354         (mep_option_override): Move register handling for -mivc2 from
8355         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8356         instead of option_mtiny_specified.
8357         (mep_handle_option): Access target_flags via opts pointer.  Don't
8358         assert that global structures are in use.  Defer part of -mivc2
8359         handling and move it to mep_option_override.
8360         * config/mep/mep.opt (IVC2): New Mask entry.
8361         (mivc2): Use Var and Defer instead of Mask.
8362
8363 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8364
8365         * config/v850/v850-opts.h: New.
8366         * config/v850/v850.c (small_memory): Replace with
8367         small_memory_physical_max array.  Make that array static const.
8368         (v850_handle_memory_option): Take integer value of argument.  Take
8369         gcc_options pointer, option text and location.  Return void.
8370         Update for changes to small memory structures.
8371         (v850_handle_option): Access target_flags via opts pointer.  Don't
8372         assert that global structures are in use.  Update calls to
8373         v850_handle_memory_option.
8374         (v850_encode_data_area): Update references to small memory settings.
8375         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8376         (enum small_memory_type): Move to v850-opts.h.
8377         * config/v850/v850.opt (config/v850/v850-opts.h): New
8378         HeaderInclude entry.
8379         (small_memory_max): New Variable entry.
8380         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8381         (mtda, mzda): Likewise.
8382
8383 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8384
8385         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8386         pointer.  Don't assert that global structures are in use.
8387
8388 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8389
8390         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8391         via opts pointer.  Don't assert that global structures are in use.
8392
8393 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8394
8395         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8396         (munix=93): Use Var.
8397         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8398         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8399         * config/pa/pa-opts.h: New.
8400         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8401         (pa_handle_option): Don't assert that global structures are in
8402         use.  Access target_flags via opts pointer.  Don't handle
8403         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8404         OPT_munix_98 here.
8405         (pa_option_override): Handle deferred OPT_mfixed_range_.
8406
8407 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8408
8409         * config/mn10300/mn10300-opts.h: New.
8410         * config/mn10300/mn10300.c (mn10300_processor,
8411         mn10300_tune_string): Remove.
8412         (mn10300_handle_option): Don't assert that global structures are
8413         in use.  Access mn10300_processor via opts pointer.  Don't handle
8414         OPT_mtune_ here.
8415         * config/mn10300/mn10300.h (enum processor_type): Move to
8416         mn10300-opts.h.
8417         (mn10300_processor): Remove.
8418         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8419         HeaderInclude entry.
8420         (mn10300_processor): New Variable entry.
8421         (mtune=): Use Var.
8422
8423 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8424
8425         * config/microblaze/microblaze.c: Don't include opts.h.
8426         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8427         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8428         (mno-clearbss): Use Var and Warn.
8429
8430 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8431
8432         * config/m32r/m32r-opts.h: New.
8433         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8434         (m32r_handle_option): Don't assert that global structures are in
8435         use.  Access target_flags and m32r_cache_flush_func via opts
8436         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8437         OPT_mno_flush_trap here.
8438         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8439         include of m32r-opts.h.
8440         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8441         HeaderInclude entry.
8442         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8443         (mmodel=): Use Enum and Var.
8444         (m32r_model): New Enum and EnumValue entries.
8445         (mno-flush-trap): Use Var.
8446         (msdata=): Use Enum and Var.
8447         (m32r_sdata): New Enum and EnumValue entries.
8448
8449 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8450
8451         * config/m32c/m32c.c: Don't include opts.h.
8452         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8453         m32c_handle_option): Remove.
8454         (m32c_option_override): Check global_options_set.x_target_memregs
8455         instead of target_memregs_set.
8456         * config/m32c/m32c.h (target_memregs): Remove.
8457         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8458         variable.
8459
8460 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8461
8462         * config/iq2000/iq2000-opts.h: New.
8463         * config/iq2000/iq2000.c: Don't include opts.h.
8464         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8465         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8466         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8467         HeaderInclude entry.
8468         (iq2000_tune): New Variable entry.
8469         (march=): Add comment.  Use Enum.
8470         (iq2000_arch): New Enum and EnumValue entries.
8471         (mcpu=): Use Enum and Var.
8472         (iq2000_tune): New Enum and EnumValue entries.
8473
8474 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8475
8476         * config/ia64/ia64-opts.h: New.
8477         * config/ia64/ia64.c (ia64_tune): Remove.
8478         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8479         here.  Use error_at.
8480         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8481         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8482         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8483         HeaderInclude entry.
8484         (ia64_tune): New Variable entry.
8485         (mfixed-range=): Use Defer and Var.
8486         (mtune=): Use Enum and Var.
8487         (ia64_tune): New Enum and EnumValue entries.
8488
8489 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8490
8491         * config/frv/frv-opts.h: New.
8492         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8493         frv-opts.h.
8494         (frv_cpu_type): Remove.
8495         * config/frv/frv.c: Don't include opts.h.
8496         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8497         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8498         (frv_cpu_type): New Variable entry.
8499         (frv_cpu): New Enum and EnumValue entries.
8500
8501 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8502
8503         * config/cris/cris.c (cris_handle_option): Access target_flags via
8504         opts pointer.  Don't assert that global structures are in use.
8505         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8506         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8507
8508 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8509
8510         * config/bfin/bfin-opts.h: New.
8511         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8512         bfin_si_revision, bfin_workarounds): Remove.
8513         (bfin_cpus): Make static const.
8514         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8515         not bfin_lib_id_given.
8516         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8517         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8518         pointer. Use error_at.  Don't assert that global structures are in use.
8519         * config/bfin/bfin.h: Include bfin-opts.h.
8520         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8521         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8522         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8523         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8524         entries.
8525
8526 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8527
8528         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8529         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8530         or -msoft-float here.
8531         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8532         -msoft-float and -mhard-float.
8533         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8534         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8535         msoft-float.
8536         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8537         -msoft-float.
8538         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8539         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8540         not mhard-float.
8541         (LIBGCC_SPEC): Don't handle -msoft-float.
8542         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8543         -mhard-float.
8544         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8545         msoft-float.
8546         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8547         -mfloat-abi=*, not -msoft-float and -mhard-float.
8548         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8549         -msoft-float.
8550         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8551         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8552         mhard-float and msoft-float.
8553         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8554         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8555         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8556         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8557         mhard-float.
8558         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8559         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8560         msoft-float.
8561         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8562         not mhard-float.
8563         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8564         not msoft-float.
8565
8566 2011-03-22  Richard Henderson  <rth@redhat.com>
8567
8568         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8569         TARGET_ABI_WINDOWS_NT.
8570         (alpha_output_function_end_prologue): Likewise.
8571         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8572         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8573         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8574         (trap, *movsi_nt_vms): Likewise.
8575         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8576         (*tablejump_osf_nt_internal): Remove.
8577         * config/alpha/predicates.md (input_operand): Only test Pmode.
8578
8579 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8580
8581         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8582         via opts pointer.  Use error_at.  Don't assert that global
8583         structures are in use.
8584
8585 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8586
8587         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8588         (ix86_handle_option): Access ix86_isa_flags and
8589         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8590         global structures are in use.
8591         (ix86_function_specific_save, ix86_function_specific_restore):
8592         Update ix86_isa_flags_explicit field name.
8593         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8594         (ix86_isa_flags_explicit): Rename TargetSave entry to
8595         x_ix86_isa_flags_explicit.
8596
8597 2011-03-22  Richard Henderson  <rth@redhat.com>
8598
8599         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8600         (alpha_option_override, direct_return): Likewise.
8601         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8602         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8603         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8604         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8605         (alpha_expand_epilogue, alpha_end_function): Likewise.
8606         (alpha_init_libfuncs): Likewise.
8607         (struct machine_function): Remove unicosmk members.
8608         (print_operand) ['t']: Remove.
8609         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8610         unicosmk_output_module_name, unicosmk_output_common,
8611         current_section_align, unicosmk_output_text_section_asm_op,
8612         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8613         unicosmk_section_type_flags, unicosmk_unique_section,
8614         unicosmk_asm_named_section, unicosmk_insert_attributes,
8615         unicosmk_output_align, unicosmk_defer_case_vector,
8616         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8617         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8618         unicosmk_output_ssib, unicosmk_add_call_info_word,
8619         unicosmk_extern_head, unicosmk_output_default_externs,
8620         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8621         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8622         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8623         * config/alpha/alpha-protos.h: Update.
8624         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8625         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8626         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8627         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8628         (*mulsi_se, mulvsi3): Likewise.
8629         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8630         (*divmodsi_internal, call, call_value, realign): Likewise.
8631         (moddi3, umoddi3): Likewise; remove duplicate expander.
8632         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8633         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8634         (*movdi_nofix): Remove r/U alternative.
8635         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8636         * config/alpha/constraints.md ("U"): Remove.
8637         * config/alpha/predicates.md (call_operand"): Don't test
8638         TARGET_ABI_UNICOSMK.
8639
8640 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8641
8642         * target.def (handle_option): Take gcc_options and
8643         cl_decoded_option pointers and location_t.
8644         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8645         * doc/tm.texi: Regenerate.
8646         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8647         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8648         * lto-opts.c (lto_reissue_options): Generate option structure for
8649         targetm.handle_option call.
8650         * opts.c (target_handle_option): Update call to
8651         targetm.handle_option.  Remove assertions about values now passed
8652         down to hook.
8653         * targhooks.c (default_target_handle_option): New.
8654         * targhooks.h (default_target_handle_option): Declare.
8655         * config/alpha/alpha.c: Include opts.h.
8656         (alpha_handle_option): Update to new hook interface.
8657         * config/arm/arm.c: Include opts.h.
8658         (arm_handle_option): Update to new hook interface.
8659         * config/arm/t-arm (arm.o): Update dependencies.
8660         * config/bfin/bfin.c: Include opts.h.
8661         (bfin_handle_option): Update to new hook interface.
8662         * config/cris/cris.c: Include opts.h.
8663         (cris_handle_option): Update to new hook interface.
8664         * config/frv/frv.c: Include opts.h.
8665         (frv_handle_option): Update to new hook interface.
8666         * config/i386/i386.c: Include opts.h.
8667         (ix86_handle_option): Update to new hook interface.
8668         (ix86_valid_target_attribute_inner_p): Generate option structure
8669         for call to ix86_handle_option.
8670         * config/i386/t-i386 (i386.o): Update dependencies.
8671         * config/ia64/ia64.c: Include opts.h.
8672         (ia64_handle_option): Update to new hook interface.
8673         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8674         * config/iq2000/iq2000.c: Include opts.h.
8675         (iq2000_handle_option): Update to new hook interface.
8676         * config/m32c/m32c.c: Include opts.h.
8677         (m32c_handle_option): Update to new hook interface.
8678         * config/m32r/m32r.c: Include opts.h.
8679         (m32r_handle_option): Update to new hook interface.
8680         * config/m68k/m68k.c: Include opts.h.
8681         (m68k_handle_option): Update to new hook interface.
8682         * config/mep/mep.c: Include opts.h.
8683         (mep_handle_option): Update to new hook interface.
8684         * config/microblaze/microblaze.c: Include opts.h.
8685         (microblaze_handle_option): Update to new hook interface.
8686         * config/mips/mips.c: Include opts.h.
8687         (mips_handle_option): Update to new hook interface.
8688         * config/mn10300/mn10300.c: Include opts.h.
8689         (mn10300_handle_option): Update to new hook interface.
8690         * config/pa/pa.c: Include opts.h.
8691         (pa_handle_option): Update to new hook interface.
8692         * config/pdp11/pdp11.c: Include opts.h.
8693         (pdp11_handle_option): Update to new hook interface.
8694         * config/rs6000/rs6000.c: Include opts.h.
8695         (rs6000_handle_option): Update to new hook interface.
8696         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8697         * config/rx/rx.c: Include opts.h.
8698         (rx_handle_option): Update to new hook interface.
8699         * config/s390/s390.c: Include opts.h.
8700         (s390_handle_option): Update to new hook interface.
8701         * config/score/score.c: Include opts.h.
8702         (score_handle_option): Update to new hook interface.
8703         * config/sh/sh.c: Include opts.h.
8704         (sh_handle_option): Update to new hook interface.
8705         * config/sparc/sparc.c: Include opts.h.
8706         (sparc_handle_option): Update to new hook interface.
8707         * config/v850/v850.c: Include opts.h.
8708         (v850_handle_option): Update to new hook interface.
8709
8710 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8711
8712         * gcc.c (driver_unknown_option_callback): Only permit and save
8713         unknown -Wno- options.
8714         (driver_wrong_lang_callback): Save options directly instead of via
8715         driver_unknown_option_callback.
8716
8717 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8718
8719         * combine.c (simplify_set): Try harder to find the best CC mode when
8720         simplifying a nested COMPARE on the RHS.
8721
8722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8723
8724         * config/alpha/gnu.h: Remove.
8725         * config/arc: Remove directory.
8726         * config/arm/netbsd.h: Remove.
8727         * config/arm/t-pe: Remove.
8728         * config/crx: Remove directory.
8729         * config/i386/netbsd.h: Remove.
8730         * config/m68hc11: Remove directory.
8731         * config/m68k/uclinux-oldabi.h: Remove.
8732         * config/mcore/mcore-pe.h: Remove.
8733         * config/mcore/t-mcore-pe: Remove.
8734         * config/netbsd-aout.h: Remove.
8735         * config/rs6000/gnu.h: Remove.
8736         * config/sh/sh-symbian.h: Remove.
8737         * config/sh/symbian-base.c: Remove.
8738         * config/sh/symbian-c.c: Remove.
8739         * config/sh/symbian-cxx.c: Remove.
8740         * config/sh/symbian-post.h: Remove.
8741         * config/sh/symbian-pre.h: Remove.
8742         * config/sh/t-symbian: Remove.
8743         * config/svr3.h: Remove.
8744         * config/vax/netbsd.h: Remove.
8745         * config.build: Don't handle i[34567]86-*-pe.
8746         * config.gcc: Remove handling of deprecations for most deprecated
8747         targets.
8748         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8749         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8750         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8751         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8752         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8753         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8754         Remove cases.
8755         * config.host: Don't handle i[34567]86-*-pe.
8756         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8757         (ASM_SPEC32): Don't handle -mcall-gnu.
8758         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8759         -mcall-gnu.
8760         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8761         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8762         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8763         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8764         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8765         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8766         conditional on SYMBIAN.
8767         * configure.ac: Don't handle powerpc*-*-gnu*.
8768         * configure: Regenerate.
8769         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8770         * doc/install-old.texi (m6811, m6812): Don't mention.
8771         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8772         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8773         (m68k-uclinuxoldabi): Don't mention.
8774         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8775         Remove.
8776         (-mcall-gnu): Remove.
8777         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8778         families): Remove constraint documentation.
8779
8780 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8781
8782         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8783         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8784         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8785
8786 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8787
8788         PR target/48226
8789         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8790         vector when peeking at the next token for vector, don't expand the
8791         keywords.
8792
8793 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8794
8795         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8796         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8797         * config/avr/avr.c (init_cumulative_args)
8798         (avr_function_arg_advance): Use it.
8799         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8800         sibcall epilogues.
8801         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8802         (avr_function_ok_for_sibcall): ...this new function.
8803         (avr_lookup_function_attribute1): New static Function.
8804         (avr_naked_function_p, interrupt_function_p)
8805         (signal_function_p, avr_OS_task_function_p)
8806         (avr_OS_main_function_p): Use it.
8807         * config/avr/avr.md ("sibcall", "sibcall_value")
8808         ("sibcall_epilogue"): New expander.
8809         ("*call_insn", "*call_value_insn"): New insn.
8810         ("call_insn", "call_value_insn"): Remove
8811         ("call", "call_value", "epilogue"): Change expander to handle
8812         sibling calls.
8813
8814 2011-03-21  Nick Clifton  <nickc@redhat.com>
8815
8816         * doc/invoke.texi (Overall Options): Move closing brace to end of
8817         options list.
8818         (Optimization Options): Add missing @gol.
8819         (Directory Options): Likewise.
8820         (i386 and x86-64 Options): Likewise.
8821         (RS6000 and PowerPC Options): Likewise.
8822         (i386 and x86-64 Windows Options): Likewise.
8823         (V850 Options): Add text missing from descriptions.
8824
8825 2011-03-22  Richard Henderson  <rth@redhat.com>
8826
8827         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8828         (avr_incoming_return_addr_rtx): New.
8829         (emit_push_byte): New.
8830         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8831         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8832         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8833         (emit_pop_byte): New.
8834         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8835         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8836         (INCOMING_RETURN_ADDR_RTX): New.
8837         (INCOMING_FRAME_SP_OFFSET): New.
8838         (ARG_POINTER_CFA_OFFSET): New.
8839         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8840         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8841         (pophi): Remove.
8842
8843         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8844
8845 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8846
8847         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8848         (FUNCTION_ARG_ADVANCE): Likewise.
8849         * tm.texi.in: Change references to them to hook references.
8850         * tm.texi: Regenerate.
8851         * targhooks.c (default_function_arg): Eliminate check for target
8852         macro.
8853         (default_function_incoming_arg): Likewise.
8854         (default_function_arg_advance): Likewise.
8855         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8856         (function_arg_advance): Likewise.
8857         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8858
8859 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8860
8861         * tree.c (build_call_1): New function.
8862         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8863
8864 2011-03-22  Richard Guenther  <rguenther@suse.de>
8865
8866         PR tree-optimization/48228
8867         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8868         for single-arg PHIs.
8869
8870 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8871
8872         PR rtl-optimization/48143
8873         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8874         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8875         sse2_cvtps2pd): Likewise.
8876
8877 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8878
8879         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8880
8881 2011-03-22  Richard Guenther  <rguenther@suse.de>
8882
8883         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8884         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8885         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8886         and REALIGN_LOAD_EXPR.
8887         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8888         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8889         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8890         DOT_PROD_EXPR case ...
8891         (expand_expr_real_2): ... here.
8892         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8893         and REALIGN_LOAD_EXPR.
8894         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8895         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8896         (vect_create_epilog_for_reduction): Likewise.
8897         (vectorizable_reduction): Likewise.
8898         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8899         * tree-vect-stmts.c (vectorizable_load): Likewise.
8900
8901 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8902
8903         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8904
8905 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8906
8907         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8908         handling for PLTOFF/GOTOFF.
8909
8910 2011-03-22  Nick Clifton  <nickc@redhat.com>
8911
8912         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8913         trailing backslash from the end of the macro definition.
8914
8915 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8916
8917         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8918         and PLT unspecs.
8919
8920 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8921
8922         * expr.h (prepare_operand): Move to...
8923         * optabs.h (prepare_operand): ...here and change the insn code
8924         parameter from "int" to "enum insn_code".
8925         (insn_operand_matches): Declare.
8926         * expr.c (init_expr_target): Use insn_operand_matches.
8927         (compress_float_constant): Likewise.
8928         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8929         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8930         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8931         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8932         Likewise.
8933         (gen_cond_trap): Likewise.
8934         (prepare_operand): Likewise.  Change icode to an insn_code.
8935         (insn_operand_matches): New function.
8936         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8937         * reload1.c (gen_reload): Likewise.
8938         * targhooks.c (default_secondary_reload): Likewise.
8939
8940 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8941
8942         * config/alpha/alpha.md (unspec): New define_c_enum.
8943         (unspecv): Ditto.
8944
8945 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8946
8947         PR debug/48214
8948         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8949         between a call and its CALL_ARG_LOCATION note.
8950
8951 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8952
8953         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8954
8955 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR c/42544
8958         PR c/48197
8959         * c-common.c (shorten_compare): If primopN is first sign-extended
8960         to opN and then zero-extended to result type, set primopN to opN.
8961
8962 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8963
8964         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8965         for barrier handlers.
8966
8967 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8968
8969         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8970         UNSPEC constants to be in the unspec enumeration, and redefine
8971         all UNSPECV constants to be in the unspecv enumeration, so that
8972         dumps print which unspec/unspec_volatile this is.
8973         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8974         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8975         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8976         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8977         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8978
8979         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8980         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8981         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8982         * config/rs6000/sync.md (isync, lwsync): Ditto.
8983
8984 2011-03-21  Richard Guenther  <rguenther@suse.de>
8985
8986         * params.def (lto-min-partition): Fix typo.
8987
8988 2011-03-21  Richard Guenther  <rguenther@suse.de>
8989
8990         PR c/47939
8991         * c-decl.c (grokdeclarator): Drop to the main variant only
8992         for array types.  Drop flag_gen_aux_info check.
8993
8994 2011-03-21  Richard Guenther  <rguenther@suse.de>
8995
8996         PR translation/47911
8997         * params.def (lto-partitions): Fix typo.
8998         (lto-min-partition): Fix wording.
8999
9000 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9001
9002         * config/rs6000/t-freebsd: Remove duplication from file.
9003
9004 2011-03-21  Richard Guenther  <rguenther@suse.de>
9005
9006         PR middle-end/47661
9007         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9008
9009 2011-03-21  Richard Guenther  <rguenther@suse.de>
9010
9011         PR lto/48210
9012         * params.def (lto-partitions): Require at least 1 partition.
9013
9014 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9015
9016         * gthr-solaris.h: Remove.
9017         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9018         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9019         (LIB_SPEC): Likewise.
9020         * config/sol2.opt (threads): Remove.
9021         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9022         (sparc*-*-solaris2*): Likewise.
9023         * configure.ac (enable_threads): Enable solaris support.
9024         * configure: Regenerate.
9025         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9026         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9027         solaris.
9028
9029 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9030
9031         * config.gcc: Obsolete *-*-solaris2.8*.
9032         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9033
9034 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9035
9036         PR bootstrap/48135
9037         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9038         reference.  Solaris 8 perl works.
9039
9040 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9041
9042         PR bootstrap/48135
9043         * doc/install.texi (Prerequisites): Move jar etc. up.
9044         Explain support library version requirements.
9045
9046 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9047
9048         PR bootstrap/48135
9049         * doc/install.texi (Prerequisites): Move Perl to build
9050         requirements.  Always necessary on Solaris 2 with Sun ld.
9051
9052 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9053
9054         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9055         binutils 2.21.
9056         (Specific, i?86-*-solaris2.[89]): Likewise.
9057         (Specific, i?86-*-solaris2.10): Likewise.
9058         (Specific, mips-sgi-irix6): Likewise.
9059         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9060         Update for binutils 2.21.
9061
9062 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9063
9064         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9065         Allow -fuse-linker-plugin for non-default plugin linker.
9066         * configure: Regenerate.
9067
9068 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9069
9070         PR bootstrap/48167
9071         * gengtype.c (files_rules): Added rule for cp/parser.h.
9072
9073 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9074
9075         PR target/48213
9076         * config/s390/s390.c (s390_delegitimize_address): Don't call
9077         lowpart_subreg if orig_x has BLKmode.
9078
9079 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9080
9081         PR target/12171
9082         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9083         * tree.h (attribute_spec): Add new member affects_type_identity.
9084         * attribs.c (empty_attribute_table): Adjust attribute_spec
9085         initializers.
9086         * config/alpha/alpha.c: Likewise.
9087         * config/arc/arc.c: Likewise.
9088         * config/arm/arm.c: Likewise.
9089         * config/avr/avr.c: Likewise.
9090         * config/bfin/bfin.c: Likewise.
9091         * config/crx/crx.c: Likewise.
9092         * config/darwin.h: Likewise.
9093         * config/h8300/h8300.c: Likewise.
9094         * config/i386/cygming.h: Likewise.
9095         * config/i386/i386.c: Likewise.
9096         * config/ia64/ia64.c: Likewise.
9097         * config/m32c/m32c.c: Likewise.
9098         * config/m32r/m32r.c: Likewise.
9099         * config/m68hc11/m68hc11.c: Likewise.
9100         * config/m68k/m68k.c: Likewise.
9101         * config/mcore/mcore.c: Likewise.
9102         * config/mep/mep.c: Likewise.
9103         * config/microblaze/microblaze.c: Likewise.
9104         * config/mips/mips.c: Likewise.
9105         * config/rs6000/rs6000.c: Likewise.
9106         * config/rx/rx.c: Likewise.
9107         * config/sh/sh.c: Likewise.
9108         * config/sol2.h: Likewise.
9109         * config/sparc/sparc.c: Likewise.
9110         * config/spu/spu.c: Likewise.
9111         * config/stormy16/stormy16.c: Likewise.
9112         * config/v850/v850.c: Likewise.
9113
9114 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9115
9116         * simplify-rtx.c (simplify_binary_operation_1): Handle
9117         (xor (and A B) C) case when B and C are both constants.
9118
9119 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9120
9121         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9122
9123 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9124
9125         PR bootstrap/48168
9126         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9127
9128 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9129
9130         PR rtl-optimization/48156
9131         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9132         assume df and df_lr are not NULL.
9133
9134 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9135
9136         PR debug/48023
9137         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9138         between a call and its CALL_ARG_LOCATION note.
9139
9140 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9141
9142         PR debug/48178
9143         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9144         between a call and its corresponding CALL_ARG_LOCATION note.
9145
9146 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9147
9148         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9149         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9150         * haifa-sched.c (setup_ref_regs): Ditto.
9151         * caller-save.c (add_used_regs_1): Ditto.
9152         * dse.c (look_for_hardregs): Ditto.
9153         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9154         * sched-rgn.c (check_live_1): Ditto.
9155
9156 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9157
9158         * c-decl.c (diagnose_mismatched_decls): Give an error for
9159         redefining a typedef with variably modified type.
9160
9161 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9162
9163         * c-decl.c (grokfield): Don't allow typedefs for structures or
9164         unions with no tag by default.
9165         * doc/extend.texi (Unnamed Fields): Update.
9166
9167 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9168
9169         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9170         Rewrite using indirect functions.
9171         (lwp_slwpcb): Ditto.
9172         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9173         (avx_vinsertf128<mode>): Ditto.
9174
9175 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9176
9177         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9178         unspecs.
9179
9180 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9181
9182         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9183         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9184
9185 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9186
9187         PR rtl-optimization/48170
9188         * gcse.c (hoist_code): Remove bogus asserts.
9189
9190 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9191
9192         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9193         computation for prologue/epilogue.
9194
9195 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9196
9197         * Makefile.in (check-consistency): Remove.
9198
9199 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9200
9201         PR debug/48176
9202         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9203         arange_table_in_use is 0, but either text_section_used or
9204         cold_text_section_used is true.  Don't call it if
9205         !info_section_emitted.
9206
9207 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9208
9209         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9210         FUNCTION_VALUE_REGNO_P): Remove.
9211         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9212         Remove.
9213         * config/avr/avr.c (avr_ret_register): Make static inline.
9214         (avr_function_value_regno_p): New function.
9215         (avr_libcall_value): Make static. Add 'func' argument.
9216         (avr_function_value): Make static. Rename 'func' argument to
9217         'fn_decl_or_type', forward it to avr_libcall_value. Call
9218         avr_ret_register function instead of RET_REGISTER macro.
9219         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9220
9221 2011-03-18  Jason Merrill  <jason@redhat.com>
9222
9223         PR c++/23372
9224         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9225
9226 2011-03-18  Richard Guenther  <rguenther@suse.de>
9227
9228         * doc/install.texi (--enable-gold): Remove.
9229         (--with-plugin-ld): Document.
9230         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9231
9232 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9233
9234         PR middle-end/47790
9235         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9236         again after expansion changes.
9237
9238 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9239
9240         * combine.c (try_combine): Do simplification only call of
9241         subst() on i2 even when i1 is present. Update comments.
9242
9243 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9244
9245         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9246         and UNSPEC_PCREL_SYMOFF.
9247
9248 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9249
9250         * config/s390/s390.md: Use define_c_enum for the unspec constant
9251         definitions.
9252
9253 2011-03-18  Richard Henderson  <rth@redhat.com>
9254             Jakub Jelinek  <jakub@redhat.com>
9255
9256         PR bootstrap/48161
9257         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9258         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9259
9260 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9261
9262         PR middle-end/47725
9263         * combine.c (cant_combine_insn_p): Don't check zero/sign
9264         extended hard registers.
9265
9266 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9267
9268         PR middle-end/47725
9269         * combine.c (cant_combine_insn_p): Check zero/sign extended
9270         hard registers.
9271
9272 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9273
9274         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9275         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9276         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9277         Change return type to bool.
9278         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9279
9280 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9281
9282         PR debug/48163
9283         * var-tracking.c (prepare_call_arguments): If CALL target
9284         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9285         pc instead of looking it up using cselib_lookup and use
9286         Pmode for it if x has VOIDmode.
9287         * dwarf2out.c (gen_subprogram_die): If also both first and
9288         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9289
9290         PR debug/48163
9291         * function.c (assign_parms): For data.passed_pointer parms
9292         use MEM of data.entry_parm instead of data.entry_parm itself
9293         as DECL_INCOMING_RTL.
9294         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9295         also when passed and declared mode is the same, DECL_RTL
9296         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9297         a MEM too.
9298
9299 2011-03-16  Jeff Law  <law@redhat.com>
9300
9301         PR rtl-optimization/37273
9302         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9303         handle them like argument loads from stack slots.  Do not double
9304         count memory for memory constants and argument loads from stack slots.
9305
9306 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9307
9308         PR debug/48160
9309         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9310
9311 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9312
9313         PR target/48171
9314         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9315
9316 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9317
9318         PR bootstrap/48153
9319         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9320         if dwarf_strict.
9321         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9322         Clear call_arg_locations and call_arg_loc_last always.
9323
9324         PR middle-end/48152
9325         * var-tracking.c (prepare_call_arguments): If argument needs to be
9326         passed by reference, adjust argtype and mode.
9327
9328 2011-03-17  Richard Guenther  <rguenther@suse.de>
9329
9330         PR middle-end/48134
9331         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9332         a value make sure to fold the statement.
9333
9334 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9335
9336         PR target/43872
9337         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9338         return condition with !cfun->calls_alloca.
9339
9340 2011-03-17  Richard Guenther  <rguenther@suse.de>
9341
9342         PR bootstrap/48148
9343         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9344         origin for decls in other ltrans units.
9345         (input_varpool_node): Likewise.
9346
9347 2011-03-17  Richard Guenther  <rguenther@suse.de>
9348
9349         PR middle-end/48165
9350         * tree-object-size.c (compute_object_offset): Properly return
9351         the offset operand of MEM_REFs as sizetype.
9352
9353 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9354
9355         PR rtl-optimization/48141
9356         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9357         * dse.c: Include params.h.
9358         (active_local_stores_len): New variable.
9359         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9360         to NULL.
9361         (record_store, check_mem_read_rtx): Decrease it when removing
9362         from the chain.
9363         (scan_insn): Likewise.  Increase it when adding to chain, if it
9364         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9365         set active_local_stores to NULL before the addition.
9366         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9367
9368         PR rtl-optimization/48141
9369         * dse.c (record_store): If no positions are needed in an insn
9370         that cannot be deleted, at least unchain it from active_local_stores.
9371
9372 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9373
9374         PR debug/47510
9375         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9376         (lookup_type_die_strip_naming_typedef): ... here.
9377         (get_context_die): Use it.
9378         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9379         the anonymous struct named by the naming typedef.
9380
9381 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9382
9383         PR target/48154
9384         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9385         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9386
9387 2011-03-16  Jeff Law  <law@redhat.com>
9388
9389         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9390         check for operands of conditional.  Allow type to be a pointer.
9391
9392 2011-03-16  Richard Guenther  <rguenther@suse.de>
9393
9394         PR tree-optimization/48149
9395         * fold-const.c (fold_binary_loc): Fold
9396         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9397
9398 2011-03-16  Richard Guenther  <rguenther@suse.de>
9399
9400         PR tree-optimization/26134
9401         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9402         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9403         (non_rewritable_mem_ref_base): Handle complex type component
9404         accesses, constrain offsets for vector and complex extracts
9405         more properly.
9406
9407 2011-03-16  Richard Guenther  <rguenther@suse.de>
9408
9409         PR tree-optimization/48146
9410         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9411         operands avoiding the need for renaming.
9412
9413 2011-03-16  Richard Guenther  <rguenther@suse.de>
9414
9415         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9416         constant folding.  Move MEM_REF canonicalization first.
9417         Rely on fold_const_aggregate_ref for initializer folding.
9418         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9419
9420 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9421
9422         PR middle-end/48136
9423         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9424         arg0/arg1 or their arguments are always fold converted to matching
9425         types.
9426
9427         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9428         to nargs.
9429
9430 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9431
9432         PR lto/46944
9433         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9434         Handle in-tree gold.
9435         (ld_vers): Extract binutils version for gold.
9436         (gcc_cv_ld_hidden): Handle gold here.
9437         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9438         * configure: Regenerate.
9439         * config.in: Regenerate.
9440         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9441         -fuse-linker-plugin otherwise.
9442         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9443         (LINK_COMMAND_SPEC): Use it.
9444         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9445
9446 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9447
9448         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9449         * calls.c: Remove debug.h include.
9450         (emit_call_1): Don't call virtual_call_token debug hook.
9451         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9452         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9453         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9454         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9455         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9456         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9457         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9458         dwarf2out_virtual_call): Remove.
9459         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9460         copy_call_info and virtual_call hooks.
9461         (dwarf2out_init): Don't initialize vcall_insn_table,
9462         debug_dcall_section and debug_vcall_section.
9463         (prune_unused_types): Don't mark nodes from dcall_table.
9464         (dwarf2out_finish): Don't output dcall or vcall tables.
9465         * final.c (final_scan_insn): Don't call direct_call or
9466         virtual_call debug hooks.
9467         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9468         virtual_call_token, copy_call_info and virtual_call hooks.
9469         (debug_nothing_uid): Remove prototype.
9470         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9471         copy_call_info and virtual_call hooks.
9472         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9473         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9474         * debug.c (do_nothing_debug_hooks): Likewise.
9475         (debug_nothing_uid): Remove.
9476         * doc/invoke.texi (-fenable-icf-debug): Remove.
9477         * common.opt (-fenable-icf-debug): Likewise.
9478
9479         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9480         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9481         call's MEM.  Handle functions returning aggregate through a hidden
9482         first pointer.  For virtual calls add clobbered pc to call arguments
9483         chain.
9484         * dwarf2out.c (gen_subprogram_die): Emit
9485         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9486         can't be emitted.
9487
9488         PR debug/45882
9489         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9490         * rtl.h (ENTRY_VALUE_EXP): Define.
9491         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9492         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9493         * print-rtl.c (print_rtx): Likewise.
9494         * gengtype.c (adjust_field_rtx_def): Likewise.
9495         * var-tracking.c (vt_add_function_parameter): Adjust
9496         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9497         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9498         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9499         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9500         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9501
9502         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9503         Call var_location debug hook even on CALL_INSNs.
9504         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9505         * rtl.def (ENTRY_VALUE): New.
9506         * dwarf2out.c: Include cfglayout.h.
9507         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9508         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9509         (struct call_arg_loc_node): New type.
9510         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9511         tail_call_site_count): New variables.
9512         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9513         DW_TAG_GNU_call_site_parameter.
9514         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9515         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9516         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9517         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9518         and DW_AT_GNU_all_source_call_sites.
9519         (mem_loc_descriptor): Handle ENTRY_VALUE.
9520         (add_src_coords_attributes): Don't add enything if
9521         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9522         (dwarf2out_abstract_function): Save and clear call_arg_location,
9523         call_site_count and tail_call_site_count around dwarf2out_decl call.
9524         (gen_call_site_die): New function.
9525         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9526         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9527         (dwarf2out_function_decl): Clear call_arg_locations,
9528         call_arg_loc_last, set call_site_count and tail_call_site_count
9529         to -1 and free block_map.
9530         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9531         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9532         followed by any real instructions.
9533         (dwarf2out_begin_function): Set call_site_count and
9534         tail_call_site_count to 0.
9535         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9536         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9537         attempt to force a DIE for it and worst case remove the attribute.
9538         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9539         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9540         the decl itself.
9541         * var-tracking.c: Include tm_p.h.
9542         (vt_stack_adjustments): For calls call note_register_arguments.
9543         (argument_reg_set): New variable.
9544         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9545         ensure the VALUE is resolved.
9546         (call_arguments): New variable.
9547         (prepare_call_arguments): New function.
9548         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9549         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9550         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9551         always use the best expression.
9552         (vt_expand_loc): Add ignore_cur_loc argument.
9553         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9554         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9555         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9556         note for all calls.
9557         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9558         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9559         argument.  Don't call cselib_preserve_only_values and
9560         cselib_reset_table.
9561         (note_register_arguments): New function.
9562         (vt_initialize): Compute argument_reg_set.  Call
9563         vt_add_function_parameters before processing basic blocks instead of
9564         afterwards.  For calls call prepare_call_arguments before calling
9565         cselib_process_insn.
9566         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9567         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9568         (var-tracking.o): Depend on $(TM_P_H).
9569         * cfglayout.h (insn_scope): New prototype.
9570         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9571         * cfglayout.c (insn_scope): No longer static.
9572         * insn-notes.def (CALL_ARG_LOCATION): New.
9573         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9574         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9575         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9576         nothing for DECL_EXTERNAL BLOCK_VARS.
9577
9578 2011-03-16  Alan Modra  <amodra@gmail.com>
9579
9580         PR target/45844
9581         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9582         create invalid offset address for vsx splat insn.
9583         * config/rs6000/predicates.md (splat_input_operand): New.
9584         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9585
9586 2011-03-15  Xinliang David Li  <davidxl@google.com>
9587
9588         PR c/47837
9589         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9590         (normalize_preds): New function.
9591         (is_use_properly_guarded): Normalize def predicates.
9592
9593 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9594
9595         PR target/46788
9596         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9597         in the output template.
9598
9599 2011-03-15  Richard Guenther  <rguenther@suse.de>
9600
9601         PR middle-end/47650
9602         * tree-pretty-print.c (dump_function_declaration): Properly
9603         dump unprototyped and varargs function types.
9604
9605 2011-03-15  Richard Guenther  <rguenther@suse.de>
9606
9607         PR tree-optimization/13954
9608         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9609         and friends.
9610
9611 2011-03-15  Richard Guenther  <rguenther@suse.de>
9612
9613         PR tree-optimization/48037
9614         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9615         selects into BIT_FIELD_REFs.
9616         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9617         vector select.
9618
9619 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9620
9621         PR tree-optimization/48129
9622         * builtins.c (fold_builtin_snprintf): Convert to type of
9623         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9624         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9625
9626 2011-03-15  Richard Guenther  <rguenther@suse.de>
9627
9628         PR tree-optimization/41490
9629         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9630         value but with VUSE.
9631         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9632         return statements.
9633         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9634         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9635         * tree-tailcall.c (find_tail_calls): Ignore returns.
9636
9637 2011-03-15  Richard Guenther  <rguenther@suse.de>
9638
9639         PR middle-end/48031
9640         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9641         or variable-indexed array accesses when in gimple form.
9642
9643 2011-03-15  Richard Guenther  <rguenther@suse.de>
9644
9645         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9646
9647 2011-03-15  Alan Modra  <amodra@gmail.com>
9648
9649         PR target/48032
9650         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9651         presume symbol_refs without a symbol_ref_decl are suitably
9652         aligned, nor other trees we may see here.  Handle anchor symbols.
9653         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9654         Check cmodel=medium addresses.  Adjust all calls.
9655         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9656         creating cmodel=medium optimized access to locals.
9657         * config/rs6000/constraints.md (R): Pass QImode to
9658         legitimate_constant_pool_address_p.
9659         * config/rs6000/predicates.md (input_operand): Pass mode to
9660         legitimate_constant_pool_address_p.
9661         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9662         Update prototype.
9663
9664 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9665
9666         PR target/48053
9667         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9668         64-bit constants being loaded into registers other than GPRs such
9669         as loading 0 into a VSX register.
9670
9671 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9672
9673         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9674
9675 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9676
9677         PR middle-end/47917
9678         * builtins.c (fold_builtin_snprintf): New function.
9679         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9680         (fold_builtin_4): Likewise.
9681
9682         PR middle-end/38878
9683         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9684         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9685         and C - X == X also strip nops from +/-/p+ operand.
9686         When optimizing -X == C, fold C to arg0's type.
9687
9688         PR debug/47946
9689         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9690         emit it as add_AT_int instead of add_AT_unsigned.
9691
9692 2011-03-14  Tom Tromey  <tromey@redhat.com>
9693
9694         * unwind-dw2.c: Include sys/sdt.h if it exists.
9695         (_Unwind_DebugHook): Use STAP_PROBE2.
9696         * config.in, configure: Rebuild.
9697         * configure.ac: Check for sys/sdt.h.
9698
9699 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9700
9701         * config/i386/i386.md (ROUND_FLOOR): New constant.
9702         (ROUND_CEIL): Ditto.
9703         (ROUND_TRUNC): Ditto.
9704         (ROUND_MXCSR): Ditto.
9705         (ROUND_NO_EXC): Ditto.
9706         (rint<mode>2): Use new defines instead of numerical constants.
9707         (floor<mode>2): Ditto.
9708         (ceil<mode>2): Ditto.
9709         (btrunc<mode>2): Ditto.
9710         * config/i386/i386-builtin-types.def: Define ROUND function type
9711         aliases.
9712         * config/i386/i386.c (enum ix86_builtins): Add
9713         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9714         (struct builtin_description): Add
9715         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9716         (ix86_expand_sse_round): New static function.
9717         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9718         function types.
9719         (ix86_builtin_vectorized_function): Handle
9720         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9721
9722 2011-03-14  Tom Tromey  <tromey@redhat.com>
9723
9724         * c-parser.c (c_parser_asm_string_literal): Clear
9725         warn_overlength_strings.
9726
9727 2011-03-14  Tom Tromey  <tromey@redhat.com>
9728
9729         * c-parser.c (disable_extension_diagnostics): Save
9730         warn_overlength_strings.
9731         (restore_extension_diagnostics): Restore warn_overlength_strings.
9732
9733 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9734
9735         * BASE-VER: Change to 4.7.0.
9736
9737 2011-03-14  Richard Guenther  <rguenther@suse.de>
9738
9739         PR middle-end/48098
9740         * tree.c (build_vector_from_val): Adjust assert to requirements
9741         and reality.
9742
9743 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9744
9745         PR bootstrap/48102
9746         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9747
9748 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9749
9750         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9751         terms of target_flags_explicit. Adjust copyright year.
9752
9753         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9754         * config/rs6000/t-freebsd: New file. Add override for
9755         LIB2FUNCS_EXTRA.
9756
9757 2011-03-13  Chris Demetriou  <cgd@google.com>
9758
9759         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9760         (-fno-diagnostics-show-option): this, to reflect current default.
9761         (-Werror=): Update text about -fno-diagnostics-show-option.
9762
9763 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9764
9765         PR target/48053
9766         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9767         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9768         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9769         mode is not V2DImode or V2DFmode.
9770         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9771         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9772         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9773         registers to 0.
9774         (movdi_internal64): Likewise.
9775
9776 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9777
9778         PR tree-optimization/47127
9779         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9780         parameter.
9781         (set_cloog_options): Same.
9782         (scop_to_clast): Same.
9783         (print_clast_stmt): Do not call cloog_state_malloc and
9784         cloog_state_free.
9785         (print_generated_program): Same.
9786         (gloog): Same.
9787         * graphite-clast-to-gimple.h (cloog_state): Declared.
9788         (scop_to_clast): Adjust declaration.
9789         * graphite.c (cloog_state): Defined here.
9790         (graphite_initialize): Call cloog_state_malloc.
9791         (graphite_finalize): Call cloog_state_free.
9792
9793 2011-03-11  Jason Merrill  <jason@redhat.com>
9794
9795         * attribs.c (lookup_attribute_spec): Take const_tree.
9796         * tree.h: Adjust.
9797
9798 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * config/sparc/sparc.c (sparc_option_override): Use
9801         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9802
9803 2011-03-11  Richard Guenther  <rguenther@suse.de>
9804
9805         PR tree-optimization/48067
9806         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9807         multiplication result will be only used once on the target
9808         stmt.
9809
9810 2011-03-11  Richard Guenther  <rguenther@suse.de>
9811
9812         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9813
9814 2011-03-11  Richard Guenther  <rguenther@suse.de>
9815
9816         PR lto/48073
9817         * tree.c (find_decls_types_r): Do not walk types only reachable
9818         from IDENTIFIER_NODEs.
9819
9820 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9821
9822         PR middle-end/48044
9823         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9824         all vnode->force_output nodes as needed.
9825
9826 2011-03-11  Jason Merrill  <jason@redhat.com>
9827
9828         PR c++/48069
9829         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9830         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9831
9832 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9833
9834         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9835         cgraph_node.
9836
9837 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9838
9839         PR tree-optimization/48063
9840         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9841         inline functions called once if !tree_can_inline_p (node->callers).
9842
9843 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9844
9845         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9846         extra_objs.
9847         * config/score/score3.c: Delete.
9848         * config/score/score3.h: Delete.
9849         * config/score/mul-div.S: Delete.
9850         * config/score/sfp-machine.h: Add new file.
9851         * config/score/constraints.md: Add new file.
9852         * config/score/t-score-softfp: Add new file.
9853         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9854         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9855         (score7_extra_constraint): Delete.
9856         (score7_option_override): Remove unused code.
9857         * config/score/score.c: Remove score3 and score5 define and code.
9858         * config/score/score.h: Remove score3 and score5 define and code.
9859         * config/score/score.md: Remove score3 template and unusual insn.
9860         * config/score/score.opt: Remove score3 and score5 options.
9861
9862 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9863
9864         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9865         when _HPUX_SOURCE is defined.
9866         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9867
9868 2011-03-10  Jason Merrill  <jason@redhat.com>
9869
9870         PR c++/48029
9871         * stor-layout.c (layout_type): Don't set structural equality
9872         on arrays of incomplete type.
9873         * tree.c (type_hash_eq): Handle comparing them properly.
9874
9875 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9876
9877         PR debug/48043
9878         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9879         result mode matches original rtl mode.
9880
9881 2011-03-10  Nick Clifton  <nickc@redhat.com>
9882
9883         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9884         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9885
9886 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9887
9888         PR rtl-optimization/47866
9889         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9890         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9891         if target wasn't scalar.
9892         * function.c (assign_stack_temp_for_type): Assert that neither
9893         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9894         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9895         macro.
9896         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9897
9898 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9899
9900         * config/s390/s390-protos.h (s390_label_align): New prototype.
9901         * config/s390/s390.c (s390_label_align): New function.
9902         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9903
9904 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9905
9906         PR target/47755
9907         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9908         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9909         (output_vec_const_move): Ditto.
9910
9911 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9912
9913         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9914         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9915         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9916         Change 'rclass' argument and result type to reg_class_t.
9917         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9918
9919 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9920
9921         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9922         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9923         (TARGET_MEMORY_MOVE_COST): Define.
9924         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9925
9926 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9927
9928         PR debug/47881
9929         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9930         removed anything.
9931
9932         PR tree-optimization/48022
9933         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9934         for EQ/NE_EXPR.
9935
9936 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9937
9938         PR debug/47991
9939         * var-tracking.c (find_use_val): Return NULL for
9940         cui->sets && cui->store_p BLKmode MEMs.
9941
9942 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9943
9944         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9945         Remove.
9946         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9947         xstormy16_print_operand_address): Remove.
9948         * config/stormy16/stormy16.c (xstormy16_print_operand,
9949         xstormy16_print_operand_address): Make static.
9950         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9951
9952 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9953
9954         PR target/47862
9955         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9956         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9957         before definition.
9958
9959 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9960
9961         PR bootstrap/48000
9962         * cfgloopmanip.c (fix_bb_placements): Return immediately
9963         if FROM is BASE_LOOP's header.
9964
9965 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9966
9967         * gimplify.c (gimplify_function_tree): Fix building calls
9968         to __builtin_return_address.
9969
9970 2011-03-07  Alan Modra  <amodra@gmail.com>
9971
9972         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9973         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9974         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9975         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9976         return_mode args.
9977         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9978         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9979         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9980         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9981         * config/rs6000/rs6000.c
9982         (rs6000_elf_end_indicate_exec_stack): Rename to..
9983         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9984         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9985         (rs6000_file_start): ..here.
9986         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9987         file scope variables.
9988         (call_ABI_of_interest): New function.
9989         (init_cumulative_args): Set above vars when function return value
9990         is a float, vector, or small struct.
9991         (rs6000_function_arg_advance_1): Likewise for function args.
9992         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9993         references float args.
9994
9995 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9996
9997         * doc/cfg.texi: Remove "See" before @ref.
9998         * doc/invoke.texi: Likewise.
9999
10000 2011-03-05  Jason Merrill  <jason@redhat.com>
10001
10002         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10003
10004 2011-03-05  Anthony Green  <green@moxielogic.com>
10005
10006         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10007
10008 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10009
10010         PR rtl-optimization/47899
10011         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10012         to flow_loop_nested_p when moving the loop upward.
10013
10014 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10015
10016         PR target/47719
10017         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10018
10019 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10020
10021         PR tree-optimization/47967
10022         * ipa-cp.c (build_const_val): Return NULL instead of creating
10023         VIEW_CONVERT_EXPR for mismatching sizes.
10024         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10025         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10026         give up on versioning.
10027
10028 2011-03-05  Alan Modra  <amodra@gmail.com>
10029
10030         PR target/47986
10031         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10032         full cmodel medium/large lo_sum + high addresses.
10033
10034 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10035
10036         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10037         pool references in UNSPEC_LTREL_OFFSET.
10038
10039 2011-03-04  Jan Hubicka  <jh@suse.cz>
10040
10041         PR lto/47497
10042         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10043         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10044         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10045         Add node pointers.
10046         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10047         cgraph_add_thunk): Add node pointers.
10048         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10049         associated to right node.
10050         (input_node): Update use of cgraph_same_body_alias
10051         and cgraph_add_thunk.
10052
10053 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10054
10055         * config/i386/i386.opt (mprefer-avx128): New flag.
10056         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10057         modes when the flag -mprefer-avx128 is on.
10058
10059 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10060
10061         * dwarf2out.c (compare_loc_operands): Fix address handling.
10062
10063 2011-03-04  Alan Modra  <amodra@gmail.com>
10064
10065         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10066
10067 2011-03-04  Richard Guenther  <rguenther@suse.de>
10068
10069         PR middle-end/47968
10070         * expmed.c (extract_bit_field_1): Prefer vector modes that
10071         vec_extract patterns can handle.
10072
10073 2011-03-04  Richard Guenther  <rguenther@suse.de>
10074
10075         PR middle-end/47975
10076         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10077
10078 2011-03-04  Richard Henderson  <rth@redhat.com>
10079
10080         * explow.c (emit_stack_save): Remove 'after' parameter.
10081         (emit_stack_restore): Likewise.
10082         * expr.h: Update to match.
10083         * builtins.c, calls.c, stmt.c: Likewise.
10084         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10085         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10086         * function.c (expand_function_end): Insert the emit_stack_save
10087         sequence before parm_birth_insn instead of after.
10088
10089 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10090
10091         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10092         (ssse3_pmaddubsw128): Ditto.
10093         (ssse3_pmaddubsw): Ditto.
10094
10095 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10096
10097         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10098
10099 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10100
10101         PR c/47963
10102         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10103         on TYPE_SIZE_UNIT if it is a DECL.
10104
10105         PR debug/47283
10106         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10107         first operand is not is_gimple_mem_ref_addr, try to fold it.
10108         If the operand still isn't is_gimple_mem_ref_addr, clear
10109         MEM_EXPR on op0.
10110
10111 2011-03-03  Richard Guenther  <rguenther@suse.de>
10112
10113         PR middle-end/47283
10114         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10115         match comment.
10116         (refs_may_alias_p_1): For release branches return true if
10117         we are confused by our input.
10118
10119 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10120
10121         * config/s390/s390.c (s390_function_value): Rename to ...
10122         (s390_function_and_libcall_value): ... this.
10123         (s390_function_value): New function.
10124         (s390_libcall_value): New function.
10125         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10126         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10127         target macro definitions.
10128         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10129
10130 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10131
10132         * config/i386/freebsd64.h (CC1_SPEC): Define.
10133         * config/i386/linux64.h (CC1_SPEC): Define.
10134         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10135
10136 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10137
10138         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10139         Remove.
10140         * config/stormy16/stormy16.c: Include reload.h.
10141         (xstormy16_memory_move_cost): New function.
10142         (TARGET_MEMORY_MOVE_COST): Define.
10143
10144 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10145
10146         PR rtl-optimization/47925
10147         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10148         with side effects.  Remove the more-specific check for volatile asms.
10149
10150 2011-03-02  Alan Modra  <amodra@gmail.com>
10151
10152         PR target/47935
10153         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10154         toc relative addresses for valid offsets.
10155
10156 2011-03-01  Richard Guenther  <rguenther@suse.de>
10157
10158         PR tree-optimization/47890
10159         * tree-vect-loop.c (get_initial_def_for_induction): Set
10160         related stmt properly.
10161
10162 2011-03-01  Richard Guenther  <rguenther@suse.de>
10163
10164         PR lto/47924
10165         * lto-streamer.c (lto_record_common_node): Also register
10166         the canonical type.
10167
10168 2011-03-01  Richard Guenther  <rguenther@suse.de>
10169
10170         PR lto/46911
10171         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10172         Do not stream DECL_ABSTRACT_ORIGIN.
10173         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10174         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10175         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10176         Do not stream DECL_ABSTRACT_ORIGIN.
10177         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10178         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10179
10180 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10181
10182         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10183         FUNCTION_VALUE_REGNO_P): Remove.
10184         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10185         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10186         Add 'outgoing' argument.
10187         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10188         function.
10189         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10190         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10191
10192 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10193
10194         PR debug/28047
10195         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10196         (lookup_filename): Likewise.
10197         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10198
10199 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10200             Jakub Jelinek  <jakub@redhat.com>
10201
10202         PR middle-end/47893
10203         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10204         (assign_stack_local_1): Change last argument type to int.
10205         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10206         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10207         don't record padding space into frame_space_list nor use those areas.
10208         (assign_stack_local): Adjust caller.
10209         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10210         of assign_stack_local, pass 0 as last argument.
10211         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10212         callers.
10213
10214 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10215
10216         PR debug/47283
10217         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10218         Use target address_mode and pointer_mode hooks instead of hardcoded
10219         Pmode and ptr_mode.  Handle some simple cases of extending if
10220         POINTERS_EXTEND_UNSIGNED < 0.
10221         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10222         Call convert_debug_memory_address.
10223         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10224         convert_debug_memory_address.
10225
10226         PR middle-end/46790
10227         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10228         * configure: Regenerated.
10229         * config.in: Regenerated.
10230         * varasm.c (default_function_section): Return NULL
10231         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10232
10233 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10234
10235         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10236         the description to match the printed values.
10237
10238 2011-02-28  Richard Guenther  <rguenther@suse.de>
10239
10240         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10241         of the copied scope tree.
10242
10243 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10244
10245         * doc/extend.texi (Function Attributes): Avoid deeply (and
10246         wrongly) nested tables.
10247
10248 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10249
10250         PR middle-end/47903
10251         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10252         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10253         r isn't op0 nor op1.
10254
10255 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10256
10257         * config/avr/avr.md: Remove magic comment for emacs.
10258
10259 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10260
10261         PR target/45261
10262         * config/avr/avr.c (avr_option_override): Use error on bad options.
10263         (avr_help): New function.
10264         (TARGET_HELP): Define.
10265
10266 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10267
10268         PR target/42240
10269         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10270         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10271
10272 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10273
10274         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10275         (ARM Options): Ditto.
10276         (i386 and x86-64 Options): Ditto.
10277         (RX Options): Ditto.
10278         (SPARC Options): Ditto.
10279
10280 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10281
10282         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10283         FreeBSD 6 and later.  Generally use cpu generic.
10284
10285 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10286
10287         * doc/cpp.texi: Update copyright years.
10288
10289 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10290
10291         PR target/46898
10292         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10293
10294 2011-02-25  Jon Beniston  <jon@beniston.com>
10295
10296         PR target/46898
10297         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10298         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10299         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10300         (lm32_block_move_inline): Add type cast to remove warning.
10301         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10302         (gen_int_relational): Move declarations to start of function.
10303
10304 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10305
10306         PR tree-optimization/45470
10307         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10308         can throw internally only.
10309         * tree-vect-stmts.c (vectorizable_call): Likewise.
10310
10311 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10312
10313         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10314         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10315         * config/stormy16/stormy16-protos.h
10316         (xstormy16_preferred_reload_class): Remove.
10317         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10318         static. Change 'rclass' argument and return type to reg_class_t.
10319         (TARGET_PREFERRED_RELOAD_CLASS,
10320         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10321
10322 2011-02-24  Richard Guenther  <rguenther@suse.de>
10323
10324         * lto-streamer-in.c (input_bb): Do not find referenced vars
10325         in debug statements.
10326
10327 2011-02-23  Jason Merrill  <jason@redhat.com>
10328
10329         * common.opt (fabi-version): Document v5 and v6.
10330
10331 2011-02-23  Richard Guenther  <rguenther@suse.de>
10332
10333         PR tree-optimization/47849
10334         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10335
10336 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10337
10338         * opts-common.c (decode_cmdline_option): Print empty string
10339         argument as "" in decoded->orig_option_with_args_text.
10340         * gcc.c (execute): Print empty string argument as ""
10341         in the verbose output.
10342         (do_spec_1): Keep empty string argument.
10343
10344 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10345
10346         * config.gcc: Declare score-* and crx-* obsolete.
10347
10348 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10349
10350         PR rtl-optimization/47763
10351         * web.c (web_main): Ignore naked clobber when replacing register.
10352
10353 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10354
10355         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10356         Remove.
10357
10358 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10359
10360         PR doc/47848
10361         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10362
10363 2011-02-22  Mike Stump  <mikestump@comcast.net>
10364
10365         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10366         assembler.
10367         * configure: Regenerate.
10368
10369 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10370
10371         PR rtl-optimization/46002
10372         * ira-color.c (update_copy_costs): Change class intersection
10373         test to reg_class_contents[] test of 'hard_regno'.
10374
10375 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10376
10377         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10378         than Driver option.
10379         * config/hpux11.opt (mt): Likewise.
10380         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10381         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10382         * config/vax/elf.opt (mno-asm-pic): Likewise.
10383         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10384
10385 2011-02-21  Mike Stump  <mikestump@comcast.net>
10386
10387         PR target/47822
10388         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10389         tree so we can get save the type.
10390         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10391         for CFString instead of trying to use past the end of the builtins.
10392         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10393         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10394         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10395         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10396         Rename to darwin_builtin_cfstring.
10397         (darwin_init_cfstring_builtins): Return the built type.
10398
10399 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10400
10401         PR target/47840
10402         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10403         (_mm256_insert_epi64): Use _mm_insert_epi64.
10404
10405 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10406
10407         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10408         * config/stormy16/stormy16-protos.h
10409         (xstormy16_mode_dependent_address_p): Remove.
10410         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10411         Make static. Change return type to bool. Change argument type to
10412         const_rtx. Remove dead code.
10413         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10414
10415 2011-02-21  Richard Guenther  <rguenther@suse.de>
10416
10417         PR lto/47820
10418         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10419         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10420         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10421         TUs context.
10422         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10423         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10424
10425 2011-02-20  Richard Guenther  <rguenther@suse.de>
10426
10427         PR lto/47822
10428         * tree.c (free_lang_data_in_decl): Clean builtins from
10429         the TU decl BLOCK_VARS.
10430
10431 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10432
10433         PR debug/47620
10434         PR debug/47630
10435         * haifa-sched.c (fix_tick_ready): Skip tick computation
10436         for debug insns.
10437
10438 2011-02-19  Richard Guenther  <rguenther@suse.de>
10439
10440         PR lto/47647
10441         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10442         Remove lazy BLOCK_VARS streaming.
10443         (lto_input_ts_block_tree_pointers): Likewise.
10444         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10445
10446 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10447
10448         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10449
10450 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10451
10452         * config/i386/biarch32.h, config/i386/mach.h,
10453         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10454
10455 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10456
10457         PR target/47800
10458         * config/i386/i386.md (peephole2 for shift and plus): Use
10459         operands[1] original mode in the first insn.
10460
10461 2011-02-18  Mike Stump  <mikestump@comcast.net>
10462
10463         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10464
10465 2011-02-18  Jan Hubicka  <jh@suse.cz>
10466
10467         PR middle-end/47788
10468         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10469         to zero when the function is not inlinable at all.
10470
10471 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10472
10473         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10474         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10475         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10476         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10477         * config/pa/t-pa64: Likewise.
10478         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10479
10480 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10481
10482         PR driver/47787
10483         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10484
10485 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10486
10487         PR target/47792
10488         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10489
10490 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10491
10492         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10493         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10494         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10495         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10496         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10497         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10498         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10499         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10500         m32r_legitimate_address_p): New functions.
10501         * config/m32r/constraints.md (constraint "S"): Don't use
10502         STORE_PREINC_PREDEC_P.
10503         (constraint "U"): Don't use LOAD_POSTINC_P.
10504
10505 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10506
10507         PR rtl-optimization/46178
10508         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10509         compute ira_hard_regno_cover_class[].
10510
10511 2011-02-18  Richard Guenther  <rguenther@suse.de>
10512
10513         PR lto/47798
10514         * lto-streamer.h (lto_global_var_decls): Declare.
10515         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10516         statics for global var processing.
10517
10518 2011-02-18  Richard Guenther  <rguenther@suse.de>
10519
10520         PR tree-optimization/47737
10521         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10522         edge dominance check.
10523
10524 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10525
10526         PR debug/47780
10527         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10528         avoid invalid rtx sharing.
10529
10530 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10531
10532         * doc/cpp.texi (Obsolete Features): Add background on the
10533         origin of assertions.
10534
10535 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10536
10537         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10538         objc_abi == 2.
10539         * config/darwin.c (output_objc_section_asm_op): Added support for
10540         ABI v1 and v2.
10541         (is_objc_metadata): New.
10542         (darwin_objc2_section): New.
10543         (darwin_objc1_section): New.
10544         (machopic_select_section): Added support for ABI v1 and v2.
10545         (darwin_emit_objc_zeroed): New.
10546         (darwin_output_aligned_bss): Detect objc metadata and treat it
10547         appropriately.
10548         (darwin_asm_output_aligned_decl_common): Same.
10549         (darwin_asm_output_aligned_decl_local): Same.
10550         * config/darwin-sections.def: Updated for ABI v1 and v2.
10551         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10552         compiling Objective-C code for the NeXT runtime, default to using
10553         ABI version 0 for 32-bit, and version 2 for 64-bit.
10554
10555 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10556
10557         * common.opt (optimize_fast): New Variable.
10558         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10559         instead of local variable ofast.
10560
10561 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10562
10563         * doc/invoke.texi (fobjc-abi-version): Documented.
10564         (fobjc-nilcheck): Documented.
10565         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10566         version.
10567
10568 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10569
10570         PR driver/47390
10571         * common.opt (export-dynamic): New Driver option.
10572         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10573
10574 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10575
10576         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10577
10578 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10579             Jan Hubicka  <jh@suse.cz>
10580
10581         PR debug/47106
10582         PR debug/47402
10583         * cfgexpand.c (account_used_vars_for_block): Remove.
10584         (estimated_stack_frame_size): Use referenced vars.
10585         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10586         that were referenced in the original function.  Test src_fn
10587         rather than cfun.  Drop redundant get_var_ann.
10588         (setup_one_parameter): Drop redundant get_var_ann.
10589         (declare_return_variable): Likewise.
10590         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10591         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10592         * ipa-inline.c (compute_inline_parameters): Do not compute
10593         disregard_inline_limits here.
10594         (compute_inlinable_for_current, pass_inlinable): New.
10595         (pass_inline_parameters): Require PROP_referenced_vars.
10596         * cgraphunit.c (cgraph_process_new_functions): Don't run
10597         compute_inline_parameters explicitly unless function is in SSA form.
10598         (cgraph_analyze_function): Set .disregard_inline_limits.
10599         * tree-sra.c (convert_callers): Compute inliner parameters
10600         only for functions already in SSA form.
10601
10602 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10603
10604         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10605         -mlittle-endian-data.
10606
10607 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10608
10609         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10610         -mno-fpu, not -fpu and -no-fpu.
10611         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10612         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10613
10614 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10615
10616         PR target/43653
10617         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10618         input reload with PLUS RTX.
10619
10620 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10621
10622         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10623         of InverseVar(MDMX).
10624
10625 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10626
10627         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10628         --m4-340.
10629
10630 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10631
10632         * config/mn10300/mn10300.opt (mno-crt0): New.
10633
10634 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10635
10636         * config/m68k/uclinux.opt (static-libc): New Driver option.
10637
10638 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10639
10640         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10641
10642 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10645         %{muser-extend-enabled}.
10646
10647 2011-02-16  Richard Guenther  <rguenther@suse.de>
10648
10649         PR tree-optimization/47738
10650         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10651         the TODO from tree_predictive_commoning.
10652
10653 2011-02-15  Jeff Law  <law@redhat.com>
10654
10655         Revert
10656         2011-01-25  Jeff Law  <law@redhat.com>
10657
10658         PR rtl-optimization/37273
10659         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10660         handle them like argument loads from stack slots.  Do not double
10661         count memory for memory constants and argument loads from stack slots.
10662
10663 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10664
10665         PR middle-end/47725
10666         * combine.c (cant_combine_insn_p): Revert the last change.
10667
10668 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10669
10670         PR target/47755
10671         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10672         mode for vector constants.  Remove code that checks for TImode.
10673
10674 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10675
10676         PR debug/47106
10677         PR debug/47402
10678         * cgraph.h (compute_inline_parameters): Return void.
10679         * ipa-inline.c (compute_inline_parameters): Adjust.
10680
10681 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10682
10683         PR debug/47106
10684         PR debug/47402
10685         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10686         rather than decl.
10687         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10688         * ipa-inline.c (compute_inline_parameters): Adjust.
10689
10690 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10691
10692         PR debug/47106
10693         PR debug/47402
10694         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10695         Adjust all users.  Pass FN to...
10696         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10697         fn argument.
10698         * ipa-struct-reorg.c: Adjust.
10699         * tree-dfa.c: Adjust.
10700         * tree-into-ssa.c: Adjust.
10701         * tree-sra.c: Adjust.
10702         * tree-ssa-alias.c: Adjust.
10703         * tree-ssa-live.c: Adjust.
10704         * tree-ssa.c: Adjust.
10705         * tree-ssanames.c: Adjust.
10706         * tree-tailcall.c: Adjust.
10707
10708 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10709
10710         PR debug/47106
10711         PR debug/47402
10712         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10713         Adjust all callers.
10714         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10715         * tree-flow-inline.h: Adjust.
10716         * gimple-pretty-print.c: Adjust.
10717         * tree-into-ssa.c: Adjust.
10718         * tree-ssa.c: Adjust.
10719         * cfgexpand.c: Adjust.
10720
10721 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10722
10723         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10724         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10725         (EXTRA_CONSTRAINT): Delete.
10726         * config/iq2000/constraints.md: New file.
10727         * config/iq2000/iq2000.md: Include it.
10728         (define_insn ""): Delete.
10729         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10730         unsupported constraint letters from patterns.
10731         (call_value, call_value_internal1): Likewise.
10732         (call_value_multiple_internal1): Likewise.
10733
10734 2011-02-15  Nick Clifton  <nickc@redhat.com>
10735
10736         * config/mn10300/mn10300.c: Include tm-constrs.h.
10737         (struct liw_data): New data structure describing an LIW candidate
10738         instruction.
10739         (extract_bundle): Use struct liw_data.  Allow small integer
10740         operands for some instructions.
10741         (check_liw_constraints): Use struct liw_data.  Remove swapped
10742         parameter.  Add comments describing the checks.  Fix bug when
10743         assigning the source of liw1 to the source of liw2.
10744         (liw_candidate): Delete.  Code moved into extract_bundle.
10745         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10746         before swapping.
10747         * config/mn10300/predicates.md (liw_operand): New predicate.
10748         Allows registers and small integer constants.
10749         * config/mn10300/constraints.md (O): New constraint.  Accetps
10750         integers in the range -8 to +7 inclusive.
10751         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10752         for moving a small integer into a register.  Give this alternative
10753         LIW attributes.
10754         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10755         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10756         using the J,K,L and M constraints,
10757         (liw): Remove SI mode on second operands to allow for HI and QI
10758         mode values.
10759         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10760         instruction.
10761
10762 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10763
10764         PR middle-end/47725
10765         * combine.c (cant_combine_insn_p): Check zero/sign extended
10766         hard registers.
10767
10768 2011-02-15  Richard Guenther  <rguenther@suse.de>
10769
10770         PR tree-optimization/47743
10771         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10772         for a non-type-compatible VN lookup bail out.
10773
10774 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10775
10776         * config/fr30/constraints.md: New file.
10777         * config/fr30/fr30.md: Include it.
10778         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10779         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10780         (EXTRA_CONSTRAINT): Delete.
10781
10782 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10783
10784         * config/frv/constraints.md: New file.
10785         * config/frv/predicates.md: Include it.
10786         * config/frv/frv.c (reg_class_from_letter): Delete.
10787         (frv_option_override): Don't initialize it.
10788         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10789         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10790         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10791         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10792         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10793         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10794         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10795         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10796         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10797         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10798         (REG_CLASS_FROM_CONSTRAINT): Delete.
10799
10800 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10801
10802         PR middle-end/47581
10803         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10804         if frame size is 0 in a leaf function.
10805
10806 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10807
10808         PR pch/14940
10809         * config/alpha/host-osf.c: New file.
10810         * config/alpha/x-osf: New file.
10811         * config.host (alpha*-dec-osf*): Use it.
10812
10813 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10814
10815         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10816         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10817         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10818         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10819         type to const_rtx.
10820         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10821
10822 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10823
10824         * config/stormy16/constraints.md: New file.
10825         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10826         Use satisfies_constraint_Q and satisfies_constraint_R.
10827         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10828         Delete.
10829         (xstormy16_legitiamte_address_p): Declare.
10830         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10831         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10832         (EXTRA_CONSTRAINT): Delete.
10833         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10834         Un-staticize.
10835         (xstormy16_extra_constraint_p): Delete.
10836
10837 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10838
10839         PR tree-optimization/46494
10840         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10841         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10842         (pass_rtl_loop_done): Add TODO_verify_flow.
10843         * fwprop.c (pass_rtl_fwprop): Likewise.
10844         * modulo-sched.c (pass_sms): Likewise.
10845         * tree-ssa-dom.c (pass_dominator): Likewise.
10846         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10847         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10848         (pass_tree_loop_done): Likewise.
10849         * tree-ssa-pre.c (execute_pre): Likewise.
10850         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10851         * tree-ssa-sink.c (pass_sink_code): Likewise.
10852         * tree-vrp.c (pass_vrp): Likewise.
10853
10854 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10855
10856         * config/v850/constraints.md: New file.
10857         * config/v850/v850.md: Include it.
10858         * config/v850/predicates.md (reg_or_0_operand): Use
10859         satisfies_constraint_G.
10860         (special_symbolref_operand): Use satisfies_constraint_K.
10861         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10862         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10863         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10864         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10865         (EXTRA_CONSTRAINT): Delete.
10866         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10867         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10868         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10869
10870 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10871
10872         PR target/47696
10873         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10874         description.
10875
10876 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10877
10878         * config/mcore/constraints.md: New file.
10879         * config/mcore/mcore.md: Include it.
10880         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10881         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10882         (REG_CLASS_FROM_LETTER): Delete.
10883         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10884         insn_const_int_ok_for_constraint.
10885         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10886         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10887         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10888         (EXTRA_CONSTRAINT): Delete.
10889
10890 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10891
10892         PR ada/41929
10893         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10894         (IS_SIGHANDLER): Define.
10895         (sparc64_is_sighandler): New function, split off from
10896         sparc64_fallback_frame_state.
10897         (sparc_is_sighandler): New function, split off from
10898         sparc_fallback_frame_state.
10899         (sparc64_fallback_frame_state): Merge with ...
10900         (sparc_fallback_frame_state): ... this into ...
10901         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10902         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10903         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10904         stack instead of hardcoded offsets.
10905
10906 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10907
10908         PR target/45808
10909         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10910
10911 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10912
10913         * configure: Regenerate.
10914
10915 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10916
10917         PR driver/45731
10918         * gcc.c (asm_options): Correct spec matching --target-help.
10919
10920 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10921
10922         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10923         to gimple call error.
10924
10925 2011-02-12  Mike Stump  <mikestump@comcast.net>
10926
10927         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10928         comments in backslash regions.
10929
10930 2011-02-12  Mike Stump  <mikestump@comcast.net>
10931             Jakub Jelinek  <jakub@redhat.com>
10932             Iain Sandoe  <iains@gcc.gnu.org>
10933
10934         PR target/47324
10935         * dwarf2out.c (output_cfa_loc): When required, apply the
10936         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10937         (output_loc_sequence): Likewise.
10938         (output_loc_operands_raw): Likewise.
10939         (output_loc_sequence_raw): Likewise.
10940         (output_cfa_loc): Likewise.
10941         (output_loc_list): Suppress register number adjustment when
10942         calling output_loc_sequence()
10943         (output_die): Likewise.
10944
10945 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10946
10947         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10948         Remove macros.
10949         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10950         xtensa_memory_move_cost): New functions.
10951         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10952
10953 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10954
10955         PR lto/47225
10956         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10957         in the current directory.
10958         * configure: Rebuilt.
10959
10960 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10961
10962         * config/darwin.c (darwin_override_options): Add a hunk missed
10963         from the commit of r168571.  Trim comment line lengths and
10964         correct indents of the preceding block.
10965
10966 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10967
10968         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10969         the switch.
10970
10971 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10972
10973         * common.opt (nostartfiles): New Driver option.
10974
10975 2011-02-11  Xinliang David Li  <davidxl@google.com>
10976
10977         PR tree-optimization/47707
10978         * tree-chrec.c (convert_affine_scev): Keep type precision.
10979
10980 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10981
10982         PR tree-optimization/47420
10983         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10984
10985 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10986
10987         PR rtl-optimization/47614
10988         * rtl.h (check_for_inc_dec): Declare.
10989         * dse.c (check_for_inc_dec): Externalize...
10990         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10991         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10992
10993 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10994
10995         PR driver/47678
10996         * gcc.c (main): Do not compile inputs if there were errors in
10997         option handling.
10998         * opts-common.c (read_cmdline_option): Check for wrong language
10999         after other error checks.
11000
11001 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11002
11003         * cgraph.c: Fix comment typos.
11004         * cgraph.h: Likewise.
11005         * cgraphunit.c: Likewise.
11006         * ipa-cp.c: Likewise.
11007         * ipa-inline.c: Likewise.
11008         * ipa-prop.c: Likewise.
11009         * ipa-pure-const.c: Likewise.
11010         * ipa-ref.c: Likewise.
11011         * ipa-reference.c: Likewise.
11012
11013 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11014
11015         PR debug/47684
11016         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11017
11018 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11019
11020         PR testsuite/47400
11021         * doc/sourcebuild.texi (Require Support): Document
11022         dg-require-ascii-locale.
11023
11024 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11025
11026         * doc/lto.texi (Write summary): Fix missing parentheses.
11027
11028 2011-02-10  DJ Delorie  <dj@redhat.com>
11029
11030         * config/m32c/m32c.c (m32c_option_override): Disable
11031         -fcombine-stack-adjustments until flag value tracking and compare
11032         optimization can be rewritten.
11033
11034 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11035
11036         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11037         PROCESSOR_POWER7.
11038         (PROCESSOR_DEFAULT64): Likewise.
11039
11040 2011-02-10  Richard Henderson  <rth@redhat.com>
11041
11042         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11043         change from 2011-02-03.
11044         * config/rx/rx.c (flags_from_code): Likewise.
11045         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11046         is valid, n/pz otherwise.
11047         (rx_select_cc_mode): Return CCmode if Y is not zero.
11048
11049 2011-02-10  Richard Guenther  <rguenther@suse.de>
11050
11051         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11052
11053 2011-02-10  Richard Guenther  <rguenther@suse.de>
11054
11055         PR tree-optimization/47677
11056         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11057
11058 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11059
11060         PR target/47665
11061         * combine.c (make_compound_operation): Only change shifts into
11062         multiplication for SCALAR_INT_MODE_P.
11063
11064 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11065
11066         PR testsuite/47622
11067         Revert
11068         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11069         PR debug/42631
11070         * web.c (entry_register): Don't clobber the number of the
11071         first uninitialized reference in used[].
11072
11073 2011-02-09  Richard Guenther  <rguenther@suse.de>
11074
11075         PR tree-optimization/47664
11076         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11077         all edges again.
11078
11079 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11080
11081         PR target/46481
11082         PR target/47032
11083         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11084         PROCESSOR_POWER7.
11085         (PROCESSOR_DEFAULT64): Same.
11086         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11087
11088 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11089
11090         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11091
11092 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11093
11094         PR middle-end/45505
11095         * tree-sra.c (struct access): New flags grp_scalar_read and
11096         grp_scalar_write.  Changed description of assignment read and write
11097         flags.
11098         (dump_access): Dump new flags, reorder all of them.
11099         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11100         to detect multiple scalar reads.
11101         (analyze_access_subtree): Use the new scalar read write flags instead
11102         of the old flags.  Adjusted comments.
11103
11104 2011-02-08  DJ Delorie  <dj@redhat.com>
11105
11106         PR target/47548
11107         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11108         patterns.
11109
11110 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11111
11112         * config/m68k/uclinux.opt: New.
11113         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11114
11115 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11116
11117         * config/cris/elf.opt (sim): New Driver option.
11118
11119 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11120
11121         * config/xtensa/elf.opt: New.
11122         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11123
11124 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11125
11126         * config/vax/elf.opt: New.
11127         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11128
11129 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11130
11131         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11132
11133 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * config/gnu-user.opt: New.
11136         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11137         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11138         *-*-uclinux*): Use gnu-user.opt.
11139
11140 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11141
11142         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11143         * config/i386/gnu.h (CPP_SPEC): Likewise.
11144
11145 2011-02-08  Ian Lance Taylor  <iant@google.com>
11146
11147         * common.opt (fcx-limited-range): Add SetByCombined flag.
11148         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11149         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11150         (fassociative-math, freciprocal-math): Likewise.
11151         (funsafe-math-optimizations): Likewise.
11152         * opth-gen.awk: Handle SetByCombined.
11153         * optc-gen.awk: Likewise.
11154         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11155         (set_unsafe_math_optimizations_flags): Likewise.
11156         * doc/options.texi (Option properties): Document SetByCombined.
11157
11158 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11159
11160         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11161         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11162         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11163         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11164         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11165
11166 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11167
11168         PR tree-optimization/46834
11169         PR tree-optimization/46994
11170         PR tree-optimization/46995
11171         * graphite-sese-to-poly.c (used_outside_reduction): New.
11172         (detect_commutative_reduction): Call used_outside_reduction.
11173         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11174         translate_scalar_reduction_to_array only when at least one
11175         loop-phi/close-phi tuple has been detected.
11176
11177 2011-02-08  Richard Guenther  <rguenther@suse.de>
11178
11179         PR middle-end/47639
11180         * tree-vect-generic.c (expand_vector_operations_1): Update
11181         stmts here ...
11182         (expand_vector_operations): ... not here.  Cleanup EH info
11183         and the CFG if required.
11184
11185 2011-02-08  Richard Guenther  <rguenther@suse.de>
11186
11187         PR tree-optimization/47641
11188         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11189         require type compatibility.
11190
11191 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11192
11193         * gimple-low.c (lower_function_body): Don't remove the location of
11194         the return statement here.
11195         (lower_gimple_return): Do it here instead but only if the return
11196         statement is actually used twice.
11197
11198 2011-02-08  Richard Guenther  <rguenther@suse.de>
11199
11200         PR tree-optimization/47632
11201         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11202         unused up_to_stmt parameter, return whether cfg-cleanup is
11203         necessary, remove EH info properly.
11204         (forward_propagate_into_gimple_cond): Adjust caller.
11205         (forward_propagate_into_cond): Likewise.
11206         (forward_propagate_comparison): Likewise.
11207         (tree_ssa_forward_propagate_single_use_vars): Make
11208         forward_propagate_comparison case similar to the two others.
11209
11210 2011-02-08  Nick Clifton  <nickc@redhat.com>
11211
11212         * config/mn10300/mn10300.opt (mliw): New command line option.
11213         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11214         (liw_bundling): New automaton.
11215         (liw): New attribute.
11216         (liw_op): New attribute.
11217         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11218         (movsi_internal): Add LIW attributes.
11219         (andsi3): Likewise.
11220         (iorsi3): Likewise.
11221         (xorsi3): Likewise.
11222         (addsi3): Separate register and immediate alternatives.
11223         Add LIW attributes.
11224         (subsi3): Likewise.
11225         (cmpsi): Likewise.
11226         (aslsi3): Likewise.
11227         (lshrsi3): Likewise.
11228         (ashrsi3): Likewise.
11229         (liw): New pattern.
11230         * config/mn10300/mn10300.c (liw_op_names): New
11231         (mn10300_print_operand): Handle 'W' operand descriptor.
11232         (extract_bundle): New function.
11233         (check_liw_constraints): New function.
11234         (liw_candidate): New function.
11235         (mn10300_bundle_liw): New function.
11236         (mn10300_reorg): New function.
11237         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11238         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11239         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11240         __LIW__ or __NO_LIW__.
11241         * doc/invoke.texi: Describe the -mliw command line option.
11242
11243 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11244
11245         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11246         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11247         pthread_mutex_unlock): Remove.
11248         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11249         * config/pa/t-pa64: Likewise.
11250         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11251         shared libc if not linking against libpthread.
11252         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11253
11254 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11255
11256         PR target/47558
11257         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11258         on 10.6 and later to ensure that we always use the unwinder from
11259         the system.  Only add -no_compact_unwind when tarteting darwin
11260         10.6 or later.
11261
11262 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11263
11264         PR target/46997
11265         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11266         (vec_interleave_lowv2sf): Ditto.
11267         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11268         (vec_extract_oddv2sf): Ditto.
11269
11270 2011-02-07  Mike Stump  <mikestump@comcast.net>
11271
11272         PR target/42333
11273         Add __ieee_divdc3 entry point.
11274         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11275         entry point.
11276         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11277         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11278         * config/darwin.c (darwin_rename_builtins): Add.
11279         * config/darwin-protos.h (darwin_rename_builtins): Add.
11280
11281 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11282
11283         PR target/47636
11284         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11285         for the condition.
11286
11287 2011-02-07  Mike Stump  <mikestump@comcast.net>
11288
11289         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11290
11291 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11292
11293         PR target/47534
11294         * config/avr/libgcc.S (exit): Move .endfunc
11295
11296 2011-02-07  Richard Guenther  <rguenther@suse.de>
11297
11298         PR tree-optimization/47615
11299         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11300         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11301         (run_scc_vn): Initialize it.
11302         (visit_reference_op_load): Use it.
11303         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11304
11305 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11306
11307         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11308         DImode trapping arithmetic libfuncs.
11309
11310 2011-02-07  Richard Guenther  <rguenther@suse.de>
11311
11312         PR tree-optimization/47621
11313         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11314         two duplicates ...
11315         (execute_update_addresses_taken): ... here.  Make it more
11316         conservative in what we accept.
11317
11318 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11319
11320         * config/sparc/freebsd.h (ASM_SPEC): Define.
11321         * config/sparc/vxworks.h (ASM_SPEC): Define.
11322
11323 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11324
11325         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11326
11327 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11328
11329         * doc/invoke.texi: Remove reference to compiler internals from
11330         user documentation.
11331
11332         * reg-notes.def: Remove REG_VALUE_PROFILE.
11333         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11334
11335 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11336
11337         PR middle-end/47610
11338         * varasm.c (default_section_type_flags): If decl is NULL,
11339         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11340
11341 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11342
11343         PR debug/42631
11344         * web.c (entry_register): Don't clobber the number of the
11345         first uninitialized reference in used[].
11346
11347 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11348
11349         PR tree-optimization/46194
11350         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11351         (build_classic_dist_vector_1): Do not represent classic distance
11352         vectors when the access functions are variating in different loops.
11353
11354 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11355
11356         * config/mips/iris6.opt: New.
11357         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11358
11359 2011-02-04  Richard Henderson  <rth@redhat.com>
11360             Steve Ellcey  <sje@cup.hp.com>
11361
11362         PR target/46997
11363         * config/ia64/predicates.md (mux1_brcst_element): New.
11364         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11365         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11366         (ia64_unpack_sign): New.
11367         (ia64_expand_unpack): Rewrite using new routines.
11368         (ia64_expand_widen_sum): Ditto.
11369         (ia64_expand_dot_prod_v8qi): Ditto.
11370         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11371         routines, add endian check.
11372         (pmpy2_even): Rename from pmpy2_r, add endian check.
11373         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11374         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11375         (vec_widen_smult_hi_v4hi): Ditto.
11376         (vec_widen_umult_lo_v4hi): Ditto.
11377         (vec_widen_umult_hi_v4hi): Ditto.
11378         (mulv2si3): Change endian checks.
11379         (sdot_prodv4hi): Rewrite with new calls.
11380         (udot_prodv4hi): New.
11381         (vec_pack_ssat_v4hi): Add endian check.
11382         (vec_pack_usat_v4hi): Ditto.
11383         (vec_pack_ssat_v2si): Ditto.
11384         (max1_even): Rename from max1_r, add endian check.
11385         (max1_odd): Rename from max1_l, add endian check.
11386         (*mux1_rev): Format change.
11387         (*mux1_mix): Ditto.
11388         (*mux1_shuf): Ditto.
11389         (*mux1_alt): Ditto.
11390         (*mux1_brcst_v8qi): Use new predicate.
11391         (vec_extract_evenv8qi): Remove endian check.
11392         (vec_extract_oddv8qi): Ditto.
11393         (vec_interleave_lowv4hi): Format change.
11394         (vec_interleave_highv4hi): Ditto.
11395         (mix2_even): Rename from mix2_r, add endian check.
11396         (mix2_odd): Rename from mux2_l, add endian check.
11397         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11398         (vec_extract_evenodd_helper): Format change.
11399         (vec_extract_evenv4hi): Remove endian check.
11400         (vec_extract_oddv4hi): Remove endian check.
11401         (vec_interleave_lowv2si): Format change.
11402         (vec_interleave_highv2si): Format change.
11403         (vec_initv2si): Remove endian check.
11404         (vecinit_v2si): Add endian check.
11405         (reduc_splus_v2sf): Add endian check.
11406         (reduc_smax_v2sf): Ditto.
11407         (reduc_smin_v2sf): Ditto.
11408         (vec_initv2sf): Remove endian check.
11409         (fpack): Add endian check.
11410         (fswap): Add endian check.
11411         (vec_interleave_highv2sf): Add endian check.
11412         (vec_interleave_lowv2sf): Add endian check.
11413         (fmix_lr): Add endian check.
11414         (vec_setv2sf): Format change.
11415         (*vec_extractv2sf_0_be): Use shift to extract operand.
11416         (*vec_extractv2sf_1_be): New.
11417         (vec_pack_trunc_v4hi): Add endian check.
11418         (vec_pack_trunc_v2si): Format change.
11419
11420 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11421
11422         PR inline-asm/23200
11423         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11424         do bb, locus and block comparison and disallow loads if it is not set.
11425         (stmt_is_replaceable_p): New function.
11426         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11427         callers.
11428         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11429         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11430         SSA_NAME_DEF_STMT.
11431         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11432
11433 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11434
11435         * config/rs6000/xilinx.opt: New.
11436         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11437
11438 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11439
11440         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11441
11442 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11443
11444         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11445         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11446         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11447         secondary_reload_info, xtensa_secondary_reload): Remove.
11448         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11449         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11450         (xtensa_preferred_reload_class): Make static. Change return and
11451         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11452         Use CONST_DOUBLE_P predicate.
11453         (xtensa_preferred_output_reload_class): New function.
11454         (xtensa_secondary_reload): Make static.
11455
11456 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11457
11458         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11459         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11460         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11461
11462 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11463
11464         PR middle-end/31490
11465         * output.h (SECTION_RELRO): Define.
11466         (SECTION_MACH_DEP): Adjust.
11467         (get_variable_section): New prototype.
11468         * varpool.c (varpool_finalize_named_section_flags): New function.
11469         (varpool_assemble_pending_decls): Call it.
11470         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11471         * cgraphunit.c (cgraph_output_in_order): Call
11472         varpool_finalize_named_section_flags.
11473         * varasm.c (get_section): Allow section flags conflicts between
11474         relro and read-only sections if the section hasn't been declared yet.
11475         Set SECTION_OVERRIDE after diagnosing section type conflict.
11476         (get_variable_section): No longer static.
11477         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11478         readonly sections that need relocations.
11479         (decl_readonly_section_1): New function.
11480         (decl_readonly_section): Use it.
11481
11482         Revert:
11483         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11484                     Steve Ellcey  <sje@cup.hp.com>
11485
11486         PR middle-end/31490
11487         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11488         if section attribute used.
11489
11490 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11491
11492         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11493         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11494         (darwin_init_sections): Remove assertion.
11495
11496 2011-02-03  Nick Clifton  <nickc@redhat.com>
11497
11498         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11499         lt and ge.
11500         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11501         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11502         instead of "n" and "pz".
11503         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11504         CC_FLAG_S.
11505
11506 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR target/47312
11509         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11510         fma, expand FMA_EXPR as fma{,f,l} call.
11511
11512         PR lto/47274
11513         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11514         copy them into a unsigned char variable and pass address of it to
11515         lto_output_data_stream.
11516
11517         PR target/47564
11518         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11519         around backend_init_target and lang_dependent_init_target calls.
11520         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11521         (verify_cgraph_node): Don't call set_cfun here.  Use
11522         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11523         Set error_found for incorrectly represented calls to thunks.
11524
11525 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11526
11527         PR debug/43092
11528         PR rtl-optimization/43494
11529         * rtl.h (for_each_inc_dec_fn): New type.
11530         (for_each_inc_dec): Declare.
11531         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11532         (for_each_inc_dec_find_inc_dec): New fn.
11533         (for_each_inc_dec_find_mem): New fn.
11534         (for_each_inc_dec): New fn.
11535         * dse.c (struct insn_size): Remove.
11536         (replace_inc_dec, replace_inc_dec_mem): Remove.
11537         (emit_inc_dec_insn_before): New fn.
11538         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11539         (canon_address): Pass mem modes to cselib_lookup.
11540         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11541         (cselib_lookup_from_insn): Likewise.
11542         (cselib_subst_to_values): Likewise.
11543         * cselib.c (find_slot_memmode): New var.
11544         (cselib_find_slot): New fn.  Use it instead of
11545         htab_find_slot_with_hash everywhere.
11546         (entry_and_rtx_equal_p): Use find_slot_memmode.
11547         (autoinc_split): New fn.
11548         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11549         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11550         Deal with autoinc.  Special-case recursion into MEMs.
11551         (cselib_hash_rtx): Likewise.
11552         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11553         address and MEM modes.
11554         (cselib_subst_to_values): Add memmode, pass it on.
11555         Deal with autoinc.
11556         (cselib_lookup): Add memmode argument, pass it on.
11557         (cselib_lookup_from_insn): Add memmode.
11558         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11559         (struct cselib_record_autoinc_data): New.
11560         (cselib_record_autoinc_cb): New fn.
11561         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11562         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11563         (cselib_process_insn): ... here.
11564         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11565         to cselib_lookup.
11566         (add_uses): Likewise, also to cselib_subst_to_values.
11567         (add_stores): Likewise.
11568         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11569         cselib_subst_to_values.
11570         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11571         * gcse.c (do_local_cprop): Adjusted.
11572         * postreload.c (reload_cse_simplify_set): Adjusted.
11573         (reload_cse_simplify_operands): Adjusted.
11574         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11575
11576 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11577
11578         PR tree-optimization/45122
11579         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11580         unsafe assumptions when there's more than one loop exit.
11581
11582 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11583
11584         PR target/47272
11585         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11586         Document using vector double with the load/store builtins, and
11587         that the load/store builtins always use Altivec instructions.
11588
11589         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11590         to use altivec memory instructions, even on VSX.
11591         (vector_altivec_store_<mode>): Ditto.
11592
11593         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11594         function.
11595
11596         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11597         V2DF, V2DI support to load/store overloaded builtins.
11598
11599         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11600         altivec load/store builtins for V2DF/V2DI types.
11601
11602         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11603         set avoid indexed addresses on power6 if -maltivec.
11604         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11605         vector_altivec_load/vector_altivec_store builtins.
11606         (altivec_expand_st_builtin): Ditto.
11607         (altivec_expand_builtin): Add VSX memory builtins.
11608         (rs6000_init_builtins): Add V2DI types to internal types.
11609         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11610         load/store builtins.
11611         (rs6000_address_for_altivec): Insure memory address is appropriate
11612         for Altivec.
11613
11614         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11615         vec_vsx_ld and vec_vsx_st.
11616         (vsx_store_<mode>): Ditto.
11617
11618         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11619         variables to hold long long types for VSX vector memory builtins.
11620         (RS6000_BTI_unsigned_long_long): Ditto.
11621         (long_long_integer_type_internal_node): Ditti.
11622         (long_long_unsigned_type_internal_node): Ditti.
11623
11624         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11625         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11626         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11627
11628         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11629         short cuts.
11630         (vec_vsx_st): Ditto.
11631
11632 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11633
11634         * config/pa/pa-hpux10.opt: New.
11635         * config/hpux11.opt (pthread): New Driver option.
11636         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11637         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11638
11639 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11640
11641         * config/ia64/vms.opt: New.
11642         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11643
11644 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11645
11646         PR target/47580
11647         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11648         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11649         generator functions.
11650         (vsx_floatuns<VSi><mode>2): Ditto.
11651         (vsx_fix_trunc<mode><VSi>2): Ditto.
11652         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11653
11654 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11655
11656         * config/i386/djgpp.opt (posix): New Driver option.
11657
11658 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11659
11660         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11661         Move to the unsupported targets list.
11662
11663 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11664
11665         PR rtl-optimization/47525
11666         * df-scan.c: Update copyright years.
11667         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11668         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11669
11670 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11671
11672         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11673         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11674         (ASM_OUTPUT_ASCII): Remove.
11675         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11676
11677 2011-02-02  Jeff Law  <law@redhat.com>
11678
11679         PR middle-end/47543
11680         * reload.c (find_reloads_address): Handle reg+d address where both
11681         components are invalid by reloading the entire address.
11682
11683 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11684             Richard Guenther  <rguenther@suse.de>
11685
11686         PR tree-optimization/40979
11687         PR bootstrap/47044
11688         * passes.c (init_optimization_passes): After LIM call copy_prop
11689         and DCE to clean up.
11690         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11691
11692 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11693
11694         PR tree-optimization/47576
11695         PR tree-optimization/47555
11696         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11697         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11698         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11699         * tree-scalar-evolution.c (follow_ssa_edge): Use
11700         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11701
11702 2011-02-02  Richard Guenther  <rguenther@suse.de>
11703
11704         PR tree-optimization/47566
11705         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11706
11707 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11708
11709         PR debug/47106
11710         PR debug/47402
11711         * tree-inline.c (declare_return_variable): Remove unused caller
11712         variable.
11713
11714         PR debug/47106
11715         PR debug/47402
11716         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11717         * cfgexpand.c (account_used_vars_for_block): Use them.
11718         * tree-nrv.c (tree_nrv): Likewise.
11719         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11720         (dump_scope_block): Likewise.
11721         (remove_unused_locals): Likewise.
11722
11723         PR debug/47106
11724         PR debug/47402
11725         * tree-inline.c (declare_return_variable): Add result decl to
11726         local decls only once.
11727         * gimple-low.c (record_vars_into): Mark newly-created variables
11728         as referenced.
11729
11730 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11731
11732         PR debug/47498
11733         PR debug/47501
11734         PR debug/45136
11735         PR debug/45130
11736         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11737         debug insns.
11738         (no_real_insns_p, schedule_block, set_priorities): Drop special
11739         treatment of boundary debug insns.
11740         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11741         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11742         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11743         (BOUNDARY_DEBUG_INSN_P): Likewise.
11744         (SCHEDULE_DEBUG_INSN_P): Likewise.
11745         * sched-rgn.c (init_ready_list): Drop special treatment of
11746         boundary debug insns.
11747         * final.c (rest_of_clean_state): Clear notes' BB.
11748
11749 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11750
11751         * config/openbsd.opt (assert=): New Driver option.
11752
11753 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11754
11755         * config/i386/nto.opt: New.
11756         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11757
11758 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11759
11760         * config/i386/netware.opt: New.
11761         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11762
11763 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11764
11765         * config/interix.opt (posix): New Driver option.
11766
11767 2011-02-01  DJ Delorie  <dj@redhat.com>
11768
11769         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11770
11771         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11772         class for A0/A1.
11773
11774 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11775
11776         PR tree-optimization/47561
11777         * toplev.c (process_options): Print the Graphite flags.  Add
11778         flag_loop_flatten to the list of options requiring Graphite.
11779
11780 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11781
11782         * config/i386/cygming.opt (posix): New Driver option.
11783
11784 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * config/arm/vxworks.opt: New.
11787         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11788
11789 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11790
11791         * config/alpha/elf.opt: New.
11792         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11793         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11794
11795 2011-02-01  Richard Guenther  <rguenther@suse.de>
11796
11797         PR tree-optimization/47559
11798         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11799         store-motion on references that can throw.
11800
11801 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11802
11803         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11804         * tree-pass.h (TDF_CSELIB): New macro.
11805         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11806         cselib_lookup): Check for it rather than for TDF_DETAILS.
11807
11808 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11809
11810         PR driver/47547
11811         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11812         is HOST_BIT_BUCKET.
11813
11814         * opts.c (finish_options): Don't add x_aux_base_name if it is
11815         HOST_BIT_BUCKET.
11816
11817 2011-02-01  Richard Guenther  <rguenther@suse.de>
11818
11819         PR tree-optimization/47555
11820         Revert
11821         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11822
11823         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11824
11825 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11826
11827         PR gcc/46692
11828         * config/lm32/t-lm32: Add multilib for all CPU options.
11829
11830 2011-02-01  Richard Guenther  <rguenther@suse.de>
11831
11832         PR tree-optimization/47541
11833         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11834         sure to have a field at offset zero.
11835
11836 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11837
11838         * config/arc/arc.opt (EB, EL): New Driver options.
11839
11840 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11841
11842         * config/alpha/osf5.opt: New.
11843         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11844
11845 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11846
11847         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11848
11849 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11850
11851         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11852         -floop-interchange.
11853         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11854         is an alias of -floop-interchange and that it requires the
11855         Graphite infrastructure.
11856         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11857         flag_loop_interchange based on the value of flag_tree_loop_linear.
11858
11859 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11860             Richard Guenther  <rguenther@suse.de>
11861
11862         PR tree-optimization/47538
11863         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11864         type instead of r1type, except for comparisons.  For right
11865         shifts and comparisons punt if there are mismatches in
11866         sizetype vs. non-sizetype types.
11867
11868 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11869
11870         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11871         avx_runtime.
11872
11873 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11874
11875         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11876         version number.
11877         * configure: Regenerate.
11878
11879 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11880
11881         * configure.ac (gcc_cv_ld_static_option): Define.
11882         (gcc_cv_ld_dynamic_option): Define.
11883         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11884         instead.
11885         (HAVE_LD_STATIC_DYNAMIC): Update message.
11886         (LD_STATIC_OPTION): Define.
11887         (LD_DYNAMIC_OPTION): Define.
11888         * configure: Regenerate.
11889         * config.in: Regenerate.
11890         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11891         HAVE_LD_STATIC_DYNAMIC]: Use them.
11892
11893 2011-01-31  Nick Clifton  <nickc@redhat.com>
11894
11895         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11896         registers inside interrupt handlers if the handler is not a leaf
11897         function.
11898
11899 2011-01-31  Nick Clifton  <nickc@redhat.com>
11900
11901         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11902         reg_renumber returning an INVALID_REGNUM.
11903
11904 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11905
11906         PR libgcj/44341
11907         * doc/install.texi: Document host options discarded when cross
11908         configuring target libraries.
11909
11910 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11911
11912         Reverted:
11913         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11914         PR debug/45136
11915         PR debug/45130
11916         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11917         debug insns.
11918         (no_real_insns_p, schedule_block, set_priorities): Drop special
11919         treatment of boundary debug insns.
11920         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11921         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11922         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11923         (BOUNDARY_DEBUG_INSN_P): Likewise.
11924         (SCHEDULE_DEBUG_INSN_P): Likewise.
11925         * sched-rgn.c (init_ready_list): Drop special treatment of
11926         boundary debug insns.
11927         * final.c (rest_of_clean-state): Clear notes' BB.
11928
11929 2011-01-31  Alan Modra  <amodra@gmail.com>
11930
11931         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11932         toc relative expressions as we do in print_operand_address.
11933
11934 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11935
11936         * doc/extend.texi: Follow spelling conventions.
11937         * doc/invoke.texi: Fix a typo.
11938
11939 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11940
11941         * config/hpux11.opt: New.
11942         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11943         ia64*-*-hpux*): Use hpux11.opt.
11944
11945 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11946
11947         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11948         to tmake_file.
11949
11950 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11951
11952         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11953         support sites.
11954
11955 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11956
11957         * doc/install.texi (Binaries): Remove outdated reference for
11958         Motorola 68HC11/68HC12 downloads.
11959
11960 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11961
11962         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11963         Drepper's paper.
11964
11965 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11966
11967         PR bootstrap/47147
11968         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11969         used by NetBSD.
11970
11971 2011-01-28  Ahmad Sharif  <asharif@google.com>
11972
11973         * value-prof.c (check_counter): Corrected error message.
11974
11975 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11976
11977         * config/arm/arm.c (arm_legitimize_reload_address): New.
11978         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11979         arm_legitimize_reload_address.
11980         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11981
11982 2011-01-28  Ian Lance Taylor  <iant@google.com>
11983
11984         * godump.c (go_define): Ignore macros whose definitions include
11985         two adjacent operands.
11986
11987 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11988
11989         PR target/42894
11990         * varasm.c (force_const_mem): Store copy of x in desc->constant
11991         instead of x itself.
11992         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11993         itself into REG_EQUAL note.
11994
11995 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11996
11997         * config/freebsd.opt (posix, rdynamic): New Driver options.
11998
11999 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12000
12001         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12002         -Bstatic/-Bdynamic.
12003         * configure: Regenerate.
12004
12005 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12006
12007         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12008         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12009
12010 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12011
12012         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12013         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12014         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12015         (s390_preferred_reload_class): Make static. Change return and
12016         'rclass' argument type to reg_class_t.
12017
12018 2011-01-27  Jan Hubicka  <jh@suse.cz>
12019
12020         PR middle-end/46949
12021         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12022         (process_function_and_variable_attributes): Check defined weakrefs.
12023
12024 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12025
12026         PR tree-optimization/47228
12027         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12028         build_ref_for_offset.
12029
12030 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12031
12032         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12033
12034 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12035
12036         PR rtl-optimization/46856
12037         * postreload.c (reload_combine_recognize_const_pattern): Do not
12038         separate cc0 setter and user on cc0 targets.
12039
12040 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12041
12042         PR c/43082
12043         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12044         passed a VOID_TYPE expression, immediately emit an error and
12045         return error_mark_node.
12046
12047 2011-01-26  Jeff Law  <law@redhat.com>
12048
12049         PR rtl-optimization/47464
12050         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12051         rather than may_trap_p as needed.
12052
12053 2011-01-26  DJ Delorie  <dj@redhat.com>
12054
12055         PR rtl-optimization/46878
12056         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12057         setter/user dependency as well.
12058
12059 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12060
12061         PR rtl-optimization/44469
12062         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12063         after removing trivially dead basic blocks.
12064
12065 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12066
12067         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12068         * config/frv/frv.h (LINK_SPEC): Likewise.
12069         * config/i386/netware.h (LINK_SPEC): Likewise.
12070         * config/m68k/linux.h (ASM_SPEC): Likewise.
12071         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12072         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12073         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12074         * config/sparc/linux.h (ASM_SPEC): Likewise.
12075         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12076         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12077
12078 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12079
12080         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12081         * config/frv/frv.h (ASM_SPEC): Likewise.
12082         * config/m68k/linux.h (ASM_SPEC): Likewise.
12083         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12084         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12085         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12086         * config/sparc/linux.h (ASM_SPEC): Likewise.
12087         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12088         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12089
12090 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12093         * config/frv/frv.h (LINK_SPEC): Likewise.
12094         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12095
12096 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12097
12098         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12099         * config/frv/frv.h (ASM_SPEC): Likewise.
12100         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12101         * config/m68k/linux.h (ASM_SPEC): Likewise.
12102         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12103         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12104         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12105         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12106         * config/sparc/linux.h (ASM_SPEC): Likewise.
12107         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12108         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12109         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12110
12111 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12112
12113         PR target/46997
12114         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12115         (*mux2): Ditto.
12116         (vec_extract_evenodd_help): Ditto.
12117         (vec_extract_evenv4hi): Ditto.
12118         (vec_extract_oddv4hi): Ditto.
12119         (vec_interleave_lowv2si): Ditto.
12120         (vec_interleave_highv2si): Ditto.
12121         (vec_extract_evenv2si): Ditto.
12122         (vec_extract_oddv2si: Ditto.
12123         (vec_pack_trunc_v2si): Ditto.
12124
12125 2011-01-22  Jan Hubicka  <jh@suse.cz>
12126
12127         PR target/47237
12128         * cgraph.h (cgraph_local_info): New field can_change_signature.
12129         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12130         signature can change.
12131         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12132         can change.
12133         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12134         (cgraph_function_versioning): We can not change signature of functions
12135         that don't allow that.
12136         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12137         (lto_input_node): Likewise.
12138         * ipa-inline.c (compute_inline_parameters): Compute
12139         local.can_change_signature.
12140         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12141         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12142         functions that can not change signature.
12143         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12144         init_cumulative_args): Do not use local calling conventions
12145         for functions that can not change signature.
12146
12147 2011-01-22  Jan Hubicka  <jh@suse.cz>
12148
12149         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12150
12151 2011-01-26  Richard Guenther  <rguenther@suse.de>
12152
12153         PR tree-optimization/47190
12154         * cgraphunit.c (process_common_attributes): New function.
12155         (process_function_and_variable_attributes): Use it.
12156
12157 2011-01-26  Richard Guenther  <rguenther@suse.de>
12158
12159         PR lto/47423
12160         * cgraphbuild.c (record_eh_tables): Record reference to personality
12161         function.
12162
12163 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12164
12165         PR debug/45454
12166         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12167         non-debug insns from moving up.
12168
12169 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12170
12171         PR target/40125
12172         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12173         t-dlldir{,-x} fragment for build and add it to tmake_file.
12174         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12175         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12176         * config/i386/t-dlldir: New file.
12177         (SHLIB_DLLDIR): Define.
12178         * config/i386/t-dlldir-x: New file.
12179         (SHLIB_DLLDIR): Define.
12180         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12181         (SHLIB_INSTALL): Use it.
12182
12183 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12184
12185         PR target/47246
12186         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12187         lower bound of the allowed Thumb-2 coprocessor load/store
12188         index range to -256. Add explaining comment.
12189
12190 2011-01-25  Ian Lance Taylor  <iant@google.com>
12191
12192         * godump.c (go_define): Improve lexing of macro expansion to only
12193         accept expressions which match Go spec.
12194
12195 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12196
12197         PR c++/43601
12198         * tree.c (handle_dll_attribute): Handle it.
12199         * doc/extend.texi (@item dllexport): Mention it.
12200         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12201
12202 2011-01-25  Ian Lance Taylor  <iant@google.com>
12203
12204         PR tree-optimization/26854
12205         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12206         (decl_jump_unsafe): Move higher in file, with no other change.
12207         (bind): Set has_jump_unsafe_decl if appropriate.
12208         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12209         (check_earlier_gotos): Likewise.
12210         (c_check_switch_jump_warnings): Likewise.
12211
12212 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12213
12214         * doc/invoke.texi (Warning Options): Add missing hyphen.
12215         (-fprofile-dir): Minor grammatical fixes.
12216         (-fbranch-probabilities): Likewise.
12217
12218 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12219
12220         PR debug/45136
12221         PR debug/45130
12222         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12223         debug insns.
12224         (no_real_insns_p, schedule_block, set_priorities): Drop special
12225         treatment of boundary debug insns.
12226         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12227         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12228         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12229         (BOUNDARY_DEBUG_INSN_P): Likewise.
12230         (SCHEDULE_DEBUG_INSN_P): Likewise.
12231         * sched-rgn.c (init_ready_list): Drop special treatment of
12232         boundary debug insns.
12233         * final.c (rest_of_clean-state): Clear notes' BB.
12234
12235 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12236
12237         * Makefile.in (LAMBDA_H): Removed.
12238         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12239         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12240         lambda-trans.o, and tree-loop-linear.o.
12241         (lto-symtab.o): Remove dependence on LAMBDA_H.
12242         (tree-loop-linear.o): Remove rule.
12243         (lambda-mat.o): Same.
12244         (lambda-trans.o): Same.
12245         (lambda-code.o): Same.
12246         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12247         (tree-vect-slp.o): Same.
12248         * hwint.h (gcd): Moved here.
12249         (least_common_multiple): Same.
12250         * lambda-code.c: Removed.
12251         * lambda-mat.c: Removed.
12252         * lambda-trans.c: Removed.
12253         * lambda.h: Removed.
12254         * tree-loop-linear.c: Removed.
12255         * lto-symtab.c: Do not include lambda.h.
12256         * omega.c (gcd): Removed.
12257         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12258         * tree-data-ref.c (print_lambda_vector): Moved here.
12259         (lambda_vector_copy): Same.
12260         (lambda_matrix_copy): Same.
12261         (lambda_matrix_id): Same.
12262         (lambda_vector_first_nz): Same.
12263         (lambda_matrix_row_add): Same.
12264         (lambda_matrix_row_exchange): Same.
12265         (lambda_vector_mult_const): Same.
12266         (lambda_vector_negate): Same.
12267         (lambda_matrix_row_negate): Same.
12268         (lambda_vector_equal): Same.
12269         (lambda_matrix_right_hermite): Same.
12270         * tree-data-ref.h: Do not include lambda.h.
12271         (lambda_vector): Moved here.
12272         (lambda_matrix): Same.
12273         (dependence_level): Same.
12274         (lambda_transform_legal_p): Removed declaration.
12275         (lambda_collect_parameters): Same.
12276         (lambda_compute_access_matrices): Same.
12277         (lambda_vector_gcd): Same.
12278         (lambda_vector_new): Same.
12279         (lambda_vector_clear): Same.
12280         (lambda_vector_lexico_pos): Same.
12281         (lambda_vector_zerop): Same.
12282         (lambda_matrix_new): Same.
12283         * tree-flow.h (least_common_multiple): Removed declaration.
12284         * tree-parloops.c (lambda_trans_matrix): Moved here.
12285         (LTM_MATRIX): Same.
12286         (LTM_ROWSIZE): Same.
12287         (LTM_COLSIZE): Same.
12288         (LTM_DENOMINATOR): Same.
12289         (lambda_trans_matrix_new): Same.
12290         (lambda_matrix_vector_mult): Same.
12291         (lambda_transform_legal_p): Same.
12292         * tree-pass.h (pass_linear_transform): Removed declaration.
12293         * tree-ssa-loop.c (tree_linear_transform): Removed.
12294         (gate_tree_linear_transform): Removed.
12295         (pass_linear_transform): Removed.
12296         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12297         flag_loop_interchange.
12298
12299 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12300
12301         PR tree-optimization/47265
12302         PR tree-optimization/47443
12303         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12304         if name still has some uses.
12305
12306 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12307
12308         PR tree-optimization/47382
12309         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12310         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12311
12312 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12313
12314         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12315         sjlj_except_unwind_info.
12316
12317 2011-01-25  Richard Guenther  <rguenther@suse.de>
12318
12319         PR tree-optimization/47426
12320         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12321         visible functions results escape.
12322
12323 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12324
12325         PR target/45701
12326         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12327         (arm_get_frame_offsets): Use it.
12328
12329 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12330             Jakub Jelinek  <jakub@redhat.com>
12331
12332         PR tree-optimization/47271
12333         * tree-if-conv.c (bb_postdominates_preds): New.
12334         (if_convertible_bb_p): Call bb_postdominates_preds.
12335         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12336         (predicate_scalar_phi): Call bb_postdominates_preds.
12337
12338 2011-01-25  Nick Clifton  <nickc@redhat.com>
12339
12340         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12341         * config/rx/rx.c (rx_function_value): Likewise.
12342         (rx_promote_function_mode): Likewise.
12343         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12344         in order to make it legitimate.
12345         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12346         make sure that the first operand is the same as the result register.
12347         (addsi3_unspec): Delete.
12348         (subdi3): Do not accept immediate operands.
12349         (subdi3_internal): Likewise.
12350
12351 2011-01-25  Jeff Law  <law@redhat.com>
12352
12353         PR rtl-optimization/37273
12354         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12355         handle them like argument loads from stack slots.  Do not double
12356         count memory for memory constants and argument loads from stack slots.
12357
12358 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12359
12360         PR tree-optimization/47427
12361         PR tree-optimization/47428
12362         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12363         coalesce if the new root var would be TREE_READONLY.
12364
12365 2011-01-25  Richard Guenther  <rguenther@suse.de>
12366
12367         PR middle-end/47414
12368         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12369         correct type for TBAA.
12370
12371 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12372
12373         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12374         (close_phi_written_to_memory): Call for_each_index with
12375         dr_indices_valid_in_loop.
12376
12377 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12378
12379         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12380         when it is initialized.
12381
12382 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12383
12384         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12385         call to graphite_find_data_references_in_stmt.
12386         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12387         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12388         call to graphite_find_data_references_in_stmt.
12389         (analyze_drs_in_stmts): Same.
12390         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12391         in which the scalar analysis of indices is performed.
12392         (create_data_ref): Same.  Update call to dr_analyze_indices.
12393         (find_data_references_in_stmt): Update call to create_data_ref.
12394         (graphite_find_data_references_in_stmt): Same.
12395         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12396         declaration.
12397         (create_data_ref): Same.
12398         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12399         call to create_data_ref.
12400
12401 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12402
12403         * graphite-sese-to-poly.c (build_poly_scop): Move
12404         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12405
12406 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12407
12408         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12409         VAR_DECL, PARM_DECL, and RESULT_DECL.
12410
12411 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12412
12413         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12414         in a reduction PBB.
12415         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12416         that have already been marked as PBB_IS_REDUCTION.
12417
12418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12419
12420         * graphite-scop-detection.c (same_close_phi_node): New.
12421         (remove_duplicate_close_phi): New.
12422         (make_close_phi_nodes_unique): New.
12423         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12424
12425 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12426
12427         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12428         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12429         of both data references to be the same.
12430
12431 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12432
12433         * graphite-dependences.c (build_lexicographical_constraint): Remove
12434         the gdim parameter.
12435         (build_lexicographical_constraint): Adjust call to
12436         ppl_powerset_is_empty.
12437         (dependence_polyhedron): Same.
12438         (graphite_legal_transform_dr): Same.
12439         (graphite_carried_dependence_level_k): Same.
12440         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12441         parameter.
12442         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12443
12444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12445
12446         * graphite-sese-to-poly.c
12447         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12448         (close_phi_written_to_memory): New.
12449         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12450         and unshare_expr.
12451
12452 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12453
12454         * doc/install.texi: Update the expected version number of PPL to 0.11.
12455         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12456         #if PPL_VERSION_MINOR < 11.
12457
12458 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12459
12460         * graphite-dependences.c: Include graphite-cloog-util.h.
12461         (new_poly_ddr): Inlined into dependence_polyhedron.
12462         (free_poly_ddr): Moved close by new_poly_ddr.
12463         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12464         Early return NULL when ppl_powerset_is_empty returns true.
12465         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12466         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12467         (graphite_legal_transform_dr): Call new_poly_ddr.
12468         (graphite_carried_dependence_level_k): Same.
12469         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12470         (dot_transformed_deps_stmt_1): Removed.
12471         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12472         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12473         (dot_deps_1): Call dot_deps_2.
12474         * Makefile.in (graphite-dependences.o): Add missing dependence on
12475         graphite-cloog-util.h.
12476
12477 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12478
12479         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12480         (build_lexicographical_constraint): Same.
12481         (dependence_polyhedron_1): Same.
12482         (graphite_legal_transform_dr): Same.
12483         (graphite_carried_dependence_level_k): Same.
12484         * graphite-ppl.c (ppl_powerset_is_empty): New.
12485         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12486         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12487
12488 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12489
12490         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12491         the "a followed by b" relation and document it.
12492
12493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12494
12495         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12496         iteration when the bag of constraints is empty.
12497
12498 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12499
12500         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12501
12502 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12503
12504         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12505         nest and two loop depths as parameters.
12506         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12507         lst_perfect_nestify.
12508
12509 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12510
12511         * graphite-dependences.c (print_pddr): Call
12512         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12513
12514 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12515
12516         * graphite-ppl.c (debug_gmp_value): New.
12517         * graphite-ppl.h (debug_gmp_value): Declared.
12518
12519 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12520
12521         * doc/install.texi: Document availability of cloog-0.16.
12522
12523 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12524
12525         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12526         invalid postdominance info.
12527
12528 2011-01-24  Jan Hubicka  <jh@suse.cz>
12529
12530         PR c/21659
12531         * doc/extend.texi (weak pragma): Drop claim that it must
12532         appear before definition.
12533         * varasm.c (merge_weak, declare_weak): Only sanity check
12534         that DECL is not output at a time it is declared weak.
12535
12536 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12537
12538         * machmode.def: Fixed comments.
12539
12540 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12541
12542         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12543
12544 2011-01-24  Paul Koning  <ni1d@arrl.net>
12545
12546         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12547         WORDS_BIG_ENDIAN.
12548
12549 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12550
12551         PR target/46519
12552         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12553         (block_info): Add scanned and prev.
12554         (move_or_delete_vzeroupper_2): Return if the basic block
12555         has been scanned and the upper 128bit state is unchanged
12556         from the last scan.
12557         (move_or_delete_vzeroupper_1): Return true if the exit
12558         state is changed.
12559         (move_or_delete_vzeroupper): Visit basic blocks using the
12560         work-list based algorithm based on vt_find_locations in
12561         var-tracking.c.
12562
12563         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12564
12565 2011-01-24  Nick Clifton  <nickc@redhat.com>
12566
12567         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12568         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12569         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12570         then define __v850e1__.
12571         * doc/invoke.texi: Document -mv850es.
12572
12573 2011-01-24  Richard Henderson  <rth@redhat.com>
12574
12575         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12576         compound unordered comparisons.
12577         * config/rx/rx.c (rx_split_fp_compare): Remove.
12578         * config/rx/rx-protos.h: Update.
12579         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12580         (cbranchsf4): Don't call rx_split_fp_compare.
12581         (*cbranchsf4): Use rx_split_cbranch.
12582         (*cmpsf): Don't accept "i" constraint.
12583         (*conditional_branch): Only valid after reload.
12584         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12585
12586 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12587
12588         PR target/47385
12589         * config/rs6000/altivec.md (vector constant splitters): Add
12590         support for creating vector single precision constants if -mvsx is
12591         used and we would create the constant using Altivec primitives.
12592
12593 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12594             Richard Sandiford  <rdsandiford@googlemail.com>
12595
12596         PR rtl-optimization/47166
12597         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12598         mechanism for PRE_MODIFY and POST_MODIFY.
12599         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12600         reloadreg.
12601
12602 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12603
12604         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12605
12606 2011-01-22  Jan Hubicka  <jh@suse.cz>
12607
12608         PR lto/47333
12609         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12610
12611 2011-01-22  Jan Hubicka  <jh@suse.cz>
12612
12613         PR tree-optimization/43884
12614         PR lto/44334
12615         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12616         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12617
12618 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12619
12620         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12621         * config/s390/s390.c (s390_register_move_cost,
12622         s390_memory_move_cost): New.
12623         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12624
12625 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12626
12627         PR middle-end/47401
12628         * except.c (sjlj_assign_call_site_values): Move setting the
12629         crtl->uses_eh_lsda flag to ...
12630         (sjlj_mark_call_sites): ... here.
12631         (sjlj_emit_function_enter): Support NULL dispatch label.
12632         (sjlj_build_landing_pads): In a function with no landing pads
12633         that still has must-not-throw regions, generate code to register
12634         a personality function with empty LSDA.
12635
12636 2011-01-21  Richard Henderson  <rth@redhat.com>
12637
12638         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12639
12640         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12641
12642         * compare-elim.c: New file.
12643         * Makefile.in (OBJS-common): Add it.
12644         (compare-elim.o): New.
12645         * common.opt (fcompare-elim): New.
12646         * opts.c (default_options_table): Add OPT_fcompare_elim.
12647         * tree-pass.h (pass_compare_elim_after_reload): New.
12648         * passes.c (init_optimization_passes): Add it.
12649         * recog.h: Protect against re-inclusion.
12650         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12651         * doc/invoke.texi (-fcompare-elim): Document it.
12652         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12653         * doc/tm.texi: Rebuild.
12654
12655 2011-01-22  Nick Clifton  <nickc@redhat.com>
12656
12657         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12658         rx_split_fp_compare.
12659
12660 2011-01-22  Nick Clifton  <nickc@redhat.com>
12661
12662         * config/rx/rx.md (UNSPEC_CONST): New.
12663         (deallocate_and_return): Wrap the amount popped off the stack in
12664         an UNSPEC_CONST in order to stop it being rejected by
12665         -mmax-constant-size.
12666         (pop_and_return): Add a "(return)" rtx.
12667         (call): Drop the immediate operand.
12668         (call_internal): Likewise.
12669         (call_value): Likewise.
12670         (call_value_internal): Likewise.
12671         (sibcall_internal): Likewise.
12672         (sibcall_value_internal): Likewise.
12673         (sibcall): Likewise.  Generate an explicit call using
12674         sibcall_internal.
12675         (sibcall_value): Likewise.
12676         (mov<>): FAIL if a constant operand is not legitimate.
12677         (addsi3_unpsec): New pattern.
12678
12679         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12680         (ok_for_max_constant): New function.
12681         (gen_safe_add): New function.
12682         (rx_expand_prologue): Use gen_safe_add.
12683         (rx_expand_epilogue): Likewise.
12684         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12685         UNSPEC CONSTs.
12686
12687 2011-01-21  Jeff Law  <law@redhat.com>
12688
12689         PR tree-optimization/47053
12690         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12691         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12692         statements are deleted.
12693         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12694         is nonempty, then purge dead edges and cleanup the CFG.
12695
12696 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12697
12698         PR debug/47402
12699         Temporarily revert:
12700         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12701         PR debug/47106
12702         * tree-dfa.c (create_var_ann): Mark variable as used.
12703
12704 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12705
12706         PR middle-end/45566
12707         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12708         notes from other section in hot/cold partitioning even if
12709         last_action is -3.  Increment call_site_base.
12710
12711         PR rtl-optimization/47366
12712         * fwprop.c (forward_propagate_into): Return bool.  If
12713         any changes are made, -fnon-call-exceptions is used and
12714         REG_EH_REGION note is present, call purge_dead_edges
12715         and return true if it purged anything.
12716         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12717         any EH edges were purged.
12718
12719 2011-01-21  Jeff Law  <law@redhat.com>
12720
12721         PR rtl-optimization/41619
12722         * caller-save.c (setup_save_areas): Break out code to determine
12723         which hard regs are live across calls by examining the reload chains
12724         so that it is always used.
12725         Eliminate code which checked REG_N_CALLS_CROSSED.
12726
12727 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12728
12729         PR tree-optimization/47355
12730         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12731         NOP has non-debug uses beyond PHIs in new_bb.
12732
12733 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12734
12735         PR debug/47106
12736         * cfgexpand.c (account_used_vars_for_block): Only account vars
12737         that are annotated as used.
12738         (estimated_stack_frame_size): Don't set TREE_USED.
12739         * tree-dfa.c (create_var_ann): Mark variable as used.
12740
12741 2011-01-21  Richard Guenther  <rguenther@suse.de>
12742
12743         PR middle-end/47395
12744         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12745
12746 2011-01-21  Richard Guenther  <rguenther@suse.de>
12747
12748         PR tree-optimization/47365
12749         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12750         (vn_reference_lookup_pieces): Adjust.
12751         (vn_reference_lookup): Likewise.
12752         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12753         (vn_reference_lookup_3): Only look through kills if in
12754         VN_WALKREWRITE mode.
12755         (vn_reference_lookup_pieces): Adjust.
12756         (vn_reference_lookup): Likewise.
12757         (visit_reference_op_load): Likewise.
12758         (visit_reference_op_store): Likewise.
12759         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12760         (compute_avail): Likewise.
12761         (eliminate): Likewise.
12762
12763 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12764
12765         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12766         DECL_IGNORED_P non-reg vars if they are used.
12767
12768         PR tree-optimization/47391
12769         * varpool.c (const_value_known_p): Return false if
12770         decl is volatile.
12771
12772 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12773
12774         PR bootstrap/47215
12775         * config/i386/i386.c (ix86_local_alignment): Handle
12776         case for va_list_type_node is nil.
12777         (ix86_canonical_va_list_type): Likewise.
12778
12779 2011-01-21  Alan Modra  <amodra@gmail.com>
12780
12781         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12782         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12783
12784 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12785
12786         * config/arm/arm.md (define_attr type): Rename f_load
12787         and f_store to f_fpa_load and f_fpa_store. Update.
12788         (write_conflict): Deal with rename fallout.
12789         (*push_fp_multi): Likewise.
12790         * config/arm/fpa.md (f_load): Use f_fpa_load.
12791         (f_store): Use f_fpa_store.
12792         (*movsf_fpa): Likewise.
12793         (*movdf_fpa): Likewise.
12794         (*movxf_fpa): Likewise.
12795         (*thumb2_movsf_fpa): Likewise.
12796         (*thumb2_movdf_fpa): Likewise.
12797         (*thumb2_movxf_fpa): Likewise.
12798         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12799         f_loadd and f_stored.
12800         (*thumb2_movdi_vfp): Likewise.
12801         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12802         (*thumb2_movsi_vfp): Likewise.
12803         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12804         Use f_loads instead of f_load.
12805         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12806
12807 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12808
12809         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12810         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12811         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12812         (xtensa_mode_dependent_address_p): New function.
12813         (constantpool_address_p): Make static. Change return type to bool.
12814         Change argument type to const_rtx. Use CONST_INT_P predicate.
12815
12816 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12817
12818         PR debug/46583
12819         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12820
12821 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12822
12823         PR debug/47283
12824         * cfgexpand.c (expand_debug_expr): Instead of generating
12825         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12826         etc. handling.
12827
12828 2011-01-20  Richard Guenther  <rguenther@suse.de>
12829
12830         PR middle-end/47370
12831         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12832         the pointer operand of MEM_REFs.
12833
12834 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12835
12836         PR tree-optimization/46130
12837         * ipa-split.c (consider_split): If return_bb contains non-virtual
12838         PHIs other than for retval or if split_function would not adjust it,
12839         refuse to split.
12840
12841 2011-01-20  Richard Guenther  <rguenther@suse.de>
12842
12843         PR tree-optimization/47167
12844         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12845         Revert previous change, only avoid enumeral type changes.
12846
12847 2011-01-19  Mike Stump  <mikestump@comcast.net>
12848
12849         * doc/tm.texi.in (BRANCH_COST): Englishify.
12850         * doc/tm.texi (BRANCH_COST): Likewise.
12851
12852 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12853
12854         PR c++/47291
12855         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12856         (gen_scheduled_generic_parms_dies): New functions.
12857         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12858         generation for the end of CU compilation.
12859         (dwarf2out_finish): Generate template parameters DIEs here.
12860
12861 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12862
12863         PR debug/46240
12864         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12865         debug bind stmt on merge edges.
12866
12867 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12868
12869         PR debug/47079
12870         PR debug/46724
12871         * function.c (instantiate_expr): Instantiate incoming rtl of
12872         implicit arguments, and recurse on VALUE_EXPRs.
12873         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12874         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12875
12876 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12877
12878         * c-parser.c (c_parser_for_statement): Initialize
12879         collection_expression.
12880
12881 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12882
12883         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12884
12885 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12886
12887         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12888         (LINK_SHLIB_SPEC): Don't use %(link_path).
12889         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12890
12891 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12892
12893         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12894         (NO_SHARED_LIB_SUPPORT): Remove.
12895         (LINK_SHLIB_SPEC): Remove one conditional definition.
12896
12897 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12898
12899         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12900         %{call_shared}.
12901         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12902         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12903         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12904         %{call_shared} and conditionals on these options not being passed.
12905         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12906         %{call_shared}.
12907
12908 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12909
12910         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12911         simplify.
12912
12913         * ipa-split.c: Spelling fixes.
12914
12915 2011-01-19  Richard Henderson  <rth@redhat.com>
12916
12917         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12918         (*mulsi3): Likewise.
12919
12920         * longlong.h [__mn10300__] (count_leading_zeros): New.
12921         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12922         [__mn10300__] (add_ssaaaa, subddmmss): New.
12923         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12924         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12925
12926 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12927
12928         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12929
12930 2011-01-19  Richard Henderson  <rth@redhat.com>
12931
12932         * config/mn10300/mn10300.md (addsi3_flags): New.
12933         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12934         (subsi3_flags, subc_internal, subdi3): New.
12935         (subdi3_internal, *subdi3_degenerate): New.
12936         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12937
12938         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12939         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12940         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12941         * config/mn10300/mn10300-protos.h: Update.
12942         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12943         (return_ret): Likewise.  Rename from return_internal_regs.
12944         (return_internal): Remove.
12945
12946         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12947         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12948         (mn10300_legitimate_constant_p): Likewise.
12949         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12950         (mn10300_frame_size): New.
12951         (mn10300_expand_prologue): Use it.
12952         (mn10300_expand_epilogue): Likewise.
12953         (mn10300_initial_offset): Likewise.
12954         * config/mn10300/mn10300-protos.h: Update.
12955         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12956         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12957         (prologue, epilogue, return_internal): Tidy output code.
12958         (mn10300_store_multiple_operation, return): Likewise.
12959         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12960         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12961         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12962         (load_pic, am33_load_pic): New.
12963         (mn10300_load_pic0, mn10300_load_pic1): New.
12964
12965         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12966         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12967         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12968         (cc_flags_for_mode, cc_flags_for_code): New.
12969         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12970         overflow flag is not valid.  Validate that the flags we need
12971         for the comparison are valid.
12972         (mn10300_output_cmp): Remove.
12973         (mn10300_output_add): New.
12974         (mn10300_select_cc_mode): Use cc_flags_for_code.
12975         (mn10300_split_cbranch): New.
12976         (mn10300_match_ccmode): New.
12977         (mn10300_split_and_operand_count): New.
12978         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12979         to the function.
12980         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12981         (addsi3): ... here.  Use mn10300_output_add.
12982         (*addsi3_flags): New.
12983         (*am33_subsi3, *mn10300_subsi3): Merge...
12984         (subsi3): ... here.  Use attribute isa.
12985         (*subsi3_flags): New.
12986         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12987         when possible.
12988         (*am33_andsi3, *mn10300_andsi3): Merge...
12989         (andsi3): ... here.
12990         (*andsi3_flags): New.
12991         (andsi3 splitters): New.
12992         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12993         (iorsi3): ... here.
12994         (*iorsi3_flags): New.
12995         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12996         (xorsi3): ... here.
12997         (*xorsi3_flags): New.
12998         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12999         (one_cmplsi2): ... here.
13000         (*one_cmplsi2_flags): New.
13001         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13002         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13003         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13004         use matching constraints to eliminate a self-comparison.
13005         (*integer_conditional_branch): Rename from integer_conditional_branch.
13006         Use int_mode_flags to match CC_REG.
13007         (*cbranchsi4_btst, *btstsi): New.
13008         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13009         mn10300_split_cbranch.
13010         (*am33_cmpsf): Rename from am33_cmpsf.
13011         (*float_conditional_branch): Rename from float_conditional_branch.
13012         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13013         (zero_extendqisi2): ... here.
13014         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13015         (zero_extendhisi2): ... here.
13016         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13017         (extendqisi2): ... here.
13018         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13019         (extendhisi2): ... here.
13020         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13021         (ashlsi3): ... here.
13022         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13023         (lshrsi3): ... here.
13024         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13025         (ashrsi3): ... here.
13026         (consecutive add peephole): Remove.
13027         * config/mn10300/predicates.md (label_ref_operand): New.
13028         (int_mode_flags): New.
13029         (CCZN_comparison_operator): New.
13030
13031         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13032         (throughput_42_latency_43): New reservation.
13033         (mulsidi3, umulsidi3): New expanders.
13034         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13035         the MDR register to allocation; separately allocate the low and
13036         high parts of the DImode result.
13037         (umulsidi3_internal): Similarly.
13038         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13039         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13040         (udivsi3, umodsi3): Remove.
13041         (udivmodsi4, divmodsi4): New expanders.
13042         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13043         (*divmodsi4): Simiarly.
13044         (ext_internal): New.
13045
13046         * config/mn10300/constraints.md ("z"): New constraint.
13047         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13048         (FIXED_REGISTERS): Don't fix MDR.
13049         (CALL_USED_REGSITERS): Reformat nicely.
13050         (REG_ALLOC_ORDER): Add MDR.
13051         (enum regclass): Add MDR_REGS.
13052         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13053         (IRA_COVER_CLASSES): Add MDR_REGS.
13054         (REGNO_REG_CLASS): Handle MDR_REG.
13055         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13056         (mn10300_register_move_cost): Likewise.
13057         * config/mn10300/mn10300.md (MDR_REG): New.
13058         (*movsi_internal): Handle moves to/from MDR_REGS.
13059
13060         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13061         POST_MODIFY.
13062         (mn10300_secondary_reload): Tidy combination reload classes.
13063         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13064         addresses for AM33.  Allow symbolic offsets for reg+imm.
13065         (mn10300_regno_in_class_p): New.
13066         (mn10300_legitimize_reload_address): New.
13067         * config/mn10300/mn10300.h (enum reg_class): Remove
13068         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13069         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13070         SP_OR_GENERAL_REGS.
13071         (REG_CLASS_NAMES): Update to match.
13072         (REG_CLASS_CONTENTS): Likewise.
13073         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13074         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13075         (REGNO_IN_RANGE_P): Remove.
13076         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13077         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13078         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13079         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13080         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13081         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13082         (REGNO_GENERAL_P): New.
13083         (HAVE_POST_MODIFY_DISP): New.
13084         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13085         (LEGITIMIZE_RELOAD_ADDRESS): New.
13086         * config/mn10300/mn10300-protos.h: Update.
13087
13088         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13089         DATA_REGS for AM33 stack-pointer destination.
13090         (mn10300_preferred_output_reload_class): Likewise.
13091         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13092         into a form appropriate for ...
13093         (TARGET_SECONDARY_RELOAD): New.
13094         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13095         * config/mn10300/mn10300-protos.h: Update.
13096         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13097         reload_insi; use the "A" constraint for the scratch; handle AM33
13098         moves of sp to non-address registers.
13099
13100         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13101         (*movqi_internal): ... here.
13102         (*am33_movhi, *mn10300_movhi): Merge into...
13103         (*movhi_internal): ... here.
13104         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13105         as the source/destination of moves from/to SP.
13106         (movsf): Only allow for AM33-2.
13107         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13108         any integer constant constraint.  Only allow for AM33-2.  Tidy
13109         all of the alternative outputs.
13110         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13111         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13112         for MN103.
13113         (udivsi3, umodsi3): New patterns for MN103 only.
13114
13115 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13116
13117         * doc/tm.texi.in: Spell out that a lack of register class unions
13118         can lead to ICEs.
13119         * doc/tm.texi: Regenerate.
13120
13121 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13122
13123         PR rtl-optimization/47337
13124         * dce.c (check_argument_store): New function.
13125         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13126
13127         PR tree-optimization/47290
13128         * tree-eh.c (infinite_empty_loop_p): New function.
13129         (cleanup_empty_eh): Use it.
13130
13131 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13132
13133         PR target/46997
13134         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13135         (a64_expand_widen_sum): Ditto.
13136         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13137         (vec_extract_evenodd_help): Ditto.
13138         (vec_extract_evenv4hi): Ditto.
13139         (vec_extract_oddv4hi): Ditto.
13140         (vec_extract_evenv2si): Ditto.
13141         (vec_extract_oddv2si): Ditto.
13142         (vec_extract_evenv2sf): Ditto.
13143         (vec_extract_oddv2sf): Ditto.
13144         (vec_pack_trunc_v4hi: Ditto.
13145         (vec_pack_trunc_v2si): Ditto.
13146         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13147         (vec_interleave_highv8qi): Ditto.
13148         (mix1_r): Ditto.
13149         (vec_extract_oddv8qi): Ditto.
13150         (vec_interleave_lowv4hi): Ditto.
13151         (vec_interleave_highv4hi): Ditto.
13152         (vec_interleave_lowv2si): Ditto.
13153         (vec_interleave_highv2si): Ditto.
13154
13155 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13156
13157         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13158         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13159         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13160         (pa_c_mode_for_suffix): New.
13161         (TARGET_EXPAND_BUILTIN): Define.
13162         (TARGET_C_MODE_FOR_SUFFIX): Define.
13163         (pa_builtins): Define.
13164         (pa_init_builtins): Register __float128 type and init new support
13165         builtins.
13166         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13167         * config/pa/quadlib.c (_U_Qfcopysign): New.
13168
13169 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13170
13171         PR middle-end/46894
13172         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13173         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13174         are defined.
13175
13176 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13177
13178         PR tree-optimization/47179
13179         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13180         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13181
13182 2011-01-18  Richard Guenther  <rguenther@suse.de>
13183
13184         PR rtl-optimization/47216
13185         * emit-rtl.c: Include tree-flow.h.
13186         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13187         of replicating it with different semantics.
13188         * Makefile.in (emit-rtl.o): Adjust.
13189
13190 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13191
13192         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13193         (cortex_a9_dp): Handle neon types correctly.
13194
13195 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR rtl-optimization/47299
13198         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13199         subtarget.  Use normal multiplication if both operands are constants.
13200         * expmed.c (expand_widening_mult): Don't try to optimize constant
13201         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13202         before using it.
13203
13204 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13205
13206         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13207         spacing after 'e.g.', typos, comma, hyphenation.
13208
13209 2011-01-17  Richard Henderson  <rth@redhat.com>
13210
13211         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13212         (rx_restricted_mem_operand): New.
13213         (rx_shift_operand): Use register_operand.
13214         (rx_source_operand, rx_compare_operand): Likewise.
13215         * config/rx/rx.md (addsi3_flags): New expander.
13216         (adddi3): Rewrite as expander.
13217         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13218         (subsi3_flags): New expander.
13219         (subdi3): Rewrite as expander.
13220         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13221
13222         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13223         (rx_init_builtins): Remove sat builtin.
13224         (rx_expand_builtin): Likewise.
13225         * config/rx/rx.md (ssaddsi3): New.
13226         (*sat): Rename from sat.  Represent the CC_REG input.
13227
13228         * config/rx/predicates.md (rshift_operator): New.
13229         * config/rx/rx.c (rx_expand_insv): Remove.
13230         * config/rx/rx-protos.h: Update.
13231         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13232         operand to the canonical position.
13233         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13234         (*bitclr, *bitclr_in_memory): Similarly.
13235         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13236         (insv): Retain the zero_extract in the expansion.
13237
13238         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13239         (bswaphi2, bitinvert, revw): Likewise.
13240
13241         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13242         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13243         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13244         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13245         (bitset, bitset_in_memory): Likewise.
13246         (bitinvert, bitinvert_in_memory): Likewise.
13247         (bitclr, bitclr_in_memory): Likewise.
13248         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13249         (rx_strend, rx_cmpstrn): Likewise.
13250         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13251         (bitop peep2 patterns): Remove.
13252
13253         * config/rx/rx.c (rx_match_ccmode): New.
13254         * config/rx/rx-protos.h: Update.
13255         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13256         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13257         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13258         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13259         (fix_truncsfsi2, floatsisf2): Likewise.
13260         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13261         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13262         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13263         (*subsi3_flags, *xorsi3_flags): New.
13264
13265         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13266
13267         * config/rx/rx.c (rx_print_operand): Remove workaround for
13268         unsplit comparison operations.
13269
13270         * config/rx/rx.md (movsicc): Split after reload.
13271         (*movsicc): Merge *movsieq and *movsine via match_operator.
13272         (*stcc): New pattern.
13273
13274         * config/rx/rx.c (rx_float_compare_mode): Remove.
13275         * config/rx/rx.h (rx_float_compare_mode): Remove.
13276         * config/rx/rx.md (cstoresi4): Split after reload.
13277         (*sccc): New pattern.
13278
13279         * config/rx/predicates.md (label_ref_operand): New.
13280         (rx_z_comparison_operator): New.
13281         (rx_zs_comparison_operator): New.
13282         (rx_fp_comparison_operator): New.
13283         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13284         Validate that the flags are set properly for the comparison.
13285         (rx_gen_cond_branch_template): Remove.
13286         (rx_cc_modes_compatible): Remove.
13287         (mode_from_flags): New.
13288         (flags_from_code): Rename from flags_needed_for_conditional.
13289         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13290         (rx_select_cc_mode): Likewise.
13291         (rx_split_fp_compare): New.
13292         (rx_split_cbranch): New.
13293         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13294         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13295         (*cbranchsf4): Similarly.
13296         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13297         match_operator and rx_split_cbranch.
13298         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13299         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13300         (*cmpsi): Rename from cmpsi.
13301         (*tstsi): Rename from tstsi.
13302         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13303         (*conditional_branch): Rename from conditional_branch.
13304         (*reveresed_conditional_branch): Remove.
13305         (b<code>): Remove expander.
13306         * config/rx/rx-protos.h: Update.
13307
13308         * config/rx/rx.c (rx_compare_redundant): Remove.
13309         * config/rx/rx.md (cmpsi): Don't use it.
13310         * config/rx/rx-protos.h: Update.
13311
13312         * config/rx/rx-modes.def (CC_F): New mode.
13313         * config/rx/rx.c (rx_select_cc_mode): New.
13314         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13315         * config/rx/rx-protos.h: Update.
13316
13317 2011-01-17  Richard Henderson  <rth@redhat.com>
13318
13319         * except.c (dump_eh_tree): Fix stray ; after for statement.
13320
13321 2011-01-17  Richard Guenther  <rguenther@suse.de>
13322
13323         PR tree-optimization/47313
13324         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13325         handling before copying the body.  Properly deal with
13326         by-reference result in SSA form.
13327
13328 2011-01-17  Ian Lance Taylor  <iant@google.com>
13329
13330         PR target/47219
13331         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13332         (struct_value_alias_set): Don't define.
13333         (sparc_option_override): Don't set sparc_sr_alias_set and
13334         struct_value_alias_set.
13335         (save_or_restore_regs): Use gen_frame_mem rather than calling
13336         set_mem_alias_set.
13337         (sparc_struct_value_rtx): Likewise.
13338
13339 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13340
13341         PR target/47318
13342         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13343         (_mm_maskstore_pd): Likewise.
13344         (_mm_maskload_ps): Likewise.
13345         (_mm_maskstore_ps): Likewise.
13346         (_mm256_maskload_pd): Change mask to __m256i.
13347         (_mm256_maskstore_pd): Likewise.
13348         (_mm256_maskload_ps): Likewise.
13349         (_mm256_maskstore_ps): Likewise.
13350
13351         * config/i386/i386-builtin-types.def: Updated.
13352         (ix86_expand_special_args_builtin): Likewise.
13353
13354         * config/i386/i386.c (bdesc_special_args): Update
13355         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13356         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13357         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13358         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13359
13360         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13361         Use <avxpermvecmode> on mask register.
13362         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13363
13364 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13365             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13366             Eric Botcazou  <ebotcazou@adacore.com>
13367
13368         PR target/46655
13369         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13370         if <= USHRT_MAX in 32-bit mode.
13371
13372 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13373
13374         * doc/install.texi (Configuration, Specific): Wrap long
13375         lines in examples.  Allow line wrapping in long options
13376         and URLs where beneficial for PDF output.
13377
13378 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13379
13380         * config/mips/mips.c (mips_classify_symbol): Don't return
13381         SYMBOL_PC_RELATIVE for nonlocal labels.
13382
13383 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13384
13385         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13386
13387 2011-01-15  Jan Hubicka  <jh@suse.cz>
13388
13389         PR tree-optimization/47276
13390         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13391         declarations as needed.
13392
13393 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13394
13395         * common.opt (fdevirtualize): New flag.
13396         * doc/invoke.texi (Option Summary): Document it.
13397         * opts.c (default_options_table): Add devirtualize flag.
13398         * ipa-prop.c (detect_type_change): Return immediately if
13399         devirtualize flag is not set.
13400         (detect_type_change_ssa): Likewise.
13401         (compute_known_type_jump_func): Likewise.
13402         (ipa_analyze_virtual_call_uses): Likewise.
13403
13404 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13405
13406         PR tree-optimization/45934
13407         PR tree-optimization/46302
13408         * ipa-prop.c (type_change_info): New type.
13409         (stmt_may_be_vtbl_ptr_store): New function.
13410         (check_stmt_for_type_change): Likewise.
13411         (detect_type_change): Likewise.
13412         (detect_type_change_ssa): Likewise.
13413         (compute_complex_assign_jump_func): Check for dynamic type change.
13414         (compute_complex_ancestor_jump_func): Likewise.
13415         (compute_known_type_jump_func): Likewise.
13416         (compute_scalar_jump_functions): Likewise.
13417         (ipa_analyze_virtual_call_uses): Likewise.
13418         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13419
13420 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13423         * config/i386/i386.opt (msse5): New Alias.
13424
13425 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13426
13427         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13428         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13429         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13430         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13431
13432 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13433
13434         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13435         -mcpu options.
13436         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13437         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13438         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13439         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13440         Likewise.
13441         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13442
13443 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13444
13445         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13446
13447 2011-01-14  Mike Stump  <mikestump@comcast.net>
13448
13449         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13450         * config/fr30/fr30.md: Likweise
13451         (movsi_push): Likewise.
13452         (movsi_pop): Likewise.
13453         (enter_func): Likewise.
13454         * config/moxie/moxie.md (movsi_push): Likewise.
13455         (movsi_pop): Likewise.
13456
13457 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13458
13459         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13460         %{no_archive} %{exact_version}.
13461         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13462         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13463         %{no_archive} %{exact_version}.
13464         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13465         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13466         * config/mips/vxworks.h: Likewise.
13467
13468 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13469
13470         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13471
13472 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13473
13474         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13475         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13476
13477 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13478
13479         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13480         -nodefaultlib.
13481
13482 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13483
13484         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13485         for mcpu not cpu.
13486         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13487         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13488         not cpu.
13489         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13490         Don't handle -shlib.
13491
13492 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13493
13494         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13495         (CC1_SPEC): Don't handle -profile.
13496
13497 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13498
13499         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13500         * config/mips/mips.h (CC1_SPEC): Likewise.
13501
13502 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13503
13504         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13505         * config/mips/mips.h (CC1_SPEC): Likewise.
13506
13507 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13508
13509         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13510         * config/m32r/linux.h (LINK_SPEC): Likewise.
13511         * config/mips/linux.h (LINK_SPEC): Likewise.
13512         * config/mips/linux64.h (LINK_SPEC): Likewise.
13513         * config/sparc/linux.h (LINK_SPEC): Likewise.
13514         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13515         LINK_SPEC): Likewise.
13516         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13517
13518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13519
13520         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13521         %{version:-v}.
13522         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13523
13524 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13525
13526         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13527         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13528
13529 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13530
13531         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13532
13533 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13534
13535         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13536         supports -Bstatic/-Bdynamic.
13537         * configure: Regenerate.
13538
13539 2011-01-14  Jan Hubicka  <jh@suse.cz>
13540             Jack Howarth  <howarth@bromo.med.uc.edu>
13541
13542         PR target/46037
13543         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13544         when checking debug_info_level. Test write_symbols instead of
13545         debug_hooks->var_location when setting flag_var_tracking_uninit.
13546
13547 2011-01-14  Richard Guenther  <rguenther@suse.de>
13548
13549         PR tree-optimization/47179
13550         * target.def (ref_may_alias_errno): New target hook.
13551         * targhooks.h (default_ref_may_alias_errno): Declare.
13552         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13553         (default_ref_may_alias_errno): New function.
13554         * target.h (struct ao_ref_s): Declare.
13555         * tree-ssa-alias.c: Include target.h.
13556         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13557         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13558         (targhooks.o): Likewise.
13559         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13560         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13561
13562 2011-01-14  Richard Guenther  <rguenther@suse.de>
13563
13564         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13565
13566 2011-01-14  Richard Guenther  <rguenther@suse.de>
13567
13568         PR tree-optimization/47280
13569         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13570         return CFG changes.
13571         (tree_ssa_forward_propagate_single_use_vars): Deal with
13572         CFG changes from associate_plusminus.
13573
13574 2011-01-14  Richard Guenther  <rguenther@suse.de>
13575
13576         PR middle-end/47281
13577         Revert
13578         2011-01-11  Richard Guenther  <rguenther@suse.de>
13579
13580         PR tree-optimization/46076
13581         * tree-ssa.c (useless_type_conversion_p): Conversions from
13582         unprototyped to empty argument list function types are useless.
13583
13584 2011-01-14  Richard Guenther  <rguenther@suse.de>
13585
13586         PR tree-optimization/47286
13587         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13588
13589 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13590
13591         PR middle-end/46823
13592         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13593
13594 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13595
13596         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13597         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13598         * config/xtensa/xtensa.c (xtensa_libcall_value,
13599         xtensa_function_value_regno_p): New functions.
13600         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13601
13602 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13603
13604         PR c++/47213
13605         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13606         PE specific hook.
13607         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13608         New function prototype.
13609         * config/i386/winnt.c (i386_pe_assemble_visibility):
13610         Warn only if attribute was specified by user.
13611
13612 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13613
13614         PR target/47251
13615         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13616         floating point.
13617         (floatunsdidf2_fcfidu): Ditto.
13618
13619 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13620
13621         * config/s390/s390.c (print_operand_address): Replace 'error' with
13622         'output_operand_lossage'.
13623         (print_operand): Likewise.
13624
13625 2011-01-13  Jeff Law  <law@redhat.com>
13626
13627         PR rtl-optimization/39077
13628         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13629         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13630         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13631         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13632         * gcse.c (prune_insertions_deletions): New function.
13633         (compute_pre_data): Use it.
13634
13635 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13636
13637         PR debug/PR46973
13638         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13639         static function.
13640         (prune_unused_types_mark): Use it.
13641
13642 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13643
13644         PR rtl-optimization/45352
13645         * sel-sched.c: Update copyright years.
13646         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13647         in the advancing loop when we have issued issue_rate insns.
13648
13649 2011-01-12  Richard Henderson  <rth@redhat.com>
13650
13651         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13652         (TARGET_MD_ASM_CLOBBERS): New.
13653
13654         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13655         (TARGET_DELEGITIMIZE_ADDRESS): New.
13656
13657         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13658         (clzsi2, *bsch): New patterns.
13659
13660         * config/mn10300/mn10300.md (INT): New mode iterator.
13661         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13662
13663         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13664         flag_split_wide_types.
13665
13666         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13667         (mn10300_trampoline_init): Rewrite without a template, an immediate
13668         load and a direct branch.
13669         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13670
13671 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13672
13673         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13674         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13675         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13676         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13677
13678 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13679
13680         PR debug/47209
13681         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13682         of type.
13683
13684 2011-01-12  Jan Hubicka  <jh@suse.cz>
13685
13686         PR driver/47244
13687         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13688         (PLUGIN_COND_CLOSE): New macro.
13689         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13690
13691 2011-01-12  Richard Guenther  <rguenther@suse.de>
13692
13693         PR lto/47259
13694         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13695         register variables in a MEM_REF.
13696
13697 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13698
13699         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13700         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13701         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13702         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13703         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13704         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13705         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13706         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13707         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13708         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13709         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13710         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13711         * config/gnu-user.h: New.  Copied from linux.h.
13712         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13713         GNU_USER_TARGET_STARTFILE_SPEC.
13714         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13715         GNU_USER_TARGET_ENDFILE_SPEC.
13716         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13717         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13718         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13719         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13720         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13721         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13722         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13723         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13724         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13725         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13726         * config/arm/linux-eabi.h (CC1_SPEC): Use
13727         GNU_USER_TARGET_CC1_SPEC.
13728         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13729         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13730         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13731         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13732         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13733         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13734         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13735         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13736
13737 2011-01-12  Richard Guenther  <rguenther@suse.de>
13738
13739         PR other/46946
13740         * doc/invoke.texi (ffast-math): Document it is turned on
13741         with -Ofast.
13742
13743 2011-01-12  Jan Hubicka  <jh@suse.cz>
13744
13745         PR tree-optimization/47233
13746         * opts.c (common_handle_option): Disable ipa-reference with profile
13747         feedback.
13748
13749 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13750
13751         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13752         error message.
13753
13754 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13755
13756         * c-parser.c (c_lex_one_token): Updated and reindented some
13757         comments.  No changes in code.
13758
13759 2011-01-11  Ian Lance Taylor  <iant@google.com>
13760
13761         * godump.c (go_output_var): Don't output the variable if there is
13762         already a type with the same name.
13763
13764 2011-01-11  Ian Lance Taylor  <iant@google.com>
13765
13766         * godump.c (go_format_type): Don't generate float80.
13767
13768 2011-01-11  Richard Henderson  <rth@redhat.com>
13769
13770         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13771         declaration.  Rewrite for both speed and size.
13772         (mn10300_address_cost_1): Remove.
13773         (mn10300_register_move_cost): New.
13774         (mn10300_memory_move_cost): New.
13775         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13776         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13777         extensions, shifts, BSWAP, CLZ.
13778         (mn10300_wide_const_load_uses_clr): Remove.
13779         (TARGET_REGISTER_MOVE_COST): New.
13780         (TARGET_MEMORY_MOVE_COST): New.
13781         * config/mn10300/mn10300-protos.h: Update.
13782         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13783
13784         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13785         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13786         * config/mn10300/mn10300-protos.h: Update.
13787         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13788         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13789         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13790         (*test_int_bitfield, *test_byte_bitfield): Remove.
13791         (*bit_test, *subreg_bit_test): Remove.
13792         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13793
13794         * config/mn10300/constraints.md ("c"): Rename from "A".
13795         ("A", "D"): New constraint letters.
13796         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13797         (fmssf4, fnmasf4, fnmssf4): Likewise.
13798
13799         * config/mn10300/mn10300.md (isa): New attribute.
13800         (enabled): New attribute.
13801
13802         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13803         (abssf2, negsf2): Define only for hardware fp.
13804         (sqrtsf2): Reformat.
13805         (addsf3, subsf3, mulsf3): Merge expander and insn.
13806
13807         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13808         (DEBUGGER_AUTO_OFFSET): Remove.
13809         (DEBUGGER_ARG_OFFSET): Remove.
13810
13811         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13812         Emit register stores with the same offsets as the hardware.
13813         (mn10300_store_multiple_operation): Don't check that the register
13814         save offsets are monotonic.
13815         * config/mn10300/mn10300-protos.h: Update.
13816
13817         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13818
13819         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13820         in terms of the value on the stack, not the MDR register.
13821
13822 2011-01-11  Jan Hubicka  <jh@suse.cz>
13823
13824         PR lto/45721
13825         PR lto/45375
13826         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13827         (symbol_alias_set_destroy, symbol_alias_set_contains,
13828         propagate_aliases_backward): Declare.
13829         * lto-streamer-out.c (struct sets): New sturcture.
13830         (trivally_defined_alias): New function.
13831         (output_alias_pair_p): Rewrite.
13832         (output_unreferenced_globals): Fix output of alias pairs.
13833         (produce_symtab): Likewise.
13834         * ipa.c (function_and_variable_visibility): Set weak alias destination
13835         as needed in lto.
13836         * varasm.c (symbol_alias_set_t): Remove.
13837         (symbol_alias_set_destroy): Export.
13838         (propagate_aliases_forward, propagate_aliases_backward): New functions
13839         based on ...
13840         (compute_visible_aliases): ... this one; remove.
13841         (trivially_visible_alias): New
13842         (trivially_defined_alias): New.
13843         (remove_unreachable_alias_pairs): Rewrite.
13844         (finish_aliases_1): Reorganize code checking if alias is defined.
13845         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13846         in LTO mode.
13847
13848 2011-01-11  Richard Guenther  <rguenther@suse.de>
13849
13850         PR tree-optimization/46076
13851         * tree-ssa.c (useless_type_conversion_p): Conversions from
13852         unprototyped to empty argument list function types are useless.
13853
13854 2011-01-11  Richard Guenther  <rguenther@suse.de>
13855
13856         PR middle-end/45235
13857         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13858         volatile MEMs as MEM_READONLY_P.
13859
13860 2011-01-11  Richard Guenther  <rguenther@suse.de>
13861
13862         PR tree-optimization/47239
13863         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13864
13865 2011-01-11  Jeff Law  <law@redhat.com>
13866
13867         PR tree-optimization/47086
13868         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13869         IVs from statements that might throw.
13870
13871 2011-01-10  Jan Hubicka  <jh@suse.cz>
13872
13873         PR lto/45375
13874         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13875
13876 2011-01-10  Jan Hubicka  <jh@suse.cz>
13877
13878         PR lto/45375
13879         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13880         when correcting profile.
13881
13882 2011-01-10  Jan Hubicka  <jh@suse.cz>
13883
13884         PR lto/46083
13885         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13886         DECL_FINI_PRIORITY.
13887         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13888         Restore DECL_FINI_PRIORITY.
13889
13890 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13891
13892         * doc/gimple.texi: Fix quoting of multi-word return values in
13893         @deftypefn statements.  Ensure presence of return value.  Wrap
13894         overlong @deftypefn lines.
13895         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13896         descriptions of removed functions.
13897         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13898         of multi-word return value in @deftypefn statement.
13899
13900 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13901
13902         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13903         (Conditional Expressions, Logical Operators)
13904         (Statement and operand traversals): Do not indent smallexample
13905         code.  Fix duplicate function argument in example.
13906
13907 2011-01-10  Jeff Law  <law@redhat.com>
13908
13909         PR tree-optimization/47141
13910         * ipa-split.c (split_function): Handle case where we are
13911         returning a value and the return block has a virtual operand phi.
13912
13913 2011-01-10  Jan Hubicka  <jh@suse.cz>
13914
13915         PR tree-optimization/47234
13916         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13917         (pass_feedback_split_functions): Declare.
13918         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13919         tree-profile.
13920         * ipa-split.c (gate_split_functions): Update comments; disable
13921         split-functions for profile_arc_flag and branch_probabilities.
13922         (gate_feedback_split_functions): New function.
13923         (execute_feedback_split_functions): New function.
13924         (pass_feedback_split_functions): New global var.
13925
13926 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13927
13928         PR lto/46760
13929         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13930         calling gimple_call_set_cannot_inline.
13931
13932 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13933
13934         * config/darwin-sections.def: Remove unused section.
13935
13936 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13937
13938         PR c++/47218
13939         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13940
13941 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13942
13943         PR objc/47232
13944         * c-parser.c (c_parser_declaration_or_fndef): Improved
13945         error message.
13946
13947 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13948
13949         * config/i386/winnt.c (i386_pe_start_function): Make sure
13950         to switch back to function's section.
13951
13952 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13953
13954         PR gcc/46902
13955         PR testsuite/46912
13956         * plugin.c: Move include of dlfcn.h from here...
13957         * system.h: ... to here.
13958
13959 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13960
13961         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13962         file name.
13963         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13964         two extra empty pages in PDF output.
13965
13966 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13967
13968         PR objc/47078
13969         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13970         for error recovery purposes behave as if it was not specified so
13971         that the default type is usd.
13972
13973 2011-01-07  Jan Hubicka  <jh@suse.cz>
13974
13975         PR tree-optmization/46469
13976         * ipa.c (function_and_variable_visibility): Clear needed flags on
13977         nodes with external decls; handle weakrefs merging correctly.
13978
13979 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13982         not false.
13983
13984 2011-01-07  Jan Hubicka  <jh@suse.cz>
13985
13986         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13987         and no longer claim that gold is required for linker plugin.
13988         * configure: Regenerate.
13989         * gcc.c (PLUGIN_COND): New macro.
13990         (LINK_COMMAND_SPEC): Use it.
13991         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13992         * config.in (HAVE_LTO_PLUGIN): New.
13993         * configure.ac (--with-lto-plugin): New parameter; autodetect
13994         HAVE_LTO_PLUGIN.
13995
13996 2011-01-07  Jan Hubicka  <jh@suse.cz>
13997
13998         PR tree-optimization/46367
13999         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14000         when we can update original.
14001         (cgraph_mark_inline_edge): Sanity check.
14002         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14003
14004 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14005
14006         * config/spu/spu.h (ASM_COMMENT_START): Define.
14007
14008 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14009
14010         PR driver/42445
14011         * gcc.c (%>S): New.
14012         (SWITCH_KEEP_FOR_GCC): Likewise.
14013         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14014         (do_spec_1): Handle "%>".
14015
14016         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14017
14018 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14019
14020         PR target/47201
14021         * config/i386/i386.c (ix86_delegitimize_address): If
14022         simplify_gen_subreg fails, return orig_x.
14023
14024         PR bootstrap/47187
14025         * value-prof.c (gimple_stringop_fixed_value): Handle
14026         lhs of the call properly.
14027
14028 2011-01-07  Jan Hubicka  <jh@suse.cz>
14029
14030         PR lto/45375
14031         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14032
14033 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14034
14035         * target.def (function_switched_text_sections): New hook.
14036         * doc/tm.texi: Regenerated.
14037         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14038         * final.c (default_function_switched_text_sections): New.
14039         (final_scan_insn): Call function_switched_text_sections when a
14040         mid-function section change occurs.
14041         * output.h (default_function_switched_text_sections): Declare.
14042         * config/darwin-protos.h (darwin_function_switched_text_sections):
14043         Likewise.
14044         * config/darwin.c (darwin_function_switched_text_sections): New.
14045         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14046
14047 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14048
14049         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14050         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14051         the secondary code fragment when outputting for DWARF == 2.
14052
14053 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14054
14055         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14056         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14057         Remove.
14058         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14059         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14060
14061 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14062
14063         PR debug/46704
14064         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14065         when it is not empty.
14066
14067 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14068
14069         Bobcat Enablement
14070         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14071         (case ${target}): Add btver1.
14072         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14073         -march=native recognize btver1 processors.
14074         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14075         btver1 def_and_undef
14076         * config/i386/i386.c (struct processor_costs btver1_cost): New
14077         btver1 cost table.
14078         (m_BTVER1): New definition.
14079         (m_AMD_MULTIPLE): Includes m_BTVER1.
14080         (initial_ix86_tune_features): Add btver1 tune.
14081         (processor_target_table): Add btver1 entry.
14082         (static const char *const cpu_names): Add btver1 entry.
14083         (software_prefetching_beneficial_p): Add btver1.
14084         (ix86_option_override_internal): Add btver1 instruction sets.
14085         (ix86_issue_rate): Add btver1.
14086         (ix86_adjust_cost): Add btver1.
14087         * config/i386/i386.h (TARGET_BTVER1): New definition.
14088         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14089         (enum processor_type): Add PROCESSOR_BTVER1.
14090         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14091
14092 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14093
14094         PR target/43309
14095         * config/i386/i386.c (legitimize_tls_address)
14096         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14097         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14098         (tls_initial_exec_64_sun): New pattern.
14099
14100 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14101
14102         * doc/invoke.texi (Overall Options): Improve wording and markup
14103         of the description of -wrapper.
14104
14105 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14106
14107         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14108         rdynamic, threads): New Driver options.
14109
14110 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14111
14112         PR target/38118
14113         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14114         if coming from .tdata.
14115         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14116
14117 2011-01-06  Jan Hubicka  <jh@suse.cz>
14118
14119         PR lto/47188
14120         * collect2.c (main): Do not enable LTOmode when plugin is active.
14121
14122 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14123
14124         PR other/45915
14125         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14126         --version output if supported.
14127         * configure: Regenerate.
14128
14129 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14130
14131         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14132         Driver options.
14133
14134 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14135
14136         PR c/47150
14137         * c-convert.c (convert): When converting a complex expression
14138         other than COMPLEX_EXPR to a different complex type, ensure
14139         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14140         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14141         when converting COMPLEX_TYPE.
14142
14143 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14144
14145         PR tree-optimization/47139
14146         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14147         only the last reduction value is used outside the loop.  Update
14148         documentation.
14149
14150 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14151
14152         * config/rtems.opt: New.
14153         * config.gcc (*-*-rtems*): Use rtems.opt.
14154
14155 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14156
14157         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14158         processors do not support 3DNow instructions.
14159
14160 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14161
14162         * config/spu/spu.c (spu_option_override): Set parameter
14163         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14164
14165 2011-01-05  Jan Hubicka  <jh@suse.cz>
14166
14167         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14168         at the command line.
14169
14170 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14171
14172         PR lto/47162
14173         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14174         deltas on streamed outgoing edges.
14175         (output_node_opt_summary): Output info for outgoing edges only when
14176         the node is in new parameter set.
14177         (output_cgraph_opt_summary): New parameter set, passed to the two
14178         aforementioned functions.  Update its forward declaration and its
14179         callee too.
14180
14181 2011-01-05  Tom Tromey  <tromey@redhat.com>
14182
14183         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14184         operator to c_finish_omp_atomic.
14185         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14186         (build_unary_op): Update.
14187         (build_modify_expr): Update.
14188         (build_asm_expr): Update.
14189
14190 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14191
14192         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14193         newly inserted insns.
14194         (pad_bb): Likewise.
14195         (spu_emit_branch_hint): Likewise.
14196         (insert_hbrp_for_ilb_runout): Likewise.
14197         (spu_machine_dependent_reorg): Call df_finish_pass after
14198         schedule_insns returns.
14199
14200 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14201
14202         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14203
14204 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14205
14206         PR tree-optimization/47005
14207         * tree-sra.c (struct access): Add 'non_addressable' bit.
14208         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14209         (decide_one_param_reduction): Return 0 if the parameter is passed by
14210         reference and one of the accesses in the group is non_addressable.
14211
14212 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14213
14214         PR tree-optimization/47056
14215         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14216         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14217         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14218
14219 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14220
14221         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14222         initializer.  Skip view conversions from aggregate types.
14223
14224 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14225
14226         PR bootstrap/47055
14227         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14228
14229 2011-01-04  Philipp Thomas  <pth@suse.de>
14230
14231         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14232         obvious typo.
14233
14234 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14235
14236         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14237         on empty epilogue sequences.
14238
14239 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14240
14241         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14242         non-static): New Driver options.
14243
14244 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14245
14246         PR driver/47137
14247         * gcc.c (default_compilers[]): Set combinable field to 0
14248         for all assembly languages.
14249
14250 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14251
14252         * config/mips/loongson3a.md: New file.
14253         * config/mips/mips.md: Include loongson3a.md.
14254         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14255         TUNE_LOONGSON_3A.
14256
14257 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14258
14259         PR middle-end/47017
14260         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14261         instead of convert_memory_address_addr_space on the base expression.
14262
14263 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14264
14265         * config/spu/spu.c (spu_option_override): Update error text
14266         for bad -march= / -mtune= values.
14267
14268 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14269
14270         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14271         if branch-hint optimization will be performed.
14272
14273 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14274
14275         PR tree-optimization/47148
14276         * ipa-split.c (split_function): Convert arguments to
14277         DECL_ARG_TYPE if possible.
14278
14279         PR tree-optimization/47155
14280         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14281         when computing uns.
14282
14283         PR rtl-optimization/47157
14284         * combine.c (try_combine): If undobuf.other_insn becomes
14285         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14286         and set *new_direct_jump_p too.
14287
14288 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14289
14290         PR tree-optimization/47021
14291         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14292
14293 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14294
14295         * gcc.c (process_command): Update copyright notice dates.
14296         * gcov.c (print_version): Likewise.
14297         * gcov-dump.c (print_version): Likewise.
14298         * mips-tfile.c (main): Likewise.
14299         * mips-tdump.c (main): Likewise.
14300
14301 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14302
14303         PR tree-optimization/46801
14304         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14305         aggregate fields start at byte boundary instead of the bit-field flag.
14306
14307 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14308
14309         PR driver/47137
14310         * gcc.c (main): Revert revision 168407.
14311
14312 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14313
14314         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14315
14316 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14317
14318         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14319         vector optab to expand vector/scalar shift, update gimple to vector.
14320
14321 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14322
14323         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14324         a thunk.
14325
14326 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14327
14328         PR tree-optimization/46984
14329         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14330         HOST_WIDE_INT.
14331         (cgraph_create_indirect_edge): Fixed line length.
14332         (cgraph_indirect_call_info): Declare.
14333         (cgraph_make_edge_direct) Update declaration.
14334         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14335         (cgraph_create_indirect_edge): Use it.
14336         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14337         callees.
14338         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14339         the new thunk_delta representation.
14340         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14341         HOST_WIDE_INT.
14342         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14343         (ipa_read_indirect_edge_info): Likewise.
14344         * lto-cgraph.c (output_edge_opt_summary): New function.
14345         (output_node_opt_summary): Call it on all outgoing edges.
14346         (input_edge_opt_summary): New function.
14347         (input_node_opt_summary): Call it on all outgoing edges.
14348
14349 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14350
14351         PR driver/47137
14352         * gcc.c (main): Don't check have_o when settting combine_inputs.
14353
14354 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14355
14356         * regrename.c: Add general comment describing the pass.
14357         (struct du_head): Remove 'length' field.
14358         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14359         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14360         Force renaming to the preferred class (if any) in the first pass and do
14361         not consider registers that belong to it in the second pass.
14362         (create_new_chain): Do not set 'length' field.
14363         (scan_rtx_reg): Likewise.
14364
14365 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14366
14367         PR tree-optimization/47140
14368         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14369         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14370         to bit_value_binop.
14371
14372         PR rtl-optimization/47028
14373         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14374         parm_birth_insn instead of at the beginning of first bb.
14375
14376 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14377
14378         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14379         Remove the word "see" before "@pxref".
14380         * doc/rtl.texi: Remove the word "see" before "@pxref".
14381
14382 2011-01-01  Jan Hubicka  <jh@suse.cz>
14383
14384         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14385         memory.
14386
14387 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14388
14389         PR target/38662
14390         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14391
14392 \f
14393 Copyright (C) 2011 Free Software Foundation, Inc.
14394
14395 Copying and distribution of this file, with or without modification,
14396 are permitted in any medium without royalty provided the copyright
14397 notice and this notice are preserved.