i386-protos.h (output_fix_trunc): Change arg 3 to bool.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4         (output_fp_compare): Change args 3 and 4 to bool.
5         (ix86_expand_call): Change arg 6 to bool.
6         (ix86_attr_length_immediate_default): Change arg 2 to bool.
7         (ix86_attr_length_vex_default): Change arg 3 to bool.
8         * config/i386/i386.md: Update all uses.
9         * config/i386/i386.c: Ditto.
10         (ix86_flags_dependent): Change return type to bool.
11
12 2011-05-17  Richard Guenther  <rguenther@suse.de>
13
14         * gimple.c (type_hash_pair_compare): Fix comparison.
15
16 2011-05-17  Richard Guenther  <rguenther@suse.de>
17
18         * gimple.c (iterative_hash_gimple_type): Simplify singleton
19         case some more, fix final hash value of the non-singleton case.
20
21 2011-05-17  Richard Guenther  <rguenther@suse.de>
22
23         PR bootstrap/49013
24         Revert
25         2011-05-16  Richard Guenther  <rguenther@suse.de>
26
27         * gimple.c (gimple_types_compatible_p_1): Use names of the
28         type itself, not its main variant.
29         (iterative_hash_gimple_type): Likewise.
30
31 2011-05-17  Richard Guenther  <rguenther@suse.de>
32
33         * gimple.c (gimple_register_canonical_type): Use the main-variant
34         leader for computing the canonical type.
35
36 2011-05-17  Nick Clifton  <nickc@redhat.com>
37
38         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
39         moves.
40
41         * config/rx/rx.md: Add peephole to remove redundant extensions
42         after loads.
43         (bitset_in_memory): Use rx_restricted_mem_operand.
44         (bitinvert_in_memory): Likewise.
45         (bitclr_in_memory): Likewise.
46
47 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
48             Nick Clifton  <nickc@redhat.com>
49
50         * config/rx/rx.md: Add peepholes to match a register move followed
51         by a comparison of the moved register.  Replace these with an
52         addition of zero that does both actions in one instruction.
53
54 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
55
56         PR target/48986
57         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
58         predicate to allow CONST_INT.
59         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
60
61 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
62
63         * opts-common.c (opt_enum_arg_to_value): New.
64         * opts.h (opt_enum_arg_to_value): Declare.
65         * config/i386/i386.opt (fpmath): Remove.
66         (mfpmath=): Use Enum, Init and Save.
67         (fpmath_unit): New Enum and EnumValue entries.
68         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
69         name for function fpmath state.
70         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
71         * config/i386/i386.c: Include diagnostic.h.
72         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
73         (ix86_target_string): Take enum fpmath_unit value instead of string.
74         (ix86_debug_options): Update call to ix86_target_string.
75         (ix86_option_override_internal): Don't process fpmath strings here.
76         (x86_function_specific_save, ix86_function_specific_restore):
77         Don't handle fpmath state specially.
78         (ix86_function_specific_print): Pass fpmath state to
79         ix86_target_string instead of printing in this function.
80         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
81         Handle enum attributes.
82         (IX86_ATTR_ENUM, ix86_opt_enum): New.
83         (ix86_valid_target_attribute_tree): Update option_strings
84         handling.  Handle fpmath as enum option.
85         (ix86_can_inline_p): Update field names for function fpmath state.
86         (ix86_expand_builtin): Update call to ix86_target_string.
87         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
88         (ix86_fpmath): Remove.
89         * config/i386/t-i386 (i386.o): Update dependencies.
90
91 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
92
93         PR preprocessor/48677
94         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
95         from decoded_options[0], not from itself.
96
97 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
98
99         * config/i386/constraints.md (z): New constraint.
100         * config/i386/i386.c (c): New mode attribute.
101         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
102         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
103         constraint for operand 0.
104         (*call_vzeroupper): Ditto.
105         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
106         (*call_rex64_ms_sysv_vzeroupper): Ditto.
107         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
108         Use "lzm" constraint for operand 0.
109         (*call_pop_vzeroupper): Ditto.
110         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
111         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
112         constraint for operand 0.
113         (*sibcall_vzeroupper): Ditto.
114         (*sibcall_rex64_ms_sysv): Ditto.
115         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
116         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
117         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
118         (*sibcall_pop_vzeroupper): Ditto.
119         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
120         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
121         mode iterator.  Use "<c>zm" constraint for operand 1.
122         (*call_value_vzeroupper): Ditto.
123         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
124         for operand 1.
125         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
126         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
127         *call_value_pop_1.  Use "lzm" constraint for operand 1.
128         (*call_value_pop_vzeroupper): Ditto.
129         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
130         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
131         mode iterator.  Use "Uz" constraint for operand 1.
132         (*sibcall_value_vzeroupper): Ditto.
133         (*sibcall_value_rex64_ms_sysv): Ditto.
134         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
135         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
136         constraint for operand 1.
137         (*sibcall_value_pop_vzeroupper): Ditto.
138         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
139         and "z" constraint for operand 2.
140         (*tls_global_dynamic_32_gnu): Ditto.
141         (*tls_local_dynamic_base_32_gnu): Ditto.
142         (*tls_local_dynamic_base_64): Ditto.
143         (*tls_local_dynamic_32_once): Ditto.
144         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
145         Update all callers.
146         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
147
148 2011-05-16  Richard Guenther  <rguenther@suse.de>
149
150         * gimple.c (gimple_types_compatible_p_1): Use names of the
151         type itself, not its main variant.
152         (iterative_hash_gimple_type): Likewise.
153
154 2011-05-16  Richard Guenther  <rguenther@suse.de>
155
156         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
157         always visit pointer target and function result and argument types.
158
159 2011-05-16  Jason Merrill  <jason@redhat.com>
160
161         PR c++/48999
162         * tree-inline.c (copy_statement_list): Put back recursion.
163
164 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
165
166         PR target/27663
167         PR target/41076
168         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
169         * config/avr/avr.md ("*ior<mode>qi.byte0",
170         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
171
172 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
173
174         PR target/45099
175         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
176         register is needed for a function argument.
177
178 2011-05-16  Richard Guenther  <rguenther@suse.de>
179
180         * gimple.c (struct type_hash_pair): New type.
181         (type_hash_pair_compare): New function.
182         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
183
184 2011-05-16  Revital Eres  <revital.eres@linaro.org>
185
186         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
187
188 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
189
190         * config/i386/i386.md (floating point move splitters): Fix
191         usage of standard_80387_constant_p.
192         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
193
194 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
195
196         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
197
198 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
199
200         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
201         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
202         (tree_ssa_lim_finalize): Likewise.
203
204 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
205
206         * config/i386/constraint.md (Yd, Yx): New register constraints.
207         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
208         Yd conditional register constraint.
209         (*movtf_internal): Use standard_sse_constant_opcode.
210         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
211         Yx conditional register constraint.
212         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
213         Yd conditional register constraint.  Use standard_sse_constant_p to
214         check for valid SSE constants and call standard_sse_constant_opcode to
215         output SSE insn.
216         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
217         constants and call standard_sse_constant_opcode to output SSE insn.
218         * config/i386/i386.c (ix86_option_ovverride_internal): Set
219         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
220         optimize_size is set.
221         (standard_sse_constant_opcode): Output conditional AVX insn templates.
222
223 2011-05-14  Tobias Burnus  <burnus@net-b.de>
224
225         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
226
227 2011-05-13  Martin Jambor  <mjambor@suse.cz>
228
229         * ipa-prop.c (ipa_cst_from_jfunc): New function.
230         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
231         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
232         (evaluate_conditions_for_ipcp_clone): Removed.
233         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
234         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
235         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
236
237 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
238
239         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
240         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
241         lieu of MAY_HAVE_DEBUG_STMTS.
242         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
243         debug statements if !MAY_HAVE_DEBUG_STMTS.
244
245 2011-05-13  Martin Thuresson  <martint@google.com>
246
247         PR gcov-profile/47793
248         * libgcov.c (gcov_exit): Support relative profile paths.
249         * doc/invoke.texi (-fprofile-dir): Update for above change.
250
251 2011-05-13  Richard Guenther  <rguenther@suse.de>
252
253         * gimple.c (gimple_canonical_types_compatible_p): Do not use
254         type-pair caching, do not compare hashes.
255
256 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
257
258         PR middle-end/48965
259         * tree-cfg.c (edge_to_cases_cleanup): Return true.
260         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
261
262 2011-05-13  Kai Tietz  <ktietz@redhat.com>
263
264         * gimplify.c (gimplify_expr): Make sure operand is boolified.
265         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
266         compatible type for TRUTH_NOT_EXPR.
267
268 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
271         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
272         can_create_pseudo_p ().
273
274 2011-05-13  Richard Guenther  <rguenther@suse.de>
275
276         PR lto/48978
277         * gimple.c (iterative_hash_gimple_type): Revert change in
278         pointer target and function result and argument hashing.
279
280 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
281
282         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
283         (*movxf_internal_nointeger): Ditto.
284         (*movdf_internal_rex64): Ditto.
285         (*movdf_internal): Ditto.
286         (*movdf_internal_nointeger): Ditto.
287         (*movsf_internal): Ditto.
288         (sincos splitters): Use can_create_pseudo ().
289
290 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
291
292         * config/i386/i386-opts.h: New.
293         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
294         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
295         ix86_section_threshold): Remove.
296         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
297         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
298         OPT_mbranch_cost_.
299         (ix86_option_override_internal): Don't decode strings for options
300         other than -march=, -mtune= and -mfpmath=.  Don't allow for
301         __attribute__ uses in remaining diagnostics for options with
302         string arguments.  Don't check for integer arguments being negative.
303         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
304         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
305         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
306         ix86_branch_cost, ix86_section_threshold): Remove.
307         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
308         HeaderInclude.
309         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
310         but not Var.
311         (masm=): Use Enum and Init.
312         (asm_dialect): New Enum and EnumValue entries.
313         (mbranch-cost=): Use UInteger.
314         (mlarge-data-threshold=): Use UInteger and Init.
315         (mcmodel=): Use Enum and Init.
316         (cmodel): New Enum and EnumValue entries.
317         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
318         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
319         mregparm=): Use UInteger.
320         (mstringop-strategy=): Use Enum and Init.
321         (stringop_alg): New Enum and EnumValue entries.
322         (mtls-dialect=): Use Enum and Init.
323         (tls_dialect): New Enum and EnumValue entries.
324         (mabi=): Use Enum and Init.
325         (calling_abi): New Enum and EnumValue entries.
326         (mveclibabi=): Use Enum and Init.
327         (ix86_veclibabi): New Enum and EnumValue entries.
328
329 2011-05-13  Nick Clifton  <nickc@redhat.com>
330
331         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
332         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
333
334 2011-05-13  Kai Tietz  <ktietz@redhat.com>
335
336         PR middle-end/48984
337         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
338         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
339         (gimple_boolify): Check for cast for boolean_type_node instead for
340         BOOLEAN_TYPE.
341
342 2011-05-13  Richard Guenther  <rguenther@suse.de>
343
344         PR tree-optimization/48172
345         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
346         multiplying by number of iterations for equal step.
347         (vect_create_cond_for_alias_checks): Likewise.
348
349 2011-05-13  Andreas Schwab  <schwab@redhat.com>
350
351         * configure.ac: Use AS_HELP_STRING throughout.
352         * configure: Regenerate.
353
354 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
355
356         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
357         (ix86_emit_restore_regs_using_mov): Likewise.
358         (ix86_emit_restore_sse_regs_using_mov): Likewise.
359
360 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
361
362         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
363         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
364         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
365         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
366         RTX_OK_FOR_OLO10_P): ...here.
367         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
368         SYMBOLIC_CONST.
369
370 2011-05-12  Kai Tietz  <ktietz@redhat.com>
371
372         * gimplify.c (gimple_boolify): Re-boolify expression
373         arguments even if expression type is of kind BOOLEAN_TYPE.
374         (gimplify_boolean_expr): Removed.
375         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
376         and XOR. Additional take care that we keep expression's type.
377         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
378         of TRUTH_AND|OR|XOR_EXPR.
379
380 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
381
382         PR tree-optimization/48975
383         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
384         on all bbs here and free and clear ifc_bbs at the end.
385
386 2011-05-12  Richard Guenther  <rguenther@suse.de>
387
388         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
389         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
390         until after simple checks.
391         (gimple_types_compatible_p): Likewise.
392         (iterative_hash_gimple_type): Always hash pointer targets
393         and function return and argument types.
394         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
395         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
396         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
397         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
398         completely in the simple compare section.
399         (gimple_register_canonical_type): Query the cache again after
400         registering.
401
402 2011-05-12  Richard Guenther  <rguenther@suse.de>
403
404         PR tree-optimization/48172
405         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
406         the number of iterations from the segment size calculation.
407         (vect_create_cond_for_alias_checks): Adjust.
408
409 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
410
411         PR debug/48967
412         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
413         if validate_subreg fails.
414
415 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
416
417         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
418         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
419         early.
420
421 2011-05-12  DJ Delorie  <dj@redhat.com>
422
423         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
424         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
425         created builtin into rx_builtins array.
426         (rx_builtin_decl): New function.
427         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
428
429 2011-05-12  DJ Delorie  <dj@redhat.com>
430             Nick Clifton  <nickc@redhat.com>
431
432         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
433         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
434         (rx_is_legitimate_address): Add pre-decrement and post-increment
435         addressing in HImode and QImode.  Fix test for out of range
436         REG+INT addressing.
437         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
438         (rx_align_for_label): Test label before extracting its usage count.
439         (rx_adjust_insn_lengths): Fix selection of insn codes.
440         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
441
442 2011-05-11  Jason Merrill  <jason@redhat.com>
443
444         * tree.c (type_hash_canon): Use struct tree_type_non_common.
445
446 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
447
448         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
449         reindent the subsequent block.
450
451 2011-05-11  Satoru Takabayashi  <satorux@google.com>
452             Paul Pluzhnikov  <ppluzhnikov@google.com>
453
454         * doc/install.texi (Configuration): Document --with-linker-hash-style.
455         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
456         * config.in: Add LINKER_HASH_STYLE.
457         * configure.ac: Add --with-linker-hash-style.
458         * configure: Regenerate.
459
460 2011-05-11  Richard Guenther  <rguenther@suse.de>
461
462         PR middle-end/48964
463         * gimple.c (iterative_hash_canonical_type): Fix typo.
464
465 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
466
467         * config/i386/i386.c (legitimize_tls_address)
468         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
469         expanders directly for TARGET_GNU2_TLS.  Determine pic and
470         __tls_get_addr symbol reference here.  Update call to
471         gen_tls_global_dynamic_{32,64} for added arguments.
472         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
473         expanders directly for TARGET_GNU2_TLS.  Determine
474         __tls_get_addr symbol reference here.  Update call to
475         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
476         unique UNSPEC REG_EQUIV to libcall block.
477         (ix86_tls_get_addr): Declare static.
478         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
479         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
480         Do not determine pic and __tls_get_addr symbol reference here. Do not
481         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
482         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
483         (tls_global_dynamic_64): Add operand 2.  Do not determine
484         __tls_get_addr symbol reference here.  Do not call
485         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
486         (tls_local_dynamic_base64): Ditto for operand 1.
487
488 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
489
490         * function.c (expand_function_start): Initialize stack_check_probe_note
491         only if the generic stack checking mechanism is used.
492
493 2011-05-11  Richard Guenther  <rguenther@suse.de>
494
495         PR tree-optimization/15256
496         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
497         (A & B) | C, combine (A op CST1) op CST2.
498         (tree_ssa_forward_propagate_single_use_vars): Only bother to
499         visit assigns that have uses.
500
501 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
502
503         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
504         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
505         (unpack_ts_type_common_value_fields): ...this.  Update comment.
506         (unpack_value_fields): Adjust for renaming.
507         (lto_input_ts_type_tree_pointers): Split into...
508         (lto_input_ts_type_common_tree_pointer): ...this and...
509         (lto_input_ts_type_non_common_tree_pointers): ...this.
510         (lto_input_tree_pointers): Adjust for above split.
511         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
512         (pack_ts_type_common_value_fields): ...this.  Update comment.
513         (lto_output_ts_type_tree_pointers): Split into...
514         (lto_output_ts_type_common_tree_pointers): ...this and...
515         (lto_output_ts_type_non_common_tree_pointers): ...this.
516         (lto_output_tree_pointers): Adjust for above split.
517         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
518         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
519         * stor-layout.c (vector_type_mode): Adjust location of mode field.
520         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
521         Define.
522         (struct tree_type): Split into...
523         (struct tree_type_common: ...this and...
524         (struct tree_type_with_lang_specific): ...this and...
525         (struct tree_type_non_common): ...this.  Adjust accessor macros
526         accordingly.
527         (TYPE_VALUES_RAW): Define.
528         (union tree_node): Update for above changes.
529         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
530         TS_TYPE_NON_COMMON.
531         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
532         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
533         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
534         * treestructu.def (TS_TYPE): Remove.
535         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
536         Define.
537
538 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
539
540         PR debug/48159
541         * tree-ssa.c (reset_debug_uses): New function.
542         * tree-flow.h (reset_debug_uses): New prototype.
543         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
544         * tree-loop-distribution.c (generate_loops_for_partition): Call
545         reset_debug_uses on the stmts that will be removed.  Keep around
546         all debug stmts, don't count them as bits in partition bitmap.
547         (generate_builtin): Don't count debug stmts or labels as bits in
548         partition bitmap.
549
550 2011-05-11  Richard Guenther  <rguenther@suse.de>
551
552         * gimple.c (gimple_type_hash_1): Merge with ...
553         (gimple_type_hash): ... this.
554         (gtc_visit): Remove mode parameter and simplify accordingly.
555         (gimple_types_compatible_p_1): Likewise.
556         (gimple_types_compatible_p): Likewise.
557         (iterative_hash_gimple_type): Likewise.
558         (visit): Likewise.
559         (gimple_type_eq): Adjust.
560
561 2011-05-11  Revital Eres  <revital.eres@linaro.org>
562
563         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
564         enters the branch create an anti edge in the opposite direction
565         to prevent the creation of reg-moves.
566         * modulo-sched.c: Adjust comment to reflect the fact we are
567         scheduling closing branch.
568         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
569         (stage_count): New field in struct partial_schedule.
570         (calculate_stage_count): New function.
571         (normalize_sched_times): Rename to reset_sched_times and handle
572         incrementing the sched time of the nodes by a constant value
573         passed as parameter.
574         (duplicate_insns_of_cycles): Skip closing branch.
575         (sms_schedule_by_order): Schedule closing branch.
576         (ps_insn_find_column): Handle closing branch.
577         (sms_schedule): Call reset_sched_times and adjust the code to
578         support scheduling of the closing branch.
579         (ps_insert_empty_row): Update calls to normalize_sched_times
580         and rotate_partial_schedule functions.
581
582 2011-05-11  Richard Guenther  <rguenther@suse.de>
583
584         PR middle-end/48953
585         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
586
587 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
588
589         * opts.c (finish_options): Move warning settings from process_options.
590         * toplev.c (process_options): Move warning settings to finish_options.
591
592 2011-05-11  Richard Guenther  <rguenther@suse.de>
593
594         PR tree-optimization/18041
595         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
596         (simplify_bitwise_binary): ... this.  Handle operand conversions
597         by applying them to the result instead.
598         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
599
600 2011-05-11  Richard Guenther  <rguenther@suse.de>
601
602         * gimple.c (gimple_canonical_types_compatible_p): Split out
603         from gimple_types_compatible_p and friends.  Do not recurse
604         to pointed-to types.
605         (gimple_canonical_type_eq): Use it.
606         (iterative_hash_canonical_type): Split out from
607         iterative_hash_gimple_type and friends.  Do not recurse
608         to pointed-to types.
609         (gimple_canonical_type_hash): Use it, allocate the hash here.
610
611 2011-05-11  Revital Eres  <revital.eres@linaro.org>
612
613         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
614         recognizing doloop.
615
616 2011-05-11  Revital Eres  <revital.eres@linaro.org>
617
618         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
619         instead of PREV_INSN.
620
621 2011-05-11  Revital Eres  <revital.eres@linaro.org>
622
623         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
624         * loop-doloop.c (doloop_condition_get): Likewise.
625         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
626         (doloop_end): New.
627         * config/arm/arm.md (*addsi3_compare0): Remove "*".
628
629 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
630
631         * tree.def (CASE_LABEL_EXPR): Add an operand.
632         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
633
634 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
635
636         * c-decl.c (c_override_global_bindings_to_false): Remove.
637         (global_bindings_p): Don't check
638         c_override_global_bindings_to_false.
639         * c-tree.h (c_override_global_bindings_to_false): Remove.
640         * c-typeck.c (composite_type): Don't set
641         c_override_global_bindings_to_false.
642
643 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
644
645         PR target/48857, 48495
646         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
647         (VSX_MODE): Ditto.
648         (VSX_MOVE_MODE): Ditto.
649         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
650         VSX vector types.  Add V2DImode.
651         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
652         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
653         (MODES_TIEABLE_P): Ditto.
654
655         * config/rs6000/rs6000.c (rs6000_emit_move): Use
656         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
657         VSX_VECTOR_MODE.
658         (init_cumulative_args): Ditto.
659         (rs6000_function_arg_boundary): Ditto.
660         (rs6000_function_arg_advance_1): Ditto.
661         (rs6000_function_arg): Ditto.
662         (rs6000_function_ok_for_sibcall): Ditto.
663         (emit_frame_save): Ditto.
664         (rs6000_function_value): Ditto.
665         (rs6000_libcall_value): Ditto.
666
667 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
668
669         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
670         i386/darwin-lib.h to $libgcc_tm_file.
671         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
672
673 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
674
675         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
676
677 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
678
679         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
680         * config/rs6000/rs6000-tables.opt: New file (generated).
681         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
682         rs6000/rs6000-tables.opt to extra_options.
683         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
684         * config/rs6000/rs6000.c (rs6000_select): Remove.
685         (processor_target_table): Move contents to rs6000-cpus.def.
686         (darwin_rs6000_override_options): Check
687         global_options_set.x_rs6000_cpu_index instead of
688         rs6000_select[1].string.
689         (rs6000_option_override_internal): Likewise.
690         (rs6000_handle_option): Don't assert that global structures are in
691         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
692         (rs6000_default_cpu): New variable.
693         (rs6000_file_start): Set it instead of local default_cpu.  Check
694         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
695         global_options_set.x_rs6000_tune_index instead of rs6000_select.
696         (rs6000_darwin_file_start): Check rs6000_default_cpu and
697         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
698         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
699         rs6000_select): Remove.
700         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
701         Remove.
702         (mcpu=, mtune=): Use Var, Init, Enum and Save.
703         * config/rs6000/t-rs6000
704         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
705         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
706         global_options_set.x_rs6000_cpu_index instead of
707         rs6000_select[1].string.
708         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
709         global_options_set.x_rs6000_cpu_index instead of
710         rs6000_select[1].string.
711
712 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
713
714         * config.gcc (libgcc_tm_file): Define instead of including files
715         from ../../libgcc/config/ in tm_file.
716         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
717         * configure: Regenerate.
718         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
719         libgcc_tm.h, cs-libgcc_tm.h): New.
720         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
721         (clean): Remove libgcc_tm.h.
722         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
723         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
724         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
725
726 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
727
728         PR target/48896
729         * config/avr/avr.c (avr_ret_register): Return unsigned int
730         instead of int.
731         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
732         it to avr_libcall_value.
733         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
734         expand_expr.
735         (avr_expand_binop_builtin): Ditto.
736         (avr_expand_unop_builtin): Ditto.
737
738 2011-05-10  DJ Delorie  <dj@redhat.com>
739
740         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
741         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
742         * config/rx/rx.c (rx_align_for_label): Add label and
743         uses_threshold parameters.  Do not align when the label is not
744         used enough.
745         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
746
747 2011-05-10  Richard Guenther  <rguenther@suse.de>
748
749         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
750         a series of conversions and apply foldings similar to what
751         fold-const does.
752         (tree_ssa_forward_propagate_single_use_vars): Call it.
753
754 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
755
756         PR tree-optimization/48611
757         PR tree-optimization/48794
758         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
759         referenced from RESX or EH_DISPATCH arguments.
760
761         PR debug/48928
762         * dfp.c (decimal_to_decnumber): Handle conversion from
763         dconst{1,2,m1,half}.
764
765 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
766
767         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
768         for !flag_prefer_avx128.
769         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
770
771 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
772
773         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
774         (fold_ternary_loc): Use expr_location_or.
775
776 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
777
778         PR debug/48853
779         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
780         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
781         Pmode and mem_mode is not VOIDmode.
782
783 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
784
785         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
786         TYPE_QUAL_RESTRICT): Convert to enum.
787
788 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
789
790         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
791         (const_pow2_1_to_8_operand): Ditto.
792         (const_pow2_1_to_128_operand): Ditto.
793         (const_pow2_1_to_32768_operand): Ditto.
794         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
795         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
796         in insn constraint to check integer value of operand 3.
797         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
798
799         (PINSR_MODE): New mode iterator.
800         (sse2p4_1): New mode attribute.
801         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
802         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
803         iterator.  Use const_int_operand instead of
804         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
805         exact_log2 in insn constraint to check integer value of operand 3.
806
807 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
808
809         * config/i386/sse.md (blendbits): Remove mode attribute.
810         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
811         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
812         Check integer value of operand 3 in insn constraint.
813
814 2011-05-09  Richard Guenther  <rguenther@suse.de>
815
816         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
817         for diagnostics.
818         (lto_symtab_merge): Likewise.  Do not register types here.
819         (lto_symtab_merge_decls_2): Likewise.
820         (lto_symtab_merge_decls_1): Likewise.
821         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
822         * gimple.c (enum gtc_mode): Declare.
823         (gimple_types_compatible_p): Make static.
824
825 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
826
827         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
828         temporary register to match Pmode.
829
830 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
831
832         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
833         and *vec_concatv4si_1_avx.
834
835 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
836
837         PR rtl-optimization/48927
838         * ira-conflicts.c (commutative_constraint_p): Use
839         recog_data.alternative_enabled_p to disable alternatives where
840         "enabled" attribute is false.
841         (get_dup_num): Ditto.
842         * ira-lives.c (single_reg_class): Ditto.
843         (ira_implicitly_set_insn_hard_regs): Ditto.
844
845 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
846
847         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
848         (dataflow_set_preserve_mem_locs): Likewise.
849
850 2011-05-09  Philipp Thomas  <pth@suse.de>
851
852         * config/mep/mep.c (mep_validate_vliw): Syntax description
853         should not be translated.
854
855 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
856
857         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
858         * config/mips/mips-tables.opt: New file (generated).
859         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
860         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
861         MIPS_ARCH_OPTION_NATIVE): Define.
862         * config/mips/mips.c (mips_cpu_info_table): Move contents to
863         mips-cpus.def.
864         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
865         mips_parse_cpu): Remove.
866         (mips_cpu_info_from_opt, mips_default_arch): New.
867         (mips_handle_option): Don't assert that global structures are in
868         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
869         (mips_option_override): Use new variables and functions to set
870         state of these options.  Use strcmp to check for individual CPU names.
871         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
872         definition.
873         * config/mips/mips.opt (march=): Use ToLower and Enum.
874         (mips): Use ToLower, Enum and Var.
875         (mtune=): Use ToLower and Enum.
876         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
877
878 2011-05-08  Jan Hubicka  <jh@suse.cz>
879
880         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
881         Arrange type pairs to be UID ordered.
882         (gimple_lookup_type_leader): Make inline.
883
884 2011-05-09  Nick Clifton  <nickc@redhat.com>
885
886         PR target/48899
887         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
888         PROCESSOR_DEFAULT.
889
890         PR target/48897
891         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
892         variable 's'.
893
894 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
895
896         * combine.c (simplify_comparison): Abstract out parts into...
897         (simplify_compare_const): ... new function.
898         (try_combine): Generalize parallel arithmetic/compare combining
899         to call simplify_compare_const() and CANONICALIZE_COMPARE().
900
901 2011-05-08  Jan Hubicka  <jh@suse.cz>
902
903         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
904         (cgraph_create_virtual_clone): Call hooks once virtual clone
905         is finished.
906         * cgraph.h (cgraph_clone_node): Update prototype.
907         * ipa-cp.c (ipcp_estimate_growth): Use
908         estimate_ipcp_clone_size_and_time.
909         * ipa-inline-transform.c (clone_inlined_nodes): Update.
910         * lto-cgraph.c (input_node): Update.
911         * ipa-inline.c (recursive_inlining): Update.
912         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
913         (evaluate_conditions_for_known_args): Break out from ...
914         (evaluate_conditions_for_edge): ... here.
915         (evaluate_conditions_for_ipcp_clone): New function.
916         (inline_node_duplication_hook): Update clone summary based
917         on parameter map.
918         (estimate_callee_size_and_time): Rename to ...
919         (estimate_node_size_and_time): take NODE instead of EDGE;
920         take POSSIBLE_TRUTHS as argument.
921         (estimate_callee_size_and_time): Update.
922         (estimate_ipcp_clone_size_and_time): New function.
923         (do_estimate_edge_time): Update.
924
925 2011-05-08  Richard Guenther  <rguenther@suse.de>
926
927         PR middle-end/48908
928         PR middle-end/48905
929         * expmed.c (expand_shift_1): Compute adjusted constant shift
930         amount manually.
931
932 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
933
934         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
935
936 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
937
938         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
939
940 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
941
942         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
943
944 2011-05-07  Jan Hubicka  <jh@suse.cz>
945
946         * ipa-inline-transform.c (inline_call): Account when program size
947         decreases.
948         * ipa-inline.c (relative_time_benefit): New function.
949         (edge_badness): Reorganize to be power 2 based; fix thinko when
950         computing badness for negative growth; update comments to match
951         reality; better dumps.
952
953 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
954
955         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
956         type to bool and adjust comment.
957         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
958         (fold_mathfn_compare): Remove calls to global_bindings_p.
959         (fold_inf_compare): Likewise.
960         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
961         * c-tree.h (global_bindings_p): Adjust prototype.
962         * c-decl.c (global_bindings_p): Return bool and simplify.
963
964 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
965
966         PR tree-optimization/48837
967         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
968         when accumulator transformation is performed.
969
970 2011-05-06  Jan Hubicka  <jh@suse.cz>
971
972         * i386.h (ix86_tune_indices): Add
973         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
974         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
975         * i386.c (initial_ix86_tune_features): Add
976         X86_SOFTARE_PREFETCHING_BENEFICIAL.
977         (software_prefetching_beneficial_p): Remove predicate.
978         (ix86_option_override_internal): Use new macro.
979
980 2011-05-06  Jan Hubicka  <jh@suse.cz>
981
982         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
983
984 2011-05-06  Jan Hubicka  <jh@suse.cz>
985
986         * cgraph.c (cgraph_add_thunk): Create real function node instead
987         of alias node; finalize it and mark needed/reachale; arrange visibility
988         to be right and add it into the corresponding same comdat group list.
989         (dump_cgraph_node): Dump thunks.
990         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
991         cgraph_function_with_gimple_body_p,
992         cgraph_first_function_with_gimple_body,
993         cgraph_next_function_with_gimple_body): New functions.
994         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
995         New macros.
996         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
997         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
998         * cgraphunit.c (cgraph_finalize_function): Only look into possible
999         devirtualization when optimizing.
1000         (verify_cgraph_node): Verify thunks.
1001         (cgraph_analyze_function): Analyze thunks.
1002         (cgraph_mark_functions_to_output): Output thunks only in combination
1003         with function they are assigned to.
1004         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1005         alias into normal node.
1006         (assemble_thunks): New functoin.
1007         (cgraph_expand_function): Use it.
1008         * lto-cgraph.c (lto_output_node): Stream thunks.
1009         (input_overwrite_node): Stream in thunks.
1010         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1011         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1012         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1013         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1014         (inline_analyze_function): Do not care about thunk jump functions.
1015         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1016         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1017         cgraph_function_with_gimple_body_p.
1018         * passes.c (do_per_function_toporder): Use
1019         cgraph_function_with_gimple_body_p.
1020         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1021         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1022         (function_called_by_processed_nodes_p): Likewise.
1023
1024 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1025
1026         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1027         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1028         entries.
1029         (mabi=): Replace with separate entries for mabi=altivec,
1030         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1031         mabi=ieeelongdouble and mabi=ibmlongdouble.
1032         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1033         check for -mabi=spe without SPE ABI support here.
1034         (rs6000_handle_option): Replace OPT_mabi_ handling with
1035         OPT_mabi_altivec and OPT_mabi_spe handling.
1036
1037 2011-05-06  Cary Coutant  <ccoutant@google.com>
1038
1039         * dwarf2out.c (contains_subprogram_definition): New function.
1040         (should_move_die_to_comdat): Call it.
1041
1042 2011-05-06  Jeff Law  <law@redhat.com>
1043
1044         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1045         remove_ctrl_stmt_and_useless_edges.
1046         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1047         (fixup_template_block, thread_single_edge): Likewise.
1048         (mark_threaded_blocks): Use THREAD_TARGET.
1049
1050 2011-05-06  Alan Modra  <amodra@gmail.com>
1051
1052         PR target/48900
1053         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1054         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1055
1056 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1057
1058         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1059         constraint modifier to "r".
1060
1061 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1062
1063         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1064         fall through for OPT_mcmodel_.
1065
1066 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1067
1068         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1069         instruction sizes.
1070         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1071
1072 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1073
1074         PR target/47930
1075         * config/arm/arm.opt (marm): Document it.
1076         (mthumb): Reject negative variant.
1077
1078 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1079
1080         PR target/48898
1081         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1082         Fix typo in "ccvt" variable name.
1083
1084 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1085
1086         PR target/48895
1087         * config/vms/vms-ar.c (main): Remove cwd variable.
1088
1089 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1090
1091         PR debug/48902
1092         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1093
1094 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1095
1096         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1097         * gimplify.c (gimplify_switch_expr): Likewise.
1098         * omp-low.c (expand_omp_sections): Likewise.
1099         * tree-eh.c (lower_try_finally_switch): Likewise.
1100         (lower_eh_dispatch): Likewise.
1101         * tree.h (build_case_label): Declare.
1102         * tree.c (build_case_label): Define.
1103
1104 2011-05-05  Jason Merrill  <jason@redhat.com>
1105
1106         PR c++/40975
1107         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1108         (copy_statement_list): Don't recurse.
1109         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1110         STATEMENT_LIST.
1111
1112 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1113
1114         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1115         through from -mfpu= handling.
1116         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1117
1118 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1119
1120         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1121         POST_MODIFY.
1122
1123 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1124
1125         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1126         for 11.31.
1127         (hppa[12]*-*-hpux11*): Ditto.
1128         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1129         * config/ia64/hpux-unix2003.h: New.
1130         * config/pa/pa-hpux1131.opt: New.
1131         * config/pa/pa-hpux1131.h: New.
1132         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1133         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1134         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1135
1136 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1137
1138         PR debug/48853
1139         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1140         instead of mode as 3rd argument to recursive call.
1141         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1142         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1143         VOIDmode.
1144         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1145         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1146         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1147         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1148
1149 2011-05-05  Julian Brown  <julian@codesourcery.com>
1150
1151         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1152         parenthesis in D-register case.
1153
1154 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1155
1156         * opt-functions.awk (var_type_struct): Handle Enum options.
1157         * optc-gen.awk: Don't check range of variables of character type.
1158         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1159         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1160         rs6000_sdata_name, rs6000_explicit_options): Remove.
1161         (rs6000_option_override_internal): Check for -malign-power here.
1162         Use global_options_set instead of rs6000_explicit_options.
1163         (rs6000_parse_fpu_option): Remove.
1164         (rs6000_handle_option): Access variables via opts and opts_set
1165         pointers.  Use error_at and warning_at.  Add fall-through
1166         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1167         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1168         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1169         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1170         here.  Don't use rs6000_parse_fpu_option.
1171         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1172         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1173         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1174         (mrecip=): Use Var.
1175         (mspe): Use Var and Save.
1176         (mtraceback=): Use Enum and Var.
1177         (rs6000_traceback_type): New Enum and EnumValue entries.
1178         (mfloat-gprs=): Use Enum, Var and Save.
1179         (rs6000_float_gprs): New Enum and EnumValue entries.
1180         (mlong-double-): use Var and Save.
1181         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1182         (malign-): Use Enum and Var.
1183         (rs6000_alignment_flags): New Enum and EnumValue entries.
1184         (mfpu=): Use Enum.
1185         (fpu_type_t): New Enum and EnumValue entries.
1186         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1187         global_options_set instead of rs6000_explicit_options.
1188         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1189         global_options_set instead of rs6000_explicit_options.
1190         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1191         global_options_set instead of rs6000_explicit_options.
1192         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1193         global_options_set instead of rs6000_explicit_options.
1194         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1195         global_options_set instead of rs6000_explicit_options.
1196         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1197         global_options_set instead of rs6000_explicit_options.
1198         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1199         definition.
1200         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1201         global_options_set instead of rs6000_explicit_options.
1202         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1203         (rs6000_cmodel): New Enum and EnumValue entries.
1204         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1205         global_options_set instead of rs6000_explicit_options.
1206         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1207         (mtls-size=): Use Enum and Var.
1208         (rs6000_tls_size): New Enum and EnumValue entries.
1209
1210 2011-05-05  Michael Matz  <matz@suse.de>
1211
1212         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1213         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1214         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1215         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1216         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1217         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1218         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1219         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1220         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1221         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1222         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1223         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1224         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1225         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1226         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1227         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1228
1229 2011-05-05  Richard Guenther  <rguenther@suse.de>
1230
1231         * expmed.c (expand_variable_shift): Rename to ...
1232         (expand_shift_1): ... this.  Take an expanded shift amount.
1233         For rotates recurse directly not building trees for the shift amount.
1234         (expand_variable_shift): Wrap around expand_shift_1.
1235         (expand_shift): Adjust.
1236
1237 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1238
1239         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1240
1241 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1242
1243         * tree.h (get_pending_sizes): Remove prototype.
1244         (put_pending_size): Likewise.
1245         (put_pending_sizes): Likewise.
1246         * stor-layout.c (pending_sizes): Delete.
1247         (get_pending_sizes): Likewise.
1248         (put_pending_size): Likewise.
1249         (put_pending_sizes): Likewise.
1250         (variable_size): Do not call put_pending_size and tidy up.
1251         * function.h (struct function): Remove dont_save_pending_sizes_p.
1252         * lto-streamer-in.c (input_function): Do not stream it.
1253         * lto-streamer-out.c (output_function): Likewise.
1254         * tree-inline.c (initialize_cfun): Do not copy it.
1255         * c-decl.c (store_parm_decls): Do not set it.
1256         * omp-low.c (create_task_copyfn): Likewise.
1257         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1258
1259 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1262         conditions.
1263         (*movdf_internal): Ditto.
1264         (*movdf_internal_nointeger): Ditto.
1265         (*movsf_internal): Ditto.
1266
1267 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1268
1269         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1270         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1271         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1272         (c_variable_size): Remove.
1273         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1274         call put_pending_sizes.
1275         (get_parm_info): Add parameter expr.  Use it to set
1276         arg_info->pending_sizes.
1277         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1278         get_pending_sizes.
1279         * c-parser.c (c_parser_parms_declarator): Update call to
1280         c_parser_parms_list_declarator.
1281         (c_parser_parms_list_declarator): Take parameter expr.  Update
1282         call to push_parm_decl.  Update recursive call.  Don't call
1283         get_pending_sizes.  Update calls to get_parm_info.
1284         (c_parser_objc_method_definition): Update calls to
1285         c_parser_objc_method_decl and objc_start_method_definition.
1286         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1287         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1288         grokparm.
1289         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1290         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1291         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1292
1293 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1294
1295         PR pch/45979
1296         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1297         __ARM_EABI__ hosts.
1298
1299 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1300
1301         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1302         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1303         (spu_output_mi_thunk): New function.
1304
1305 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1306
1307         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1308         targetm.asm_out.print_operand.
1309         * config/sol2.c: Include target.h.
1310
1311 2011-05-04  Jan Hubicka  <jh@suse.cz>
1312
1313         * ipa-inline.c (reset_edge_caches): New function.
1314         (update_caller_keys): Add check_inlinablity_for; do not
1315         reset edge caches; remove now unnecesary loop.
1316         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1317         (update_all_callee_keys): Likewise.
1318         (inline_small_functions): Sanity check cache; update code
1319         recomputing it.
1320
1321 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1322
1323         PR rtl-optimization/47612
1324         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1325         as the last insn of the sequence to be moved.
1326
1327 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1328
1329         PR fortran/48864
1330         * doc/invoke.texi (Ofast): Document that it
1331         enables Fortran's -fno-protect-parens.
1332
1333 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1334
1335         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1336
1337 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1338
1339         * stor-layout.c (variable_size): Do not issue errors.
1340
1341 2011-05-04  Richard Guenther  <rguenther@suse.de>
1342
1343         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1344         for array-ref indices.
1345         (tree_coverage_counter_addr): Likewise.
1346         (build_fn_info_type): Use size_int for index types.
1347         (build_gcov_info): Likewise.
1348
1349 2011-05-04  Richard Guenther  <rguenther@suse.de>
1350
1351         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1352         to build_int_cst.
1353         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1354         for constructor indices.
1355         (push_init_level): Likewise.
1356
1357 2011-05-04  Richard Guenther  <rguenther@suse.de>
1358
1359         * explow.c (promote_mode): Move variable declarations before code.
1360
1361 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1362
1363         * tree.h (build_function_type_array): Declare.
1364         (build_varargs_function_type_array): Declare.
1365         (build_function_type_vec, build_varargs_function_type_vec): Define.
1366         * tree.c (build_function_type_array_1): New function.
1367         (build_function_type_array): New function.
1368         (build_varargs_function_type_array): New function.
1369
1370 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1371
1372         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1373         before setting STMT_VINFO_TYPE.
1374
1375 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1376
1377         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1378         instead of spu_pass_by_reference.
1379
1380 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1381
1382         * calls.c (emit_library_call_value_1): Invoke
1383         promote_function_mode hook on libcall arguments.
1384         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1385         argument being NULL.
1386         * targhooks.c (default_promote_function_mode): Lisewise.
1387         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1388         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1389
1390         * doc/tm.texi: Document that TYPE argument might be NULL.
1391
1392 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1393
1394         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1395
1396 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1397
1398         From Bernd Schmidt
1399         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1400
1401 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1402
1403         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1404         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1405         Move ...
1406         * mips-tfile.c: ... here.
1407         Don't include coretypes.h, tm.h, filenames.h.
1408         (saber_stop): Remove definition and all calls.
1409         [__SABER__]: Remove.
1410         (__LINE__): Remove default.
1411         (Size_t, Ptrdiff_t): Remove definitions.
1412         Replace by size_t, ptrdiff_t.
1413         [!MIPS_DEBUGGING_INFO]: Remove.
1414         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1415         (progname): Add const.
1416         (STATIC): Remove.
1417         Replace all uses by static.
1418         (ALIGN_SYMTABLE_OFFSET): Remove default.
1419         * mips-tdump.c: Don't include coretypes.h, tm.h.
1420         Remove !MIPS_IS_STAB guard.
1421         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1422         $(TM_H), filenames.h dependencies.
1423         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1424
1425 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1426
1427         From Jie Zhang
1428         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1429         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1430
1431 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1432
1433         From Bernd Schmidt
1434         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1435         account and save/restore RETS.
1436         (PROFILE_BEFORE_PROLOGUE): Define.
1437         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1438         the push insn to use predecrement.
1439
1440 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1441
1442         From Jie Zhang
1443         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1444
1445 2011-05-04  Nick Clifton  <nickc@redhat.com>
1446
1447         * config/mn10300/mn10300.c: Include cfgloop.h.
1448         (DUMP): New macro.
1449         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1450         Lcc or a FLcc insn into the instruction stream.
1451         (mn10300_block_contains_call): New function.  Returns true if the
1452         given basic block contains a CALL insn.
1453         (mn10300_loop_contains_call_insn): New function.  Returns true if
1454         the given loop contains a CALL insn.
1455         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1456         to use the SETLB and Lcc or FLcc insns.
1457         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1458         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1459         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1460         disable the SETLB optimization.
1461         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1462         __SETLB__ or __NO_SETLB__.
1463         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1464         (movsf_internal): Handle MDR register.
1465         (cmpsi): Make visible.
1466         (setlb): New pattern.
1467         (Lcc): New pattern.
1468         (FLcc): New pattern.
1469
1470 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1471
1472         PR target/48860
1473         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1474         for reg<->xmm moves.
1475         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1476         (vec_concatv2di_rex64_sse): Ditto.
1477         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1478         (*vec_extractv2di_1_rex64): Ditto.
1479
1480         Revert:
1481         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1482
1483         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1484         reg<->xmm moves.
1485         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1486
1487 2011-05-04  Richard Guenther  <rguenther@suse.de>
1488
1489         * tree.h (int_const_binop): Remove notrunc argument.
1490         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1491         create integer constants that are properly truncated.
1492         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1493         (const_binop): Remove zero notrunc argument to int_const_binop.
1494         (size_binop_loc): Likewise.
1495         (fold_div_compare): Likewise.
1496         (maybe_canonicalize_comparison_1): Likewise.
1497         (fold_comparison): Likewise.
1498         (fold_binary_loc): Likewise.
1499         (multiple_of_p): Likewise.
1500         * expr.c (store_constructor): Likewise.
1501         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1502         (maybe_fold_stmt_addition): Likewise.
1503         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1504         * stor-layout.c (layout_type): Likewise.
1505         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1506         * tree-sra.c (build_ref_for_offset): Likewise.
1507         (build_user_friendly_ref_for_offset): Likewise.
1508         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1509         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1510         * tree-ssa-loop-niter.c (inverse): Likewise.
1511         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1512         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1513         * tree-switch-conversion.c (check_range): Likewise.
1514         (build_constructors): Likewise.
1515         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1516         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1517         (extract_range_from_assert): Likewise.
1518         (vrp_int_const_binop): Likewise.
1519         (extract_range_from_binary_expr): Likewise.
1520         (extract_range_from_unary_expr): Likewise.
1521         (check_array_ref): Likewise.
1522         (find_case_label_range): Likewise.
1523         (simplify_div_or_mod_using_ranges): Likewise.
1524         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1525         comparing case labels for merging.
1526
1527 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1528
1529         * dwarf2out.c (debug_str_hash_forced): Removed.
1530         (gen_label_for_indirect_string): Removed.
1531         (get_debug_string_label): Removed.
1532         (AT_string_form): Generate label directly.
1533         (output_indirect_string): Test indirect_string_node for
1534         DW_FORM_strp instead of checking label and refcount.
1535         (prune_indirect_string): Removed.
1536         (prune_unused_types): Don't check debug_str_hash_forced or
1537         call prune_indirect_string.
1538
1539 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1540
1541         PR other/48093
1542         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1543
1544 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1545
1546         PR debug/47994
1547         PR debug/47919
1548         * combine.c (try_combine): Skip debug insns at m_split tests.
1549
1550 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1551
1552         PR42288
1553         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1554         when info_section_emitted.
1555
1556 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * config/mips/mips-opts.h: New.
1559         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1560         to mips-opts.h.
1561         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1562         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1563         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1564         via opts pointer.
1565         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1566         mips-opts.h.
1567         (mips_abi, mips_code_readable): Don't declare.
1568         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1569         (mabi=): Use Enum and Var.
1570         (mips_abi): New Enum and EnumValue entries.
1571         (mcode-readable=): Use Enum and Var.
1572         (mips_code_readable_setting): New Enum and EnumValue entries.
1573         (mr10k-cache-barrier=): Use Enum and Var.
1574         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1575
1576 2011-05-03  Jan Hubicka  <jh@suse.cz>
1577
1578         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1579         replace hash by pointer map.
1580         (cgraph_node_set_element_def, cgraph_node_set_element,
1581         const_cgraph_node_set_element, varpool_node_set_element_def,
1582         varpool_node_set_element, const_varpool_node_set_element): Remove.
1583         (free_cgraph_node_set, free_varpool_node_set): New function.
1584         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1585         * tree-emutls.c: Free varpool node set.
1586         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1587         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1588         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1589         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1590         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1591         Move here from ipa.c; implement using pointer_map
1592         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1593         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1594         debug_cgraph_node_set, varpool_node_set_new,
1595         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1596         dump_varpool_node_set, debug_varpool_node_set):
1597         Move to ipa-uitls.c.
1598         * passes.c (ipa_write_summaries): Update.
1599
1600 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1601
1602         From Mike Frysinger:
1603         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1604         bf542/bf544/bf547/bf548/bf549.
1605
1606 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1607
1608         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1609
1610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1611
1612         From Bernd Schmidt:
1613         * config/bfin/bfin.md (MOVCC): New mode_macro.
1614         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1615         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1616         comments from generated assembly.
1617
1618 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1619
1620         From Bernd Schmidt
1621         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1622         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1623         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1624         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1625         * config/bfin/lib1funcs.asm (___muldi3): New function.
1626
1627 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1628
1629         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1630         build_function_type_list instead of build_function_type.
1631         Rearrange initialization of `args' to do so.
1632
1633 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1634
1635         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1636         instead of build_function_type.
1637
1638 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1639
1640         * config/rs6000/rs6000.c (spe_init_builtins): Call
1641         build_function_type_list instead of build_function_type.
1642         (paired_init_builtins, altivec_init_builtins): Likewise.
1643         (builtin_function_type): Likewise.
1644
1645 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1646
1647         * config/sh/sh.c (sh_media_init_builtins): Call
1648         build_function_type_list instead of build_function_type.
1649
1650 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1651
1652         * config/sparc/sparc.c (sparc_file_end): Call
1653         build_function_type_list instead of build_function_type.
1654
1655 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1656
1657         * config/alpha/alpha.c (alpha_init_builtins): Call
1658         build_function_type_list instead of build_function_type.
1659
1660 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1661
1662         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1663         build_function_type_list instead of build_function_type.
1664
1665 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1666
1667         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1668         build_function_type_list instead of build_function_type.
1669         Delete `endlink' variable.
1670
1671 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1672
1673         * config/avr/avr.c (avr_init_builtins): Call
1674         build_function_type_list instead of build_function_type.
1675
1676 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1677
1678         * config/picochip/picochip.c (picochip_init_builtins): Call
1679         build_function_type_list instead of build_function_type.
1680         Delete `endlink' variable.
1681
1682 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1683
1684         * config/bfin/bfin.c (bfin_init_builtins): Call
1685         build_function_type_list instead of build_function_type.
1686
1687 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1688
1689         From Bernd Schmidt
1690         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1691         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1692
1693 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1694
1695         From Jie Zhang:
1696         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1697         libbffastfp overrides libgcc when -mfast-fp.
1698
1699 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1700
1701         Originally from Bernd Schmidt
1702         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1703         * config/bfin/bfin.c (override_options): Test it and error if
1704         TARGET_FDPIC.
1705
1706 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1707
1708         Originally From Bernd Schmidt
1709         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1710         FD-PIC.
1711
1712 2011-05-03  Jeff Law  <law@redhat.com>
1713
1714         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1715         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1716         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1717         than accessing AUX field directly.  Free the AUX field before
1718         clearing it.
1719         (thread_block, thread_through_loop_header): Likewise.
1720         (thread_single_edge, mark_threaded_blocks): Likewise.
1721         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1722         (register_jump_thread): Do not attempt to thread to a NULL edge.
1723
1724 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1725
1726         * function.c (init_function_start): Call decide_function_section.
1727         * varasm.c (decide_function_section): New function.
1728         (assemble_start_function): When not using
1729         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1730         or first_function_block_is_cold.
1731         * rtl.h (decide_function_section): Declare.
1732
1733 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1734             Jakub Jelinek  <jakub@redhat.com>
1735
1736         PR target/48774
1737         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1738         only succeed if req_mode is the same as set_mode.
1739
1740 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1741
1742         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1743         * genemit.c (gen_exp): Handle RETURN.
1744         * emit-rtl.c (verify_rtx_sharing): Likewise.
1745         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1746         * rtl.c (copy_rtx): RETURN is shared.
1747         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1748         (ret_rtx): New.
1749         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1750         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1751         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1752         * config/cris/cris.c (cris_expand_return): Likewise.
1753         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1754         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1755         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1756         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1757         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1758         Likewise.
1759         * config/v850/v850.c (expand_epilogue): Likewise.
1760         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1761         * config/arm/arm.md (epilogue): Likewise.
1762         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1763         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1764         variable to ret_reg.
1765
1766 2011-05-03  Richard Guenther  <rguenther@suse.de>
1767
1768         PR lto/48846
1769         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1770         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1771         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1772
1773 2011-05-03  Richard Guenther  <rguenther@suse.de>
1774
1775         * c-decl.c (grokdeclarator): Instead of looking at
1776         TREE_OVERFLOW check if the constant fits in the index type.
1777
1778 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1779
1780         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1781         (vec_store_lanes<mode><mode>): Likewise.
1782
1783 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1784
1785         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1786         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1787         convert_optab_index values.
1788         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1789         * genopinit.c (optabs): Initialize the new optabs.
1790         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1791         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1792         (expand_STORE_LANES): New functions.
1793         * tree.h (build_array_type_nelts): Declare.
1794         * tree.c (build_array_type_nelts): New function.
1795         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1796         (vect_model_load_cost): Likewise.
1797         (vect_store_lanes_supported, vect_load_lanes_supported)
1798         (vect_record_strided_load_vectors): Declare.
1799         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1800         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1801         (vect_transform_strided_load): Split out statement recording into...
1802         (vect_record_strided_load_vectors): ...this new function.
1803         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1804         (write_vector_array, create_array_ref): New functions.
1805         (vect_model_store_cost): Add store_lanes_p argument.
1806         (vect_model_load_cost): Add load_lanes_p argument.
1807         (vectorizable_store): Try to use store-lanes functions for
1808         interleaved stores.
1809         (vectorizable_load): Likewise load-lanes and loads.
1810         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1811         to vect_model_store_cost.
1812         (vect_build_slp_tree): Likewise vect_model_load_cost.
1813
1814 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1815
1816         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1817         * hooks.c (hook_bool_mode_uhwi_false): New function.
1818         * target.def (array_mode_supported_p): New hook.
1819         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1820         * doc/tm.texi: Regenerate.
1821         * stor-layout.c (mode_for_array): New function.
1822         (layout_type): Use it.
1823         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1824         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1825
1826 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1827
1828         PR target/48723
1829         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1830         for -fstack-check if the size to allocate is negative.
1831
1832 2011-05-02  Lawrence Crowl  <crowl@google.com>
1833
1834         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1835         (timevar_cond_start): New for starting a timer only when it is not
1836         already running.
1837         (timevar_cond_stop): New for stopping a timer when it was not already
1838         running.
1839
1840         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1841         (timevar_cond_start): New as above.
1842         (timevar_cond_stop): New as above.
1843
1844         * timevar.def: Add start/stop timers for compiler phases,
1845         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1846         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1847         and TV_PHASE_FINALIZE.
1848         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1849         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1850         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1851         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1852         Make unused TV_OVERLOAD into a start/stop timer.
1853
1854         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1855         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1856         to indicate that they are start/stop timers.
1857
1858         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1859         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1860         Move initialization to do_compile.
1861         (do_compile): Add initialization from above.
1862         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1863
1864         * c-decl.c (c_write_global_declarations): Add start/stop of
1865         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1866
1867         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1868         or TV_PARSE_INLINE, as appropriate.
1869         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1870         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1871
1872 2011-05-02  Jason Merrill  <jason@redhat.com>
1873
1874         PR c++/40975
1875         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1876
1877 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1878
1879         PR c/35445
1880         * c-decl.c (finish_decl): Only create a composite if the types are
1881         compatible.
1882
1883 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1884
1885         * config/fr30/fr30-protos.h (Mmode): Don't define.
1886         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1887         definition where used.
1888         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1889         define.  Expand definitions where used.
1890         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1891         Expand definitions where used.
1892         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1893         rx_function_arg, rx_function_arg_advance,
1894         rx_function_arg_boundary): Expand definitions of those macros.
1895         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1896         definition where used.
1897
1898 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1899
1900         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1901         reg<->xmm moves.
1902         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1903         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1904         with *movv2sf_internal_rex64_avx.
1905         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1906         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1907         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1908         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1909         "vex" in "prefix" attribute calculation.
1910         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1911
1912 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1913
1914         PR target/47951
1915         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1916         inputs match the output.
1917
1918 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1919
1920         PR target/47955
1921         * config/m68k/m68k.c (m68k_expand_prologue): Set
1922         current_function_static_stack_size.
1923
1924 2011-05-02   Jan Hubicka  <jh@suse.cz>
1925
1926         * lto-streamer.c (lto_streamer_cache_insert_1,
1927         lto_streamer_cache_lookup, lto_streamer_cache_create,
1928         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1929         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1930
1931 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1932
1933         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1934         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1935         config/m68k/t-opts: New files.
1936         * config/m68k/m68k-tables.opt: New file (generated).
1937         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1938         extra_options and m68k/t-opts to tmake_file.
1939         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1940         (all_isas): Initialize using m68k-isas.def.
1941         (all_microarchs): Initialize using m68k-microarchs.def.
1942         (m68k_find_selection): Remove.
1943         (m68k_handle_option): Don't assert that global structures are in
1944         use.  Use error_at.  Access variables via opts pointer.  Don't
1945         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1946         directly for -m68020-40 and -m68020-60.
1947         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1948         m68k_tune_entry here.
1949         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1950         to m68k-opts.h.
1951         (m68k_library_id_string): Remove declaration.
1952         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1953         (m68k_library_id_string): New Variable.
1954         (march=, mcpu=, mtune=): Use Enum and Var.
1955
1956 2011-05-02  Richard Guenther  <rguenther@suse.de>
1957
1958         * varasm.c (output_constructor_regular_field): Compute zero-based
1959         index with double-ints.  Make sure to ICE instead of producing
1960         wrong code.
1961         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1962         in asserts.  Properly use a signed type.
1963
1964 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1965
1966         * config/i386/sse.md (V): New mode iterator.
1967         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1968         TARGET_SSE2.
1969         (V_256): Rename from AVX256MODE.
1970         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1971         condition to all users.
1972         (VF1): Ditto.
1973         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1974         condition to all users.
1975         (VF_128): Make V4SF mode unconditional.
1976         (VF_256): Rename from AVX256MODEF2P.
1977         (VI4F_128): Rename from SSEMODE4S.
1978         (VI8F_128): Rename from SSEMODE2D.
1979         (VI4F_256): Rename from AVX256MODE8P.
1980         (VI8F_256): Rename from AVX256MODE4P.
1981         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1982         (ssescalarmodesuffix): Remove SF and DF modes.
1983         (SSEMODE124): Remove.
1984         (SSEMODE1248): Ditto.
1985         (SSEMODEF2P): Ditto.
1986         (AVXMODEF2P): Ditto.
1987         (AVXMODEFDP): Ditto.
1988         (AVXMODEFSP): Ditto.
1989         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1990         unconditional.
1991         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1992         unconditional.
1993         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1994         xop_pcmov_<mode>256.  Use V mode iterator.
1995
1996         Adjust RTX patterns globally for renamed mode attributes.
1997
1998 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1999
2000         * haifa-sched.c (sched_emit_insn): Emit insn before first
2001         non-scheduled insn.  Inform back-end about new insn.  Add
2002         new insn to scheduled_insns list.
2003
2004 2011-05-02  Richard Guenther  <rguenther@suse.de>
2005
2006         PR tree-optimization/48822
2007         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2008         (process_scc): Indicate which iteration we start.
2009
2010 2011-05-02  Jan Hubicka  <jh@suse.cz>
2011
2012         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2013         (lto_section_overrun): New.
2014         * lto-section-out.c (append_block): Rename to ...
2015         (lto_append_block): ... this one; export.
2016         (lto_output_1_stream): Move lto lto-streamer.h
2017         (lto_output_data_stream): Update.
2018         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2019         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2020         functions.
2021
2022 2011-05-02  Richard Guenther  <rguenther@suse.de>
2023
2024         * tree.c (tree_code_counts): New global array.
2025         (record_node_allocation_statistics): Count individual tree codes.
2026         (dump_tree_statistics): Dump individual code stats.
2027
2028 2011-05-01  Jan Hubicka  <jh@suse.cz>
2029
2030         * ipa-inline.c (caller_growth_limits): Fix thinko when
2031         looking for largest stack frame.
2032         * ipa-inline.h (dump_inline_summary): Declare.
2033         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2034         on stack usage.
2035         (dump_inline_summary): Export.
2036         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2037
2038 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2039
2040         * reginfo.c (memory_move_cost): Change rclass argument type form
2041         'enum reg_class' to reg_class_t.
2042         * reload.h (memory_move_cost): Update prototype.
2043         * postreload.c reload_cse_simplify_set): Change type dclass var to
2044         reg_class_t.
2045         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2046         Update prototype.
2047         (ira_allocate_and_set_costs): Change aclass argument type form
2048         'enum reg_class' to reg_class_t.
2049         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2050         Change aclass argument type to reg_class_t.
2051         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2052         to reg_class_t.
2053         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2054         memory_move_cost call.
2055
2056         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2057         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2058         Change type tmp var to reg_class_t.
2059
2060 2011-04-30  Jan Hubicka  <jh@suse.cz>
2061
2062         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2063         inlining into function with flatten attribute.
2064         (want_inline_small_function_p): Be more realistic about inlining
2065         cold calls where callee size grows.
2066
2067 2011-04-30  Jan Hubicka  <jh@suse.cz>
2068
2069         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2070         flags.
2071
2072 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2073
2074         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2075         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2076         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2077         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2078         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2079         (print_operand): Rename to...
2080         (sparc_print_operand): ...this. Make static. Adjust
2081         sparc_print_operand function call.
2082         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2083         functions.
2084
2085 2011-04-30  Jan Hubicka  <jh@suse.cz>
2086
2087         PR middle-end/48752
2088         * ipa-inline.c (early_inliner): Disable when doing late
2089         addition of function.
2090
2091 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2092
2093         * dwarf2out.c (get_address_mode): New inline.
2094         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2095         if not dwarf_strict emit
2096         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2097         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2098         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2099         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2100         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2101         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2102         mem_loc_descriptor callers.
2103         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2104         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2105         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2106         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2107         (base_types): New variable.
2108         (get_base_type_offset, calc_base_type_die_sizes,
2109         base_type_for_mode, mark_base_types, base_type_cmp,
2110         move_marked_base_types): New functions.
2111         (calc_die_sizes): Assert that die_offset is 0 or equal to
2112         next_die_offset.
2113         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2114         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2115         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2116         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2117         (gen_subprogram_die): Don't give up on call site parameters
2118         with non-integral or large integral modes.  Adjust
2119         mem_loc_descriptor callers.
2120         (prune_unused_types): Call prune_unused_types_mark on base_types
2121         vector entries.
2122         (resolve_addr): Call mark_base_types.
2123         (dwarf2out_finish): Call move_marked_base_types.
2124
2125         PR tree-optimization/48809
2126         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2127         type.
2128         (gen_inbound_check): Don't compute index_expr - range_min in utype
2129         again, instead reuse SSA_NAME initialized in build_arrays.
2130         Remove two useless gsi_for_stmt calls.
2131
2132 2011-04-29  Jeff Law  <law@redhat.com>
2133
2134         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2135
2136 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2137
2138         * cgraph.h (cgraph_postorder): Remove declaration.
2139         * ipa-utils.h (ipa_free_postorder_info): Declare.
2140         (ipa_reverse_postorder): Likewise.
2141         * cgraphunit.c: Include ipa-utils.h.
2142         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2143         * ipa-inline.c: Include ipa-utils.h.
2144         (ipa_inline): Update call to ipa_reverse_postorder.
2145         * ipa-pure-const.c (propagate_pure_const): Update call to
2146         ipa_reduced_postorder and ipa_print_order.  Call
2147         ipa_free_postorder_info to clean up.
2148         (propagate_nothrow): Likewise.
2149         * ipa-reference.c (propagate): Removed a useless call to
2150         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2151         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2152         * ipa.c: Include ipa-utils.h.
2153         (ipa_profile): Update call to ipa_reverse_postorder.
2154         (cgraph_postorder): Moved to...
2155         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2156         (ipa_utils_print_order): Renamed to ipa_print_order.
2157         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2158         comments.
2159         (ipa_free_postorder_info): New function.
2160         * passes.c: Include ipa-utils.h.
2161         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2162         (ipa_write_summaries): Likewise.
2163         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2164         (cgraphunit.o): Likewise.
2165         (ipa.o): Likewise.
2166         (ipa-inline.o): Likewise.
2167
2168 2011-04-29  Jan Hubicka  <jh@suse.cz>
2169
2170         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2171         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2172         * ipa-inline.h (clause_t): Turn into unsigned int.
2173         * ipa-inline-analysis.c (add_clause): Do more simplification.
2174         (and_predicates): Shortcut more cases.
2175         (predicates_equal_p): Move forward; check that clauses are properly
2176         ordered.
2177         (or_predicates): Shortcut more cases.
2178         (edge_execution_predicate): Rewrite as...
2179         (set_cond_stmt_execution_predicate): ... this function; handle
2180         __builtin_constant_p.
2181         (set_switch_stmt_execution_predicate): New .
2182         (compute_bb_predicates): New.
2183         (will_be_nonconstant_predicate): Update TODO.
2184         (estimate_function_body_sizes): Use compute_bb_predicates
2185         and free them later, always try to estimate if stmt is constant.
2186         (estimate_time_after_inlining, estimate_size_after_inlining):
2187         Gracefully handle optimized out edges.
2188         (read_predicate): Fix off by one error.
2189
2190 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2191
2192         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2193
2194 2011-04-27  Xinliang David Li  <davidxl@google.com>
2195
2196         * tree-profile.c (init_ic_make_global_vars): Set
2197         tls attribute on ic vars.
2198         * coverage.c (coverage_end_function): Initialize
2199         function_list with zero.
2200
2201 2011-04-29  Richard Guenther  <rguenther@suse.de>
2202
2203         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2204         for the type of the result.
2205         (fold_builtin_isascii): Likewise.
2206         (fold_builtin_toascii): Use integer_type_node where appropriate.
2207         (fold_builtin_logb): Likewise.
2208         (fold_builtin_frexp): Likewise.
2209         (fold_builtin_strstr): Likewise.
2210         (fold_builtin_strpbrk): Likewise.
2211         (fold_builtin_fputs): Likewise.
2212         (fold_builtin_sprintf): Likewise.
2213         (fold_builtin_snprintf): Likewise.
2214         (fold_builtin_printf): Likewise.
2215         (do_mpfr_remquo): Use a proper type for the assigned constant.
2216         (do_mpfr_lgamma_r): Likewise.
2217         * dwarf2out.c (resolve_one_addr): Use size_int.
2218         * except.c (init_eh): Likewise.
2219         (assign_filter_values): Use integer_type_node for filter values.
2220         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2221         indices.
2222         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2223         for EH region numbers.
2224         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2225         for the shift amount.
2226
2227 2011-04-29  Richard Guenther  <rguenther@suse.de>
2228
2229         * expr.h (expand_shift): Rename to ...
2230         (expand_variable_shift): ... this.
2231         (expand_shift): Take a constant shift amount.
2232         * expmed.c (expand_shift): Rename to ...
2233         (expand_variable_shift): ... this.
2234         (expand_shift): New wrapper around expand_variable_shift.
2235         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2236         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2237         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2238         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2239         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2240         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2241         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2242         emit_store_flag_1, emit_store_flag): Likewise.
2243         * builtins.c (expand_builtin_signbit): Likewise.
2244         * calls.c (load_register_parameters): Likewise.
2245         * function.c (assign_parm_setup_block): Likewise.
2246         * lower-subreg.c (resolve_shift_zext): Likewise.
2247         * optabs.c (widen_bswap, expand_abs_nojump,
2248         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2249         * spu/spu.c (spu_expand_extv): Likewise.
2250         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2251
2252 2011-04-29  Richard Guenther  <rguenther@suse.de>
2253
2254         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2255         for the remapped region number.
2256         * predict.c (build_predict_expr): Use integer_type_node for the
2257         predict kind.
2258         * fold-const.c (fold_binary_loc): Use integer_type_node for
2259         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2260
2261 2011-04-29  Michael Matz  <matz@suse.de>
2262
2263         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2264         other trees that just builtins.
2265         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2266
2267 2011-04-29  Richard Guenther  <rguenther@suse.de>
2268
2269         * tree-nested.c (get_trampoline_type): Use size_int.
2270         (get_nl_goto_field): Likewise.
2271         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2272         for all indexes.
2273         (lower_eh_constructs_2): Likewise.
2274         (lower_resx): Likewise.
2275         (lower_eh_dispatch): Likewise.
2276         * tree-mudflap.c (mf_build_string): Use size_int.
2277         (mudflap_register_call): Use integer_type_node for the flag.
2278         (mudflap_enqueue_constant): Use size_int.
2279         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2280         instead of rebuilding it.
2281
2282 2011-04-29  Richard Guenther  <rguenther@suse.de>
2283
2284         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2285         Handle OBJ_TYPE_REF.
2286         (find_func_aliases_for_call): Use it more consistently.
2287
2288 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2289
2290         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2291         (rank_for_schedule): Use it.
2292         (schedule_block): Set it.
2293
2294 2011-04-28  David Li  <davidxl@google.com>
2295
2296         * tree.c (crc32_string): Use crc32_byte.
2297         (crc32_byte): New function.
2298         * tree.h (crc32_byte): New function.
2299         * gcov.c (read_graph_file): Handle new cfg_cksum.
2300         (read_count_file): Ditto.
2301         * profile.c (instrument_values): Ditto.
2302         (get_exec_counts): Ditto.
2303         (read_profile_edge_counts): Ditto.
2304         (compute_branch_probabilities): Ditto.
2305         (compute_value_histograms): Ditto.
2306         (branch_prob): Ditto.
2307         (end_branch_prob): Ditto.
2308         * coverage.c (read_counts_file): Ditto.
2309         (get_coverage_counts): Ditto.
2310         (tree_coverage_counter_addr): Ditto.
2311         (coverage_checksum_string): Ditto.
2312         (coverage_begin_output): Ditto.
2313         (coverage_end_function): Ditto.
2314         (build_fn_info_type): Ditto.
2315         (build_fn_info_value): Ditto.
2316         * libgcov.c (gcov_exit): Ditto.
2317         * gcov-dump.c (tag_function): Ditto.
2318         (compute_checksum): Remove.
2319
2320 2011-04-29  Alan Modra  <amodra@gmail.com>
2321
2322         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2323         unspec plus offset.  Tidy macho code.
2324
2325 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2326
2327         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2328         node instead of a decl.  Update all callers.
2329         * cgraph.h: Update declaration.
2330
2331 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2332
2333         PR tree-optimization/48765
2334         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2335         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2336         to indicate if loop aware SLP is being used.  Scan the statements
2337         and update the vectorization factor according to the type of
2338         vectorization before statement analysis.
2339         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2340         pass it to vect_analyze_loop_operations.
2341         (vectorizable_reduction): Set number of copies to 1 in case of pure
2342         SLP statement.
2343         * tree-vect-stmts.c (vectorizable_conversion,
2344         vectorizable_assignment, vectorizable_shift,
2345         vectorizable_operation, vectorizable_type_demotion,
2346         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2347         Likewise.
2348         (vectorizable_condition): Move the check that it is not SLP
2349         vectorization before the number of copies check.
2350         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2351         to vectorize the loop using SLP.
2352
2353 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2354
2355         PR middle-end/48597
2356         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2357         inline asm.
2358
2359 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2360
2361         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2362         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2363         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2364         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2365         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2366         linux*.h headers.
2367         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2368         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2369         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2370         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2371         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2372         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2373         REG_NAME.
2374         * config/i386/linux.h (REG_NAME): Don't define.
2375         * config/i386/linux64.h (REG_NAME): Don't define.
2376         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2377         Undefine before defining.
2378
2379 2011-04-28  Jan Hubicka  <jh@suse.cz>
2380
2381         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2382         nonconstant_names array.
2383         (estimate_function_body_sizes): Build nonconstant_names array; handle
2384         BUILT_IN_CONSTANT_P.
2385
2386 2011-04-28  Richard Guenther  <rguenther@suse.de>
2387
2388         PR bootstrap/48804
2389         Revert
2390         2011-04-28  Richard Guenther  <rguenther@suse.de>
2391
2392         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2393         as late as possible.
2394
2395 2011-04-28  Richard Guenther  <rguenther@suse.de>
2396
2397         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2398         (debug_constraint): Do it here.
2399         (dump_constraints): And here.
2400         (rewrite_constraints): And here.
2401         (dump_constraint_edge): Remove.
2402         (dump_constraint_graph): Rewrite to produce DOT output.
2403         (solve_constraints): Build succ graph as late as possible.
2404         Dump constraint graphs before and after solving.
2405
2406 2011-04-28  Richard Guenther  <rguenther@suse.de>
2407
2408         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2409         New function split out from ...
2410         (find_func_aliases): ... here.  Call it.
2411         (find_func_aliases_for_call): Likewise.
2412
2413 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2414
2415         * internal-fn.h (internal_fn_name_array): Declare.
2416         (internal_fn_flags_array): Likewise.
2417
2418 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2419
2420         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2421         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2422         Move from sse.md.
2423         (ssemodefsuffix): Remove.
2424         (ssevecmodesuffix): New mode attribute.
2425         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2426         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2427         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2428         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2429         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2430         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2431         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2432         ssemodesuffix mode attribute.
2433         (float splitters): Use ssevecmodesuffix mode attribute.
2434         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2435         (sseinsmode): Rename from avxvecmode.
2436         (avxsizesuffix): Rename from avxmodesuffix.
2437         (sseintvecmode): Rename from avxpermvecmode.
2438         (ssedoublevecmode): Rename from ssedoublesizemode.
2439         (ssehalfvecmode): Rename from avxhalfvecmode.
2440         (ssescalarmode): Rename from avxscalarmode.
2441         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2442         templates for ssemodesuffix mode attribute.
2443         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2444         mode attribute.
2445
2446         Adjust RTX patterns globally for renamed mode attributes.
2447
2448 2011-04-27  Jan Hubcika  <jh@suse.cz>
2449
2450         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2451         * ipa-inline-analysis.c: Include alloc-pool.h.
2452         (edge_predicate_pool): New.
2453         (trye_predicate_p): New function
2454         (false_predicate_p): New function.
2455         (add_clause): Sanity check that false clauses are "optimized";
2456         never add clauses to predicate that is already known to be false.
2457         (and_predicate): Use flase_predicate_p.
2458         (evaulate_predicate): Rename to ...
2459         (evaluate_predicate): ... this one; update all callers; assert
2460         that false is not listed among possible truths.
2461         (dump_predicate): Use true_predicate_p.
2462         (account_size_time): Use false_predicate_p.
2463         (evaulate_conditions_for_edge): Rename to ...
2464         (evaluate_conditions_for_edge) ... this one.
2465         (edge_set_predicate): New function.
2466         (inline_edge_duplication_hook): Duplicate edge predicates.
2467         (inline_edge_removal_hook): Free edge predicates.
2468         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2469         (dump_inline_summary): Update.
2470         (estimate_function_body_sizes): Set edge predicates.
2471         (estimate_calls_size_and_time): Handle predicates.
2472         (estimate_callee_size_and_time): Update.
2473         (remap_predicate): Add toplev_predicate; update comment.
2474         (remap_edge_predicates): New function.
2475         (inline_merge_summary): Compute toplev predicate; update.
2476         (read_predicate): New function.
2477         (read_inline_edge_summary): Use it.
2478         (inline_read_section): Likewise.
2479         (write_predicate): New function.
2480         (write_inline_edge_summary): Use it.
2481         (inline_write_summary): Likewise.
2482         (inline_free_summary): Free alloc pool and edge summary vec.
2483
2484 2011-04-27  Richard Guenther  <rguenther@suse.de>
2485
2486         * tree-ssa-structalias.c (changed_count): Remove.
2487         (changed): Use a bitmap.
2488         (unify_nodes): Adjust.
2489         (do_sd_constraint): Likewise.
2490         (do_ds_constraint): Likewise.
2491         (do_complex_constraint): Likewise.
2492         (solve_graph): Likewise.
2493
2494 2011-04-27  Jan Hubicka  <jh@suse.cz>
2495
2496         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2497
2498 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2499
2500         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2501         (avx_vperm2f128_*_operand): Ditto.
2502         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2503         Use avx_vpermilp_parallel in insn condition.
2504         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2505         Use avx_vperm2f128_parallel in insn condition.
2506
2507 2011-04-27  Richard Guenther  <rguenther@suse.de>
2508
2509         * Makefile.in (tree-ssa-structalias.o): Remove
2510         gt-tree-ssa-structalias.h dependency.
2511         (GTFILES): Remove tree-ssa-structalias.c.
2512         * tree.c (allocate_decl_uid): New function.
2513         (make_node_stat): Use it.
2514         (copy_node_stat): Likewise.
2515         * tree.h (allocate_decl_uid): Declare.
2516         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2517         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2518         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2519         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2520         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2521         (struct heapvar_map): Likewise.
2522         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2523         heapvar_insert): Likewise.
2524         (make_heapvar_for): Rename to ...
2525         (make_heapvar): ... this.  Simplify.
2526         (fake_var_decl_obstack): New global var.
2527         (build_fake_var_decl): New function.
2528         (make_constraint_from_heapvar): Adjust.
2529         (handle_lhs_call): Likewise.
2530         (create_function_info_for): Likewise.
2531         (intra_create_variable_infos): Likewise.
2532         (init_alias_vars): Allocate fake_var_decl_obstack.
2533         (init_alias_heapvars, delete_alias_heapvars): Remove.
2534         (compute_points_to_sets): Do not call init_alias_heapvars.
2535         (ipa_pta_execute): Likewise.
2536         (delete_points_to_sets): Free fake_var_decl_obstack.
2537
2538 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2539
2540         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2541         (si_from_UTItype, si_to_UTItype): New functions.
2542         (__udivmodti4): Use them to implement type-punning.
2543         * config/spu/multi3.c (union qword_TItype): New data type.
2544         (si_from_TItype, si_to_TItype): New functions.
2545         (__multi3): Use them to implement type-punning.
2546
2547 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2548
2549         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2550
2551 2011-04-27  Jan Hubicka  <jh@suse.cz>
2552
2553         * ipa-prop.c (function_insertion_hook_holder): New holder.
2554         (ipa_add_new_function): New function.
2555         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2556         Register/deregister holder.
2557
2558 2011-04-27  Richard Guenther  <rguenther@suse.de>
2559
2560         PR tree-optimization/48772
2561         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2562
2563 2011-04-27  Richard Guenther  <rguenther@suse.de>
2564
2565         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2566         TARGET_MEM_REF handling.
2567
2568 2011-04-27  Nick Clifton  <nickc@redhat.com>
2569
2570         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2571         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2572         (REG_CLASS_NAMES): Likewise.
2573         (REG_CLASS_CONTENTS): Likewise.
2574         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2575         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2576         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2577         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2578         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2579         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2580         duplicate register classes.
2581         (frv_class_likely_spilled_p): Likewise.
2582         (frv_register_move_cost): Likewise.
2583
2584         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2585         end of the regno_reg_class array.
2586
2587 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2588
2589         PR c/48742
2590         * c-typeck.c (build_binary_op): Don't wrap arguments if
2591         int_operands is true.
2592
2593 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2594
2595         PR target/48767
2596         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2597         targetm.calls.must_pass_in_stack for void type.
2598
2599 2011-04-26  Jan Hubicka  <jh@suse.cz>
2600
2601         * cgraphbuild.c (build_cgraph_edges): Update call
2602         of cgraph_create_edge and cgraph_create_indirect_edge.
2603         * cgraph.c (cgraph_create_edge_including_clones,
2604         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2605         cgraph_update_edges_for_call_stmt_node): Do not take nest
2606         argument; do not initialize call_stmt_size/time.
2607         (dump_cgraph_node): Do not dump nest.
2608         (cgraph_clone_edge): Do not take loop_nest argument;
2609         do not propagate it; do not clone call_stmt_size/time.
2610         (cgraph_clone_node): Likewise.
2611         (cgraph_create_virtual_clone): Update.
2612         * cgraph.h (struct cgraph_edge): Remove
2613         call_stmt_size/call_stmt_time/loop_nest.
2614         (cgraph_create_edge, cgraph_create_indirect_edge,
2615         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2616         prototype.
2617         * tree-emutls.c (gen_emutls_addr): Update.
2618         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2619         loop_nest; handle indirect calls, too.
2620         (clone_inlined_nodes): Do not care about updating inline summaries.
2621         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2622         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2623         stream call_stmt_size/call_stmt_time/loop_nest.
2624         * ipa-inline.c (edge_badness): Update.
2625         (ipa_inline): dump summaries after inlining.
2626         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2627         New.
2628         (inline_edge_summary): New function.
2629         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2630         (inline_edge_removal_hook): Handle edge summaries.
2631         (inline_edge_duplication_hook): New hook.
2632         (inline_summary_alloc): Alloc hooks.
2633         (initialize_growth_caches): Do not register removal hooks.
2634         (free_growth_caches); Do not free removal hook.
2635         (dump_inline_edge_summary): New function.
2636         (dump_inline_summary): Use it.
2637         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2638         (inline_update_callee_summaries): New function.
2639         (inline_merge_summary): Use it.
2640         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2641         (read_inline_edge_summary): New function.
2642         (inline_read_section): Use it.
2643         (write_inline_edge_summary): New function.
2644         (inline_write_summary): Use it.
2645         (inline_free_summary): Free edge new holders.
2646         * tree-inline.c (copy_bb): Update.
2647
2648 2011-04-26  Jason Merrill  <jason@redhat.com>
2649
2650         * tree-eh.c (lower_try_finally_switch): Create the label along with
2651         the CASE_LABEL_EXPR.
2652
2653 2011-04-26  David S. Miller  <davem@davemloft.net>
2654             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2655
2656         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2657         * configure: Regenerate.
2658
2659 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2660
2661         PR target/48258
2662         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2663         reduction.
2664         (VEC_reduc): New code iterator and splitters for vector reduction.
2665         (VEC_reduc_name): Ditto.
2666         (VEC_reduc_rtx): Ditto.
2667         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2668         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2669
2670         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2671         support for extracting SF on VSX.
2672
2673         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2674         generating xscvspdp.
2675         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2676         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2677         double add, minimum, maximum vector reduction.
2678         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2679         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2680         optimize double vector reduction.
2681         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2682
2683 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2684
2685         * config/fr30/fr30.h (inhibit_libc): Don't define.
2686         * config/m32r/m32r-protos.h: Correct comment.
2687         * config/v850/v850.h (GHS_default_section_names,
2688         GHS_current_section_names): Use tree, not union tree_node *.
2689
2690 2011-04-26  Xinliang David Li  <davidxl@google.com>
2691
2692         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2693         * c-family/c-opts.c (c_common_handle_option): Set
2694         warn_maybe_uninitialized.
2695         * opts.c (common_handle_option): Ditto.
2696         * common.opt:  New option.
2697         * tree-ssa.c (warn_uninit): Add one more parameter.
2698         (warn_uninitialized_var): Pass warning code.
2699         * tree-flow.h: Interface change.
2700
2701
2702 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2703
2704         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2705         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2706         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2707
2708 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2709
2710         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2711         * config/mips/mips.opt (mmips-tfile): Remove.
2712
2713         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2714         mips-tdump reference to ...
2715         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2716         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2717         reference by Tru64 UNIX.
2718
2719 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2720
2721         PR debug/48768
2722         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2723         is error_mark_node, set value to NULL.
2724
2725         PR tree-optimization/48734
2726         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2727         if return value from maybe_fold_*_comparsions isn't something
2728         the code is prepared to handle.
2729
2730 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2731
2732         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2733         mode check.
2734         (ext_QIreg_nomode_operands): Remove.
2735         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2736         (*andsi_1): Ditto.
2737         (*andhi_1): Ditto.
2738
2739 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2740
2741         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2742
2743 2011-04-26  Richard Guenther  <rguenther@suse.de>
2744
2745         * c-typeck.c (build_unary_op): Do not expand array-refs via
2746         pointer arithmetic.  Only adjust qualifiers for function types.
2747
2748 2011-04-26  Richard Guenther  <rguenther@suse.de>
2749
2750         PR middle-end/48694
2751         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2752         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2753         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2754         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2755
2756 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2757
2758         * doc/extend.texi: Document __underlying_type.
2759
2760 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2761
2762         * config/rs6000/titan.md (automata_option "progress"): Remove.
2763
2764 2011-04-25  Jeff Law  <law@redhat.com>
2765
2766         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2767
2768 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2769
2770         * system.h (ENUM_BITFIELD): Remove.
2771
2772 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2773             Eric Botcazou  <ebotcazou@adacore.com>
2774
2775         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2776         for STORE_FLAG_VALUE==-1 case.
2777
2778 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2779
2780         PR target/43804
2781         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2782         LEGITIMATE_PIC_OPERAND_P.
2783
2784 2011-04-24  Jan Hubicka  <jh@suse.cz>
2785
2786         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2787         WPA hack.
2788         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2789         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2790         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2791         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2792         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2793         Sanity check predicate length.
2794         (remap_predicate): Likewise; sanity check jump functions.
2795         (inline_read_section, inline_write_summary): Sanity check
2796         predicate length.
2797
2798 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2799
2800         PR other/48748
2801         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2802         __is_literal_type, and __is_trivial; update throughout about
2803         possibly cv-qualified void types.
2804
2805 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2806
2807         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2808         testsuite and make it version agnostic.
2809
2810 2011-04-22  Jan Hubicka  <jh@suse.cz>
2811
2812         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2813
2814 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2815
2816         PR c/48685
2817         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2818         to VOID_TYPE even around MODIFY_EXPR.
2819
2820 2011-04-22  Mike Stump  <mikestump@comcast.net>
2821
2822         * gensupport.c (read_md_rtx): Fix typo in comment.
2823         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2824         comment.
2825
2826 2011-04-22  Jan Hubicka  <jh@suse.cz>
2827
2828         * gengtype.c (open_base_files): Add ipa-inline.h include.
2829         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2830         ipa-prop.c; update all uses.
2831         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2832         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2833         merge summary of inlined function into former caller.
2834         * ipa-inline.c (max_benefit): Remove.
2835         (edge_badness): Compensate for removal of benefits.
2836         (update_caller_keys): Use
2837         reset_node_growth_cache/reset_edge_growth_cache.
2838         (update_callee_keys): Likewise.
2839         (update_all_callee_keys): Likewise.
2840         (inline_small_functions): Do not collect max_benefit; do not reset
2841         estimated_growth; call free_growth_caches and initialize_growth_caches.
2842         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2843         struct size_time_entry): New structures.
2844         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2845         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2846         and estimated_growth.
2847         (edge_growth_cache_entry): New structure.
2848         (node_growth_cache, edge_growth_cache): New global vars.
2849         (estimate_growth): Turn into inline.
2850         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2851         initialize_growth_caches, free_growth_caches): Declare.
2852         (estimate_edge_growth): Rewrite.
2853         (estimate_edge_time): Implement as inline cache lookup.
2854         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2855         functions.
2856         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2857         (NUM_CONDITIONS): New constant.
2858         (predicate_conditions): New enum.
2859         (IS_NOT_CONSTANT): New constant.
2860         (edge_removal_hook_holder): New var.
2861         (node_growth_cache, edge_growth_cache): New global vars.
2862         (true_predicate, single_cond_predicate, false_predicate,
2863         not_inlined_predicate, add_condition, add_clause, and_predicates,
2864         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2865         dump_clause, dump_predicate, account_size_time,
2866         evaulate_conditions_for_edge): New functions.
2867         (inline_summary_alloc): Move to heap.
2868         (inline_node_removal_hook): Clear condition and entry vectors.
2869         (inline_edge_removal_hook): New function.
2870         (initialize_growth_caches, free_growth_caches): New function.
2871         (dump_inline_summary): Update.
2872         (edge_execution_predicate): New function.
2873         (will_be_nonconstant_predicate): New function.
2874         (estimate_function_body_sizes): Compute BB and constantness predicates.
2875         (compute_inline_parameters): Do not clear estimated_growth.
2876         (estimate_edge_size_and_time): New function.
2877         (estimate_calls_size_and_time): New function.
2878         (estimate_callee_size_and_time): New function.
2879         (remap_predicate): New function.
2880         (inline_merge_summary): New function.
2881         (do_estimate_edge_time): New function based on...
2882         (estimate_edge_time): ... this one.
2883         (do_estimate_edge_growth): New function.
2884         (do_estimate_growth): New function based on....
2885         (estimate_growth): ... this one.
2886         (inline_analyze_function): Analyze after deciding on jump functions.
2887         (inline_read_section): New function.
2888         (inline_read_summary): Use it.
2889         (inline_write_summary): Write all the new data.
2890         * ipa-prop.c (ipa_get_param_decl_index): Export.
2891         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2892         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2893         Declare.
2894         (ipa_get_lattice): Move here from ipa-cp.c
2895         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2896         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2897         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2898         cgraph_edge_inlinable_p): Remove.
2899         * cgraphunit.c: Include ipainline.h
2900         (cgraph_process_new_functions): Update call of
2901         compute_inline_parameters.
2902
2903 2011-04-22  Richard Guenther  <rguenther@suse.de>
2904
2905         * tree.c (build_int_cst): Properly create canonicalized integer
2906         constants.
2907         (build_int_cst_type): Remove scary comments.
2908
2909 2011-04-22  Xinliang David Li  <davidxl@google.com>
2910
2911         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2912         by default when -Wno-error is not specified.
2913         * opts-global.c (decode_options): Remove call to
2914         control_warning_options.
2915
2916 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR tree-optimization/48717
2919         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2920         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2921
2922 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2923
2924         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2925         definition where used.
2926
2927 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2928
2929         PR c/48716
2930         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2931         TREE_STATIC variables declared inside of some OpenMP construct.
2932
2933 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2934
2935         PR middle-end/48585
2936         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2937
2938 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2939
2940         PR c/36750
2941         * c-typeck.c (pop_init_level): Do not warn about initializing
2942         with ` = {0}'.
2943
2944 2011-04-22  Alan Modra  <amodra@gmail.com>
2945
2946         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2947         when returning call_cookie.
2948         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2949         pointers, to functions with no more vector args than the current
2950         function, and some non-local calls for ABI_V4.
2951         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2952         sibcall_nonlocal_aix64): Combine to ..
2953         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2954         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2955         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2956         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2957         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2958         operand.
2959         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2960         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2961         sibcall_value_symbolic_64): Delete.
2962
2963 2011-04-21  Xinliang David Li  <davidxl@google.com>
2964
2965         * cgraph.h: Remove pid.
2966         * cgraph.c: Remove pid.
2967         * value-prof.c (init_node_map): New function.
2968         (del_node_map): New function.
2969         (find_func_by_funcdef_no): New function.
2970         (gimple_ic_transform): Call new function.
2971         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2972         * function.c (get_last_funcdef_no): New function.
2973         * function.h (get_last_funcdef_no): New function.
2974         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2975         to libgcov function.
2976         (tree-profiling): Call node map init and delete function.
2977
2978 2011-04-21  Ian Lance Taylor  <iant@google.com>
2979
2980         * godump.c (go_format_type): Use exported Go name for anonymous
2981         field name.
2982
2983 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2984
2985         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2986         Call builtin_function_type_list instead of builtin_function_type.
2987         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2988
2989 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2990
2991         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2992         build_function_type_list instead of build_function_type.
2993         Delete variable `endlink'.
2994
2995 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2996
2997         * config/s390/s390.c (s390_init_builtins): Call
2998         build_function_type_list instead of build_function_type.
2999
3000 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3001
3002         * config/ia64/ia64.c (ia64_init_builtins): Call
3003         build_function_type_list instead of builtin_function_type.
3004
3005 2011-04-21  Easwaran Raman  <eraman@google.com>
3006
3007         * cfgexpand.c (stack_var): Remove OFFSET...
3008         (add_stack_var): ...and its reference here...
3009         (expand_stack_vars): ...and here.
3010         (stack_var_cmp): Sort by descending order of size.
3011         (partition_stack_vars): Change heuristic.
3012         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3013         (dump_stack_var_partition): Add newline after each partition.
3014
3015 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3016             Jeff Law  <law@redhat.com>
3017
3018         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3019         * gengtype.c (matching_file_name_substitute): Likewise.
3020
3021 2011-04-21  Richard Guenther  <rguenther@suse.de>
3022
3023         PR lto/48703
3024         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3025
3026 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3027
3028         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3029
3030 2011-04-21  Richard Guenther  <rguenther@suse.de>
3031
3032         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3033         file name.
3034
3035 2011-04-21  Richard Guenther  <rguenther@suse.de>
3036
3037         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3038         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3039         Use DECL_P, not SSA_VAR_P.
3040         (ptr_derefs_may_alias_p): Likewise.
3041         (ptr_deref_may_alias_ref_p_1): Likewise.
3042         (decl_refs_may_alias_p): Likewise.
3043         (refs_may_alias_p_1): Likewise.
3044         (ref_maybe_used_by_call_p_1): Likewise.
3045         (call_may_clobber_ref_p_1): Likewise.
3046         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3047         are either MEM_REF or TARGET_MEM_REF.
3048         (indirect_refs_may_alias_p): Likewise.
3049         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3050         for MEM_EXPR of indirect calls.
3051
3052 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3053
3054         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3055         (dst_file_info_struct): Remove flen field.
3056         (lookup_filename): Remove code that set flen field.
3057
3058 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3059
3060         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3061
3062 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3063
3064         PR target/48708
3065         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3066         vec_extract and vec_concat for non-SSE4_1 targets.
3067
3068 2011-04-21  Richard Guenther  <rguenther@suse.de>
3069
3070         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3071         return statements.
3072
3073 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3074
3075         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3076         undefine.
3077         (FILE): Don't undefine.
3078
3079 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3080
3081         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3082         struct rtx_def *.
3083         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3084         struct rtx_def *.
3085         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3086         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3087         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3088         rtx_def *.
3089         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3090         definitions where used.
3091         * config/microblaze/microblaze.h (struct microblaze_args): Use
3092         rtx, not struct rtx_def *.
3093         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3094         rtx_def *.
3095         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3096         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3097         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3098         not struct rtx_def *.
3099         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3100         struct rtx_def *.
3101         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3102         rtx_def *.
3103         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3104
3105 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3106
3107         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3108         operand_equal_p to compare DR_BASE_ADDRESSes.
3109         (vect_check_interleaving): Likewise.
3110
3111 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3112
3113         PR target/46329
3114         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3115         for all Neon struct constants.
3116
3117 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3118
3119         * target.def (legitimate_constant_p): New hook.
3120         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3121         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3122         * doc/tm.texi: Regenerate.
3123         * hooks.h (hook_bool_mode_rtx_true): Declare.
3124         * hooks.c (hook_bool_mode_rtx_true): Define.
3125         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3126         * calls.c (precompute_register_parameters): Replace uses of
3127         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3128         (emit_library_call_value_1): Likewise.
3129         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3130         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3131         * ira-costs.c (scan_one_insn): Likewise.
3132         * recog.c (general_operand, immediate_operand): Likewise.
3133         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3134         * reload1.c (init_eliminable_invariants): Likewise.
3135
3136         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3137         mode argument.
3138         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3139         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3140         argument.
3141         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3142         * config/alpha/predicates.md (input_operand): Update call to
3143         alpha_legitimate_constant_p.
3144
3145         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3146         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3147         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3148         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3149         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3150         (arm_legitimate_constant_p): New functions.
3151         (arm_cannot_force_const_mem): Make static.
3152
3153         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3154
3155         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3156         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3157         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3158         instead of bfin_legitimate_constant_p.
3159         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3160         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3161
3162         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3163
3164         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3165
3166         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3167         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3168         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3169         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3170
3171         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3172         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3173         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3174
3175         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3176         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3177         * config/i386/i386.c (legitimate_constant_p): Rename to...
3178         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3179         argument.
3180         (ix86_cannot_force_const_mem): Update accordingly.
3181         (ix86_legitimate_address_p): Likewise.
3182         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3183         * config/i386/i386.md: Update commentary.
3184
3185         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3186         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3187         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3188         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3189
3190         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3191
3192         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3193         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3194         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3195         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3196
3197         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3198         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3199         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3200
3201         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3202         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3203         (m32r_legitimate_constant_p): New function.
3204
3205         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3206         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3207         LEGITIMATE_CONSTANT_P.
3208         (LEGITIMATE_CONSTANT_P): Delete.
3209         * config/m68k/m68k.c (m68k_expand_prologue): Call
3210         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3211         (m68k_legitimate_constant_p): New function.
3212         * config/m68k/m68k.md: Update comments.
3213
3214         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3215         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3216         (mcore_legitimate_constant_p): New function.
3217
3218         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3219         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3220         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3221         Add a mode argument.
3222         (mep_legitimate_address): Update accordingly.
3223         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3224
3225         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3226         Delete.
3227         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3228         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3229         static.  Check OP's mode for VOIDmode.
3230         (microblaze_legitimate_constant_p): New function.
3231         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3232
3233         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3234         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3235         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3236         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3237         * config/mips/predicates.md: Update comments.
3238
3239         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3240         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3241         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3242         (mmix_legitimate_constant_p): Make static, return a bool, and take
3243         a mode argument.
3244         (mmix_print_operand_address): Update accordingly.
3245
3246         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3247         Delete.
3248         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3249         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3250         static.  Add a mode argument.
3251         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3252
3253         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3254
3255         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3256         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3257         (pa_legitimate_constant_p): New function.
3258
3259         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3260
3261         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3262         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3263         (pdp11_legitimate_constant_p): New function.
3264
3265         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3266         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3267         (rs6000_legitimate_constant_p): New function.
3268
3269         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3270         (rx_legitimate_constant_p): ...this.
3271         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3272         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3273         (rx_legitimate_constant_p): ...this.
3274         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3275         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3276
3277         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3278         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3279         * config/s390/s390.c (legitimate_constant_p): Rename to...
3280         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3281         and add a mode argument.
3282         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3283
3284         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3285
3286         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3287         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3288         (sh_legitimate_constant_p): New function.
3289
3290         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3291         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3292         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3293         (legitimate_constant_p): Rename to...
3294         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3295         argument.
3296         (constant_address_p): Update accordingly.
3297
3298         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3299         argument and return a bool.
3300         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3301         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3302         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3303         (spu_rtx_costs): Update accordingly.
3304         * config/spu/predicates.md (vec_imm_operand): Likewise.
3305
3306         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3307
3308         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3309         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3310         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3311
3312         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3313         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3314         * config/vax/vax.c (legitimate_constant_p): Likewise.
3315
3316         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3317         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3318         (xtensa_legitimate_constant_p): New function.
3319
3320 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3321
3322         * target.def (cannot_force_const_mem): Add a mode argument.
3323         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3324         * doc/tm.texi: Regenerate.
3325         * hooks.h (hook_bool_mode_rtx_false): Declare.
3326         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3327         (hook_bool_mode_const_rtx_true): Likewise.
3328         (hook_bool_mode_rtx_false): New function.
3329         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3330         to be non-VOID.  Update call to cannot_force_const_mem.
3331         (find_reloads): Update accordingly.
3332         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3333         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3334         argument.
3335         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3336         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3337         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3338         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3339         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3340         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3341         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3342         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3343         (m68k_cannot_force_const_mem): ...this new function.
3344         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3345         argument.
3346         (mips_const_insns, mips_legitimize_const_move): Update calls.
3347         (mips_secondary_reload_class): Likewise.
3348         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3349         (pa_cannot_force_const_mem): ...this new function.
3350         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3351         (rs6000_cannot_force_const_mem): ...this new function.
3352         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3353         argument.
3354         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3355         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3356         to...
3357         (xtensa_cannot_force_const_mem): ...this new function.
3358
3359 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3360
3361         * config/mips/mips.c (mips16_build_function_stub): Call
3362         build_function_type_list instead of build_function_type.
3363         (mips16_build_call_stub): Likewise.
3364
3365 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3366
3367         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3368         instead of build_function_type.
3369
3370 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3371
3372         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3373         instead of build_function_type.
3374
3375 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3376
3377         PR target/48678
3378         * config/i386/i386.md (insv): Change operand 0 constraint to
3379         "register_operand".  Change operand 1 and 2 constraint to
3380         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3381         * config/i386/sse.md (sse4_1_pinsrb): Export.
3382         (sse2_pinsrw): Ditto.
3383         (sse4_1_pinsrd): Ditto.
3384         (sse4_1_pinsrq): Ditto.
3385         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3386         * config/i386/i386.c (ix86_expand_pinsr): New.
3387
3388 2011-04-20  Easwaran Raman  <eraman@google.com>
3389
3390         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3391         containing union type only with -fstrict-aliasing.
3392
3393 2011-04-20  Jim Meyering  <meyering@redhat.com>
3394
3395         Remove useless if-before-free tests.
3396         * calls.c (expand_call, save_area): Likewise.
3397         * cfgcleanup.c (try_forward_edges): Likewise.
3398         * collect2.c (collect_execute): Likewise.
3399         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3400         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3401         * coverage.c (coverage_checksum_string): Likewise.
3402         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3403         * cselib.c (cselib_init): Likewise.
3404         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3405         (df_set_clean_cfg): Likewise.
3406         * function.c (free_after_compilation): Likewise.
3407         * gcc.c (do_spec_1, main): Likewise.
3408         * gcov.c (create_file_names): Likewise.
3409         * gensupport.c (identify_predicable_attribute): Likewise.
3410         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3411         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3412         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3413         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3414         * ipa-pure-const.c (local_pure_const): Likewise.
3415         * ipa-reference.c (propagate): Likewise.
3416         * ira-costs.c (free_ira_costs): Likewise.
3417         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3418         * matrix-reorg.c (mat_free): Likewise.
3419         * prefix.c (get_key_value): Likewise.
3420         * profile.c (compute_value_histograms): Likewise.
3421         * reload1.c (free_reg_equiv): Likewise.
3422         * sched-deps.c (free_deps): Likewise.
3423         * sel-sched-ir.c (fence_clear): Likewise.
3424         * sese.c (set_rename, if_region_set_false_region): Likewise.
3425         * tree-data-ref.c (free_rdg): Likewise.
3426         * tree-eh.c (lower_try_finally): Likewise.
3427         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3428         * tree-ssa-live.c (delete_var_map): Likewise.
3429         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3430         * tree-ssa-pre.c (phi_trans_add): Likewise.
3431
3432 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3433
3434         PR tree-optimization/48611
3435         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3436         beyond ERT_MUST_NOT_THROW region.
3437
3438 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3439
3440         * config/mips/mips.opt (mfix-24k): New.
3441         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3442         * config/mips/mips.md (length): Increase by 4 for stores if
3443         fixing 24K errata.
3444         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3445         all noreorder if fixing 24K errata.
3446         * doc/invoke.texi: Document mfix-24k.
3447
3448 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3449
3450         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3451         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3452
3453 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3454
3455         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3456         (const_ok_for_op): ... to here.
3457
3458 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3459
3460         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3461         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3462
3463 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3464
3465         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3466
3467 2011-04-20  Richard Guenther  <rguenther@suse.de>
3468
3469         PR tree-optimization/47892
3470         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3471         are if-convertible.
3472
3473 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3474
3475         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3476
3477 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3478
3479         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3480
3481 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3482
3483         PR target/18145
3484
3485         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3486         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3487         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3488         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3489         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3490
3491         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3492         New prototype.
3493
3494         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3495         (avr_asm_named_section, avr_asm_output_aligned_common,
3496         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3497         New functions to update...
3498         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3499         (avr_asm_init_sections): Overwrite section callbacks for
3500         data_section, bss_section.
3501         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3502         from here to...
3503         (avr_file_end): ...here.
3504
3505 2011-04-20  Richard Guenther  <rguenther@suse.de>
3506
3507         PR middle-end/48695
3508         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3509         objects and types here.  Adjust for their offset before comparing.
3510
3511 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3512
3513         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3514         statement per copy.
3515
3516 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3517
3518         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3519         (GIMPLE_H): Include $(INTERNAL_FN_H).
3520         (OBJS-common): Add internal-fn.o.
3521         (internal-fn.o): New rule.
3522         * internal-fn.def: New file.
3523         * internal-fn.h: Likewise.
3524         * internal-fn.c: Likewise.
3525         * gimple.h: Include internal-fn.h.
3526         (GF_CALL_INTERNAL): New gf_mask.
3527         (gimple_statement_call): Put fntype into a union with a new
3528         internal_fn field.
3529         (gimple_build_call_internal): Declare.
3530         (gimple_build_call_internal_vec): Likewise.
3531         (gimple_call_same_target_p): Likewise.
3532         (gimple_call_internal_p): New function.
3533         (gimple_call_internal_fn): Likewise.
3534         (gimple_call_fntype): Return null for internal calls.
3535         (gimple_call_set_fntype): Assert that the function is not internal.
3536         (gimple_call_set_fn): Likewise.
3537         (gimple_call_set_fndecl): Likewise.
3538         (gimple_call_set_internal_fn): New function.
3539         (gimple_call_addr_fndecl): Handle null functions.
3540         (gimple_call_return_type): Likewise null types.
3541         * gimple.c (gimple_build_call_internal_1): New function.
3542         (gimple_build_call_internal): Likewise.
3543         (gimple_build_call_internal_vec): Likewise.
3544         (gimple_call_same_target_p): Likewise.
3545         (gimple_call_flags): Handle calls to internal functions.
3546         (gimple_call_fnspec): New function.
3547         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3548         (gimple_has_side_effects): Handle null functions.
3549         (gimple_rhs_has_side_effects): Likewise.
3550         (gimple_call_copy_skip_args): Handle calls to internal functions.
3551         * cfgexpand.c (expand_call_stmt): Likewise.
3552         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3553         * gimple-fold.c (gimple_fold_call): Handle null functions.
3554         (gimple_fold_stmt_to_constant_1): Don't fold
3555         calls to internal functions.
3556         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3557         functions.
3558         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3559         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3560         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3561         (do_warn_unused_result): Likewise.
3562         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3563         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3564         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3565         the target of a call.
3566         (initialize_hash_element): Update accordingly.
3567         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3568         (iterative_hash_hashable_expr): Handle calls to internal functions.
3569         (print_expr_hash_elt): Likewise.
3570         * tree-ssa-pre.c (can_value_number_call): Likewise.
3571         (eliminate): Handle null functions.
3572         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3573         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3574         (find_func_aliases): Likewise.
3575         * value-prof.c (gimple_ic_transform): Likewise.
3576         (gimple_indirect_call_to_profile): Likewise.
3577         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3578         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3579
3580 2011-04-19  Jan Hubicka  <jh@suse.cz>
3581
3582         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3583         * ipa-inline.c (inline_small_functions): Compute summaries first,
3584         populate heap later.
3585
3586 2011-04-19  Jan Hubicka  <jh@suse.cz>
3587
3588         * cgraph.h (save_inline_function_body): Remove.
3589         * ipa-inline-transform.c: New file, broke out of...
3590         * ipa-inline.c: ... this one; Update toplevel comment.
3591         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3592         make global.
3593         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3594         (cgraph_mark_inline_edge): Rename to inline_call; move to
3595         ipa-inline-transform.c.
3596         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3597         move to ipa-inline-transform.c
3598         (recursive_inlining, inline_small_functions, flatten_function,
3599         ipa_inline, inline_always_inline_functions,
3600         early_inline_small_functions): Update.
3601         (inline_transform): Move to ipa-inline-transform.c.
3602         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3603         Declare.
3604         * Makefile.in (ipa-inline-transform.o): New file.
3605         * cgraphunit.c (save_inline_function_body): Move to
3606         ipa-inline-transform.c
3607
3608 2011-04-19  DJ Delorie  <dj@redhat.com>
3609
3610         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3611         registers if we already know there aren't any.
3612         (m32c_emit_epilogue): Don't emit a barrier here.
3613         (m32c_emit_eh_epilogue): Likewise.
3614         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3615         operands at expand time.
3616         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3617         int" wchar type.
3618         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3619         duplicates.  Provide aliases instead.
3620         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3621         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3622         the compiler.
3623
3624 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3625
3626         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3627         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3628         (general_or_i64_p, sparc_register_move_cost): New function.
3629
3630 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3631
3632         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3633         Add lynx, mipssde.  Sort table.
3634
3635 2011-04-19  Xinliang David Li  <davidxl@google.com>
3636
3637         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3638         not negative.
3639
3640 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3641
3642         PR target/48678
3643         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3644         is a SUBREG with non-MODE_INT mode inside of it.
3645
3646 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3647
3648         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3649         also according to actual contants.
3650         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3651         (gimple_fold_call): Use it.
3652         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3653
3654 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3655
3656         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3657         non-pointer assignments.
3658
3659 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3660
3661         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3662         account anc_offset and otr_type from the indirect edge info.
3663         * ipa-prop.c (get_ancestor_addr_info): New function.
3664         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3665         get_ancestor_addr_info, call it.
3666         (ipa_note_param_call): Do not initialize information about polymorphic
3667         calls, return the indirect call graph edge.  Remove the last
3668         parameter, adjust all callers.
3669         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3670         parameters.  Initialize polymorphic information in the indirect edge.
3671
3672 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3673
3674         PR lto/48148
3675         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3676         the types if they have different enumeration identifiers.
3677
3678 2011-04-19  Jan Hubicka  <jh@suse.cz>
3679
3680         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3681         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3682         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3683         (optimize_function_for_size_p) ... here.
3684
3685 2011-04-19  Richard Guenther  <rguenther@suse.de>
3686
3687         PR lto/48207
3688         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3689         langhook.
3690
3691 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3692
3693         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3694         if DECL_NO_INLINE_WARNING_P is set on the function.
3695
3696 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3697
3698         PR fortran/47976
3699         * reload1.c (inc_for_reload): Return void. All callers changed.
3700         (emit_input_reload_insns): Don't try to delete previous output
3701         reloads to a register, or record spill_reg_store for autoincs.
3702
3703 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3704
3705         * gengtype.h: Updated copyright year.
3706         (struct input_file_st): Add inpisplugin field.
3707         (type_fileloc): New function.
3708         * gengtype.c
3709         (write_typed_struct_alloc_def): Add gcc_assert.
3710         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3711         (write_typed_alloc_defns): Don't output for plugin files.
3712         (input_file_by_name): Clear inpisplugin field.
3713         (main): Set inpisplugin field for plugin files.
3714
3715 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3716
3717         * gengtype-state.c (string_eq): New.
3718         (read_state): Use string_eq instead of strcmp when creating the
3719         state_ident_tab.
3720
3721 2011-04-19  Wei Guozhi  <carrot@google.com>
3722
3723         PR target/47855
3724         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3725         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3726         linkage.
3727         * config/arm/constraints.md (Uu): New constraint.
3728         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3729
3730 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3731
3732         * config.gcc (-*-*-*vms): Added.
3733         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3734         definitions moved.
3735         * config/vms/vms-ld.c: New file.
3736         * config/vms/vms-ar.c: New file.
3737         * config/vms/t-vmsnative: New file.
3738
3739 2011-04-18  Xinliang David Li  <davidxl@google.com>
3740
3741         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3742
3743 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3744
3745         PR middle-end/48661
3746         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3747         if TREE_TYPE (v) is non-NULL.
3748
3749         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3750         gimple_get_virt_mehtod_for_binfo.
3751         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3752         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3753         callers.
3754         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3755
3756 2011-04-18  Michael Matz  <matz@suse.de>
3757             Steve Ellcey  <sje@cup.hp.com>
3758
3759         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3760         use its mode as source mode if it isn't VOIDmode.
3761
3762 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3763
3764         * doc/passes.texi: Fill crossref nodes.
3765
3766 2011-04-18  Jim Meyering  <meyering@redhat.com>
3767
3768         Fix doubled-word typos in comments and strings
3769         * config/alpha/vms-unwind.h: s/for for/for/
3770         * config/arm/unwind-arm.h: Likewise.
3771         * config/microblaze/microblaze.c: Likewise.
3772         * config/sh/constraints.md: s/in in/in/
3773         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3774
3775 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3776
3777         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3778         (AVX_FLOAT_MODE_P): Ditto.
3779         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3780         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3781         (AVX_VEC_FLOAT_MODE_P): Ditto.
3782         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3783         (UNSPEC_MASKSTORE): Ditto.
3784         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3785         Merge from <sse>_movmsk<ssemodesuffix> and
3786         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3787         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3788         iterator.
3789         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3790         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3791         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3792
3793 2011-04-18  Jan Hubicka  <jh@suse.cz>
3794
3795         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3796
3797         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3798         (want_inline_function_called_once_p): Break out the logic from
3799         ipa_inline.
3800         (edge_badness): Ensure that profile is not misupdated.
3801         (lookup_recursive_calls): Prioritize by call frequencies.
3802         (inline_small_functions): Move program size estimates here;
3803         actually process whole queue even when unit growth has been
3804         met. (to properly compute inline_failed reasons and for the
3805         case unit size decrease.) Revisit comments on recursive inlining.
3806         (ipa_inline): Remove unit summary code; first inline hot calls
3807         of functions called once, cold calls next.
3808         (order, nnodes): Remove unused variables.
3809         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3810         (GTFILES): Remove ipa-inline.c
3811         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3812
3813 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3814
3815         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3816
3817 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3818             Richard Earnshaw  <rearnsha@arm.com>
3819
3820         * arm.c (neon_builtin_type_bits): Remove.
3821         (typedef enum neon_builtin_mode): New.
3822         (T_MAX): Don't define.
3823         (typedef enum neon_builtin_datum): Remove bits, codes[],
3824         num_vars and base_fcode.  Add mode, code and fcode.
3825         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3826         VAR10): Change accordingly.
3827         (neon_builtin_data[]): Change accordingly
3828         (arm_init_neon_builtins): Change accordingly.
3829         (neon_builtin_compare): Remove.
3830         (locate_neon_builtin_icode): Remove.
3831         (arm_expand_neon_builtin): Change accordingly.
3832
3833         * arm.h (enum arm_builtins): Move to ...
3834         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3835
3836         * arm.c (arm_builtin_decl): Declare.
3837         (TARGET_BUILTIN_DECL): Define.
3838         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3839         (arm_builtin_decls[]): New.
3840         (arm_init_neon_builtins): Store builtin declarations in
3841         arm_builtin_decls[].
3842         (arm_init_tls_builtins): Likewise.
3843         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3844         (arm_builtin_decl): New.
3845
3846 2011-04-18  Richard Guenther  <rguenther@suse.de>
3847
3848         * tree.c (upper_bound_in_type): Build properly canonicalized
3849         INTEGER_CSTs.
3850         (lower_bound_in_type): Likewise.
3851
3852 2011-04-18  Richard Guenther  <rguenther@suse.de>
3853
3854         * gimple.h (gimple_call_addr_fndecl): New function.
3855         (gimple_call_fndecl): Use it.
3856         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3857         for direct calls.
3858         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3859         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3860
3861 2011-04-18  Richard Guenther  <rguenther@suse.de>
3862
3863         PR middle-end/48650
3864         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3865
3866 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3867
3868         PR lto/48492
3869         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3870         DECL_IN_CONSTANT_POOL without RTL.
3871
3872 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3873             Ira Rosen  <ira.rosen@linaro.org>
3874
3875         PR target/48252
3876         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3877         to match neon_vzip/vuzp/vtrn_internal.
3878         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3879         outputs explicitly dependent on both inputs.
3880         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3881
3882 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3883
3884         PR tree-optimization/48616
3885         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3886         whether the shift is by scalar or vector based on whether all SLP
3887         scalar stmts have the same rhs.
3888
3889 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3890
3891         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3892         memory operands.
3893
3894 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3895
3896         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3897         registers.
3898
3899 2011-04-17  Jan Hubicka  <jh@suse.cz>
3900
3901         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3902         * cgrpahunit.c (cgraph_finalize_function): Do not set
3903         finalized_by_frontend.
3904         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3905         finalized_by_frontend.
3906
3907 2011-04-17  Jan Hubicka  <jh@suse.cz>
3908
3909         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3910         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3911         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3912         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3913         method.
3914         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3915         gimple-fold.c
3916         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3917
3918 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3919
3920         PR lto/48538
3921         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3922         is non-null before accessing it.
3923         (input_cgraph): Remove trailing spaces.
3924
3925 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3926
3927         * params.def (sms-min-sc): New param flag.
3928         * modulo-sched.c (sms_schedule): Use it.
3929         * doc/invoke.texi (sms-min-sc): Document it.
3930
3931 2011-04-17  Jan Hubicka  <jh@suse.cz>
3932
3933         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3934         present, also set gimple_call_set_cannot_inline.
3935         * ipa-inline.c: Update toplevel comment.
3936         (MAX_TIME): Remove.
3937         (cgraph_clone_inlined_nodes): Fix linebreaks.
3938         (cgraph_check_inline_limits): Restructure to ...
3939         (caller_growth_limits): ... this one; be more tolerant
3940         on growth in nested inline chains; add explanatory comment;
3941         fix stack accounting thinko introduced by previous patch.
3942         (cgraph_default_inline_p): Remove.
3943         (report_inline_failed_reason): New function.
3944         (can_inline_edge_p): New function.
3945         (can_early_inline_edge_p): New function.
3946         (leaf_node_p): Move upwards in file.
3947         (want_early_inline_function_p): New function.
3948         (want_inline_small_function_p): New function.
3949         (want_inline_self_recursive_call_p): New function.
3950         (cgraph_edge_badness): Rename to ...
3951         (edge_badness) ... this one; fix linebreaks.
3952         (update_edge_key): Update call of edge_baddness; add
3953         detailed dump about queue updates.
3954         (update_caller_keys): Use can_inline_edge_p and
3955         want_inline_small_function_p.
3956         (cgraph_decide_recursive_inlining): Rename to...
3957         (recursive_inlining): Use can_inline_edge_p and
3958         want_inline_self_recursive_call_p; simplify and remove no longer
3959         valid FIXME.
3960         (cgraph_set_inline_failed): Remove.
3961         (add_new_edges_to_heap): Use can_inline_edge_p and
3962         want_inline_small_function_p.
3963         (cgraph_decide_inlining_of_small_functions): Rename to ...
3964         (inline_small_functions): ... this one; cleanup; use
3965         can/want predicates; cleanup debug ouput; work edges till fibheap
3966         is exhausted and do not stop once unit growth is reached; remove
3967         later loop processing remaining edges.
3968         (cgraph_flatten): Rename to ...
3969         (flatten_function): ... this one; use can_inline_edge_p
3970         and can_early_inline_edge_p predicates.
3971         (cgraph_decide_inlining): Rename to ...
3972         (ipa_inline): ... this one; remove unreachable nodes before
3973         inlining functions called once; simplify the pass.
3974         (cgraph_perform_always_inlining): Rename to ...
3975         (inline_always_inline_functions): ... this one; use
3976         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3977         (cgraph_decide_inlining_incrementally): Rename to ...
3978         (early_inline_small_functions): ... this one; simplify
3979         using new predicates; cleanup; make dumps prettier.
3980         (cgraph_early_inlining): Rename to ...
3981         (early_inliner): newer inline regular functions into always-inlines;
3982         fix updating of call stmt summaries.
3983         (pass_early_inline): Update for new names.
3984         (inline_transform): Fix formating.
3985         (gate_cgraph_decide_inlining): Rename to ...
3986         (pass_ipa_inline): ... this one.
3987         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3988         * ipa-inline-analysis.c (dump_inline_summary): Update.
3989         (compute_inline_parameters): Do not compute disregard_inline_limits;
3990         look for mismatching arguments.
3991         (estimate_growth): Fix handlig of non-trivial self recursion.
3992         (inline_read_summary): Do not read info->disregard_inline_limits.
3993         (inline_write_summary): Do not write info->disregard_inline_limits.
3994         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3995         and move all checks into can_inline_edge_p predicate; re-enable code
3996         comparing optimization levels.
3997         (expand_call_inline): Do not test inline_forbidden_into_p.
3998         * Makefile.in (ipa-inline.o): Update arguments.
3999
4000 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4001
4002         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4003
4004 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4005
4006         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4007
4008 2011-04-17  Michael Matz  <matz@suse.de>
4009
4010         PR tree-optimization/48622
4011         PR lto/48645
4012         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4013         in same order as they're written.
4014
4015 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4016
4017         * config/pa/predicates.md: Reorganize and simplify predicates.
4018         Eliminate duplicate code checks.
4019         (arith_operand): Rename to arith14_operand
4020         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4021         * config/pa/pa.md: Use renamed operands.
4022         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4023         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4024         arith11_operand, adddi3_operand, indexed_memory_operand,
4025         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4026         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4027         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4028         move_dest_operand, move_src_operand, prefetch_cc_operand,
4029         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4030         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4031         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4032         div_operand, int5_operand, movb_comparison_operator,
4033         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4034         arith_double_operand, ireg_operand, lhs_lshift_operand,
4035         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4036         integer_store_memory_operand): Likewise.
4037         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4038         (integer_store_memory_operand, read_only_operand,
4039         function_label_operand, borx_reg_operand,
4040         non_hard_reg_operand): Likewise.
4041         (eq_neq_comparison_operator): Delete unused operator.
4042         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4043         function_label_operand.
4044         (emit_move_sequence): Likewise.
4045
4046 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4047
4048         * config/i386/sse.md (sseunpackmode): New mode attribute.
4049         (ssepackmode): Ditto.
4050         (vec_pack_trunc_<mode>): Macroize expander from
4051         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4052         (vec_unpacks_lo_<mode>): Macroize expander from
4053         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4054         (vec_unpacks_hi_<mode>): Macroize expander from
4055         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4056         (vec_unpacku_lo_<mode>): Macroize expander from
4057         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4058         (vec_unpacku_hi_<mode>): Macroize expander from
4059         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4060         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4061         ix86_expand_sse4_unpack.
4062         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4063
4064 2011-04-16  Jan Hubicka  <jh@suse.cz>
4065
4066         * cgraphbuild.c: Include ipa-inline.h.
4067         (reset_inline_failed): Use initialize_inline_failed.
4068         * cgraph.c: Include ipa-inline.h.
4069         (cgraph_create_node_1): Do not initialize estimated_growth.
4070         (initialize_inline_failed): More to ipa-inline-analysis.c
4071         (dump_cgraph_node): Do not dump inline flags.
4072         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4073         and disregard_inline_limits flags.
4074         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4075         time, size, estimated_growth.
4076         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4077         Update.
4078         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4079         DECL_DISREGARD_INLINE_LIMITS.
4080         (cgraph_analyze_function): Do not initialize
4081         node->local.disregard_inline_limits.
4082         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4083         inlinable, versionable and disregard_inline_limits.
4084         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4085         cgraph_check_inline_limits, cgraph_default_inline_p,
4086         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4087         add_new_edges_to_heap): Update.
4088         (cgraph_decide_inlining_of_small_function): Update; set
4089         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4090         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4091         cgraph_decide_inlining_incrementally): Update.
4092         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4093         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4094         time, size and estimated_growth parameters.
4095         (estimate_edge_growth): Update.
4096         (initialize_inline_failed): Declare.
4097         * ipa-split.c: Include ipa-inline.h
4098         (execute_split_functions): Update.
4099         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4100         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4101         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4102         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4103         estimated_growth to INT_MIN.
4104         (inline_node_duplication_hook): Likewise.
4105         (dump_inline_summary): Dump new fields.
4106         (compute_inline_parameters): Update.
4107         (estimate_edge_time, estimate_time_after_inlining,
4108         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4109         inline_write_summary):
4110         (initialize_inline_failed): Move here from cgraph.c.
4111         * tree-sra.c: Include ipa-inline.h.
4112         (ipa_sra_preliminary_function_checks): Update.
4113         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4114         ipa-inline.h.
4115
4116 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4117
4118         * config/i386/sse.md (V16): New mode iterator.
4119         (VI1, VI8): Ditto.
4120         (AVXMODEQI, AVXMODEDI): Remove.
4121         (sse2, sse3): New mode attribute.
4122         (mov<mode>): Use V16 mode iterator.
4123         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4124         (push<mode>1): Use V16 mode iterator.
4125         (movmisalign<mode>): Ditto.
4126         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4127         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4128         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4129         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4130         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4131         avx_movdqu<avxmodesuffix>.
4132         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4133         *avx_movdqu<avxmodesuffix>.
4134         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4135         avx_lddqu<avxmodesuffix>.
4136         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4137         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4138         avx_movnt<AVXMODEDI:mode>.
4139         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4140         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4141
4142 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4143
4144         PR target/48629
4145         * haifa-sched.c (prune_ready_list, schedule_block): Use
4146         sched_pressure_p rather than flag_sched_pressure.
4147
4148 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4149
4150         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4151         cgraph_get_node instead of cgraph_get_create_node.
4152
4153 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4154
4155         * cfgexpand.c (expand_debug_expr): Use
4156         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4157
4158 2011-04-15  Michael Matz  <matz@suse.de>
4159
4160         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4161         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4162         * function.c (gimplify_parameters): Ditto.
4163         * gimplify.c (gimplify_vla_decl): Ditto.
4164
4165         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4166         (gimple_call_set_alloca_for_var): New inline function.
4167         (gimple_call_alloca_for_var_p): Ditto.
4168         * gimple.c (gimple_build_call_from_tree): Remember
4169         CALL_ALLOCA_FOR_VAR_P state.
4170         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4171
4172         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4173         calls if they were for VLA objects.
4174
4175 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4176
4177         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4178         of ADR_EXPRs.
4179
4180 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4181
4182         PR middle-end/48601
4183         * tree-emutls.c (lower_emutls_function_body): Call
4184         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4185         result is non-NULL.
4186
4187 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4188
4189         * c-decl.c (detect_field_duplicates): Call
4190         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4191
4192 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4193
4194         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4195         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4196         * ipa-pure-const.c (check_stmt): Call it.
4197         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4198
4199 2011-04-15  Richard Guenther  <rguenther@suse.de>
4200
4201         PR tree-optimization/48290
4202         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4203         Properly decide inhibiting propagation based on the valueized
4204         operand.  Do loop-closed SSA form preserving here ...
4205         (init_copy_prop): ... not here.
4206
4207 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4208
4209         PR target/48612
4210         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4211         (*ieee_smax<mode>3): Likewise.
4212
4213 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4214
4215         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4216         Replace match_operand with match_dup for the third operand in
4217         these expanders.
4218
4219 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4220
4221         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4222         to track processing of conditionals.  Update all callers.
4223         (try_combine, simplify_if_then_else): Update.
4224
4225 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4226
4227         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4228         -fsched-pressure.
4229
4230 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4231
4232         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4233         instead of match_operand for operand 3.
4234
4235 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4236
4237         * recog.h (insn_operand_data): Add an "allows_mem" field.
4238         * genoutput.c (output_operand_data): Initialize it.
4239         * optabs.c (maybe_legitimize_operand_same_code): New function.
4240         (maybe_legitimize_operand): Use it when matching the original
4241         op->value.
4242
4243 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4244
4245         * gimplify.c: Fix issues in comments throughout.
4246         (voidify_wrapper_expr): Fix long line.
4247         (build_stack_save_restore): Likewise.
4248         (gimplify_loop_expr): Likewise.
4249         (gimplify_compound_lval): Likewise.
4250         (gimplify_init_ctor_eval): Likewise.
4251         (gimplify_modify_expr_rhs): Likewise.
4252         (omp_notice_threadprivate_variable): Likewise.
4253
4254 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4255
4256         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4257         original one if this is not a builtin function.
4258
4259 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4260
4261         PR target/48605
4262         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4263         offset it as needed based on top 2 bits in operands[3], change
4264         MEM mode to SFmode and mask those 2 bits away from operands[3].
4265
4266 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4267
4268         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4269         change from objc_declare_protocols() to objc_declare_protocol().
4270
4271 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4272
4273         * config/i386/sse.md (sse4_1): New mode attribute.
4274         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4275         avx_blend<ssemodesuffix><avxmodesuffix> and
4276         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4277         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4278         avx_blendv<ssemodesuffix><avxmodesuffix> and
4279         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4280         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4281         avx_dp<ssemodesuffix><avxmodesuffix> and
4282         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4283         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4284         (sse4_1_packusdw): Merge with *avx_packusdw.
4285         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4286         (sse4_1_pblendw): Merge with *avx_pblendw.
4287         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4288         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4289         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4290         VF mode iterator.
4291         (sse4_1_round<ssescalarmodesuffix>): Merge with
4292         *avx_round<ssescalarmodesuffix>.
4293         (aesenc): Merge with *avx_aesenc.
4294         (aesenclast): Merge with *avx_aesenclast.
4295         (aesdec): Merge with *avx_aesdec.
4296         (aesdeclast): Merge with *avx_aesdeclast.
4297         (pclmulqdq): Merge with *pclmulqdq.
4298         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4299         New predicate.
4300         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4301
4302 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4303
4304         PR middle-end/48608
4305         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4306         (align_local_variable): This.  Update DECL_ALIGN.
4307         (add_stack_var): Updated.
4308         (expand_one_stack_var): Likewise.
4309
4310 2011-04-14  Richard Guenther  <rguenther@suse.de>
4311
4312         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4313         Remove.
4314         (dse_initialize_block_local_data, dse_leave_block,
4315         record_voperand_set, get_stmt_uid): Likewise.
4316         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4317         (dse_optimize_stmt): Remove voperand set handling code.
4318         Simplify and improve to handle any kind of killing stmt.
4319         (dse_record_phi): Remove.
4320         (dse_enter_block): Simplify.
4321         (tree_ssa_dse): Likewise.
4322         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4323
4324 2011-04-14  Jan Hubicka  <jh@suse.cz>
4325
4326         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4327         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4328         (cgraph_local_info): Remove inline_summary.
4329         * ipa-cp.c: Include ipa-inline.h.
4330         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4331         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4332         accesor.
4333         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4334         (input_overwrite_node): Do not set inline summary.
4335         (input_node): Do not stream inline summary.
4336         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4337         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4338         growth; we do not have inline parameters computed for that anyway.
4339         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4340         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4341         (inline_summary_t): New type and VECtor.
4342         (debug_inline_summary, dump_inline_summaries): Declare.
4343         (inline_summary): Use VOCtor.
4344         (estimate_edge_growth): Kill hack computing call stmt size directly.
4345         * lto-section-in.c (lto_section_name): Add inline section.
4346         * ipa-inline-analysis.c: Include lto-streamer.h
4347         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4348         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4349         (inline_summary_vec): Define.
4350         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4351         dump_inline_summaries): New functions.
4352         (estimate_function_body_sizes): Properly compute size/time of outgoing
4353         calls.
4354         (compute_inline_parameters): Alloc inline_summary; do not compute
4355         size/time of incomming calls.
4356         (estimate_edge_time): Avoid missing time summary hack.
4357         (inline_read_summary): Read inline summary info.
4358         (inline_write_summary): Write inline summary info.
4359         (inline_free_summary): Free all hooks and inline summary vector.
4360         * lto-streamer.h: Add LTO_section_inline_summary section.
4361         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4362         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4363
4364 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4365
4366         * tree-vectorizer.h (vect_strided_store_supported): Add a
4367         HOST_WIDE_INT argument.
4368         (vect_strided_load_supported): Likewise.
4369         (vect_permute_store_chain): Return void.
4370         (vect_transform_strided_load): Likewise.
4371         (vect_permute_load_chain): Delete.
4372         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4373         count argument.  Check that the count is a power of two.
4374         (vect_strided_load_supported): Likewise.
4375         (vect_permute_store_chain): Return void.  Update after above changes.
4376         Assert that the access is supported.
4377         (vect_permute_load_chain): Likewise.
4378         (vect_transform_strided_load): Return void.
4379         * tree-vect-stmts.c (vectorizable_store): Update calls after
4380         above interface changes.
4381         (vectorizable_load): Likewise.
4382         (vect_analyze_stmt): Don't check for strided powers of two here.
4383
4384 2011-04-14  Richard Guenther  <rguenther@suse.de>
4385
4386         PR tree-optimization/48590
4387         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4388         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4389         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4390         BUILT_IN_STACK_SAVE.
4391         * tree-ssa-dce.c (propagate_necessity): Handle
4392         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4393
4394 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4395
4396         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4397         objc_declare_class.
4398
4399 2011-04-14  Richard Guenther  <rguenther@suse.de>
4400
4401         * tree.h (get_object_alignment_1): Declare.
4402         * builtins.c (get_object_alignment_1): Split out worker from ...
4403         (get_object_alignment): ... here.
4404         * fold-const.c (get_pointer_modulus_and_residue): Use
4405         get_object_alignment_1.
4406
4407 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4408
4409         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4410         type parameter.
4411         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4412         parameter.  Generalise code to handle arrays as well as vectors.
4413         (vect_setup_realignment): Update accordingly.
4414         * tree-vect-stmts.c (vectorizable_store): Likewise.
4415         (vectorizable_load): Likewise.
4416
4417 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4418
4419         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4420         within the per-copy loop.
4421
4422 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4423
4424         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4425         in the dump file.
4426
4427 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4428
4429         * doc/options.texi (Negative): Explicitly mention that the
4430         Negative chain must be circular.
4431
4432 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4433
4434         * function.h (block_chainon): Declare.
4435         * function.c (block_chainon): Define.
4436
4437 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4438             Eric Weddington  <eric.weddington@atmel.com>
4439             Georg-Johann Lay  <avr@gjlay.de>
4440
4441         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4442         New Includes
4443         (avr_init_builtins, avr_expand_builtin,
4444         avr_expand_delay_cycles, avr_expand_unop_builtin,
4445         avr_expand_binop_builtin ): New functions.
4446         (avr_builtin_id): New enum
4447         (struct avr_builtin_description): New struct
4448         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4449         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4450
4451         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4452         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4453         UNSPECV_DELAY_CYCLES): new enumeration values
4454         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4455         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4456         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4457         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4458         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4459         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4460         "fmulsu"): New insns
4461
4462         * config/avr/avr-c.c: fix line endings
4463         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4464         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4465         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4466         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4467         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4468
4469         * doc/extend.texi (AVR Built-in Functions): New node
4470         (Target Builtins): Add documentation of AVR
4471         built-in functions.
4472
4473 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4474
4475         PR target/44643
4476         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4477         alone. Error if non-const data has attribute progmem.
4478
4479 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4480
4481         * tree.h (struct tree_constructor): Include tree_typed instead of
4482         tree_common.
4483         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4484         TS_TYPED instead of TS_COMMON.
4485
4486 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4487
4488         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4489         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4490         (sse2_psadbw): Merge with *avx_psadbw.
4491         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4492         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4493         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4494         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4495         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4496         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4497         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4498         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4499         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4500         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4501         (ssse3_palignrti): Merge with *avx_palignrti.
4502
4503 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4504
4505         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4506         * tree-ssanames.c (fini_ssanames): VEC_free it.
4507         (make_ssa_name_fn): Update for VECness of free_ssanames.
4508         (release_ssa_name, release_dead_ssa_names): Likewise.
4509         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4510         tree_common.
4511         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4512         TS_TYPED instead of TS_COMMON.
4513
4514 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4515
4516         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4517         statistics_counter_event.
4518         * tree-ssa-copyrename.c (stats): Define.
4519         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4520         statistics_counter_event.
4521         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4522         (bswap_stats, widen_mul_stats): Define.
4523         (insert_reciprocals): Increment rdivs_inserted.
4524         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4525         rfuncs_inserted.  Add calls to statistics_counter_event.
4526         (execute_cse_sincos_1): Increment inserted.
4527         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4528         statistics_counter_event.
4529         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4530         of bswap_stats.  Add calls to statistics_counter_event.
4531         (convert_mult_to_widen): Increment widen_mults_inserted.
4532         (convert_plusminus_to_widen): Increment maccs_inserted.
4533         (convert_mult_to_fma): Increment fmas_inserted.
4534         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4535         calls to statistics_counter_event.
4536
4537 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4538
4539         PR rtl-optimization/48455
4540         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4541         `temp_costs->mem_cost'.
4542
4543 2011-04-13  Jan Hubicka  <jh@suse.cz>
4544
4545         * ipa-inline.h: New file.
4546         * ipa-inline-analysis.c: New file. Broken out of ...
4547         * ipa-inline.c: ... this file; update toplevel comment;
4548         include ipa-inline.h
4549         (inline_summary): Move to ipa-inline.h
4550         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4551         ipa-inline-analysis.c.
4552         (cgraph_estimate_time_after_inlining): Rename to
4553         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4554         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4555         to estimate_edge_growth.
4556         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4557         rename to estimate_size_after_inlining.
4558         (cgraph_mark_inline_edge): Update for new naming convention.
4559         (cgraph_check_inline_limits): Likewise.
4560         (cgraph_edge_badness): Likewise.
4561         (cgraph_decide_recursive_inlining): Likewise.
4562         (cgraph_decide_inlining_of_small_functions): Likewise.
4563         (cgraph_decide_inlining_incrementally): Likewise.
4564         (cgraph_estimate_growth): Rename to estimate_growth; move to
4565         ipa-inline-analysis.c.
4566         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4567         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4568         (compute_inline_parameters): Likewise.
4569         (compute_inline_parameters_for_current): Likewise.
4570         (pass_inline_parameters): Likewise.
4571         (inline_indirect_intraprocedural_analysis): Likewise.
4572         (analyze_function): Rename to inline_analyze_function; likewise.
4573         (add_new_function): Move to ipa-inline-analysis.c.
4574         (inline_generate_summary): Likewise.
4575         (inline_read_summary): Likewise.
4576         (inline_write_summary): Likewise.
4577         * Makefile.in (ipa-inline-analysis.c): New file.
4578
4579 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4580
4581         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4582         * configure: Regenerate.
4583
4584 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4585
4586         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4587         instead of tree_common.
4588         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4589         Likewise.
4590         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4591         TS_TYPED rather than TS_COMMON.
4592         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4593
4594 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4595
4596         PR target/45263
4597         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4598         r20 around calls of __tablejump_elpm__
4599
4600 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4601
4602         PR middle-end/48591
4603         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4604         NULL.
4605         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4606
4607 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4608
4609         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4610         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4611         (cfi_vec): New typedef.
4612         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4613         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4614         (cie_cfi_vec): New static variable.
4615         (cie_cfi_head): Delete.
4616         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4617         declaration changed. Use vector rather than list operations.
4618         (new_cfi): Don't initialize the dw_cfi_next field.
4619         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4620         rather than list operations.
4621         (lookup_cfa): Use vector rather than list operations.
4622         (output_cfis): New argument upto. Accept a cfi_vec rather than
4623         a dw_cfi_ref list head as argument. All callers changed.
4624         Iterate over the vector using upto as a maximum index.
4625         (output_all_cfis): New static function.
4626         (output_fde): Use vector rather than list operations. Use the
4627         new upto argument for output_cfis rather than manipulating a
4628         list.
4629         (dwarf2out_begin_prologue): Change initializations to match
4630         new struct members.
4631         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4632         from the vector length rather than searching for the end of a list.
4633         Use output_all_cfis.
4634         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4635
4636 2011-04-13  Nick Clifton  <nickc@redhat.com>
4637
4638         * config/rx/rx.md (movmemsi): Do not use this pattern when
4639         volatile pointers are involved.
4640
4641 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4642
4643         * config/i386/sse.md (pinsrbits): Remove.
4644         (sse2_packsswb): Merge with *avx_packsswb.
4645         (sse2_packssdw): Merge with *avx_packssdw.
4646         (sse2_packuswb): Merge with *avx_packuswb.
4647         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4648         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4649         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4650         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4651         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4652         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4653         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4654         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4655         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4656         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4657         (sse2_loadld): Merge with *avx_loadld.
4658         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4659         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4660         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4661         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4662         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4663
4664 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4665
4666         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4667         calling TREE_CHAIN.
4668         * print-tree.c (print_node): Likewise.
4669         * tree-inline.c (copy_tree_r): Likewise.
4670         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4671         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4672         instead of TS_COMMON.
4673         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4674         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4675         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4676         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4677         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4678         ...and these...
4679         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4680         * tree.h: ...here.
4681         (TREE_CHAIN): Check for a TS_COMMON structure.
4682         (TREE_TYPE): Check for a TS_TYPED structure.
4683
4684 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4685
4686         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4687         cgraph_get_create_node instead of cgraph_node.
4688
4689 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4690
4691         * c-parser.c (c_parser_initelt): Updated call to
4692         objc_build_message_expr.
4693         (c_parser_postfix_expression): Likewise.
4694
4695 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4696
4697         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4698         MASK_MS_BITFIELD_LAYOUT bit.
4699
4700 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4701
4702         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4703         assert it is always true.
4704         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4705         moves.
4706
4707 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4708
4709         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4710         compiling Objective-C to be more efficient.
4711
4712 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4713
4714         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4715         argv_copied.
4716
4717 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4718
4719         * recog.h, genoutput.c, optabs.c: Revert last patch.
4720
4721 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4722
4723         PR target/48090
4724         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4725
4726 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4727
4728         * recog.h (insn_operand_data): Add an "allows_mem" field.
4729         * genoutput.c (output_operand_data): Initialize it.
4730         * optabs.c (maybe_legitimize_operand_same_code): New function.
4731         (maybe_legitimize_operand): Use it when matching the original
4732         op->value.
4733
4734 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4735
4736         * genpreds.c (process_define_predicate): Move most processing
4737         to gensupport.c.  Continue to validate the expression.
4738         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4739         (process_define_predicate): Move processing to gensupport.c.
4740         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4741         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4742         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4743         argument.
4744         (valid_predicate_name_p): New function, split out from old
4745         genpreds.c:process_define_predicate.
4746         (process_define_predicate): New function, combining code from
4747         old genpreds.c and genrecog.c functions.
4748         (process_rtx): Call it for DEFINE_PREDICATE and
4749         DEFINE_SPECIAL_PREDICATE.
4750
4751 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4752
4753         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4754         size of a '%A' memory reference.
4755         (T_DREG, T_QREG): New neon_builtin_type_bits.
4756         (arm_init_neon_builtins): Assert that the load and store operands
4757         are neon_struct_operands.
4758         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4759         (NEON_ARG_MEMORY): New builtin_arg.
4760         (neon_dereference_pointer): New function.
4761         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4762         Handle NEON_ARG_MEMORY.
4763         (arm_expand_neon_builtin): Update after above interface changes.
4764         Use NEON_ARG_MEMORY for loads and stores.
4765         * config/arm/predicates.md (neon_struct_operand): New predicate.
4766         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4767         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4768         (V_four_elem): Tweak formatting.
4769         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4770         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4771         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4772         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4773         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4774         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4775         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4776         Use %A in the output template.
4777         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4778         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4779         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4780         the width of the memory access.  Remove post-increment.
4781         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4782
4783 2011-04-12  Nick Clifton  <nickc@redhat.com>
4784
4785         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4786         instruction for interrupt handlers if the target is the basic V850
4787         architecture.
4788         (expand_epilogue): Likewise.
4789
4790 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4791
4792         PR rtl-optimization/48549
4793         * combine.c (propagate_for_debug): Also stop after BB_END of
4794         this_basic_block.  Process LAST and just stop processing after it.
4795         (combine_instructions): If last_combined_insn has been deleted,
4796         set last_combined_insn to its PREV_INSN.
4797
4798 2011-04-12  Richard Guenther  <rguenther@suse.de>
4799
4800         PR tree-optimization/46076
4801         * gimple.h (struct gimple_statement_call): Add fntype field.
4802         (gimple_call_fntype): Adjust.
4803         (gimple_call_set_fntype): New function.
4804         * gimple.c (gimple_build_call_1): Set the call function type.
4805         * gimplify.c (gimplify_call_expr): Preserve the function
4806         type the frontend used for the call.
4807         (gimplify_modify_expr): Likewise.
4808         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4809         function type.
4810         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4811         function type.
4812         * tree-ssa.c (useless_type_conversion_p): Function pointer
4813         conversions are useless.
4814
4815 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4816
4817         * cgraph.h (cgraph_node): Remove function declaration.
4818         (cgraph_create_node): Declare.
4819         (cgraph_get_create_node): Likewise.
4820         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4821         Updated all callers.
4822         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4823         the decl does not already exist.  Call cgraph_get_create_node instead
4824         of cgraph_node.
4825         (cgraph_get_create_node): New function.
4826         (cgraph_same_body_alias): Update comment.
4827         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4828         assert it does not return NULL.
4829         (cgraph_update_edges_for_call_stmt): Likewise.
4830         (cgraph_clone_edge): Likewise.
4831         (cgraph_create_virtual_clone): Likewise.
4832         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4833         instead of cgraph_node.
4834         (cgraph_add_new_function): Call cgraph_create_node or
4835         cgraph_get_create_node instead of cgraph_node.
4836         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4837         instead of cgraph_node.
4838         (record_eh_tables): Likewise.
4839         (mark_address): Likewise.
4840         (mark_load): Likewise.
4841         (build_cgraph_edges): Call cgraph_get_create_node instead
4842         of cgraph_node.
4843         (rebuild_cgraph_edges): Likewise.
4844         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4845         instead of cgraph_node.
4846         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4847         cgraph_node.
4848         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4849         cgraph_create_node instead of cgraph_node.
4850         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4851         of cgraph_node.
4852         * lto-cgraph.c (input_node): Likewise.
4853         * lto-streamer-in.c (input_function): Likewise.
4854         * varasm.c (mark_decl_referenced): Likewise.
4855         (assemble_alias): Likewise.
4856
4857 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4858
4859         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4860         instead of cgraph_node and assert it does not return NULL.
4861         * lto-streamer-in.c (lto_read_body): Likewise.
4862         * omp-low.c (new_omp_context): Likewise.
4863         (create_task_copyfn): Likewise.
4864         * tree-emutls.c (lower_emutls_function_body): Likewise.
4865         * matrix-reorg.c (transform_allocation_sites): Likewise.
4866
4867 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4868
4869         PR c/48552
4870         * c-typeck.c (build_asm_expr): Error out on attempts to use
4871         void type outputs or inputs for constraints that allow reg or
4872         don't allow memory.
4873
4874 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4875             Richard Earnshaw  <rearnsha@arm.com>
4876
4877         PR target/48250
4878         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4879         to use sign-magnitude offsets. Reject unsupported unaligned
4880         cases. Add detailed description in comments.
4881         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4882         condition from TARGET_32BIT to TARGET_ARM.
4883
4884 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4885
4886         * tree.h (struct typed_tree): New.
4887         (struct tree_common): Include it instead of tree_base.
4888         (TREE_TYPE): Update for new location of type field.
4889         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4890         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4891         (union tree_node): Add typed field.
4892         * treestruct.def (TS_TYPED): New.
4893         * lto-streamer.c (check_handled_ts_structures): Handle it.
4894         * tree.c (MARK_TS_TYPED): New macro.
4895         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4896
4897 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4898
4899         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4900         (force_nonfallthru): Do not alter the loop nest if no basic block
4901         was created.
4902
4903 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4904
4905         * config/i386/sse.md (VI): New mode iterator.
4906         (SSEMODEI): Remove.
4907         (AVX256MODEI): Ditto.
4908         (AVXMODEF4P): Ditto.
4909         (avxvecpsmode): Ditto.
4910         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4911         (sse2_andnot<mode>3): New expander.
4912         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4913         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4914         (<any_logic:code><mode>3): Use VI mode iterator.
4915         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4916         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4917         (*andnottf3): Handle AVX three-operand constraints.
4918         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4919
4920 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4921             Robert Millan  <rmh@gnu.org>
4922
4923         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4924         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4925         GNU_USER_DYNAMIC_LINKER64): Define.
4926         (REG_NAME): Don't undefine.
4927         (MD_UNWIND_SUPPORT): Undefine.
4928         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4929         (REG_NAME): Don't undefine.
4930         (MD_UNWIND_SUPPORT): Undefine.
4931         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4932
4933 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4934
4935         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4936         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4937
4938 2011-04-11  Xinliang David Li  <davidxl@google.com>
4939
4940         * value-profile.c (check_ic_target): New function.
4941         (gimple_ic_transform): Sanity check indirect call target.
4942         * gimple-low.c (gimple_check_call_args): Interface change.
4943         (gimple_check_call_matching_types): New function.
4944         * tree-inline.c (tree_can_inline_p): Call new function.
4945
4946 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4947
4948         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4949         tree-pretty-print.h & realmpfr.h.
4950
4951 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4952
4953         PR middle-end/48464
4954         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4955         (setup_allocno_and_important_classes): Ditto.
4956
4957 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4958
4959         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4960         GNU_USER_DYNAMIC_LINKER.
4961         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4962         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4963         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4964         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4965         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4966         GNU_USER_TARGET_OS_CPP_BUILTINS.
4967         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4968         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4969         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4970         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4971         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4972         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4973         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4974         GNU_USER_TARGET_OS_CPP_BUILTINS.
4975         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4976         GNU_USER_DYNAMIC_LINKER.
4977         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4978         GNU_USER_TARGET_OS_CPP_BUILTINS.
4979         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4980         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4981         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4982         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4983         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4984         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4985         GNU_USER_DYNAMIC_LINKER64): Remove.
4986         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4987         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4988         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4989         GNU_USER_DYNAMIC_LINKER.
4990         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4991         GNU_USER_TARGET_OS_CPP_BUILTINS.
4992         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4993         GNU_USER_TARGET_OS_CPP_BUILTINS.
4994         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4995         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4996         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4997         GNU_USER_TARGET_OS_CPP_BUILTINS.
4998         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4999         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5000         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5001         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5003         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5004         GNU_USER_DYNAMIC_LINKER.
5005         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5006         GNU_USER_TARGET_OS_CPP_BUILTINS.
5007         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5008         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5009         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5010         GNU_USER_DYNAMIC_LINKER.
5011         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5012         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5013         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5014         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5015         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5016         GNU_USER_DYNAMIC_LINKER.
5017         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5018         GNU_USER_DYNAMIC_LINKERN32.
5019         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5020         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5021         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5022         GNU_USER_DYNAMIC_LINKER32.
5023         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5024         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5025         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5026         GNU_USER_DYNAMIC_LINKER.
5027         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5028         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5029         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5031         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5032         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5033         GNU_USER_DYNAMIC_LINKER32.
5034         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5035         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5036         GNU_USER_DYNAMIC_LINKER.
5037         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5038         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5039         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5040         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5041         GNU_USER_DYNAMIC_LINKER64.
5042         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5043         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5044         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5045         GNU_USER_DYNAMIC_LINKER.
5046         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5047         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5048         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5049         GNU_USER_DYNAMIC_LINKER.
5050         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5051         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5052         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5053         GNU_USER_DYNAMIC_LINKER32.
5054         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5055         GNU_USER_DYNAMIC_LINKER64.
5056         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5057         GNU_USER_DYNAMIC_LINKER64.
5058         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5059         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5060         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5061         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5062         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5063
5064 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5065
5066         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5067         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5068         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5069         GNU_USER_DYNAMIC_LINKER.
5070         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5071         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5072         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5073         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5074         GNU_USER_DYNAMIC_LINKER64.
5075         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5076         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5077         GNU_USER_LINK_EMULATION.
5078         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5079         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5080         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5081         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5082         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5083         CPP_SPEC, CC1_SPEC): Remove.
5084         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5085         (GNU_USER_DYNAMIC_LINKER): Define.
5086         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5087         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5088         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5089         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5090         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5091         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5092         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5093         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5094         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5095         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5096         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5097         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5098         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5099         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5100         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5101         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5102         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5103         GNU_USER_DYNAMIC_LINKER.
5104         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5105         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5106         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5107         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5108         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5109         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5110         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5111         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5112         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5113         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5114
5115 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5116
5117         PR target/9601
5118         PR target/11772
5119         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5120         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5121         comment.
5122         (ix86_is_msabi_thiscall): Removed.
5123         (ix86_is_type_thiscall): Likewise.
5124         (ix86_get_callcvt): New function.
5125         (ix86_comp_type_attributes): Simplify check.
5126         (ix86_function_regparm): Use ix86_get_callcvt for calling
5127         convention attribute checks.
5128         (ix86_return_pops_args): Likewise.
5129         (ix86_static_chain): Likewise.
5130         (x86_this_parameter): Likewise.
5131         (x86_output_mi_thunk): Likewise.
5132         (ix86_function_type_abi): Optimize check for types without attributes.
5133         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5134         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5135         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5136         by flag-values.
5137         (IX86_BASE_CALLCVT): Helper macro.
5138         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5139         Use ix86_get_callcvt for calling convention attribute checks and avoid
5140         symbol-decoration for stdcall in TARGET_RTD case.
5141         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5142         Likewise.
5143         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5144         for declaration.
5145
5146 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5147
5148         * config/i386/sse.md (VI_128): New mode iterator.
5149         (VI12_128): Rename from SSEMODE12.
5150         (VI14_128): Rename from SSEMODE14.
5151         (VI124_128): New mode iterator.
5152         (VI24_128): Rename from SSEMODE248.
5153         (VI248_128): Rename from SSEMODE248.
5154         (SSEMODE124C8): Remove.
5155         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5156         (*sse2_<plusminus_insn><mode>3): Merge with
5157         *avx_<plusminus_insn><mode>3.
5158         (*mulv8hi3): Merge with *avx_mulv8hi3.
5159         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5160         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5161         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5162         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5163         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5164         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5165         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5166         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5167         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5168         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5169         (*<smaxmin:code>v8hi3): Ditto.
5170         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5171         (*<smaxmin:code>v16qi3): Ditto.
5172         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5173         (*sse2_eq<mode>3): Ditto.
5174         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5175         (*sse2_gt<mode>3): Ditto.
5176         (vcondv2di): Split out of vcond<mode>.
5177         (vconduv2di): Split out of vcondu<mode>.
5178
5179 2011-04-11  Richard Guenther  <rguenther@suse.de>
5180
5181         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5182         before calling tree_low_cst.
5183
5184 2011-04-11  Richard Guenther  <rguenther@suse.de>
5185
5186         * stor-layout.c (layout_type): Compute all array index size operations
5187         in the original type.
5188         (initialize_sizetypes): Add comment.
5189         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5190
5191 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5194
5195 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5196
5197         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5198         of cgraph_node, handle NULL return value.
5199         (cgraph_global_info): Likewise.
5200         (cgraph_rtl_info): Likewise.
5201         * tree-inline.c (estimate_num_insns): Likewise.
5202         * gimplify.c (unshare_body): Likewise.
5203         (unvisit_body): Likewise.
5204         (gimplify_body): Likewise.
5205         * predict.c (optimize_function_for_size_p): Likewise.
5206         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5207         (call_may_clobber_ref_p_1): Likewise.
5208         * varasm.c (function_section_1): Likewise.
5209         (assemble_start_function): Likewise.
5210
5211 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5212
5213         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5214         of cgraph_node.
5215         * final.c (rest_of_clean_state): Likewise.
5216         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5217         * passes.c (pass_init_dump_file): Likewise.
5218         (execute_all_ipa_transforms): Likewise.
5219         (function_called_by_processed_nodes_p): Likewise.
5220         * predict.c (maybe_hot_frequency_p): Likewise.
5221         (probably_never_executed_bb_p): Likewise.
5222         (compute_function_frequency): Likewise.
5223         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5224         (unnest_nesting_tree_1): Likewise.
5225         (lower_nested_functions): Likewise.
5226         * tree-optimize.c (execute_fixup_cfg): Likewise.
5227         (tree_rest_of_compilation): Likewise.
5228         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5229         * tree-sra.c (ipa_early_sra): Likewise.
5230         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5231         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5232         * ipa.c (record_cdtor_fn): Likewise.
5233         * ipa-inline.c (cgraph_early_inlining): Likewise.
5234         (compute_inline_parameters_for_current): Likewise.
5235         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5236         * ipa-pure-const.c (local_pure_const): Likewise.
5237         * ipa-split.c (split_function): Likewise.
5238         (execute_split_functions): Likewise.
5239         * cgraphbuild.c (build_cgraph_edges): Likewise.
5240         (rebuild_cgraph_edges): Likewise.
5241         (cgraph_rebuild_references): Likewise.
5242         (remove_cgraph_callee_edges): Likewise.
5243         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5244         (verify_cgraph_node): Likewise.
5245         (cgraph_analyze_functions): Likewise.
5246         (cgraph_preserve_function_body_p): Likewise.
5247         (save_inline_function_body): Likewise.
5248         (save_inline_function_body): Likewise.
5249         * tree-inline.c (copy_bb): Likewise.
5250         (optimize_inline_calls): Likewise.
5251
5252 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5253
5254         PR tree-optimization/48195
5255         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5256         ipa_check_create_edge_args.
5257         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5258         ipa_check_create_edge_args.
5259         * ipa-inline.c (inline_generate_summary): Do not call
5260         ipa_check_create_node_params and ipa_check_create_edge_args.
5261         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5262         ipa_check_create_edge_args.
5263
5264 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5265
5266         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5267         instead of loop.
5268         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5269         * function.c (record_hard_reg_sets): Likewise.
5270         * ira.c (compute_regs_asm_clobbered): Likewise.
5271         * sched-deps.c (sched_analyze_1): Likewise.
5272         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5273
5274 2011-04-09  Xinliang David Li  <davidxl@google.com>
5275
5276         PR tree-optimization/PR48484
5277         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5278         has_valid_pred lazily
5279
5280 2011-04-09  Duncan Sands  <baldrick@free.fr>
5281
5282         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5283
5284 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5285
5286         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5287         cost of I0 to zero at the end, if any.
5288
5289 2011-04-08  Xinliang David Li  <davidxl@google.com>
5290
5291         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5292         to insane profile data.
5293
5294 2011-04-08  Xinliang David Li  <davidxl@google.com>
5295
5296         * ipa-cp.c (ipcp_update_profiling): Correct
5297          negative scale factor due to insane profile data.
5298
5299 2011-04-08  Xinliang David Li  <davidxl@google.com>
5300
5301         * final.c (dump_basic_block_info): New function.
5302         (final): Dump basic block.
5303         (final_scan_insn): Remove old dump.
5304
5305 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5306
5307         PR target/47829
5308         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5309         crtbegin/crtend.
5310
5311 2011-04-08  Michael Matz  <matz@suse.de>
5312
5313         PR middle-end/48389
5314         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5315         functions.
5316         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5317         * rtl.h (rebuild_jump_labels_chain): Declare.
5318         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5319         insns inserted on edges.
5320
5321 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5322
5323         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5324         * config/arm/arm-arches.def: New.
5325         * config/arm/arm-opts.h: New.
5326         * config/arm/genopt.sh: New.
5327         * config/arm/arm-tables.opt: New (generated).
5328         * config/arm/arm.c (arm_handle_option, arm_target_help,
5329         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5330         (all_architectures): Get most table contents from arm-arches.def.
5331         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5332         arm_selected_tune here.
5333         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5334         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5335         (march=, mcpu=, mtune=): Use Enum and Var.
5336         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5337         (arm.o): Update dependencies.
5338
5339 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5340
5341         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5342         of header_file.
5343         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5344         (write_typed_alloc_defns): Likewise.
5345         (main): Calls write_typed_alloc_defns with output_header.
5346
5347 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5348
5349         PR inline-asm/48435
5350         * ira-color.c (setup_profitable_hard_regs): Add comments.
5351         Don't take prohibited hard regs into account.
5352         (setup_conflict_profitable_regs): Rename to
5353         get_conflict_profitable_regs.
5354         (check_hard_reg_p): Check prohibited hard regs.
5355
5356 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5357
5358         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5359         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5360         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5361
5362 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5363
5364         PR target/48366
5365         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5366         move from floating point to shift amount register.
5367         (emit_move_sequence): Remove secondary reload support for floating
5368         point to shift amount amount register copies.
5369         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5370         amount register copies.
5371         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5372         register, return false if mode isn't a scalar integer mode.
5373         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5374
5375 2011-04-08  Richard Guenther  <rguenther@suse.de>
5376
5377         * gimple.c (gimple_call_flags): Remove kludge.
5378
5379 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5380
5381         * sel-sched.c (sel_region_init): Move call to
5382         sel_setup_region_sched_flags after setup_current_loop_nest.
5383
5384 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5385
5386         PR rtl-optimization/48272
5387         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5388         init_insn_reg_pressure_info.  Adjust a caller.
5389         * sched-int.h (init_insn_reg_pressure_info): Declare.
5390         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5391         when sched-pressure is enabled.
5392
5393 2011-04-08  Richard Guenther  <rguenther@suse.de>
5394
5395         * gimple.c (gimple_set_modified): Do not queue calls to
5396         MODIFIED_NORETURN_CALLS here ...
5397         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5398
5399 2011-04-08  Richard Guenther  <rguenther@suse.de>
5400
5401         PR lto/48467
5402         * toplev.c (lang_dependent_init): Do not open asm_out_file
5403         in WPA mode, nor perform debug machinery initialization.
5404         (finalize): Do not unlink asm_out_file in WPA mode.
5405
5406 2011-04-08  Richard Guenther  <rguenther@suse.de>
5407
5408         * gimple.h (gimple_call_fntype): New function.
5409         (gimple_call_return_type): Use it.
5410         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5411         * gimple-low.c (gimple_check_call_args): Likewise.
5412         * gimple.c (gimple_call_flags): Likewise.
5413         (gimple_call_arg_flags): Likewise.
5414         (gimple_call_return_flags): Likewise.
5415         * tree-cfg.c (verify_gimple_call): Likewise.
5416         (do_warn_unused_result): Likewise.
5417         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5418         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5419
5420 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5421
5422         PR rtl-optimization/48235
5423         * sel-sched.c (code_motion_process_successors): Recompute the last
5424         insn in basic block if control flow changed.
5425         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5426         Update condition for ilist_remove.
5427
5428 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5429
5430         PR rtl-optimization/48302
5431         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5432         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5433         it to record added preheader blocks.
5434         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5435         on to sel_add_loop_preheaders.
5436         (sel_region_init): Move call to setup_current_loop_nest after
5437         sel_init_bbs.
5438
5439 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5440
5441         PR target/48273
5442         * cfgloop.h (loop_has_exit_edges): New helper.
5443         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5444         non-clonable.
5445         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5446         that have no exit edges.
5447
5448 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5449
5450         PR rtl-optimization/48442
5451         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5452         all callers.  Adjust assert.
5453
5454 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5455
5456         PR tree-optimization/48377
5457         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5458         is_packed to true even for types with smaller TYPE_ALIGN than
5459         TYPE_SIZE.
5460
5461 2011-04-08  Richard Guenther  <rguenther@suse.de>
5462
5463         PR bootstrap/48513
5464         * doc/tm.texi: Re-generate.
5465
5466 2011-04-08  Wei Guozhi  <carrot@google.com>
5467
5468         PR target/47855
5469         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5470         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5471         * config/arm/arm.md (*push_multi): Change the length computation to
5472         call a C function.
5473
5474 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5475
5476         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5477         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5478         * doc/tm.texi: Regenerate.
5479         * system.h (ASM_OUTPUT_BSS): Poison.
5480         * varasm.c (asm_output_bss): Remove function.
5481         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5482
5483         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5484         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5485         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5486         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5487         Likewise.
5488         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5489         Likewise.
5490         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5491         Likewise.
5492         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5493
5494 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5495
5496         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5497         EnumValue lines.
5498
5499 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5500
5501         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5502         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5503         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5504         OPT_mcpu32.
5505         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5506         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5507         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5508         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5509         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5510         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5511         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5512         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5513         options.  Don't map other m68k options manually.  Don't handle
5514         old-style options as canonical.
5515         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5516         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5517
5518 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5519
5520         * basic-block.h (force_nonfallthru): Move to...
5521         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5522         (force_nonfallthru): ...here.
5523         * cfghooks.c (force_nonfallthru): New function.
5524         * cfgrtl.c (force_nonfallthru): Rename into...
5525         (rtl_force_nonfallthru): ...this.
5526         (commit_one_edge_insertion): Do not set AUX field.
5527         (commit_edge_insertions): Do not discover new basic blocks.
5528         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5529         (cfg_layout_rtl_cfg_hooks): Likewise.
5530         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5531         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5532         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5533
5534 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5535
5536         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5537         Remove macros.
5538
5539 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5540
5541         * config/i386/sse.md: Update copyright year.
5542         (avxcvtvecmode): Remove.
5543         (sse_movhlps): Merge with *avx_movhlps.
5544         (sse_movlhps): Merge with *avx_movlhps.
5545         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5546         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5547         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5548         (sse_loadhps): Merge with *avx_loadhps.
5549         (sse_storelps): Merge with *avx_storelps.
5550         (sse_loadlps): Merge with *avx_loadlps.
5551         (sse_movss): Merge with *avx_movss.
5552         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5553         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5554         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5555         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5556         (vec_set<mode>_0): Ditto.
5557         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5558         (sse4_1_insertps): Merge with *avx_insertps.
5559         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5560         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5561         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5562         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5563         (sse2_storehpd): Merge with *avx_storehpd.
5564         (sse2_loadhpd): Merge with *avx_loadhpd.
5565         (sse2_loadlpd): Merge with *avx_loadlpd.
5566         (sse2_movsd): Merge with *avx_movsd.
5567         (*vec_concatv2df): Merge with *vec_concatv2df.
5568
5569 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5570
5571         PR debug/48343
5572         * combine.c (combine_instructions): Add last_combined_insn,
5573         update it if insn is after it, pass it to all try_combine calls.
5574         (try_combine): Add last_combined_insn parameter, pass it instead of
5575         i3 to propagate_for_debug.
5576
5577 2011-04-07  Nick Clifton  <nickc@redhat.com>
5578
5579         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5580         to handle MDR <-> data register transfers.
5581         (movhi_internal): Likewise.
5582
5583 2011-04-07  Alan Modra  <amodra@gmail.com>
5584
5585         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5586         previous stack info.
5587
5588 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5589
5590         PR target/43920
5591         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5592         flow_find_cross_jump.  Swap variables to implement backward replacement.
5593         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5594
5595 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5596
5597         PR target/43920
5598         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5599         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5600         and bb2.
5601         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5602         src1 or src2.  Redirect edges to the last basic block.  Update
5603         frequency and count on multiple basic blocks in case of fallthru.
5604
5605 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5606
5607         PR target/43920
5608         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5609         function.
5610         (old_insns_match_p): Change return type.  Replace return false/true
5611         with return dir_none/dir_both.  Use can_replace_by.
5612         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5613         direction from dir_p.  Register replacement direction in dir, last_dir
5614         and afterlast_dir.  Handle new return type of old_insns_match_p using
5615         merge_dir.  Return replacement direction in dir_p.
5616         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5617         return type of old_insns_match_p.
5618         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5619         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5620         flow_find_cross_jump.
5621         * basic-block.h (enum replace_direction): New type.
5622         (flow_find_cross_jump): Add parameter to declaration.
5623
5624 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5625
5626         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5627         (AVXMODEDCVTPS2DQ): Ditto.
5628         (VEC_FLOAT_MODE): Ditto.
5629         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5630         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5631         (<any_logic:code><mode>3): Use VF mode iterator.
5632         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5633         Use VF mode iterator.
5634         (copysign<mode>3): Use VF mode iterator.
5635         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5636         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5637         (*<any_logic:code><MODEF:mode>3): Merge with
5638         *avx_<any_logic:code><MODEF:mode>3.
5639         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5640         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5641         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5642         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5643         (sse2_cvtdq2ps): Use %v modifier.
5644         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5645         (avx_cvtps2dq<avxmodesuffix>): Remove.
5646         (sse2_cvtps2dq): Use %v modifier.
5647         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5648         (avx_cvttps2dq<avxmodesuffix>): Remove.
5649         (sse2_cvttps2dq): Use %v modifier.
5650         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5651         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5652         (sse2_cvtsd2siq): Fix insn template.
5653         (sse2_cvtsd2siq_2): Ditto.
5654         (sse2_cvttsd2siq): Ditto.
5655         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5656         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5657
5658 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5659
5660         * gcov-io.c: Use GCC Runtime Library Exception.
5661
5662 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5663
5664         PR debug/48466
5665         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5666         as base_reg whatever register reg has been eliminated to, instead
5667         of hardcoding STACK_POINTER_REGNUM.
5668
5669 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5670
5671         * doc/tm.texi.in: Document C target hooks as separate from general
5672         target hooks.
5673         * doc/tm.texi: Regenerate.
5674         * genhooks.c (struct hook_desc): Add docname field.
5675         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5676         docname field.
5677         (hook_array): Include c-target.def.
5678         (emit_documentation): Use docname field in output.
5679         (emit_init_macros): Take docname argument.  Only emit definitions
5680         for hooks matching docname.
5681         (main): Expect additional arguments in all cases.  Pass argument
5682         to emit_init_macros.
5683         * target.def: Move initial macro definitions and comments to
5684         target-hooks-macros.h.
5685         (gcc_targetcm): Move to c-family/c-target.def.
5686         * target.h (targetcm): Move declaration to c-family/c-target.h.
5687         * targhooks.c (default_handle_c_option): Move to
5688         c-family/c-opts.c.
5689         * targhooks.h (default_handle_c_option): Move declaration to
5690         c-family/c-common.h.
5691         * target-hooks-macros.h: New file.
5692         * config.gcc (target_has_targetcm): Define and use to add to
5693         c_target_objs and cxx_target_objs.
5694         * config/default-c.c: New file.
5695         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5696         of target.h and target-def.h.
5697         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5698         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5699         darwin_check_cfstring_format_arg): Make static.
5700         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5701         TARGET_STRING_OBJECT_REF_TYPE_P,
5702         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5703         * config/darwin-protos.h (darwin_objc_construct_string,
5704         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5705         declare.
5706         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5707         TARGET_STRING_OBJECT_REF_TYPE_P,
5708         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5709         * config/t-darwin (darwin-c.o): Update dependencies.
5710         * system.h (TARGET_HAS_TARGETCM): Poison.
5711         * Makefile.in (TARGET_H): Update.
5712         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5713         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5714         (default-c.o): New target.
5715         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5716         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5717         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5718         c-target.def.
5719         (build/genhooks.o): Update dependencies.
5720
5721 2011-04-06  Richard Guenther  <rguenther@suse.de>
5722
5723         * ipa-inline.c (enum inlining_mode): Remove.
5724         (cgraph_flatten): Use some other token.
5725         (cgraph_edge_early_inlinable_p): New function, split out from ...
5726         (cgraph_perform_always_inlining): New function, split out from ...
5727         (cgraph_decide_inlining_incrementally): ... here.
5728         (cgraph_mark_inline_edge): Adjust.
5729         (cgraph_early_inlining): Re-structure.
5730         (pass_early_inline): Require SSA form.
5731
5732 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5733             Julian Brown  <julian@codesourcery.com>
5734             Mark Shinwell  <shinwell@codesourcery.com>
5735
5736         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5737         LO_REGS only for Thumb-1.
5738         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5739         be used in short instructions when optimising for size on Thumb-2.
5740
5741 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5742
5743         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5744         associated with user returns to be preserved.
5745
5746 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5747
5748         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5749         symbol_queue_size, DBXOUT_DECR_NESTING,
5750         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5751         if XCOFF_DEBUGGING_INFO.
5752
5753 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5754
5755         * config/i386/i386.md (attribute isa): New.
5756         (attribute enabled): New.
5757         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5758         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5759         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5760         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5761         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5762         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5763         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5764         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5765
5766         * config/i386/sse.md (VF): New mode iterator.
5767         (VF1): Ditto.
5768         (VF2): Ditto.
5769         (VF_128): Ditto.
5770         (SSEMODEF4): Remove.
5771         (attribute sse): Handle V8SF and V4DF modes.
5772         (<absneg:code><mode>2): Use VF mode iterator.
5773         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5774         mode iterator.
5775         (<plusminus_insn><mode>3): Use VF mode iterator.
5776         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5777         Use VF mode iterator.
5778         (<sse>_vm<plusminus_insn><mode>3): Merge with
5779         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5780         (mul<mode>3): Use VF mode iterator.
5781         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5782         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5783         mode iterator.
5784         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5785         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5786         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5787         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5788         mode iterator.
5789         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5790         Use VF1 mode iterator.
5791         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5792         (sqrt<VF2:mode>2): New expander.
5793         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5794         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5795         and sqrtv2df2.  Use VF mode iterator.
5796         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5797         mode iterator.
5798         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5799         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5800         Use VF1 mode iterator.
5801         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5802         (<smaxmin:code><mode>3): Use VF mode iterator.
5803         (*<smaxmin:code><mode>3_finite): Merge with
5804         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5805         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5806         (<sse>_vm<smaxmin:code><mode>2): Merge with
5807         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5808         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5809         mode iterator.
5810         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5811         mode iterator.
5812         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5813         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5814         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5815         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5816         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5817         VF mode iterator.
5818         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5819         Use VF_128 mode iterator.
5820         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5821         mode iterator.
5822         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5823         VF_128 mode iterator.
5824         (vcond<mode>): Use VF mode iterator.
5825         * config/i386/predicates.md (sse_comparison_operator): Merge with
5826         avx_comparison_float_operator.  Do not declare as special_predicate.
5827         * config/i386/i386.c (struct builtin_description): Update for renamed
5828         compare patterns.
5829         (ix86_expand_args_builtin): Ditto.
5830         (ix86_expand_sse_compare_mask): Ditto.
5831
5832 2011-04-06  Richard Guenther  <rguenther@suse.de>
5833
5834         * tree-inline.c (estimate_num_insns): For calls simply account
5835         for all passed arguments and a used return value.
5836
5837 2011-04-06  Richard Guenther  <rguenther@suse.de>
5838
5839         PR tree-optimization/47663
5840         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5841         call_stmt_time fields.
5842         (cgraph_edge_inlinable_p): Declare.
5843         (cgraph_edge_recursive_p): New inline function.
5844         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5845         (cgraph_clone_edge): Copy it.
5846         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5847         Account for call stmt time.
5848         (cgraph_estimate_time_after_inlining): Take edge argument.
5849         (cgraph_estimate_edge_growth): Account call stmt size.
5850         (cgraph_estimate_size_after_inlining): Take edge argument.
5851         (cgraph_mark_inline_edge): Adjust.
5852         (cgraph_check_inline_limits): Likewise.
5853         (cgraph_recursive_inlining_p): Remove.
5854         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5855         (cgraph_decide_recursive_inlining): Take edge argument and
5856         adjust.
5857         (cgraph_decide_inlining_of_small_functions): Do not avoid
5858         diags for recursive inlining here.
5859         (cgraph_flatten): Adjust.
5860         (cgraph_decide_inlining_incrementally): Likewise.
5861         (estimate_function_body_sizes): Remove call cost handling.
5862         (compute_inline_parameters): Initialize caller edge call costs.
5863         (cgraph_estimate_edge_growth): New function.
5864         (cgraph_estimate_growth): Use it.
5865         (cgraph_edge_badness): Likewise.
5866         (cgraph_check_inline_limits): Take an edge argument.
5867         (cgraph_decide_inlining_of_small_functions): Adjust.
5868         (cgraph_decide_inlining): Likewise.
5869         * tree-inline.c (estimate_num_insns): Only account for call
5870         return value if it is used.
5871         (expand_call_inline): Avoid diagnostics on recursive inline
5872         functions here.
5873         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5874         (input_edge): Input edge call costs.
5875
5876 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5877
5878         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5879
5880 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5881
5882         * doc/invoke.texi (Spec Files): Fix typo.
5883
5884 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5885
5886         * profile.c (branch_prob): Move declaration of local variable.  Remove
5887         obsolete ??? comment.  Expand the location explicitly instead of using
5888         the LOCATION_FILE and LOCATION_LINE macros.
5889
5890 2011-04-06  Wei Guozhi  <carrot@google.com>
5891
5892         PR target/47855
5893         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5894         (arm_cond_branch): Likewise.
5895         (arm_cond_branch_reversed): Likewise.
5896         (arm_jump): Likewise.
5897         (push_multi): Likewise.
5898         * config/arm/constraints.md (Py): New constraint.
5899
5900 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5901
5902         PR bootstrap/48471
5903         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5904         Move these...
5905         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5906         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5907         #ifdef DBX_DEBUGGING_INFO.
5908
5909 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5910
5911         PR bootstrap/48403
5912         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5913         if old and new states differ.
5914
5915 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5916
5917         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5918         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5919         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5920         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5921         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5922         mcfv4e): Use Alias.
5923         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5924         ColdFire options to -mcpu= options.
5925
5926 2011-04-05  Jeff Law  <law@redhat.com>
5927
5928         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5929         check if BB is a successor of LOOP->header and return
5930         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5931
5932 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5933
5934         * cprop.c (struct reg_use): Remove.
5935         (reg_use_table): Make an array of RTX.
5936         (find_used_regs, constprop_register, local_cprop_pass,
5937         bypass_block): Simplify users of reg_use_table.
5938         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5939         on one of the uses found by find_used_regs.
5940
5941 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5942
5943         PR bootstrap/48469
5944         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5945         declaration.
5946
5947 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5948
5949         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5950         as an rtx.
5951         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5952
5953 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5954
5955         PR middle-end/48441
5956         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5957
5958 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5959
5960         * combine.c: Include obstack.h.
5961         (struct insn_link): Define.
5962         (uid_log_links): Adjust type.
5963         (FOR_EACH_LOG_LINK): New macro.
5964         (insn_link_obstack): Declare.
5965         (alloc_insn_link): Define.
5966         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5967         type of link variables.
5968         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5969         (try_combine, record_promoted_values, distribute_notes): Likewise.
5970         (distribute_links): Likewise.  Tweak prototype.
5971         (clear_log_links): Delete.
5972         (adjust_for_new_dest): Call alloc_insn_link.
5973         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5974
5975 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5976
5977         * gcse.c (modify_mem_list): Convert to an array of VECs.
5978         (canon_modify_mem_list, compute_transp): Tweak formatting.
5979         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5980         (load_killed_in_block_p): Likewise.
5981         (record_last_mem_set_info): Likewise.
5982         (clear_modify_mem_tables): Likewise.
5983
5984 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5985
5986         PR middle-end/48461
5987         * function.c (emit_use_return_register_into_block): Only define if
5988         HAVE_return.
5989
5990 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5991
5992         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5993
5994 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5995
5996         * config/rx/rx-opts.h: New.
5997         * config/rx/rx.c (rx_cpu_type): Remove.
5998         (rx_handle_option): Don't assert that global structures are in
5999         use.  Access variables via opts pointer.  Defer most handling of
6000         OPT_mint_register_.  Use error_at.
6001         (rx_option_override): Handle deferred OPT_mint_register_ here.
6002         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6003         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6004         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6005         (rx_cpu_types): New Enum and EnumValue entries.
6006         (mint-register=): Use Defer and use Var accordingly.
6007
6008 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6009
6010         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6011         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6012         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6013         Move these...
6014         (debug_free_queue, debug_nesting, symbol_queue_index):
6015         ...and these...
6016         * dbxout.c: ...to here.  Make static.
6017
6018 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6019
6020         * gcse.c (modify_pair): Define.  Define a VEC of it.
6021         (canon_modify_mem_list): Convert to an array of VECs.
6022         (free_insn_expr_list_list): Delete.
6023         (clear_modify_mem_tables): Call VEC_free instead.
6024         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6025         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6026         (canon_list_insert, compute_transp): Likewise.
6027
6028 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6029
6030         PR target/43920
6031         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6032         for size.
6033
6034 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6035
6036         PR target/43920
6037         * function.c (emit_use_return_register_into_block): New function.
6038         (thread_prologue_and_epilogue_insns): Use
6039         emit_use_return_register_into_block.
6040
6041 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6042
6043         PR target/43920
6044         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6045         insn.
6046
6047 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6048
6049         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6050
6051 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6052
6053         * config/arm/arm.md (define_constants for unspec): Replace with
6054         define_c_enum.
6055         (define_constants for unspecv): Replace with define_c_enum.
6056         * config/arm/neon.md (define_constants for unspec): Replace with
6057         define_c_enum.
6058
6059 2011-04-04  Richard Henderson  <rth@redhat.com>
6060
6061         PR bootstrap/48400
6062         * dwarf2out.c (output_line_info): Always emit line info from
6063         at least one section.
6064         (dwarf2out_init): Create text_section_line_info here ...
6065         (set_cur_line_info_table): ... not here.
6066
6067 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6068
6069         PR target/48380
6070         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6071         not called.
6072
6073         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6074
6075 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6076
6077         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6078         (expr_equiv_p): Remove.
6079         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6080         (hash_scan_set): Update call to insert_set_in_table.
6081         (dump_hash_table): Dump <dest, src> pair.
6082         (lookup_set): Simplify.  Lookup <dest, src> pair.
6083         (compute_transp): Remove, fold heavily simplified code into...
6084         (compute_local_properties): ...here.  Expect COMP and TRANSP
6085         unconditionally.
6086         (find_avail_set): Take set directly from struct expr.
6087         (find_bypass-set): Likewise.
6088         (bypass_block): Likewise.
6089         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6090
6091         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6092         checks on form of COND from find_implicit_sets to here.
6093         (find_implicit_sets): Cleanup control flow. Split critical edges
6094         if it exposes implicit sets.  Allocate/resize implicit_sets as
6095         necessary.
6096         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6097         changed something.  Run df_analyze after find_implicit_sets if any
6098         edges were split.  Do not allocate implicit_sets here.
6099
6100         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6101         (gcse_obstack): Renamed to cprop_obstack.
6102         (GNEW, GNEWVEC, GNEWVAR): Remove.
6103         (gmalloc): Remove.
6104         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6105         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6106         (gcse_alloc): Likewise, and rename to cprop_alloc.
6107         (alloc_gcse_men, free_gcse_mem): Remove.
6108         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6109         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6110         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6111
6112         * cprop.c (oprs_not_set_p): Remove.
6113         (mark_set, mark_clobber): Remove.
6114         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6115         (reg_not_set_p): New function.
6116         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6117         (cprop_insn): Likewise.
6118         (cprop_jump): Use FOR_EACH_EDGE.
6119
6120 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6121
6122         PR bootstrap/48403
6123         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6124         (rank_for_schedule): Use scheduled_insns vector instead of
6125         last_scheduled_insn.
6126         (ok_for_early_queue_removal): Likewise.
6127         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6128         we have a dbg_cnt.
6129         (choose_ready): Likewise.
6130         (commit_schedule): Use VEC_iterate.
6131         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6132         a dbg_cnt, use it and ensure the first insn is in the ready list.
6133         (haifa_sched_init): Allocate scheduled_insns.
6134         (sched_extend_ready_list): Don't allocate it; reserve space.
6135         (haifa_sched_finish): Free it.
6136
6137 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6138
6139         * optc-gen.awk: Always remove type from Variable entry before
6140         recording in var_seen.
6141
6142 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6143
6144         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6145         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6146         call to tidy_fallthru_edges.
6147
6148 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6149
6150         * doc/options.texi (ToLower): Document.
6151         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6152         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6153         * opts.h (cl_option): Add cl_tolower field.
6154         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6155         arguments with lowercase strings.
6156         * config/rx/rx.opt (mcpu=): Add ToLower.
6157         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6158         argument.
6159
6160 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6161
6162         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6163
6164 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6165
6166         * config/vax/vax.c: Include reload.h.
6167
6168 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6169
6170         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6171         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6172         (sparc_preferred_reload_class): New function.
6173
6174 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6175
6176         PR debug/48401
6177         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6178         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6179
6180 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6181
6182         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6183         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6184
6185 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6186
6187         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6188         (ASM_OUTPUT_ALIGNED_BSS): Define.
6189
6190 2011-04-03  Michael Matz  <matz@suse.de>
6191
6192         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6193         and next_slot members.
6194         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6195         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6196         (lto_streamer_cache_append): Declare.
6197         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6198         unsigned index, remove offset parameter, ensure that we append
6199         or update existing entries.
6200         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6201         parameter, update next_slot for append.
6202         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6203         parameter.
6204         (lto_streamer_cache_insert_at): Likewise.
6205         (lto_streamer_cache_append): New function.
6206         (lto_streamer_cache_lookup): Use unsigned index.
6207         (lto_streamer_cache_get): Likewise.
6208         (lto_record_common_node): Don't test tree_node_can_be_shared.
6209         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6210         (lto_streamer_cache_delete): Don't free offsets member.
6211         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6212         (lto_output_string_with_length): Use lto_output_data_stream.
6213         (lto_output_tree_header): Remove ix parameter, don't write it.
6214         (lto_output_builtin_tree): Likewise.
6215         (lto_write_tree): Adjust callers to above, don't track and write
6216         offset, write unsigned index.
6217         (output_unreferenced_globals): Don't emit all global vars.
6218         (write_global_references): Use unsigned indices.
6219         (lto_output_decl_state_refs): Likewise.
6220         (write_symbol): Likewise.
6221         * lto-streamer-in.c (lto_input_chain): Move earlier.
6222         (input_function): Use unsigned index.
6223         (input_alias_pairs): Don't read and then ignore all global vars.
6224         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6225         don't pass it back, use lto_streamer_cache_append.
6226         (lto_register_var_decl_in_symtab): Use unsigned index.
6227         (lto_register_function_decl_in_symtab): Likewise.
6228         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6229         index.
6230         (lto_get_builtin_tree): Don't read index, use
6231         lto_streamer_cache_append.
6232         (lto_read_tree): Adjust call to lto_materialize_tree.
6233
6234         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6235         don't use function calls in arguments to MIN.
6236
6237         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6238         twice.
6239
6240         * gimple.c (gimple_type_leader_entry): Mark deletable.
6241
6242 2011-04-03  Alan Modra  <amodra@gmail.com>
6243
6244         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6245
6246 2011-04-03  Michael Matz  <matz@suse.de>
6247
6248         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6249         an integer.
6250         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6251
6252 2011-04-03  Michael Matz  <matz@suse.de>
6253
6254         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6255         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6256         without function context.
6257         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6258         current_function_decl and cfun.
6259
6260 2011-04-03  Michael Matz  <matz@suse.de>
6261
6262         * tree.c (decl_init_priority_insert): Don't create entry for
6263         default priority.
6264         (decl_fini_priority_insert): Ditto.
6265         (fields_compatible_p, find_compatible_field): Remove.
6266         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6267         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6268
6269 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6270
6271         * combine.c (try_combine): Remove useless local variable.
6272
6273 2011-04-03  Richard Guenther  <rguenther@suse.de>
6274             Ira Rosen  <ira.rosen@linaro.org>
6275
6276         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6277         non-variable offsets and compare the remaining bases of the two
6278         accesses instead of looking for exact same data-ref.
6279
6280 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6281
6282         PR target/48416
6283         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6284
6285         * i386.c (ix86_is_msabi_thiscall): New helper function.
6286         (ix86_is_type_thiscall): New helper function.
6287         (ix86_comp_type_attributes): Handle thiscall for method-functions
6288         special.
6289         (init_cumulative_args): Likewise.
6290         (find_drap_reg): Likewise.
6291         (ix86_static_chain): Likewise.
6292         (x86_this_parameter): Likewise.
6293         (x86_output_mi_thunk): Likewise.
6294
6295 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6296             Nicolas Setton  <setton@adacore.com>
6297             Eric Botcazou  <ebotcazou@adacore.com>
6298
6299         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6300         (add_gnat_descriptive_type_attribute): New function.
6301         (gen_array_type_die): Call it.
6302         (gen_enumeration_type_die): Likewise.
6303         (gen_struct_or_union_type_die): Likewise.
6304         (modified_type_die): Likewise.
6305         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6306         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6307         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6308
6309 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6310
6311         PR bootstrap/48148
6312         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6313         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6314
6315         Revert:
6316         2011-03-17  Richard Guenther  <rguenther@suse.de>
6317
6318         PR bootstrap/48148
6319         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6320         origin for decls in other ltrans units.
6321         (input_varpool_node): Likewise.
6322
6323 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6324
6325         PR middle-end/48335
6326         * expr.c (expand_assignment): Handle all possibilities
6327         if TO_RTX is CONCAT.
6328         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6329         (store_split_bit_field): If SUBREG_REG (op0) or
6330         op0 itself has smaller mode than word, return it
6331         for offset 0 and const0_rtx for out-of-bounds stores.
6332         If word is const0_rtx, skip it.
6333
6334 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6335
6336         * config/h8300/h8300.c (print_operand_address): Rename to...
6337         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6338         Call h8300_print_operand and h8300_print_operand_address instead of
6339         print_operand and print_operand_address. Declare.
6340         (print_operand): Renake to...
6341         (h8300_print_operand): ...this. Make static. Adjust comments.
6342         Call h8300_print_operand instead of print_operand. Declare.
6343         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6344         (h8300_register_move_cost): Likewise.
6345         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6346         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6347         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6348         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6349         * config/h8300/h8300-protos.h (print_operand): Delete.
6350         (print_operand_address): Delete.
6351
6352 2011-04-01  Richard Henderson  <rth@redhat.com>
6353
6354         PR 48400
6355         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6356         in strict mode before dwarf4.  Re-order tests to early out
6357         before switching sections.
6358
6359 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6360
6361         * config/h8300/constraints.md: New file.
6362         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6363         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6364         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6365         * config/h8300/predicates.md (bit_operand): Likewise.
6366         (incdec_operand): Use satisfies_constraint_M and
6367         satisfies_constraint_O.  Don't use C code block.
6368         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6369         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6370         (compute_mov_length): Use satisfies_constraint_G.
6371         (fix_bit_operand): Use satisfies_constraint_U.
6372         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6373         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6374         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6375         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6376         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6377         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6378         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6379         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6380         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6381         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6382         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6383         (EXTRA_MEMORY_CONSTRAINT): Delete.
6384
6385 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6386             Michael Meissner  <meissner@linux.vnet.ibm.com>
6387
6388         PR target/48262
6389         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6390         operands, as per the specifications.
6391
6392         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6393         (vec_extract_evenv4sf): Ditto.
6394         (vec_extract_evenv8hi): Ditto.
6395         (vec_extract_evenv16qi): Ditto.
6396         (vec_extract_oddv4si): Ditto.
6397
6398 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6399
6400         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6401         high_pc attribute if the CU has no associated code. Only output
6402         DW_AT_entry_pc for CU if not generating strict dwarf and
6403         dwarf_version < 4.
6404
6405 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6406
6407         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6408         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6409         out of ...
6410         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6411         * final.c (final_start_function): Call the new function rather
6412         than using a NULL argument for dwarf2out_frame_debug.
6413
6414         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6415         that contains the prologue.
6416
6417         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6418         changed.  Print it in debugging output.
6419
6420         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6421
6422         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6423         Split most of the code into...
6424         (begin_move_insn): ... here.  New function.
6425         (ebb_sched_info): Add a pointer to it.
6426         * haifa-sched.c (scheduled_insns): New static variable.
6427         (sched_extend_ready_list): Allocate it.
6428         (schedule_block): Use it to record the order of scheduled insns.
6429         Perform RTL changes to move insns only after all scheduling
6430         decisions have been made.
6431         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6432         begin_move_insn field.
6433         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6434         * sched-int.h (struct haifa_sched_info): Remove second argument
6435         from begin_schedule_ready hook.  Add new member begin_move_insn.
6436         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6437         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6438
6439         * haifa-sched.c (prune_ready_list): New function, broken out of
6440         schedule_block.
6441         (schedule_block): Use it.
6442
6443 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6444
6445         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6446
6447 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6448
6449         * config.gcc (*-*-mingw*): Allow as option the
6450         posix threading model.
6451         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6452         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6453         definition.
6454         (CPP_SPEC): Add pthread/no-pthread handling.
6455         (LIB_SPEC): Likewise.
6456         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6457         (LIB_SPEC): Likewise.
6458         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6459         flag to pass -pthread option for shared libgcc build.
6460         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6461         for shared libgcc build.
6462         * config/i386/t-mingw-pthread: New file.
6463         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6464         New define to enable use of library pthread by default.
6465         * config/i386/mingw.opt (pthread): New driver option.
6466         (no-pthread): New driver option.
6467         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6468         * config/i386/mingw-w64.opt: Likewise.
6469
6470 2011-04-01  Gary Funck  <gary@intrepid.com>
6471
6472         * c-decl.c (grokdeclarator): Fix formatting.
6473
6474 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6475
6476         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6477         instead of n_operands.
6478         (set_storage_via_setmem): Likewise.
6479         * optabs.c (maybe_gen_insn): Likewise.
6480         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6481         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6482         (mips_expand_builtin_direct): Likewise.
6483         * config/spu/spu.c (expand_builtin_args): Likewise.
6484
6485 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6486
6487         * recog.h (insn_data_d): Add n_generator_args.
6488         * genoutput.c (data): Likewise.
6489         (output_insn_data): Print it.
6490         (max_opno, num_dups): Delete.
6491         (scan_operands): Just fill in "d->operand[...]".
6492         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6493
6494 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6495
6496         * gensupport.h (pattern_stats): New structure.
6497         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6498         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6499         (max_operand_1, max_operand_vec): Delete.
6500         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6501
6502 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6503
6504         * emit-rtl.c (emit_pattern_after_setloc): New function.
6505         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6506         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6507         (emit_pattern_after): New function.
6508         (emit_insn_after, emit_jump_insn_after): Call it.
6509         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6510         (emit_pattern_before_setloc): New function.
6511         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6512         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6513         Likewise.
6514         (emit_pattern_before): New function.
6515         (emit_insn_before, emit_jump_insn_before): Call it.
6516         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6517
6518 2011-03-31  Richard Henderson  <rth@redhat.com>
6519
6520         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6521         (dw_separate_line_info_entry): Remove.
6522         (enum dw_line_info_opcode): New.
6523         (dw_line_info_entry): Use it.
6524         (dw_line_info_table, dw_line_info_table_p): New.
6525         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6526         (line_info_table, line_info_label_num): Remove.
6527         (line_info_table_in_use): Remove.
6528         (separate_line_info_table): Remove.
6529         (separate_line_info_table_allocated): Remove.
6530         (separate_line_info_table_in_use): Remove.
6531         (LINE_INFO_TABLE_INCREMENT): Remove.
6532         (line_info_label_num): New.
6533         (cur_line_info_table): New.
6534         (text_section_line_info, cold_text_section_line_info): New.
6535         (separate_line_info): New.
6536         (SEPARATE_LINE_CODE_LABEL): Remove.
6537         (print_dwarf_line_table): Remove.
6538         (debug_dwarf): Don't dump it.
6539         (output_one_line_info_table): New.
6540         (output_line_info): Use it.
6541         (new_line_info_table): New.
6542         (set_cur_line_info_table): New.
6543         (dwarf2out_switch_text_section): Use it.
6544         (dwarf2out_begin_function): Likewise.
6545         (push_dw_line_info_entry): New.
6546         (dwarf2out_source_line): Rewrite for new line info tables.
6547         (dwarf2out_init): Remove dead initailizations.
6548
6549 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6550
6551         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6552         various flags.
6553         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6554         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6555         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6556         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6557         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6558         * opt-functions.awk (flag_init, switch_bit_fields): New.
6559         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6560         generate CL_MISSING_OK or CL_SAVE.
6561         * optc-gen.awk: Update to generate bit-field output as well as
6562         flags field.
6563         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6564         bit-field instead of CL_REJECT_DRIVER flag.
6565         * opts-common.c (generate_canonical_option,
6566         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6567         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6568         instead of CL_REJECT_NEGATIVE flag.
6569         * toplev.c (print_switch_values): Use cl_report bit-field instead
6570         of CL_REPORT flag.
6571
6572 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6573
6574         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6575         a zero minimum index only if it is redundant.
6576
6577 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6578
6579         PR rtl-optimization/48381
6580         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6581         instead of ira_class_hard_reg_index for calculating conflicting
6582         hard registers.
6583
6584 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6585
6586         * cprop.c: Clean up hash table building.
6587         (reg_avail_info): Remove.
6588         (oprs_available_p): Remove.
6589         (record_last_reg_set_info): Remove.
6590         (record_last_set_info): Remove.
6591         (reg_available_p): New function.
6592         (gcse_constant_p): Do not treat unfolded conditions as constants.
6593         (make_set_regs_unavailable): New function.
6594         (hash_scan_set): Simplify with new reg_available_p.
6595         (compute_hash_table_work): Traverse insns stream only once.
6596         Do not compute reg_avail_info. Traverse insns in reverse order.
6597         Record implicit sets after recording explicit sets from the block.
6598
6599 2011-03-31  Michael Matz  <matz@suse.de>
6600
6601         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6602
6603 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6604
6605         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6606         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6607         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6608         (h8300_mode_dependent_address_p): New function.
6609         (h8300_get_index): Make static.
6610
6611 2011-03-31  Jeff Law  <law@redhat.com>
6612
6613         * reload1.c (elimination_effects): Fix typo in recent change.
6614
6615         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6616         typo potentially leading to null pointer dereference.
6617
6618         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6619         (setup_save_areas): Corresponding changes to avoid useless
6620         assignments.
6621
6622         * jump.c (reversed_comparison_code_parts): Avoid successive return
6623         statements when REVERSE_CONDITION is defined.
6624
6625         * expr.c (expand_assignment): Avoid useless assignments.
6626         (expand_expr_real_1): Likewise.
6627         (expand_expr_real_2): Avoid useless statements.
6628
6629         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6630
6631         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6632
6633         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6634         statements.
6635
6636         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6637
6638 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6639
6640         PR target/47109
6641         * doc/tm.texi.in (TARGET_VERSION): Remove.
6642         * doc/tm.texi: Regenerate.
6643         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6644         * collect2.c (main): Don't use TARGET_VERSION.
6645         * mips-tdump.c (main): Don't use TARGET_VERSION.
6646         * mips-tfile.c (main): Don't use TARGET_VERSION.
6647         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6648         * config/rs6000/vxworksae.h: Remove.
6649         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6650         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6651         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6652         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6653         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6654         * config/arm/arm.h (TARGET_VERSION): Remove.
6655         * config/arm/coff.h (TARGET_VERSION): Remove.
6656         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6657         * config/arm/elf.h (TARGET_VERSION): Remove.
6658         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6659         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6660         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6661         * config/arm/pe.h (TARGET_VERSION): Remove.
6662         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6663         * config/arm/semi.h (TARGET_VERSION): Remove.
6664         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6665         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6666         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6667         * config/avr/avr.h (TARGET_VERSION): Remove.
6668         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6669         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6670         * config/frv/frv.h (TARGET_VERSION): Remove.
6671         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6672         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6673         * config/i386/darwin.h (TARGET_VERSION): Remove.
6674         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6675         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6676         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6677         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6678         * config/i386/gnu.h (TARGET_VERSION): Remove.
6679         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6680         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6681         * config/i386/linux.h (TARGET_VERSION): Remove.
6682         * config/i386/linux64.h (TARGET_VERSION): Remove.
6683         * config/i386/lynx.h (TARGET_VERSION): Remove.
6684         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6685         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6686         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6687         * config/i386/netware.h (TARGET_VERSION): Remove.
6688         * config/i386/nto.h (TARGET_VERSION): Remove.
6689         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6690         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6691         * config/ia64/elf.h (TARGET_VERSION): Remove.
6692         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6693         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6694         * config/ia64/linux.h (TARGET_VERSION): Remove.
6695         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6696         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6697         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6698         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6699         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6700         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6701         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6702         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6703         * config/m68k/linux.h (TARGET_VERSION): Remove.
6704         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6705         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6706         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6707         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6708         * config/mep/mep.h (TARGET_VERSION): Remove.
6709         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6710         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6711         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6712         * config/mips/linux.h (TARGET_VERSION): Remove.
6713         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6714         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6715         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6716         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6717         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6718         * config/pa/pa.h (TARGET_VERSION): Remove.
6719         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6720         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6721         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6722         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6723         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6724         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6725         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6726         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6727         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6728         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6729         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6730         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6731         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6732         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6733         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6734         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6735         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6736         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6737         * config/s390/linux.h (TARGET_VERSION): Remove.
6738         * config/s390/s390.h (TARGET_VERSION): Remove.
6739         * config/s390/tpf.h (TARGET_VERSION): Remove.
6740         * config/score/score.h (TARGET_VERSION): Remove.
6741         * config/sh/linux.h (TARGET_VERSION): Remove.
6742         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6743         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6744         * config/sh/sh.h (TARGET_VERSION): Remove.
6745         * config/sh/sh64.h (TARGET_VERSION): Remove.
6746         * config/sh/superh.h (TARGET_VERSION): Remove.
6747         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6748         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6749         * config/sparc/linux.h (TARGET_VERSION): Remove.
6750         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6751         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6752         TARGET_NAME32, TARGET_NAME): Remove.
6753         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6754         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6755         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6756         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6757         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6758         * config/spu/spu.h (TARGET_VERSION): Remove.
6759         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6760         * config/v850/v850.h (TARGET_VERSION): Remove.
6761         * config/vax/linux.h (TARGET_VERSION): Remove.
6762         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6763         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6764         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6765
6766 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6767
6768         PR target/48142
6769         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6770         frame-related from frame-unrelated adjustments to the stack pointer.
6771
6772 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6773
6774         * common.opt (fdebug-types-section): Move earlier.
6775         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6776
6777 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6778
6779         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6780         var.
6781
6782 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6783
6784         * tree.h (CASE_CHAIN): Define.
6785         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6786         (gimple_redirect_edge_and_branch): Likewise.
6787
6788 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6789
6790         PR middle-end/48367
6791         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6792         calculation.
6793
6794 2011-03-30  Jeff Law  <law@redhat.com>
6795
6796         * PR bootstrap/48371
6797         * reload1.c (reload): Fix botch in last change.
6798
6799         * reload.h (struct reload): Fix typo introduced in last change.
6800
6801 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6802
6803         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6804         Undocumented.  Remove help text.
6805         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6806         -mhard-float.
6807
6808 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6809
6810         * doc/options.texi (NegativeAlias): Document.
6811         (Alias): Mention NegativeAlias.
6812         * opt-functions.awk: Handle NegativeAlias.
6813         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6814         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6815         * opts.h (CL_NEGATIVE_ALIAS): Define.
6816         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6817         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6818         OPT_mspe_.
6819         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6820         Alias entries.
6821         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6822         mno-spe and mno-isel instead of mspe=no and -misel=no.
6823
6824 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6825
6826         * common.opt (fdebug-types-section): New flag.
6827         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6828         * dwarf2out.c (use_debug_types): New define.
6829         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6830         (print_die): Guard output of type unit signatures using
6831         use_debug_types.
6832         (build_abbrev_table): Replace assert of dwarf_version >= 4
6833         with assert on use_debug_types.
6834         (size_of_die): Likewise.
6835         (unmark_dies): Likewise.
6836         (value_format): Decide AT_ref_external form on use_debug_types.
6837         (output_die): Replace dwarf_version version check guard with
6838         use_debug_types where appropriate.
6839         (modified_type_die): Likewise.
6840         (gen_reference_type_die): Likewise.
6841         (dwarf2out_start_source_file): Likewise.
6842         (dwarf2out_end_source_file): Likewise.
6843         (prune_unused_types_walk_attribs): Likewise.
6844         (dwarf2out_finish): Likewise.
6845
6846 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6847
6848         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6849
6850 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6851
6852         PR rtl-optimization/48332
6853         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6854         mode of input operand N and modeN to its actual mode.
6855
6856 2011-03-30  Jeff Law  <law@redhat.com>
6857
6858         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6859         define accessor macro.
6860         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6861         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6862         (reg_equiv_init): Likewise.
6863         (reg_equivs_size): New variable.
6864         (reg_equiv_init_size): Remove.
6865         (allocate_initial_values): Move prototype to here from....
6866         * integrate.h (allocate_initial_values): Remove prototype.
6867         * integrate.c: Include reload.h.
6868         (allocate_initial_values): Corresponding changes.
6869         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6870         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6871         (update_equiv_regs): Corresponding changes.
6872         (ira): Corresponding changes.
6873         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6874         (push_secondary_reload): Corresponding changes.
6875         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6876         (make_memloc, find_reloads_address): Corresponding changes.
6877         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6878         (find_reloads_address_1): Corresponding changes.
6879         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6880         (refers_to_regno_for_reload_p): Corresponding changes.
6881         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6882         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6883         * reload1.c: Include ggc.h.
6884         (grow_reg_equivs): New function.
6885         (replace_pseudos_in, reload): Corresponding changes.
6886         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6887         (eliminate_regs_1, elimination_effects): Corresponding changes.
6888         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6889         (delete_output_reload): Likewise.
6890         * caller-save.c (mark_referenced_regs): Corresponding changes.
6891         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6892         * frv/predicates.md (frv_load_operand): Corresponding changes.
6893         * microblaze/microblaze.c (double_memory_operand): Corresponding
6894         changes.
6895         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6896         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6897         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6898         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6899         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6900         changes.
6901         * pa/pa.c (emit_move_sequence): Corresponding changes.
6902         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6903
6904 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6905
6906         PR target/47551
6907         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6908         structure modes.  Don't check neon_vector_mem_operand for
6909         vector or structure modes.
6910
6911 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6912             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6913
6914         PR target/43590
6915         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6916         operand 1 and reshuffle the operands to match.
6917         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6918
6919 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6920
6921         PR driver/48208
6922         * config/c.opt (F): Added 'Driver' to -F option.
6923
6924         PR driver/48260
6925         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6926           handler function.
6927         * config/darwin.opt: Added '-arch' option.
6928
6929 2011-03-30  Nick Clifton  <nickc@redhat.com>
6930
6931         * config/rx/rx.md: Add peepholes and patterns to combine
6932         extending loads and simple arithmetic instructions.
6933         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6934         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6935         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6936         modes to use pre-decrement and post-increment addressing.
6937         (rx_is_restricted_memory_address): Add range checking of REG+INT
6938         addresses.
6939         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6940         (rx_memory_move_cost): Adjust cost of stores.
6941         (rx_adjust_insn_length): New function.
6942
6943 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6944
6945         PR c/48305
6946         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6947         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6948         matching arg00/arg01 types.
6949
6950 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6951
6952         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6953         last_location to UNKNOWN_LOCATION.
6954
6955 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6956
6957         PR target/48349
6958         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6959         FLOAT_SSE_REGS.
6960
6961 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6962             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6963
6964         PR bootstrap/48337
6965         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6966         Init(PROCESSOR_V7).
6967         (sparc_cpu): Likewise.
6968         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6969         PROCESSOR_V7.
6970
6971 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6972
6973         PR target/48336
6974         PR middle-end/48342
6975         PR rtl-optimization/48345
6976         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6977         hard regs for given mode from profitable regs when doing secondary
6978         allocation.
6979
6980 2011-03-29  Jeff Law  <law@redhat.com>
6981
6982         PR bootstrap/48327
6983         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6984         do_not_duplicate field.
6985         (lookup_redirection_data): Corresponding changes.
6986         (create_duplicates): Always create a template block.
6987         (redirect_edges): Remove code which reused the original block
6988         when it was going to become unreachable code.
6989         (thread_block): Don't set do_not_duplicate field.
6990
6991 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6992
6993         * lto-opts.c (register_user_option_p, lto_register_user_option):
6994         Make type argument unsigned.
6995         * lto-streamer.h (lto_register_user_option): Make type argument
6996         unsigned.
6997         * opth-gen.awk: Make CL_* macros unsigned.
6998         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6999         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7000         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7001         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7002         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7003         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7004         (find_opt): Make lang_mask argument unsigned.
7005
7006 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7007
7008         PR rtl-optimization/48331
7009         PR rtl-optimization/48334
7010         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7011         for any used algorithm.
7012
7013 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7014
7015         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7016         to parent_max.
7017
7018 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7019
7020         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7021         (alpha_option_override): Don't set alpha_sr_alias_set.
7022         (emit_frame_store_1): Use gen_frame_mem rather than calling
7023         set_mem_alias_set.
7024         (alpha_expand_epilogue): Ditto.
7025
7026 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7027
7028         PR tree-optimization/48290
7029         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7030         vectorization, check that relevant phis in the basic block after
7031         the inner loop are really inner loop's exit phis.
7032
7033 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7034
7035         PR debug/48190
7036         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7037         (cached_dw_loc_list_def): New structure.
7038         (cached_dw_loc_list): New typedef.
7039         (cached_dw_loc_list_table): New variable.
7040         (cached_dw_loc_list_table_hash): New function.
7041         (cached_dw_loc_list_table_eq): Likewise.
7042         (add_location_or_const_value_attribute): Take a bool cache_p.
7043         Cache the list when the parameter is true.
7044         (gen_formal_parameter_die): Update caller.
7045         (gen_variable_die): Likewise.
7046         (dwarf2out_finish): Likewise.
7047         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7048         while generating debug info for the decl.
7049         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7050         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7051         (resolve_addr): Cache the result of resolving a chain of
7052         location lists.
7053
7054 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7055
7056         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7057         conflict object hard regset nodes have intersecting hard reg sets.
7058
7059         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7060         after regstat_init_n_sets_and_refs.
7061
7062         * ira.c: Add more comments at the top.
7063         (setup_stack_reg_pressure_class, setup_pressure_classes):
7064         Add comments how we compute the register pressure classes.
7065         (setup_allocno_and_important_classes): Add more comments.
7066         (setup_class_translate_array, reorder_important_classes)
7067         (setup_reg_class_relations): Add comments.
7068
7069         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7070         start of the file.
7071
7072         * ira-color.c: Add 2011 to the Copyright line.
7073         (assign_hard_reg):  Add more comments.
7074         (improve_allocation): Ditto.
7075
7076         * ira-costs.c: Add 2011 to the Copyright line.
7077         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7078         comments.
7079         (setup_regno_cost_classes_by_mode): Ditto.
7080
7081         Initial patches from ira-improv branch:
7082
7083         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7084
7085         * ira-build.c (ira_create_object): Remove initialization of
7086         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7087         (ira_create_allocno): Remove initialization of
7088         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7089         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7090         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7091         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7092         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7093         Initialize ALLOCNO_ADD_DATA.
7094         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7095         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7096         ALLOCNO_REG.
7097         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7098         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7099
7100         * ira.c (ira_reallocate): Remove.
7101         (setup_pressure_classes): Call
7102         ira_init_register_move_cost_if_necessary.  Use
7103         ira_register_move_cost instead of ira_get_register_move_cost.
7104         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7105         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7106
7107         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7108         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7109         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7110         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7111         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7112         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7113         Fix formatting.
7114         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7115         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7116         (struct allocno_color_data): New.
7117         (allocno_color_data_t): New typedef.
7118         (allocno_color_data): New definition.
7119         (ALLOCNO_COLOR_DATA): New macro.
7120         (struct object_color_data): New.
7121         (object_color_data_t): New typedef.
7122         (object_color_data): New definition.
7123         (OBJECT_COLOR_DATA): New macro.
7124         (update_copy_costs, calculate_allocno_spill_cost): Call
7125         ira_init_register_move_cost_if_necessary.  Use
7126         ira_register_move_cost instead of ira_get_register_move_cost.
7127         (move_spill_restore, update_curr_costs): Ditto.
7128         (allocno_spill_priority): Make it inline.
7129         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7130         (struct coalesce_data, coalesce_data_t): New.
7131         (allocno_coalesce_data): New definition.
7132         (ALLOCNO_COALESCE_DATA): New macro.
7133         (merge_allocnos, coalesced_allocno_conflict_p): Use
7134         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7135         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7136         (coalesce_allocnos): Ditto.
7137         (setup_coalesced_allocno_costs_and_nums): Ditto.
7138         (collect_spilled_coalesced_allocnos): Ditto.
7139         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7140         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7141         (coalesce_spill_slots): Ditto.
7142         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7143         free allocno_coalesce_data.
7144
7145         * ira-conflicts.c: Fix formatting.
7146         (process_regs_for_copy): Call
7147         ira_init_register_move_cost_if_necessary.  Use
7148         ira_register_move_cost instead of ira_get_register_move_cost.
7149         (build_object_conflicts): Optimize.
7150
7151         * ira-costs.c (record_reg_classes): Optimize.  Call
7152         ira_init_register_move_cost_if_necessary.  Use
7153         ira_register_move_cost, ira_may_move_in_cost, and
7154         ira_may_move_out_cost instead of ira_get_register_move_cost and
7155         ira_get_may_move_cost.
7156         (record_address_regs): Ditto.
7157         (scan_one_insn): Optimize.
7158         (find_costs_and_classes): Optimize.
7159         (process_bb_node_for_hard_reg_moves): Call
7160         ira_init_register_move_cost_if_necessary.  Use
7161         ira_register_move_cost instead of ira_get_register_move_cost.
7162
7163         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7164         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7165         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7166         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7167         definitions.
7168         (ira_initiate_emit_data, ira_finish_emit_data)
7169         (create_new_allocno): New functions.
7170         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7171         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7172         Use ira_register_move_cost instead of ira_get_register_move_cost.
7173
7174         * ira-int.h: Fix some comments.
7175         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7176         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7177         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7178         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7179         add_data.
7180         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7181         bitfield after mode.  Make hard_regno a short int.  Make
7182         hard_regno short.  Remove first_coalesced_allocno and
7183         next_coalesced_allocno.  Move mem_optimized_dest_p,
7184         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7185         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7186         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7187         temp, colorable_p.  Add new member add_data.
7188         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7189         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7190         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7191         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7192         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7193         (ALLOCNO_ADD_DATA): New macro.
7194         (ira_emit_data_t): New typedef.
7195         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7196         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7197         from struct ira_allocno.
7198         (ALLOCNO_EMIT_DATA): New macro.
7199         (ira_allocno_emit_data, allocno_emit_reg): New.
7200         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7201         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7202         (OBJECT_ADD_DATA): New macro.
7203         (ira_reallocate): Remove.
7204         (ira_initiate_emit_data, ira_finish_emit_data): New.
7205         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7206         (ira_init_register_move_cost_if_necessary): New.
7207         (ira_object_conflict_iter_next): Merge into
7208         ira_object_conflict_iter_cond.
7209         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7210
7211         * ira-live.c (process_single_reg_class_operands): Call
7212         ira_init_register_move_cost_if_necessary.  Use
7213         ira_register_move_cost instead of ira_get_register_move_cost.
7214
7215         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7216
7217         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7218
7219         * ira-costs.c: Fix formatting.
7220         (cost_classes, cost_classes_num): Remove.
7221         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7222         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7223         (cost_classes_del, cost_classes_htab): New.
7224         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7225         (initiate_regno_cost_classes, setup_cost_classes): New.
7226         (setup_regno_cost_classes_by_aclass): New.
7227         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7228         (record_reg_classes): Use regno_cost_classes instead of
7229         cost_classes.  Move checking opposite operand up.
7230         (record_address_regs): Use regno_cost_classes
7231         instead of cost_classes.
7232         (scan_one_insn): Ditto.  Use always general register.
7233         (print_allocno_costs): Use regno_cost_classes instead of
7234         cost_classes.
7235         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7236         (find_costs_and_classes): Set up cost classes for each registers.
7237         Use also their mode for this.  Use regno_cost_classes instead of
7238         cost_classes.
7239         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7240         cost_classes.
7241         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7242         (ira_costs, ira_set_pseudo_classes): Call
7243         initiate_regno_cost_classes and finish_regno_cost_classes.
7244
7245         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7246
7247         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7248
7249         * target.def (ira_cover_classes): Remove.
7250
7251         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7252
7253         * doc/tm.texi.in: Ditto.
7254
7255         * ira-conflicts.c: Remove mentioning cover classes from the file.
7256         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7257         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7258
7259         * targhooks.c (default_ira_cover_classes): Remove.
7260
7261         * targhooks.h (default_ira_cover_classes): Ditto.
7262
7263         * haifa-sched.c: Remove mentioning cover classes from the file.
7264         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7265         ira_pressure_classes and ira_pressure_classes_num instead of
7266         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7267         sched_regno_pressure_class instead of sched_regno_cover_class.
7268         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7269         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7270
7271         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7272         classes from the file.
7273         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7274         (struct object_hard_regs, struct object_hard_regs_node): New.
7275         (struct ira_object): New members profitable_hard_regs,
7276         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7277         (struct ira_allocno): Rename cover_class to aclass.  Rename
7278         cover_class_cost and updated_cover_class_cost to class_cost and
7279         updated_class_cost.  Remove splay_removed_p and
7280         left_conflict_size.  Add new members colorable_p.
7281         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7282         (ALLOCNO_COLORABLE_P): New macro.
7283         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7284         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7285         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7286         (OBJECT_...): Rename parameter C to O.
7287         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7288         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7289         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7290         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7291         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7292         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7293         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7294         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7295         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7296         x_ira_reg_class_subunion.
7297         (ira_max_memory_move_cost, ira_max_register_move_cost)
7298         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7299         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7300         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7301         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7302         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7303         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7304         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7305         (ira_tune_allocno_costs_and_cover_classes): Rename to
7306         ira_tune_allocno_costs.
7307         (ira_debug_hard_regs_forest): New.
7308         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7309         (ira_object_conflict_iter_next): Fix comments.
7310         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7311         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7312         cover_class to aclass.
7313         (ira_allocate_and_accumulate_costs): Ditto.
7314         (ira_allocate_and_set_or_copy_costs): Ditto.
7315
7316         * opts.c (decode_options): Remove ira_cover_class check.
7317
7318         * ira-color.c: Remove mentioning cover classes from the file.  Use
7319         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7320         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7321         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7322         (splay-tree.h): Remove include.
7323         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7324         before copy_freq_compare_func.
7325         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7326         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7327         New definitions.
7328         (hard_regs_roots, hard_regs_node_vec): Ditto.
7329         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7330         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7331         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7332         (create_new_object_hard_regs_node): Ditto.
7333         (add_new_object_hard_regs_node_to_forest): Ditto.
7334         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7335         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7336         Ditto.
7337         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7338         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7339         (remove_unused_object_hard_regs_nodes): Ditto.
7340         (enumerate_object_hard_regs_nodes): Ditto.
7341         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7342         (object_hard_regs_subnode_t): Ditto.
7343         (struct object_hard_regs_subnode): Ditto.
7344         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7345         (setup_object_hard_regs_subnode_index): Ditto.
7346         (get_object_hard_regs_subnodes_num): Ditto.
7347         (form_object_hard_regs_nodes_forest): Ditto.
7348         (finish_object_hard_regs_nodes_tree): Ditto.
7349         (finish_object_hard_regs_nodes_forest): Ditto.
7350         (allocnos_have_intersected_live_ranges_p): Rename to
7351         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7352         (pseudos_have_intersected_live_ranges_p): Rename to
7353         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7354         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7355         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7356         (update_copy_costs): Remove assert.  Skip cost update if the hard
7357         reg does not belong the class.
7358         (assign_hard_reg): Process only profitable hard regs.
7359         (uncolorable_allocnos_num): Make it scalar.
7360         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7361         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7362         and ira_reg_class_max_nregs.
7363         (bucket_allocno_compare_func): Check frequency first.
7364         (sort_bucket): Add compare function as a parameter.
7365         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7366         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7367         (push_allocno_to_stack): Rewrite for checking new allocno
7368         colorability.
7369         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7370         (push_only_colorable): Pass new parameter to sort_bucket.
7371         (push_allocno_to_spill): Remove.
7372         (allocno_spill_priority_compare): Make it inline and rewrite.
7373         (splay_tree_allocate, splay_tree_free): Remove.
7374         (allocno_spill_sort_compare): New function.
7375         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7376         build and use splay tree.  Choose first allocno in uncolorable
7377         allocno bucket to spill.  Remove setting spill cost.
7378         (all_conflicting_hard_regs): Remove.
7379         (setup_allocno_available_regs_num): Check only profitable hard
7380         regs.  Print info about hard regs nodes.
7381         (setup_allocno_left_conflicts_size): Remove.
7382         (put_allocno_into_bucket): Don't call
7383         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7384         (improve_allocation): New.
7385         (color_allocnos): Call setup_profitable_hard_regs,
7386         form_object_hard_regs_nodes_forest, improve_allocation,
7387         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7388         (print_loop_title): Use pressure classes.
7389         (color_allocnso): Ditto.
7390         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7391         and allocnos_for_spilling.
7392         (ira_sort_regnos_for_alter_reg): Don't setup members
7393         {first,next}_coalesced_allocno.
7394         (color): Remove allocating and freeing removed_splay_allocno_vec.
7395         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7396         prohibited_class_mode_regs.
7397
7398         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7399         formatting.
7400         (update_allocno_pressure_excess_length): Use pressure classes.
7401         (inc_register_pressure, dec_register_pressure): Check for pressure
7402         class.
7403         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7404         pressure class.  Use ira_reg_class_nregs instead of
7405         ira_reg_class_max_nregs.
7406         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7407         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7408         (single_reg_class): Use ira_reg_class_nregs instead of
7409         ira_reg_class_max_nregs.
7410         (process_bb_node_lives): Use pressure classes.
7411
7412         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7413         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7414         (change_loop): Use pressure classes.
7415         (modify_move_list): Call ira_set_allocno_class instead of
7416         ira_set_allocno_cover_class.
7417
7418         * ira-build.c: Remove mentioning cover classes from the file.  Use
7419         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7420         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7421         ALLOCNO_UPDATED_CLASS_COST instead of
7422         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7423         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7424         (ira_create_allocno): Remove initialization of
7425         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7426         ALLOCNO_COLORABLE_P.
7427         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7428         Update conflict regs for the objects.
7429         (create_cap_allocno): Remove assert.  Don't propagate
7430         ALLOCNO_AVAILABLE_REGS_NUM.
7431         (ira_free_allocno_costs): New function.
7432         (finish_allocno): Change a part of code into call of
7433         ira_free_allocno_costs.
7434         (low_pressure_loop_node_p): Use pressure classes.
7435         (object_range_compare_func): Don't compare classes.
7436         (setup_min_max_conflict_allocno_ids): Ditto.
7437
7438         * loop-invariant.c: Remove mentioning cover classes from the file.
7439         Use ira_pressure_classes and ira_pressure_classes_num instead of
7440         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7441         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7442         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7443         Use reg_allocno_class instead of reg_cover_class.
7444         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7445         STACK_REG_COVER_CLASS.
7446         (get_regno_cover_class): Rename to get_regno_pressure_class.
7447         (move_loop_invariants): Initialize and finalize regstat.
7448
7449         * ira.c: Remove mentioning cover classes from the file.  Add
7450         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7451         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7452         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7453         setup_class_subset_and_memory_move_costs.
7454         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7455         (setup_cover_and_important_classes): Rename to
7456         setup_allocno_and_important_classes.
7457         (setup_class_translate_array): New.
7458         (setup_class_translate): Call it for allocno and pressure classes.
7459         (cover_class_order): Rename to allocno_class_order.
7460         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7461         of ira_class_translate.
7462         (reorder_important_classes): Set up ira_important_class_nums.
7463         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7464         (print_class_cover): Rename to print_classes.  Add parameter.
7465         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7466         Print pressure classes too.
7467         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7468         setup_reg_subclasses.
7469         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7470         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7471         (setup_prohibited_class_mode_regs): Use
7472         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7473         (clarify_prohibited_class_mode_regs): New function.
7474         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7475         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7476         (ira_init_once): Initialize them.
7477         (free_register_move_costs): Process them.
7478         (ira_init): Move calls of find_reg_classes and
7479         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7480         Call clarify_prohibited_class_mode_regs.
7481         (ira_no_alloc_reg): Remove.
7482         (too_high_register_pressure_p): Use pressure classes.
7483
7484         * sched-deps.c: Remove mentioning cover classes from the file.
7485         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7486         ira_pressure_classes and ira_pressure_classes_num instead of
7487         ira_reg_class_cover_size and ira_reg_class_cover.
7488         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7489         sched_regno_pressure_class instead of sched_regno_cover_class.
7490         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7491         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7492
7493         * ira.h: Add 2010 to Copyright.
7494         (ira_no_alloc_reg): Remove external.
7495         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7496         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7497         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7498         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7499         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7500         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7501         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7502         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7503         x_ira_no_alloc_regs.
7504         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7505         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7506         ira_allocno_classes_num and ira_allocno_classes.
7507         (ira_class_translate): Rename to ira_allocno_class_translate.
7508         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7509         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7510         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7511         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7512         (ira_no_alloc_regs): New.
7513
7514         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7515         classes from the file.  Use ALLOCNO_CLASS instead of
7516         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7517         ALLOCNO_COVER_CLASS_COST.
7518         (regno_cover_class): Rename to regno_aclass.
7519         (record_reg_classes): Use ira_reg_class_subunion instead of
7520         ira_reg_class_union.
7521         (record_address_regs): Check overflow.
7522         (scan_one_insn): Ditto.
7523         (print_allocno_costs): Print total mem cost fore regional allocation.
7524         (print_pseudo_costs): Use REG_N_REFS.
7525         (find_costs_and_classes): Use classes intersected with them on the
7526         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7527         ira_reg_class_union.  Use ira_allocno_class_translate and
7528         regno_aclass instead of ira_class_translate and regno_cover_class.
7529         Modify code for finding regno_aclass.  Setup preferred classes for
7530         the next pass.
7531         (setup_allocno_cover_class_and_costs): Rename to
7532         setup_allocno_class_and_costs.  Use regno_aclass instead of
7533         regno_cover_class.  Use ira_set_allocno_class instead of
7534         ira_set_allocno_cover_class.
7535         (init_costs, finish_costs): Use regno_aclass instead of
7536         regno_cover_class.
7537         (ira_costs): Use setup_allocno_class_and_costs instead of
7538         setup_allocno_cover_class_and_costs.
7539         (ira_tune_allocno_costs_and_cover_classes): Rename to
7540         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7541         by processing objects.  Use ira_reg_class_max_nregs instead of
7542         ira_reg_class_nregs.
7543
7544         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7545
7546         * sched-int.h: Remove mentioning cover classes from the file.
7547         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7548
7549         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7550         classes from the file.
7551         (struct reg_pref): Rename coverclass into allocnoclass.
7552         (reg_cover_class): Rename to reg_allocno_class.
7553
7554         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7555
7556         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7557
7558         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7559
7560         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7561
7562         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7563
7564         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7565
7566         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7567
7568         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7569
7570         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7571
7572         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7573
7574         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7575         (i386_ira_cover_classes): Ditto.
7576
7577         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7578
7579         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7580
7581         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7582
7583         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7584
7585         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7586
7587         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7588
7589         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7590         (mips_ira_cover_classes): Ditto.
7591
7592         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7593
7594         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7595
7596         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7597
7598         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7599
7600         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7601
7602         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7603         (IRA_COVER_CLASSES_VSX): Ditto.
7604
7605         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7606         (rs6000_ira_cover_classes): Ditto.
7607
7608         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7609
7610         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7611
7612         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7613
7614         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7615
7616         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7617
7618         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7619
7620         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7621
7622         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7623
7624         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7625
7626         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7627
7628 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7629
7630         PR debug/48253
7631         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7632         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7633         dw_fde_unlikely_section_end_label, cold_in_std_section,
7634         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7635         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7636         fields.
7637         (output_fde): Use dw_fde_second_{begin,end} if second is
7638         true, otherwise dw_fde_{begin,end}.
7639         (output_call_frame_info): Test dw_fde_second_begin != NULL
7640         instead of dw_fde_switched_sections.
7641         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7642         fields, initialize new fields.  Initialize in_std_section
7643         unconditionally from the first partition.
7644         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7645         dw_fde_second_begin is non-NULL.
7646         (dwarf2out_switch_text_section): Stop initializing removed
7647         dw_fde_struct fields, initialize new fields, initialize
7648         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7649         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7650         (struct var_loc_list_def): Add last_before_switch field.
7651         (arange_table, arange_table_allocated, arange_table_in_use,
7652         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7653         (size_of_aranges): Count !in_std_section and !second_in_std_section
7654         hunks in fdes, instead of looking at arange_table_in_use.
7655         (output_aranges): Add aranges_length argument, don't call
7656         size_of_aranges here.  Instead of using aranges_table*
7657         emit ranges for fdes when !in_std_section resp.
7658         !second_in_std_section.
7659         (dw_loc_list): Break ranges crossing section switch.
7660         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7661         use dw_fde_second_end instead of dw_fde_end as end of last range.
7662         (gen_subprogram_die): Don't call add_arange.  Use
7663         dw_fde_{begin,end} for first partition and if switched
7664         section dw_fde_second_{begin,end} for the second.
7665         (var_location_switch_text_section_1,
7666         var_location_switch_text_section): New functions.
7667         (dwarf2out_begin_function): Initialize cold_text_section even
7668         when function_section () isn't text_section.
7669         (prune_unused_types): Don't walk arange_table.
7670         (dwarf2out_finish): Don't needlessly test
7671         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7672         If info_section_emitted, call size_of_aranges and if it indicates
7673         non-empty .debug_aranges, call output_aranges with the computed
7674         size.  Stop using removed dw_fde_struct fields, use
7675         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7676         for second.
7677
7678         PR debug/48203
7679         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7680         create ENTRY_VALUE if incoming or address of incoming's MEM
7681         is a hard REG.
7682         * dwarf2out.c (mem_loc_descriptor): Don't emit
7683         DW_OP_GNU_entry_value of DW_OP_fbreg.
7684         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7685         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7686         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7687         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7688         ENTRY_VALUE_EXPs.
7689         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7690         is a REG_P or MEM_P with REG_P address, compute hash directly
7691         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7692         (preserve_only_constants): Don't clear VALUES forwaring
7693         ENTRY_VALUE to some other VALUE.
7694
7695 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7696
7697         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7698         instead of GEN_INT.
7699
7700 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7701
7702         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7703         block before expanding the statement.
7704         (expand_gimple_stmt_1): Likewise.  Set them here...
7705         (expand_gimple_stmt): ...and not here.  Tidy.
7706         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7707         unknown.
7708
7709 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7710
7711         * Makefile.in: New rule for cprop.o.
7712         * gcse.c: Move constant/copy propagation to cprop.c.
7713         (compute_local_properties): Only handle expression tables.
7714         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7715         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7716         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7717         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7718         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7719         compute_cprop_data, find_used_regs, try_replace_reg,
7720         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7721         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7722         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7723         find_bypass_set, reg_killed_on_edge, bypass_block,
7724         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7725         execute_rtl_cprop, pass_rtl_cprop): Move to...
7726         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7727         moved from gcse.c to here with minor cleanups in duplicated code.
7728
7729 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7730
7731         * config/i386/i386.c (flag_opts): Fix a typo in
7732         -mavx256-split-unaligned-store.
7733
7734 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7735
7736         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7737         LIBCALL_VALUE): Remove macros.
7738         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7739         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7740         (h8300_function_value, h8300_libcall_value,
7741         h8300_function_value_regno_p): New functions.
7742
7743 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7744
7745         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7746
7747 2011-03-28  Jeff Law  <law@redhat.com>
7748
7749         * tree-ssa-threadupdate.c (redirect_edges): Call
7750         create_edge_and_update_destination_phis as needed.
7751         (create_edge_and_update_destination_phis): Accept new BB argument.
7752         All callers updated.
7753         (thread_block): Do not update the profile when threading around
7754         intermediate blocks.
7755         (thread_single_edge): Likewise.
7756         (determine_bb_domination_status): If BB is not a successor of the
7757         loop header, return NONDOMINATING.
7758         (register_jump_thread): Note when we register a jump thread around
7759         an intermediate block.
7760         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7761         (thread_across_edge): Use it.
7762
7763 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7764
7765         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7766         when for_return is 2.
7767
7768 2011-03-28  Jeff Law  <law@redhat.com>
7769
7770         * var-tracking.c (canonicalize_values_mark): Delete unused
7771         lhs assignment.
7772         (canonicalize_values_star, set_variable_part): Likewise.
7773         (clobber_variable_part, delete_variable_part): Likewise.
7774
7775 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7776
7777         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7778
7779 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7780
7781         * tree-inline.c (expand_call_inline): Do not check that destination
7782         node is analyzed.
7783         (optimize_inline_calls): Assert that destination node is analyzed.
7784         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7785         not call tree_lowering_passes.
7786         * cgraph.h (cgraph_analyze_function): Declare.
7787         * cgraphunit.c (cgraph_analyze_function): Make public.
7788
7789 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7790
7791         * config/sparc/sparc-opts.h: New.
7792         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7793         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7794         (sparc_option_override): Store processor_type enumeration rather
7795         than string in cpu_default.  Remove name and enumeration from
7796         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7797         without using sparc_select.  Use target_flags_explicit instead of
7798         fpu_option_set.
7799         * config/sparc/sparc.h (enum processor_type): Move to
7800         sparc-opts.h.
7801         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7802         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7803         HeaderInclude entry.
7804         (mcpu=, mtune=): Use Var and Enum.
7805         (sparc_processor_type): New Enum and EnumValue entries.
7806
7807 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7808             Iain Sandoe  <iains@gcc.gnu.org>
7809
7810         PR target/48245
7811         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7812
7813 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7814
7815         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7816         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7817         Insert new statements at it in lieu of STMT.
7818         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7819         * tree-vect-stmts.c (vectorizable_store): Likewise.
7820         (vectorizable_load): Likewise.
7821
7822 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7823
7824         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7825         (divtf3): Ditto.
7826         (multf3): Ditto.
7827         (subtf3): Ditto.
7828
7829 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7830
7831         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7832         unaligned 256bit load/store.
7833         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7834         (*avx_movdqu<avxmodesuffix>): Likewise.
7835
7836 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7837
7838         PR target/48288
7839         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7840         * config/pa/pa.md (iordi3): Use new predicate in expander.
7841         (iorsi3): Likewise.
7842
7843 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7844
7845         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7846         FUNCTION_VALUE_REGNO_P): Remove macros.
7847         * config/mips/mips-protos.h (mips_function_value): Remove.
7848         * config/mips/mips.c (mips_function_value): Rename to...
7849         (mips_function_value_1): ... this. Make static.  Handle receiving
7850         the function type in 'fn_decl_or_type' argument.
7851         (mips_function_value, mips_libcall_value,
7852         mips_function_value_regno_p): New function.
7853         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7854         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7855
7856 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7857
7858         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7859         and -mavx256-split-unaligned-store.
7860         (ix86_option_override_internal): Split 32-byte AVX unaligned
7861         load/store by default.
7862         (ix86_avx256_split_vector_move_misalign): New.
7863         (ix86_expand_vector_move_misalign): Use it.
7864
7865         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7866         -mavx256-split-unaligned-store.
7867
7868         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7869         256bit load/store.  Generate unaligned store on misaligned memory
7870         operand.
7871         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7872         256bit load/store.
7873         (*avx_movdqu<avxmodesuffix>): Likewise.
7874
7875         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7876         -mavx256-split-unaligned-store.
7877
7878 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7879
7880         PR target/38598
7881         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7882         Update commentary.
7883
7884 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7885
7886         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7887         opno arguments with an expand_operand.  Use create_input_operand.
7888         (mips_prepare_builtin_target): Delete.
7889         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7890         functions.
7891         (mips_expand_builtin_direct): Use create_output_operand and
7892         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7893         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7894         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7895
7896 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7897
7898         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7899         function.
7900         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7901
7902 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7903
7904         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7905         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7906         basic blocks and call commit_edge_insertions directly.
7907         (fixup_abnormal_edges): Move from here to...
7908         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7909         on the edges and return whether some have actually been inserted.
7910         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7911         compensation code.
7912
7913 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7914
7915         PR rtl-optimization/48144
7916         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7917         (merge_expr_data): ... here.
7918         (av_set_intersect): Rename to av_set_code_motion_filter.
7919         Update all callers.  Call merge_history_vect when an expression
7920         is found in both sets.
7921         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7922
7923 2011-03-26  Alan Modra  <amodra@gmail.com>
7924
7925         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7926         cmodel medium addresses.
7927         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7928         64-bit gpr loads and stores.
7929         (rs6000_secondary_reload_ppc64): New function.
7930         * config/rs6000/rs6000-protos.h: Declare it.
7931         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7932
7933 2011-03-26  Alan Modra  <amodra@gmail.com>
7934
7935         PR target/47487
7936         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7937         GNU Go in traceback table.
7938
7939 2011-03-25  Richard Henderson  <rth@redhat.com>
7940
7941         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7942         if there are exactly 6 operands.
7943         (set_storage_via_setmem): Similarly.
7944
7945 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7946
7947         * collect2.c (write_c_file_stat): Handle backslash
7948         as right-hand directory separator.
7949         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7950         checking just for slash.
7951         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7952         instead of checking for trailing slash.
7953         * gcc.c (record_temp_file): Use filename_cmp instead
7954         of strcmp.
7955         (do_spec_1): Likewise.
7956         (replace_outfile_spec_function): Likewise.
7957         (is_directory): Use filename_ncmp instead of strncmp.
7958         (print_multilib_info): Likewise.
7959         * gcov.c (find_source): Use filename_cmp instead
7960         instead of strcmp.
7961         (make_gcov_file_name): Fix order of slash/backslash
7962         checks.
7963         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7964         (add_standard_paths): Likewise.
7965         * mips-tfile.c (saber_stop): Handle backslash.
7966         * prefix.c (update_path): Use filename_ncmp instead of
7967         strncmp.
7968         * profile.c (output_location): Use filename_cmp instead
7969         of strcmp.
7970         * read-md.c (handle_toplevel_file): Handle backslash.
7971         * tlink.c (frob_extension):  Likewise.
7972         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7973         strcmp.
7974         * tree-dump.c (dequeue_and_dump): Handle backslash.
7975         * tree.c (get_file_function_name): Likewise.
7976         * gengtype.c (read_input_list): Likewise.
7977         (get_file_realbasename): Likewise.
7978         (get_output_file_with_visibility): Use filename_cmp
7979         instead of strcmp.
7980
7981 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7982
7983         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7984         case to VFPv1.
7985
7986 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7987
7988         * fold-const.c (expr_location_or): New function.
7989         (fold_truth_not_expr): Call it.
7990
7991 2011-03-25  Jeff Law  <law@redhat.com>
7992
7993         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7994         va_end.
7995         * c-family/c-common.c (def_fn_type): Likewise.
7996         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7997         * emit-rtl.c (gen_rtvec): Likewise.
7998         * lto/lto-lang.c (def_fn_type): Likewise.
7999
8000 2011-03-25  Richard Guenther  <rguenther@suse.de>
8001
8002         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8003         also generate copies.
8004         (fini_copy_prop): Handle constant values properly.
8005
8006 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8007
8008         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8009         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8010         (hash_loc_operands, compare_loc_operands): Handle
8011         DW_OP_GNU_entry_value.
8012
8013 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8014
8015         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8016         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8017         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8018         comment and use macro TARGET_64BIT_MS_ABI instead.
8019         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8020         and change default behavior for 32-bit MS_ABI.
8021         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8022         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8023         32-bit, too.
8024         (ix86_cfun_abi): Likewise.
8025         (ix86_maybe_switch_abi): Adjust comment.
8026         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8027         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8028         instead of checking for SYSV_ABI.
8029         (ix86_nsaved_sseregs): Likewise.
8030         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8031         to 16 bytes.
8032         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8033         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8034         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8035         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8036         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8037
8038 2011-03-25  Richard Guenther  <rguenther@suse.de>
8039
8040         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8041         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8042         (verify_gimple): Remove.
8043         * tree-cfg.c (verify_gimple_call): Merge verification
8044         from verify_stmts.
8045         (verify_gimple_phi): Merge verification from verify_stmts.
8046         (verify_gimple_label): New function.
8047         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8048         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8049         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8050         (verify_stmts): Rename to verify_gimple_in_cfg.
8051         (verify_gimple_in_cfg): New function.
8052         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8053         * tree-ssa.c (verify_ssa): Likewise.
8054         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8055
8056 2011-03-25  Richard Guenther  <rguenther@suse.de>
8057
8058         * passes.c (init_optimization_passes): Add FRE pass after
8059         early SRA.
8060
8061 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8062             Andrew Stubbs  <ams@codesourcery.com>
8063
8064         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8065         for Cortex-A8.
8066         (arm_movdi_vfp_cortexa8): New pattern.
8067         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8068         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8069         instructions when tuning for Cortex-A8.  Set attribute "arch".
8070         * config/arm/arm.md: Move include arm-tune.md up a bit.
8071         (define_attr "arch"): Add "onlya8" and "nota8" values.
8072         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8073
8074 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8075
8076         PR bootstrap/48282
8077         Revert:
8078         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8079
8080         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8081         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8082         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8083         * passes.c (init_optimization_passes): Move
8084         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8085
8086 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8087
8088         * c-typeck.c (comptypes_internal): Replace target
8089         hook call of comp_type_attributes by version in tree.c file.
8090         * gimple.c (gimple_types_compatible_p_1): Likewise.
8091         * tree-ssa.c (useless_type_conversion_p): Likewise.
8092         * tree.c (build_type_attribute_qual_variant): Likewise.
8093         (attribute_value_equal): New static helper function.
8094         (comp_type_attributes): New function.
8095         (merge_attributes): Use attribute_value_equal for comparison.
8096         (attribute_list_contained): Likewise.
8097         * tree.h (comp_type_attributes): New prototype.
8098
8099 2011-03-25  Richard Guenther  <rguenther@suse.de>
8100
8101         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8102         of complex types at -O0.
8103         (verify_gimple_assign_binary): Likewise.
8104         (verify_gimple_assign_ternary): Likewise.
8105
8106 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8107
8108         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8109         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8110
8111 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8112
8113         PR debug/48041
8114         * dwarf2out.c (output_abbrev_section): Only write table when
8115         abbrev_die_table_in_use > 1.
8116
8117 2011-02-24  Richard Henderson  <rth@redhat.com>
8118
8119         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8120         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8121         (alpha_expand_unaligned_load_words): Use extql.
8122         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8123         (emit_insxl): Handle all modes for consistency.
8124
8125 2011-02-24  Richard Henderson  <rth@redhat.com>
8126
8127         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8128         (alpha_expand_unaligned_load): Likewise.
8129         (alpha_expand_unaligned_store): Likewise.
8130         (alpha_expand_unaligned_load_words): Likewise.
8131         (alpha_expand_unaligned_store_words): Likewise.
8132         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8133         (alpha_split_lock_test_and_set_12): Likewise.
8134         (print_operand, alpha_fold_builtin_extxx): Likewise.
8135         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8136         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8137         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8138         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8139         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8140         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8141         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8142         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8143         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8144         (extwl, extll, extql): Similarly.
8145         (inswh, inslh, insqh): Similarly.
8146         (mskbl, mskwl, mskll, mskql): Similarly.
8147         (mskwh, msklh, mskqh): Similarly.
8148
8149 2011-02-24  Richard Henderson  <rth@redhat.com>
8150
8151         * config/alpha/alpha.md (attribute isa): Add er, ner.
8152         (attribute enabled): Handle them.
8153         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8154
8155 2011-02-24  Richard Henderson  <rth@redhat.com>
8156
8157         * config/alpha/alpha.md (attribute isa): Add vms.
8158         (attribute enabled): Handle it.
8159         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8160         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8161         (*movtf): Rename from *movtf_internal for consistency.
8162         (*movsi): Merge with *movsi_nt_vms.
8163         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8164         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8165         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8166         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8167
8168 2011-02-24  Richard Henderson  <rth@redhat.com>
8169
8170         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8171         (extendqisi2, extendhisi2): Likewise.
8172         (extendqidi2): Simplify BWX/non-BWX expansions.
8173         (extendhidi2): Similarly.
8174
8175 2011-02-24  Richard Henderson  <rth@redhat.com>
8176
8177         * config/alpha/alpha.md (attribute isa): New.
8178         (attribute enabled): New.
8179         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8180         (zero_extendqisi2, zero_extendqidi2): Similarly.
8181         (zero_extendhisi2, zero_extendhidi2): Similarly.
8182         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8183
8184 2011-02-24  Richard Henderson  <rth@redhat.com>
8185
8186         * config/alpha/predicates.md (input_operand): Revert last change;
8187         update comment to mention 32-bit VMS rather than Windows.
8188
8189 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8190
8191         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8192         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8193         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8194         * passes.c (init_optimization_passes): Move
8195         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8196
8197 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8198
8199         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8200
8201 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8202
8203         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8204         correctly.
8205
8206 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8207
8208         PR debug/48204
8209         * simplify-rtx.c (simplify_const_unary_operation): Call
8210         real_convert when changing mode class with FLOAT_EXTEND.
8211
8212 2011-03-24  Nick Clifton  <nickc@redhat.com>
8213
8214         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8215         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8216         * config/rx/rx.c (rx_option_override): Set align_jumps,
8217         align_loops and align_labels if not set by the user.
8218         (rx_align_for_label): New function.
8219         (rx_max_skip_for_label): New function.
8220         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8221         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8222         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8223         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8224         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8225
8226 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8227
8228         PR rtl-optimization/48263
8229         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8230         and original commutative_p handling.  Use maybe_gen_insn.
8231
8232 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8233
8234         * reload.c (find_reloads_subreg_address): Add address_reloaded
8235         parameter and return true there if the full address has been
8236         reloaded.
8237         (find_reloads_toplev): Pass address_reloaded flag.
8238         (find_reloads_address_1): Don't use address_reloaded parameter.
8239
8240 2011-03-24  Jeff Law  <law@redhat.com>
8241
8242         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8243         unused variable "ann".
8244         (remove_unused_locals): Likewise.
8245
8246         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8247         statement.
8248
8249         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8250         after it is freed.
8251
8252 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8253
8254         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8255         for invalid symbolic addresses.
8256         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8257         larl operands.
8258
8259 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8260
8261         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8262         the argument in calls to fold_truth_not_expr.
8263
8264 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8265
8266         * tree.c (record_node_allocation_statistics): New function.
8267         (make_node_stat, copy_node_stat, build_string): Call it.
8268         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8269         (build1_stat, build_omp_clause): Likewise.
8270
8271 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8272
8273         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8274         last commit.
8275
8276 2011-03-24  Richard Guenther  <rguenther@suse.de>
8277
8278         PR tree-optimization/48271
8279         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8280         blocks that still exist.
8281
8282 2011-03-24  Richard Guenther  <rguenther@suse.de>
8283
8284         PR tree-optimization/48270
8285         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8286         not free datarefs before ddrs.
8287
8288 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8289
8290         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8291         from the address built for a reference with variable offset.
8292
8293 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8294
8295         PR target/48237
8296         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8297         alternatives that can be handled with movq or movabsq insn.
8298         (*movdf_internal): Disable for !TARGET_64BIT.
8299         (*movdf_internal_nointeger): Ditto.
8300         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8301
8302 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8303
8304         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8305         (FUNCTION_ARG_ADVANCE): Likewise.
8306         * tm.texi.in: Change references to them to hook references.
8307         * tm.texi: Regenerate.
8308         * targhooks.c (default_function_arg): Eliminate check for target macro.
8309         (default_function_incoming_arg): Likewise.
8310         (default_function_arg_advance): Likewise.
8311         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8312         (function_arg_advance): Likewise.
8313         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8314
8315 2011-03-24  Richard Guenther  <rguenther@suse.de>
8316
8317         PR middle-end/48269
8318         * tree-object-size.c (addr_object_size): Do not double-account
8319         for MEM_REF offsets.
8320
8321 2011-03-24  Diego Novillo  <dnovillo@google.com>
8322
8323         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8324         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8325         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8326         Update all users.
8327         (lto_input_string): Rename from input_string.  Make extern.
8328         Update all users.
8329         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8330         output_string_with_length.
8331         Output 0 to indicate a non-NULL string.  Update all callers to
8332         not emit 0.
8333         (lto_output_string): Rename from output_string.  Make extern.
8334         Update all users.
8335         (lto_output_decl_state_streams): Make extern.
8336         (lto_output_decl_state_refs): Make extern.
8337         * lto-streamer.h (lto_input_string): Declare.
8338         (lto_input_data_block): Declare.
8339         (lto_output_string): Declare.
8340         (lto_output_string_with_length): Declare.
8341         (lto_output_decl_state_streams): Declare.
8342         (lto_output_decl_state_refs): Declare.
8343
8344 2011-03-24  Richard Guenther  <rguenther@suse.de>
8345
8346         PR tree-optimization/46562
8347         * tree.c (build_invariant_address): New function.
8348         * tree.h (build_invariant_address): Declare.
8349         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8350         a renamed function moved ...
8351         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8352         Take valueization callback parameter.
8353         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8354         * gimple-fold.h: New file.
8355         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8356         (ccp_fold, fold_const_aggregate_ref,
8357         fold_ctor_reference, fold_nonarray_ctor_reference,
8358         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8359         get_base_constructor): Move ...
8360         * gimple-fold.c: ... here.
8361         (gimple_fold_stmt_to_constant_1): New function
8362         split out from ccp_fold.  Take a valueization callback parameter.
8363         Valueize all operands.
8364         (gimple_fold_stmt_to_constant): New wrapper function.
8365         (fold_const_aggregate_ref_1): New function split out from
8366         fold_const_aggregate_ref.  Take a valueization callback parameter.
8367         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8368         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8369         invariant POINTER_PLUS_EXPRs to invariant form.
8370         (vn_valueize): New function.
8371         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8372         * tree-vrp.c (vrp_valueize): New function.
8373         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8374         to fold statements to constants.
8375         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8376         function declarations.
8377         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8378         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8379
8380 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8381
8382         * config/h8300/predicates.md (jump_address_operand): Fix register
8383         mode check.
8384
8385 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8386
8387         * doc/invoke.texi (max-stores-to-sink): Document.
8388         * params.h (MAX_STORES_TO_SINK): Define.
8389         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8390         if either vectorization or if-conversion is disabled.
8391         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8392         tree-vect-data-refs.c vect_equal_offsets.
8393         (dr_equal_offsets_p): New function.
8394         (find_data_references_in_bb): Remove static.
8395         * tree-data-ref.h (find_data_references_in_bb): Declare.
8396         (dr_equal_offsets_p): Likewise.
8397         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8398         (vect_drs_dependent_in_basic_block): Update calls to
8399         vect_equal_offsets.
8400         (vect_check_interleaving): Likewise.
8401         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8402         (cond_if_else_store_replacement): Rename to...
8403         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8404         documentation.
8405         (cond_if_else_store_replacement): New function.
8406         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8407         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8408
8409 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8410
8411         PR target/46934
8412         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8413         to subtract lower bound instead of GEN_INT().
8414
8415 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8416
8417         PR other/48179
8418         PR other/48221
8419         PR other/48234
8420         * doc/extend.texi (Alignment): Move section to match order in TOC.
8421         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8422         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8423
8424 2011-03-23  Jeff Law  <law@redhat.com>
8425
8426         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8427         before removing the edge.
8428
8429         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8430         it may have been freed by redirect_branch_edge or
8431         redirect_edge_succ_nodup.
8432
8433 2011-03-23  Richard Guenther  <rguenther@suse.de>
8434
8435         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8436         (check_va_list_escapes): Likewise.
8437         (check_all_va_list_escapes): Likewise.
8438
8439 2011-03-23  Richard Guenther  <rguenther@suse.de>
8440
8441         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8442         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8443         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8444         (alias.o): Likewise.
8445         (ipa-type-escape.o): Remove.
8446         (ipa-struct-reorg.o): Likewise.
8447         (GTFILES): Remove ipa-struct-reorg.c.
8448         * alias.c: Do not include ipa-type-escape.h.
8449         * tree-ssa-alias.c: Likewise.
8450         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8451         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8452         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8453         and ipa-type-escape passes.
8454         * tree-pass.h (pass_ipa_type_escape): Remove.
8455         (pass_ipa_struct_reorg): Likewise.
8456         * ipa-struct-reorg.h: Remove.
8457         * ipa-struct-reorg.c: Likewise.
8458         * ipa-type-escape.h: Likewise.
8459         * ipa-type-escape.c: Likewise.
8460         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8461         (--param struct-reorg-cold-struct-ratio): Likewise.
8462         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8463         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8464         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8465
8466 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8467
8468         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8469         cpu attribute value.
8470         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8471         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8472         * config/s390/s390.c (processor_flags_table): New constant array.
8473         (s390_handle_arch_option): Remove.
8474         (s390_handle_option): Remove s390_handle_arch_option invocations
8475         and OPT_mwarn_framesize_ handling.
8476         (s390_option_override): Remove s390_handle_arch_option invocation.
8477         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8478         warnings.
8479         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8480         * config/s390/s390.opt (s390_tune, s390_arch)
8481         (march=): Replace s390_arch_option enum and values with
8482         processor_type.  Set variable name to s390_arch.  Set
8483         initialization value.
8484         (mtune=): Replace s390_arch_option with processor_type.  Set
8485         variable name to s390_tune.  Set initialization value.
8486
8487 2011-03-23  Julian Brown  <julian@codesourcery.com>
8488
8489         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8490         accesses which are not naturally aligned.
8491
8492 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8493
8494         PR target/47553
8495         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8496
8497 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8498
8499         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8500         parameter from "int" to "enum insn_code".
8501         (expand_operand_type): New enum.
8502         (expand_operand): New structure.
8503         (create_expand_operand): New function.
8504         (create_fixed_operand, create_output_operand): Likewise
8505         (create_input_operand, create_convert_operand_to): Likewise.
8506         (create_convert_operand_from, create_address_operand): Likewise.
8507         (create_integer_operand): Likewise.
8508         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8509         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8510         (expand_insn, expand_jump_insn): Likewise.
8511         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8512         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8513         (expand_movstr, expand_builtin___clear_cache): Likewise.
8514         (expand_builtin_lock_release): Likewise.
8515         * explow.c (allocate_dynamic_stack_space): Likewise.
8516         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8517         and use the default handling in that case.
8518         * expmed.c (check_predicate_volatile_ok): Delete.
8519         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8520         (emit_cstore): Likewise.
8521         * expr.c (emit_block_move_via_movmem): Likewise.
8522         (set_storage_via_setmem, expand_assignment): Likewise.
8523         (emit_storent_insn, try_casesi): Likewise.
8524         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8525         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8526         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8527         (expand_twoval_unop, expand_twoval_binop): Likewise.
8528         (expand_unop_direct, emit_indirect_jump): Likewise.
8529         (emit_conditional_move, vector_compare_rtx): Likewise.
8530         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8531         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8532         (expand_sync_lock_test_and_set): Likewise.
8533         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8534         (emit_unop_insn): Likewise.
8535         (expand_copysign_absneg): Change icode to an insn_code.
8536         (create_convert_operand_from_type): New function.
8537         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8538         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8539         (expand_insn, expand_jump_insn): Likewise.
8540         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8541         than const_int_operand for operand 2.
8542
8543 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8544
8545         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8546         if possible.
8547
8548 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8549
8550         * emit-rtl.c (emit_pattern_before_noloc): New function.
8551         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8552         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8553         (emit_pattern_after_noloc): New function.
8554         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8555         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8556
8557 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8558
8559         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8560         (__ffsDI2): Likewise.
8561
8562 2011-03-22  Richard Henderson  <rth@redhat.com>
8563
8564         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8565         of !TARGET_ABI_OPEN_VMS.
8566         (alpha_trampoline_init, alpha_start_function): Likewise.
8567         (alpha_expand_epilogue, alpha_file_start): Likewise.
8568         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8569         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8570         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8571         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8572         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8573
8574 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8575
8576         * config/s390/s390-opts.h: New.
8577         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8578         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8579         s390_stack_guard): Remove.
8580         (s390_handle_arch_option): Return void.  Take enum
8581         s390_arch_option value instead of string and searching array.
8582         (s390_handle_option): Don't assert that global structures are in
8583         use.  Access variables via opts pointer.  Use error_at.  Don't use
8584         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8585         s390_handle_arch_option.
8586         (s390_option_override): Update call to s390_handle_arch_option.
8587         (s390_emit_prologue): Use %d format for s390_stack_size in
8588         diagnostic.  Use %wd for HOST_WIDE_INT.
8589         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8590         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8591         * config/s390/s390.opt (config/s390/s390-opts.h): New
8592         HeaderInclude entry.
8593         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8594         s390_arch_flags, s390_warn_framesize): New Variable entries.
8595         (s390_arch_option): New Enum and EnumValue entries.
8596         (march=): Use Enum instead of Var.
8597         (mstack-guard=, mstack-size=): Use UInteger and Var.
8598         (mtune=): Use Enum.
8599
8600 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * config/score/score.c (score_handle_option): Don't assert that
8603         global structures are in use.  Access target_flags via opts
8604         pointer.  Use value of -march= option to determine target_flags
8605         settings.
8606         * config/score/score.opt (march=): Use Enum.
8607         (score_arch): New Enum and EnumValue entries.
8608
8609 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8610
8611         * config/mep/mep.c (option_mtiny_specified): Remove.
8612         (mep_option_override): Move register handling for -mivc2 from
8613         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8614         instead of option_mtiny_specified.
8615         (mep_handle_option): Access target_flags via opts pointer.  Don't
8616         assert that global structures are in use.  Defer part of -mivc2
8617         handling and move it to mep_option_override.
8618         * config/mep/mep.opt (IVC2): New Mask entry.
8619         (mivc2): Use Var and Defer instead of Mask.
8620
8621 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8622
8623         * config/v850/v850-opts.h: New.
8624         * config/v850/v850.c (small_memory): Replace with
8625         small_memory_physical_max array.  Make that array static const.
8626         (v850_handle_memory_option): Take integer value of argument.  Take
8627         gcc_options pointer, option text and location.  Return void.
8628         Update for changes to small memory structures.
8629         (v850_handle_option): Access target_flags via opts pointer.  Don't
8630         assert that global structures are in use.  Update calls to
8631         v850_handle_memory_option.
8632         (v850_encode_data_area): Update references to small memory settings.
8633         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8634         (enum small_memory_type): Move to v850-opts.h.
8635         * config/v850/v850.opt (config/v850/v850-opts.h): New
8636         HeaderInclude entry.
8637         (small_memory_max): New Variable entry.
8638         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8639         (mtda, mzda): Likewise.
8640
8641 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8642
8643         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8644         pointer.  Don't assert that global structures are in use.
8645
8646 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8647
8648         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8649         via opts pointer.  Don't assert that global structures are in use.
8650
8651 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8654         (munix=93): Use Var.
8655         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8656         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8657         * config/pa/pa-opts.h: New.
8658         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8659         (pa_handle_option): Don't assert that global structures are in
8660         use.  Access target_flags via opts pointer.  Don't handle
8661         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8662         OPT_munix_98 here.
8663         (pa_option_override): Handle deferred OPT_mfixed_range_.
8664
8665 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8666
8667         * config/mn10300/mn10300-opts.h: New.
8668         * config/mn10300/mn10300.c (mn10300_processor,
8669         mn10300_tune_string): Remove.
8670         (mn10300_handle_option): Don't assert that global structures are
8671         in use.  Access mn10300_processor via opts pointer.  Don't handle
8672         OPT_mtune_ here.
8673         * config/mn10300/mn10300.h (enum processor_type): Move to
8674         mn10300-opts.h.
8675         (mn10300_processor): Remove.
8676         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8677         HeaderInclude entry.
8678         (mn10300_processor): New Variable entry.
8679         (mtune=): Use Var.
8680
8681 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8682
8683         * config/microblaze/microblaze.c: Don't include opts.h.
8684         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8685         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8686         (mno-clearbss): Use Var and Warn.
8687
8688 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8689
8690         * config/m32r/m32r-opts.h: New.
8691         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8692         (m32r_handle_option): Don't assert that global structures are in
8693         use.  Access target_flags and m32r_cache_flush_func via opts
8694         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8695         OPT_mno_flush_trap here.
8696         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8697         include of m32r-opts.h.
8698         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8699         HeaderInclude entry.
8700         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8701         (mmodel=): Use Enum and Var.
8702         (m32r_model): New Enum and EnumValue entries.
8703         (mno-flush-trap): Use Var.
8704         (msdata=): Use Enum and Var.
8705         (m32r_sdata): New Enum and EnumValue entries.
8706
8707 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8708
8709         * config/m32c/m32c.c: Don't include opts.h.
8710         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8711         m32c_handle_option): Remove.
8712         (m32c_option_override): Check global_options_set.x_target_memregs
8713         instead of target_memregs_set.
8714         * config/m32c/m32c.h (target_memregs): Remove.
8715         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8716         variable.
8717
8718 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8719
8720         * config/iq2000/iq2000-opts.h: New.
8721         * config/iq2000/iq2000.c: Don't include opts.h.
8722         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8723         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8724         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8725         HeaderInclude entry.
8726         (iq2000_tune): New Variable entry.
8727         (march=): Add comment.  Use Enum.
8728         (iq2000_arch): New Enum and EnumValue entries.
8729         (mcpu=): Use Enum and Var.
8730         (iq2000_tune): New Enum and EnumValue entries.
8731
8732 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8733
8734         * config/ia64/ia64-opts.h: New.
8735         * config/ia64/ia64.c (ia64_tune): Remove.
8736         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8737         here.  Use error_at.
8738         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8739         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8740         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8741         HeaderInclude entry.
8742         (ia64_tune): New Variable entry.
8743         (mfixed-range=): Use Defer and Var.
8744         (mtune=): Use Enum and Var.
8745         (ia64_tune): New Enum and EnumValue entries.
8746
8747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8748
8749         * config/frv/frv-opts.h: New.
8750         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8751         frv-opts.h.
8752         (frv_cpu_type): Remove.
8753         * config/frv/frv.c: Don't include opts.h.
8754         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8755         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8756         (frv_cpu_type): New Variable entry.
8757         (frv_cpu): New Enum and EnumValue entries.
8758
8759 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8760
8761         * config/cris/cris.c (cris_handle_option): Access target_flags via
8762         opts pointer.  Don't assert that global structures are in use.
8763         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8764         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8765
8766 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8767
8768         * config/bfin/bfin-opts.h: New.
8769         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8770         bfin_si_revision, bfin_workarounds): Remove.
8771         (bfin_cpus): Make static const.
8772         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8773         not bfin_lib_id_given.
8774         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8775         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8776         pointer. Use error_at.  Don't assert that global structures are in use.
8777         * config/bfin/bfin.h: Include bfin-opts.h.
8778         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8779         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8780         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8781         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8782         entries.
8783
8784 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8785
8786         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8787         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8788         or -msoft-float here.
8789         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8790         -msoft-float and -mhard-float.
8791         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8792         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8793         msoft-float.
8794         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8795         -msoft-float.
8796         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8797         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8798         not mhard-float.
8799         (LIBGCC_SPEC): Don't handle -msoft-float.
8800         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8801         -mhard-float.
8802         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8803         msoft-float.
8804         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8805         -mfloat-abi=*, not -msoft-float and -mhard-float.
8806         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8807         -msoft-float.
8808         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8809         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8810         mhard-float and msoft-float.
8811         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8812         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8813         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8814         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8815         mhard-float.
8816         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8817         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8818         msoft-float.
8819         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8820         not mhard-float.
8821         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8822         not msoft-float.
8823
8824 2011-03-22  Richard Henderson  <rth@redhat.com>
8825
8826         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8827         TARGET_ABI_WINDOWS_NT.
8828         (alpha_output_function_end_prologue): Likewise.
8829         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8830         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8831         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8832         (trap, *movsi_nt_vms): Likewise.
8833         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8834         (*tablejump_osf_nt_internal): Remove.
8835         * config/alpha/predicates.md (input_operand): Only test Pmode.
8836
8837 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8838
8839         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8840         via opts pointer.  Use error_at.  Don't assert that global
8841         structures are in use.
8842
8843 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8844
8845         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8846         (ix86_handle_option): Access ix86_isa_flags and
8847         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8848         global structures are in use.
8849         (ix86_function_specific_save, ix86_function_specific_restore):
8850         Update ix86_isa_flags_explicit field name.
8851         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8852         (ix86_isa_flags_explicit): Rename TargetSave entry to
8853         x_ix86_isa_flags_explicit.
8854
8855 2011-03-22  Richard Henderson  <rth@redhat.com>
8856
8857         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8858         (alpha_option_override, direct_return): Likewise.
8859         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8860         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8861         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8862         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8863         (alpha_expand_epilogue, alpha_end_function): Likewise.
8864         (alpha_init_libfuncs): Likewise.
8865         (struct machine_function): Remove unicosmk members.
8866         (print_operand) ['t']: Remove.
8867         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8868         unicosmk_output_module_name, unicosmk_output_common,
8869         current_section_align, unicosmk_output_text_section_asm_op,
8870         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8871         unicosmk_section_type_flags, unicosmk_unique_section,
8872         unicosmk_asm_named_section, unicosmk_insert_attributes,
8873         unicosmk_output_align, unicosmk_defer_case_vector,
8874         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8875         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8876         unicosmk_output_ssib, unicosmk_add_call_info_word,
8877         unicosmk_extern_head, unicosmk_output_default_externs,
8878         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8879         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8880         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8881         * config/alpha/alpha-protos.h: Update.
8882         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8883         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8884         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8885         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8886         (*mulsi_se, mulvsi3): Likewise.
8887         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8888         (*divmodsi_internal, call, call_value, realign): Likewise.
8889         (moddi3, umoddi3): Likewise; remove duplicate expander.
8890         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8891         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8892         (*movdi_nofix): Remove r/U alternative.
8893         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8894         * config/alpha/constraints.md ("U"): Remove.
8895         * config/alpha/predicates.md (call_operand"): Don't test
8896         TARGET_ABI_UNICOSMK.
8897
8898 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8899
8900         * target.def (handle_option): Take gcc_options and
8901         cl_decoded_option pointers and location_t.
8902         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8903         * doc/tm.texi: Regenerate.
8904         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8905         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8906         * lto-opts.c (lto_reissue_options): Generate option structure for
8907         targetm.handle_option call.
8908         * opts.c (target_handle_option): Update call to
8909         targetm.handle_option.  Remove assertions about values now passed
8910         down to hook.
8911         * targhooks.c (default_target_handle_option): New.
8912         * targhooks.h (default_target_handle_option): Declare.
8913         * config/alpha/alpha.c: Include opts.h.
8914         (alpha_handle_option): Update to new hook interface.
8915         * config/arm/arm.c: Include opts.h.
8916         (arm_handle_option): Update to new hook interface.
8917         * config/arm/t-arm (arm.o): Update dependencies.
8918         * config/bfin/bfin.c: Include opts.h.
8919         (bfin_handle_option): Update to new hook interface.
8920         * config/cris/cris.c: Include opts.h.
8921         (cris_handle_option): Update to new hook interface.
8922         * config/frv/frv.c: Include opts.h.
8923         (frv_handle_option): Update to new hook interface.
8924         * config/i386/i386.c: Include opts.h.
8925         (ix86_handle_option): Update to new hook interface.
8926         (ix86_valid_target_attribute_inner_p): Generate option structure
8927         for call to ix86_handle_option.
8928         * config/i386/t-i386 (i386.o): Update dependencies.
8929         * config/ia64/ia64.c: Include opts.h.
8930         (ia64_handle_option): Update to new hook interface.
8931         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8932         * config/iq2000/iq2000.c: Include opts.h.
8933         (iq2000_handle_option): Update to new hook interface.
8934         * config/m32c/m32c.c: Include opts.h.
8935         (m32c_handle_option): Update to new hook interface.
8936         * config/m32r/m32r.c: Include opts.h.
8937         (m32r_handle_option): Update to new hook interface.
8938         * config/m68k/m68k.c: Include opts.h.
8939         (m68k_handle_option): Update to new hook interface.
8940         * config/mep/mep.c: Include opts.h.
8941         (mep_handle_option): Update to new hook interface.
8942         * config/microblaze/microblaze.c: Include opts.h.
8943         (microblaze_handle_option): Update to new hook interface.
8944         * config/mips/mips.c: Include opts.h.
8945         (mips_handle_option): Update to new hook interface.
8946         * config/mn10300/mn10300.c: Include opts.h.
8947         (mn10300_handle_option): Update to new hook interface.
8948         * config/pa/pa.c: Include opts.h.
8949         (pa_handle_option): Update to new hook interface.
8950         * config/pdp11/pdp11.c: Include opts.h.
8951         (pdp11_handle_option): Update to new hook interface.
8952         * config/rs6000/rs6000.c: Include opts.h.
8953         (rs6000_handle_option): Update to new hook interface.
8954         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8955         * config/rx/rx.c: Include opts.h.
8956         (rx_handle_option): Update to new hook interface.
8957         * config/s390/s390.c: Include opts.h.
8958         (s390_handle_option): Update to new hook interface.
8959         * config/score/score.c: Include opts.h.
8960         (score_handle_option): Update to new hook interface.
8961         * config/sh/sh.c: Include opts.h.
8962         (sh_handle_option): Update to new hook interface.
8963         * config/sparc/sparc.c: Include opts.h.
8964         (sparc_handle_option): Update to new hook interface.
8965         * config/v850/v850.c: Include opts.h.
8966         (v850_handle_option): Update to new hook interface.
8967
8968 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8969
8970         * gcc.c (driver_unknown_option_callback): Only permit and save
8971         unknown -Wno- options.
8972         (driver_wrong_lang_callback): Save options directly instead of via
8973         driver_unknown_option_callback.
8974
8975 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8976
8977         * combine.c (simplify_set): Try harder to find the best CC mode when
8978         simplifying a nested COMPARE on the RHS.
8979
8980 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8981
8982         * config/alpha/gnu.h: Remove.
8983         * config/arc: Remove directory.
8984         * config/arm/netbsd.h: Remove.
8985         * config/arm/t-pe: Remove.
8986         * config/crx: Remove directory.
8987         * config/i386/netbsd.h: Remove.
8988         * config/m68hc11: Remove directory.
8989         * config/m68k/uclinux-oldabi.h: Remove.
8990         * config/mcore/mcore-pe.h: Remove.
8991         * config/mcore/t-mcore-pe: Remove.
8992         * config/netbsd-aout.h: Remove.
8993         * config/rs6000/gnu.h: Remove.
8994         * config/sh/sh-symbian.h: Remove.
8995         * config/sh/symbian-base.c: Remove.
8996         * config/sh/symbian-c.c: Remove.
8997         * config/sh/symbian-cxx.c: Remove.
8998         * config/sh/symbian-post.h: Remove.
8999         * config/sh/symbian-pre.h: Remove.
9000         * config/sh/t-symbian: Remove.
9001         * config/svr3.h: Remove.
9002         * config/vax/netbsd.h: Remove.
9003         * config.build: Don't handle i[34567]86-*-pe.
9004         * config.gcc: Remove handling of deprecations for most deprecated
9005         targets.
9006         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9007         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9008         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9009         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9010         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9011         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9012         Remove cases.
9013         * config.host: Don't handle i[34567]86-*-pe.
9014         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9015         (ASM_SPEC32): Don't handle -mcall-gnu.
9016         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9017         -mcall-gnu.
9018         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9019         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9020         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9021         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9022         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9023         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9024         conditional on SYMBIAN.
9025         * configure.ac: Don't handle powerpc*-*-gnu*.
9026         * configure: Regenerate.
9027         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9028         * doc/install-old.texi (m6811, m6812): Don't mention.
9029         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9030         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9031         (m68k-uclinuxoldabi): Don't mention.
9032         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9033         Remove.
9034         (-mcall-gnu): Remove.
9035         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9036         families): Remove constraint documentation.
9037
9038 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9039
9040         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9041         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9042         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9043
9044 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9045
9046         PR target/48226
9047         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9048         vector when peeking at the next token for vector, don't expand the
9049         keywords.
9050
9051 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9052
9053         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9054         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9055         * config/avr/avr.c (init_cumulative_args)
9056         (avr_function_arg_advance): Use it.
9057         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9058         sibcall epilogues.
9059         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9060         (avr_function_ok_for_sibcall): ...this new function.
9061         (avr_lookup_function_attribute1): New static Function.
9062         (avr_naked_function_p, interrupt_function_p)
9063         (signal_function_p, avr_OS_task_function_p)
9064         (avr_OS_main_function_p): Use it.
9065         * config/avr/avr.md ("sibcall", "sibcall_value")
9066         ("sibcall_epilogue"): New expander.
9067         ("*call_insn", "*call_value_insn"): New insn.
9068         ("call_insn", "call_value_insn"): Remove
9069         ("call", "call_value", "epilogue"): Change expander to handle
9070         sibling calls.
9071
9072 2011-03-21  Nick Clifton  <nickc@redhat.com>
9073
9074         * doc/invoke.texi (Overall Options): Move closing brace to end of
9075         options list.
9076         (Optimization Options): Add missing @gol.
9077         (Directory Options): Likewise.
9078         (i386 and x86-64 Options): Likewise.
9079         (RS6000 and PowerPC Options): Likewise.
9080         (i386 and x86-64 Windows Options): Likewise.
9081         (V850 Options): Add text missing from descriptions.
9082
9083 2011-03-22  Richard Henderson  <rth@redhat.com>
9084
9085         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9086         (avr_incoming_return_addr_rtx): New.
9087         (emit_push_byte): New.
9088         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9089         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9090         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9091         (emit_pop_byte): New.
9092         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9093         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9094         (INCOMING_RETURN_ADDR_RTX): New.
9095         (INCOMING_FRAME_SP_OFFSET): New.
9096         (ARG_POINTER_CFA_OFFSET): New.
9097         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9098         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9099         (pophi): Remove.
9100
9101         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9102
9103 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9104
9105         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9106         (FUNCTION_ARG_ADVANCE): Likewise.
9107         * tm.texi.in: Change references to them to hook references.
9108         * tm.texi: Regenerate.
9109         * targhooks.c (default_function_arg): Eliminate check for target
9110         macro.
9111         (default_function_incoming_arg): Likewise.
9112         (default_function_arg_advance): Likewise.
9113         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9114         (function_arg_advance): Likewise.
9115         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9116
9117 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9118
9119         * tree.c (build_call_1): New function.
9120         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9121
9122 2011-03-22  Richard Guenther  <rguenther@suse.de>
9123
9124         PR tree-optimization/48228
9125         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9126         for single-arg PHIs.
9127
9128 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9129
9130         PR rtl-optimization/48143
9131         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9132         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9133         sse2_cvtps2pd): Likewise.
9134
9135 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9136
9137         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9138
9139 2011-03-22  Richard Guenther  <rguenther@suse.de>
9140
9141         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9142         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9143         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9144         and REALIGN_LOAD_EXPR.
9145         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9146         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9147         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9148         DOT_PROD_EXPR case ...
9149         (expand_expr_real_2): ... here.
9150         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9151         and REALIGN_LOAD_EXPR.
9152         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9153         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9154         (vect_create_epilog_for_reduction): Likewise.
9155         (vectorizable_reduction): Likewise.
9156         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9157         * tree-vect-stmts.c (vectorizable_load): Likewise.
9158
9159 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9160
9161         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9162
9163 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9164
9165         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9166         handling for PLTOFF/GOTOFF.
9167
9168 2011-03-22  Nick Clifton  <nickc@redhat.com>
9169
9170         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9171         trailing backslash from the end of the macro definition.
9172
9173 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9174
9175         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9176         and PLT unspecs.
9177
9178 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9179
9180         * expr.h (prepare_operand): Move to...
9181         * optabs.h (prepare_operand): ...here and change the insn code
9182         parameter from "int" to "enum insn_code".
9183         (insn_operand_matches): Declare.
9184         * expr.c (init_expr_target): Use insn_operand_matches.
9185         (compress_float_constant): Likewise.
9186         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9187         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9188         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9189         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9190         Likewise.
9191         (gen_cond_trap): Likewise.
9192         (prepare_operand): Likewise.  Change icode to an insn_code.
9193         (insn_operand_matches): New function.
9194         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9195         * reload1.c (gen_reload): Likewise.
9196         * targhooks.c (default_secondary_reload): Likewise.
9197
9198 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9199
9200         * config/alpha/alpha.md (unspec): New define_c_enum.
9201         (unspecv): Ditto.
9202
9203 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9204
9205         PR debug/48214
9206         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9207         between a call and its CALL_ARG_LOCATION note.
9208
9209 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9210
9211         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9212
9213 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9214
9215         PR c/42544
9216         PR c/48197
9217         * c-common.c (shorten_compare): If primopN is first sign-extended
9218         to opN and then zero-extended to result type, set primopN to opN.
9219
9220 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9221
9222         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9223         for barrier handlers.
9224
9225 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9226
9227         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9228         UNSPEC constants to be in the unspec enumeration, and redefine
9229         all UNSPECV constants to be in the unspecv enumeration, so that
9230         dumps print which unspec/unspec_volatile this is.
9231         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9232         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9233         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9234         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9235         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9236
9237         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9238         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9239         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9240         * config/rs6000/sync.md (isync, lwsync): Ditto.
9241
9242 2011-03-21  Richard Guenther  <rguenther@suse.de>
9243
9244         * params.def (lto-min-partition): Fix typo.
9245
9246 2011-03-21  Richard Guenther  <rguenther@suse.de>
9247
9248         PR c/47939
9249         * c-decl.c (grokdeclarator): Drop to the main variant only
9250         for array types.  Drop flag_gen_aux_info check.
9251
9252 2011-03-21  Richard Guenther  <rguenther@suse.de>
9253
9254         PR translation/47911
9255         * params.def (lto-partitions): Fix typo.
9256         (lto-min-partition): Fix wording.
9257
9258 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9259
9260         * config/rs6000/t-freebsd: Remove duplication from file.
9261
9262 2011-03-21  Richard Guenther  <rguenther@suse.de>
9263
9264         PR middle-end/47661
9265         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9266
9267 2011-03-21  Richard Guenther  <rguenther@suse.de>
9268
9269         PR lto/48210
9270         * params.def (lto-partitions): Require at least 1 partition.
9271
9272 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9273
9274         * gthr-solaris.h: Remove.
9275         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9276         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9277         (LIB_SPEC): Likewise.
9278         * config/sol2.opt (threads): Remove.
9279         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9280         (sparc*-*-solaris2*): Likewise.
9281         * configure.ac (enable_threads): Enable solaris support.
9282         * configure: Regenerate.
9283         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9284         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9285         solaris.
9286
9287 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9288
9289         * config.gcc: Obsolete *-*-solaris2.8*.
9290         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9291
9292 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9293
9294         PR bootstrap/48135
9295         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9296         reference.  Solaris 8 perl works.
9297
9298 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9299
9300         PR bootstrap/48135
9301         * doc/install.texi (Prerequisites): Move jar etc. up.
9302         Explain support library version requirements.
9303
9304 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9305
9306         PR bootstrap/48135
9307         * doc/install.texi (Prerequisites): Move Perl to build
9308         requirements.  Always necessary on Solaris 2 with Sun ld.
9309
9310 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9311
9312         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9313         binutils 2.21.
9314         (Specific, i?86-*-solaris2.[89]): Likewise.
9315         (Specific, i?86-*-solaris2.10): Likewise.
9316         (Specific, mips-sgi-irix6): Likewise.
9317         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9318         Update for binutils 2.21.
9319
9320 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9321
9322         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9323         Allow -fuse-linker-plugin for non-default plugin linker.
9324         * configure: Regenerate.
9325
9326 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9327
9328         PR bootstrap/48167
9329         * gengtype.c (files_rules): Added rule for cp/parser.h.
9330
9331 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9332
9333         PR target/48213
9334         * config/s390/s390.c (s390_delegitimize_address): Don't call
9335         lowpart_subreg if orig_x has BLKmode.
9336
9337 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9338
9339         PR target/12171
9340         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9341         * tree.h (attribute_spec): Add new member affects_type_identity.
9342         * attribs.c (empty_attribute_table): Adjust attribute_spec
9343         initializers.
9344         * config/alpha/alpha.c: Likewise.
9345         * config/arc/arc.c: Likewise.
9346         * config/arm/arm.c: Likewise.
9347         * config/avr/avr.c: Likewise.
9348         * config/bfin/bfin.c: Likewise.
9349         * config/crx/crx.c: Likewise.
9350         * config/darwin.h: Likewise.
9351         * config/h8300/h8300.c: Likewise.
9352         * config/i386/cygming.h: Likewise.
9353         * config/i386/i386.c: Likewise.
9354         * config/ia64/ia64.c: Likewise.
9355         * config/m32c/m32c.c: Likewise.
9356         * config/m32r/m32r.c: Likewise.
9357         * config/m68hc11/m68hc11.c: Likewise.
9358         * config/m68k/m68k.c: Likewise.
9359         * config/mcore/mcore.c: Likewise.
9360         * config/mep/mep.c: Likewise.
9361         * config/microblaze/microblaze.c: Likewise.
9362         * config/mips/mips.c: Likewise.
9363         * config/rs6000/rs6000.c: Likewise.
9364         * config/rx/rx.c: Likewise.
9365         * config/sh/sh.c: Likewise.
9366         * config/sol2.h: Likewise.
9367         * config/sparc/sparc.c: Likewise.
9368         * config/spu/spu.c: Likewise.
9369         * config/stormy16/stormy16.c: Likewise.
9370         * config/v850/v850.c: Likewise.
9371
9372 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9373
9374         * simplify-rtx.c (simplify_binary_operation_1): Handle
9375         (xor (and A B) C) case when B and C are both constants.
9376
9377 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9378
9379         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9380
9381 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9382
9383         PR bootstrap/48168
9384         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9385
9386 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9387
9388         PR rtl-optimization/48156
9389         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9390         assume df and df_lr are not NULL.
9391
9392 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9393
9394         PR debug/48023
9395         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9396         between a call and its CALL_ARG_LOCATION note.
9397
9398 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9399
9400         PR debug/48178
9401         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9402         between a call and its corresponding CALL_ARG_LOCATION note.
9403
9404 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9405
9406         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9407         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9408         * haifa-sched.c (setup_ref_regs): Ditto.
9409         * caller-save.c (add_used_regs_1): Ditto.
9410         * dse.c (look_for_hardregs): Ditto.
9411         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9412         * sched-rgn.c (check_live_1): Ditto.
9413
9414 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9415
9416         * c-decl.c (diagnose_mismatched_decls): Give an error for
9417         redefining a typedef with variably modified type.
9418
9419 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9420
9421         * c-decl.c (grokfield): Don't allow typedefs for structures or
9422         unions with no tag by default.
9423         * doc/extend.texi (Unnamed Fields): Update.
9424
9425 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9426
9427         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9428         Rewrite using indirect functions.
9429         (lwp_slwpcb): Ditto.
9430         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9431         (avx_vinsertf128<mode>): Ditto.
9432
9433 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9434
9435         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9436         unspecs.
9437
9438 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9439
9440         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9441         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9442
9443 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9444
9445         PR rtl-optimization/48170
9446         * gcse.c (hoist_code): Remove bogus asserts.
9447
9448 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9449
9450         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9451         computation for prologue/epilogue.
9452
9453 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9454
9455         * Makefile.in (check-consistency): Remove.
9456
9457 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9458
9459         PR debug/48176
9460         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9461         arange_table_in_use is 0, but either text_section_used or
9462         cold_text_section_used is true.  Don't call it if
9463         !info_section_emitted.
9464
9465 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9466
9467         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9468         FUNCTION_VALUE_REGNO_P): Remove.
9469         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9470         Remove.
9471         * config/avr/avr.c (avr_ret_register): Make static inline.
9472         (avr_function_value_regno_p): New function.
9473         (avr_libcall_value): Make static. Add 'func' argument.
9474         (avr_function_value): Make static. Rename 'func' argument to
9475         'fn_decl_or_type', forward it to avr_libcall_value. Call
9476         avr_ret_register function instead of RET_REGISTER macro.
9477         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9478
9479 2011-03-18  Jason Merrill  <jason@redhat.com>
9480
9481         PR c++/23372
9482         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9483
9484 2011-03-18  Richard Guenther  <rguenther@suse.de>
9485
9486         * doc/install.texi (--enable-gold): Remove.
9487         (--with-plugin-ld): Document.
9488         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9489
9490 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9491
9492         PR middle-end/47790
9493         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9494         again after expansion changes.
9495
9496 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9497
9498         * combine.c (try_combine): Do simplification only call of
9499         subst() on i2 even when i1 is present. Update comments.
9500
9501 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9502
9503         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9504         and UNSPEC_PCREL_SYMOFF.
9505
9506 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9507
9508         * config/s390/s390.md: Use define_c_enum for the unspec constant
9509         definitions.
9510
9511 2011-03-18  Richard Henderson  <rth@redhat.com>
9512             Jakub Jelinek  <jakub@redhat.com>
9513
9514         PR bootstrap/48161
9515         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9516         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9517
9518 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9519
9520         PR middle-end/47725
9521         * combine.c (cant_combine_insn_p): Don't check zero/sign
9522         extended hard registers.
9523
9524 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9525
9526         PR middle-end/47725
9527         * combine.c (cant_combine_insn_p): Check zero/sign extended
9528         hard registers.
9529
9530 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9531
9532         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9533         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9534         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9535         Change return type to bool.
9536         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9537
9538 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9539
9540         PR debug/48163
9541         * var-tracking.c (prepare_call_arguments): If CALL target
9542         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9543         pc instead of looking it up using cselib_lookup and use
9544         Pmode for it if x has VOIDmode.
9545         * dwarf2out.c (gen_subprogram_die): If also both first and
9546         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9547
9548         PR debug/48163
9549         * function.c (assign_parms): For data.passed_pointer parms
9550         use MEM of data.entry_parm instead of data.entry_parm itself
9551         as DECL_INCOMING_RTL.
9552         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9553         also when passed and declared mode is the same, DECL_RTL
9554         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9555         a MEM too.
9556
9557 2011-03-16  Jeff Law  <law@redhat.com>
9558
9559         PR rtl-optimization/37273
9560         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9561         handle them like argument loads from stack slots.  Do not double
9562         count memory for memory constants and argument loads from stack slots.
9563
9564 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         PR debug/48160
9567         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9568
9569 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9570
9571         PR target/48171
9572         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9573
9574 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9575
9576         PR bootstrap/48153
9577         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9578         if dwarf_strict.
9579         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9580         Clear call_arg_locations and call_arg_loc_last always.
9581
9582         PR middle-end/48152
9583         * var-tracking.c (prepare_call_arguments): If argument needs to be
9584         passed by reference, adjust argtype and mode.
9585
9586 2011-03-17  Richard Guenther  <rguenther@suse.de>
9587
9588         PR middle-end/48134
9589         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9590         a value make sure to fold the statement.
9591
9592 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9593
9594         PR target/43872
9595         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9596         return condition with !cfun->calls_alloca.
9597
9598 2011-03-17  Richard Guenther  <rguenther@suse.de>
9599
9600         PR bootstrap/48148
9601         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9602         origin for decls in other ltrans units.
9603         (input_varpool_node): Likewise.
9604
9605 2011-03-17  Richard Guenther  <rguenther@suse.de>
9606
9607         PR middle-end/48165
9608         * tree-object-size.c (compute_object_offset): Properly return
9609         the offset operand of MEM_REFs as sizetype.
9610
9611 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9612
9613         PR rtl-optimization/48141
9614         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9615         * dse.c: Include params.h.
9616         (active_local_stores_len): New variable.
9617         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9618         to NULL.
9619         (record_store, check_mem_read_rtx): Decrease it when removing
9620         from the chain.
9621         (scan_insn): Likewise.  Increase it when adding to chain, if it
9622         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9623         set active_local_stores to NULL before the addition.
9624         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9625
9626         PR rtl-optimization/48141
9627         * dse.c (record_store): If no positions are needed in an insn
9628         that cannot be deleted, at least unchain it from active_local_stores.
9629
9630 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9631
9632         PR debug/47510
9633         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9634         (lookup_type_die_strip_naming_typedef): ... here.
9635         (get_context_die): Use it.
9636         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9637         the anonymous struct named by the naming typedef.
9638
9639 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9640
9641         PR target/48154
9642         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9643         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9644
9645 2011-03-16  Jeff Law  <law@redhat.com>
9646
9647         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9648         check for operands of conditional.  Allow type to be a pointer.
9649
9650 2011-03-16  Richard Guenther  <rguenther@suse.de>
9651
9652         PR tree-optimization/48149
9653         * fold-const.c (fold_binary_loc): Fold
9654         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9655
9656 2011-03-16  Richard Guenther  <rguenther@suse.de>
9657
9658         PR tree-optimization/26134
9659         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9660         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9661         (non_rewritable_mem_ref_base): Handle complex type component
9662         accesses, constrain offsets for vector and complex extracts
9663         more properly.
9664
9665 2011-03-16  Richard Guenther  <rguenther@suse.de>
9666
9667         PR tree-optimization/48146
9668         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9669         operands avoiding the need for renaming.
9670
9671 2011-03-16  Richard Guenther  <rguenther@suse.de>
9672
9673         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9674         constant folding.  Move MEM_REF canonicalization first.
9675         Rely on fold_const_aggregate_ref for initializer folding.
9676         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9677
9678 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR middle-end/48136
9681         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9682         arg0/arg1 or their arguments are always fold converted to matching
9683         types.
9684
9685         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9686         to nargs.
9687
9688 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9689
9690         PR lto/46944
9691         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9692         Handle in-tree gold.
9693         (ld_vers): Extract binutils version for gold.
9694         (gcc_cv_ld_hidden): Handle gold here.
9695         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9696         * configure: Regenerate.
9697         * config.in: Regenerate.
9698         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9699         -fuse-linker-plugin otherwise.
9700         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9701         (LINK_COMMAND_SPEC): Use it.
9702         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9703
9704 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9705
9706         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9707         * calls.c: Remove debug.h include.
9708         (emit_call_1): Don't call virtual_call_token debug hook.
9709         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9710         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9711         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9712         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9713         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9714         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9715         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9716         dwarf2out_virtual_call): Remove.
9717         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9718         copy_call_info and virtual_call hooks.
9719         (dwarf2out_init): Don't initialize vcall_insn_table,
9720         debug_dcall_section and debug_vcall_section.
9721         (prune_unused_types): Don't mark nodes from dcall_table.
9722         (dwarf2out_finish): Don't output dcall or vcall tables.
9723         * final.c (final_scan_insn): Don't call direct_call or
9724         virtual_call debug hooks.
9725         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9726         virtual_call_token, copy_call_info and virtual_call hooks.
9727         (debug_nothing_uid): Remove prototype.
9728         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9729         copy_call_info and virtual_call hooks.
9730         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9731         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9732         * debug.c (do_nothing_debug_hooks): Likewise.
9733         (debug_nothing_uid): Remove.
9734         * doc/invoke.texi (-fenable-icf-debug): Remove.
9735         * common.opt (-fenable-icf-debug): Likewise.
9736
9737         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9738         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9739         call's MEM.  Handle functions returning aggregate through a hidden
9740         first pointer.  For virtual calls add clobbered pc to call arguments
9741         chain.
9742         * dwarf2out.c (gen_subprogram_die): Emit
9743         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9744         can't be emitted.
9745
9746         PR debug/45882
9747         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9748         * rtl.h (ENTRY_VALUE_EXP): Define.
9749         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9750         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9751         * print-rtl.c (print_rtx): Likewise.
9752         * gengtype.c (adjust_field_rtx_def): Likewise.
9753         * var-tracking.c (vt_add_function_parameter): Adjust
9754         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9755         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9756         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9757         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9758         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9759
9760         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9761         Call var_location debug hook even on CALL_INSNs.
9762         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9763         * rtl.def (ENTRY_VALUE): New.
9764         * dwarf2out.c: Include cfglayout.h.
9765         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9766         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9767         (struct call_arg_loc_node): New type.
9768         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9769         tail_call_site_count): New variables.
9770         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9771         DW_TAG_GNU_call_site_parameter.
9772         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9773         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9774         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9775         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9776         and DW_AT_GNU_all_source_call_sites.
9777         (mem_loc_descriptor): Handle ENTRY_VALUE.
9778         (add_src_coords_attributes): Don't add enything if
9779         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9780         (dwarf2out_abstract_function): Save and clear call_arg_location,
9781         call_site_count and tail_call_site_count around dwarf2out_decl call.
9782         (gen_call_site_die): New function.
9783         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9784         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9785         (dwarf2out_function_decl): Clear call_arg_locations,
9786         call_arg_loc_last, set call_site_count and tail_call_site_count
9787         to -1 and free block_map.
9788         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9789         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9790         followed by any real instructions.
9791         (dwarf2out_begin_function): Set call_site_count and
9792         tail_call_site_count to 0.
9793         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9794         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9795         attempt to force a DIE for it and worst case remove the attribute.
9796         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9797         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9798         the decl itself.
9799         * var-tracking.c: Include tm_p.h.
9800         (vt_stack_adjustments): For calls call note_register_arguments.
9801         (argument_reg_set): New variable.
9802         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9803         ensure the VALUE is resolved.
9804         (call_arguments): New variable.
9805         (prepare_call_arguments): New function.
9806         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9807         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9808         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9809         always use the best expression.
9810         (vt_expand_loc): Add ignore_cur_loc argument.
9811         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9812         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9813         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9814         note for all calls.
9815         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9816         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9817         argument.  Don't call cselib_preserve_only_values and
9818         cselib_reset_table.
9819         (note_register_arguments): New function.
9820         (vt_initialize): Compute argument_reg_set.  Call
9821         vt_add_function_parameters before processing basic blocks instead of
9822         afterwards.  For calls call prepare_call_arguments before calling
9823         cselib_process_insn.
9824         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9825         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9826         (var-tracking.o): Depend on $(TM_P_H).
9827         * cfglayout.h (insn_scope): New prototype.
9828         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9829         * cfglayout.c (insn_scope): No longer static.
9830         * insn-notes.def (CALL_ARG_LOCATION): New.
9831         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9832         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9833         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9834         nothing for DECL_EXTERNAL BLOCK_VARS.
9835
9836 2011-03-16  Alan Modra  <amodra@gmail.com>
9837
9838         PR target/45844
9839         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9840         create invalid offset address for vsx splat insn.
9841         * config/rs6000/predicates.md (splat_input_operand): New.
9842         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9843
9844 2011-03-15  Xinliang David Li  <davidxl@google.com>
9845
9846         PR c/47837
9847         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9848         (normalize_preds): New function.
9849         (is_use_properly_guarded): Normalize def predicates.
9850
9851 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9852
9853         PR target/46788
9854         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9855         in the output template.
9856
9857 2011-03-15  Richard Guenther  <rguenther@suse.de>
9858
9859         PR middle-end/47650
9860         * tree-pretty-print.c (dump_function_declaration): Properly
9861         dump unprototyped and varargs function types.
9862
9863 2011-03-15  Richard Guenther  <rguenther@suse.de>
9864
9865         PR tree-optimization/13954
9866         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9867         and friends.
9868
9869 2011-03-15  Richard Guenther  <rguenther@suse.de>
9870
9871         PR tree-optimization/48037
9872         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9873         selects into BIT_FIELD_REFs.
9874         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9875         vector select.
9876
9877 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9878
9879         PR tree-optimization/48129
9880         * builtins.c (fold_builtin_snprintf): Convert to type of
9881         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9882         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9883
9884 2011-03-15  Richard Guenther  <rguenther@suse.de>
9885
9886         PR tree-optimization/41490
9887         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9888         value but with VUSE.
9889         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9890         return statements.
9891         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9892         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9893         * tree-tailcall.c (find_tail_calls): Ignore returns.
9894
9895 2011-03-15  Richard Guenther  <rguenther@suse.de>
9896
9897         PR middle-end/48031
9898         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9899         or variable-indexed array accesses when in gimple form.
9900
9901 2011-03-15  Richard Guenther  <rguenther@suse.de>
9902
9903         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9904
9905 2011-03-15  Alan Modra  <amodra@gmail.com>
9906
9907         PR target/48032
9908         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9909         presume symbol_refs without a symbol_ref_decl are suitably
9910         aligned, nor other trees we may see here.  Handle anchor symbols.
9911         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9912         Check cmodel=medium addresses.  Adjust all calls.
9913         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9914         creating cmodel=medium optimized access to locals.
9915         * config/rs6000/constraints.md (R): Pass QImode to
9916         legitimate_constant_pool_address_p.
9917         * config/rs6000/predicates.md (input_operand): Pass mode to
9918         legitimate_constant_pool_address_p.
9919         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9920         Update prototype.
9921
9922 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9923
9924         PR target/48053
9925         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9926         64-bit constants being loaded into registers other than GPRs such
9927         as loading 0 into a VSX register.
9928
9929 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9930
9931         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9932
9933 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9934
9935         PR middle-end/47917
9936         * builtins.c (fold_builtin_snprintf): New function.
9937         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9938         (fold_builtin_4): Likewise.
9939
9940         PR middle-end/38878
9941         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9942         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9943         and C - X == X also strip nops from +/-/p+ operand.
9944         When optimizing -X == C, fold C to arg0's type.
9945
9946         PR debug/47946
9947         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9948         emit it as add_AT_int instead of add_AT_unsigned.
9949
9950 2011-03-14  Tom Tromey  <tromey@redhat.com>
9951
9952         * unwind-dw2.c: Include sys/sdt.h if it exists.
9953         (_Unwind_DebugHook): Use STAP_PROBE2.
9954         * config.in, configure: Rebuild.
9955         * configure.ac: Check for sys/sdt.h.
9956
9957 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9958
9959         * config/i386/i386.md (ROUND_FLOOR): New constant.
9960         (ROUND_CEIL): Ditto.
9961         (ROUND_TRUNC): Ditto.
9962         (ROUND_MXCSR): Ditto.
9963         (ROUND_NO_EXC): Ditto.
9964         (rint<mode>2): Use new defines instead of numerical constants.
9965         (floor<mode>2): Ditto.
9966         (ceil<mode>2): Ditto.
9967         (btrunc<mode>2): Ditto.
9968         * config/i386/i386-builtin-types.def: Define ROUND function type
9969         aliases.
9970         * config/i386/i386.c (enum ix86_builtins): Add
9971         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9972         (struct builtin_description): Add
9973         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9974         (ix86_expand_sse_round): New static function.
9975         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9976         function types.
9977         (ix86_builtin_vectorized_function): Handle
9978         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9979
9980 2011-03-14  Tom Tromey  <tromey@redhat.com>
9981
9982         * c-parser.c (c_parser_asm_string_literal): Clear
9983         warn_overlength_strings.
9984
9985 2011-03-14  Tom Tromey  <tromey@redhat.com>
9986
9987         * c-parser.c (disable_extension_diagnostics): Save
9988         warn_overlength_strings.
9989         (restore_extension_diagnostics): Restore warn_overlength_strings.
9990
9991 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9992
9993         * BASE-VER: Change to 4.7.0.
9994
9995 2011-03-14  Richard Guenther  <rguenther@suse.de>
9996
9997         PR middle-end/48098
9998         * tree.c (build_vector_from_val): Adjust assert to requirements
9999         and reality.
10000
10001 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10002
10003         PR bootstrap/48102
10004         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10005
10006 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10007
10008         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10009         terms of target_flags_explicit. Adjust copyright year.
10010
10011         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10012         * config/rs6000/t-freebsd: New file. Add override for
10013         LIB2FUNCS_EXTRA.
10014
10015 2011-03-13  Chris Demetriou  <cgd@google.com>
10016
10017         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10018         (-fno-diagnostics-show-option): this, to reflect current default.
10019         (-Werror=): Update text about -fno-diagnostics-show-option.
10020
10021 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10022
10023         PR target/48053
10024         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10025         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10026         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10027         mode is not V2DImode or V2DFmode.
10028         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10029         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10030         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10031         registers to 0.
10032         (movdi_internal64): Likewise.
10033
10034 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10035
10036         PR tree-optimization/47127
10037         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10038         parameter.
10039         (set_cloog_options): Same.
10040         (scop_to_clast): Same.
10041         (print_clast_stmt): Do not call cloog_state_malloc and
10042         cloog_state_free.
10043         (print_generated_program): Same.
10044         (gloog): Same.
10045         * graphite-clast-to-gimple.h (cloog_state): Declared.
10046         (scop_to_clast): Adjust declaration.
10047         * graphite.c (cloog_state): Defined here.
10048         (graphite_initialize): Call cloog_state_malloc.
10049         (graphite_finalize): Call cloog_state_free.
10050
10051 2011-03-11  Jason Merrill  <jason@redhat.com>
10052
10053         * attribs.c (lookup_attribute_spec): Take const_tree.
10054         * tree.h: Adjust.
10055
10056 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10057
10058         * config/sparc/sparc.c (sparc_option_override): Use
10059         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10060
10061 2011-03-11  Richard Guenther  <rguenther@suse.de>
10062
10063         PR tree-optimization/48067
10064         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10065         multiplication result will be only used once on the target
10066         stmt.
10067
10068 2011-03-11  Richard Guenther  <rguenther@suse.de>
10069
10070         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10071
10072 2011-03-11  Richard Guenther  <rguenther@suse.de>
10073
10074         PR lto/48073
10075         * tree.c (find_decls_types_r): Do not walk types only reachable
10076         from IDENTIFIER_NODEs.
10077
10078 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10079
10080         PR middle-end/48044
10081         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10082         all vnode->force_output nodes as needed.
10083
10084 2011-03-11  Jason Merrill  <jason@redhat.com>
10085
10086         PR c++/48069
10087         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10088         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10089
10090 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10091
10092         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10093         cgraph_node.
10094
10095 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10096
10097         PR tree-optimization/48063
10098         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10099         inline functions called once if !tree_can_inline_p (node->callers).
10100
10101 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10102
10103         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10104         extra_objs.
10105         * config/score/score3.c: Delete.
10106         * config/score/score3.h: Delete.
10107         * config/score/mul-div.S: Delete.
10108         * config/score/sfp-machine.h: Add new file.
10109         * config/score/constraints.md: Add new file.
10110         * config/score/t-score-softfp: Add new file.
10111         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10112         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10113         (score7_extra_constraint): Delete.
10114         (score7_option_override): Remove unused code.
10115         * config/score/score.c: Remove score3 and score5 define and code.
10116         * config/score/score.h: Remove score3 and score5 define and code.
10117         * config/score/score.md: Remove score3 template and unusual insn.
10118         * config/score/score.opt: Remove score3 and score5 options.
10119
10120 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10121
10122         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10123         when _HPUX_SOURCE is defined.
10124         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10125
10126 2011-03-10  Jason Merrill  <jason@redhat.com>
10127
10128         PR c++/48029
10129         * stor-layout.c (layout_type): Don't set structural equality
10130         on arrays of incomplete type.
10131         * tree.c (type_hash_eq): Handle comparing them properly.
10132
10133 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10134
10135         PR debug/48043
10136         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10137         result mode matches original rtl mode.
10138
10139 2011-03-10  Nick Clifton  <nickc@redhat.com>
10140
10141         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10142         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10143
10144 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10145
10146         PR rtl-optimization/47866
10147         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10148         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10149         if target wasn't scalar.
10150         * function.c (assign_stack_temp_for_type): Assert that neither
10151         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10152         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10153         macro.
10154         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10155
10156 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10157
10158         * config/s390/s390-protos.h (s390_label_align): New prototype.
10159         * config/s390/s390.c (s390_label_align): New function.
10160         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10161
10162 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10163
10164         PR target/47755
10165         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10166         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10167         (output_vec_const_move): Ditto.
10168
10169 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10170
10171         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10172         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10173         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10174         Change 'rclass' argument and result type to reg_class_t.
10175         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10176
10177 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10178
10179         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10180         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10181         (TARGET_MEMORY_MOVE_COST): Define.
10182         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10183
10184 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10185
10186         PR debug/47881
10187         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10188         removed anything.
10189
10190         PR tree-optimization/48022
10191         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10192         for EQ/NE_EXPR.
10193
10194 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10195
10196         PR debug/47991
10197         * var-tracking.c (find_use_val): Return NULL for
10198         cui->sets && cui->store_p BLKmode MEMs.
10199
10200 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10201
10202         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10203         Remove.
10204         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10205         xstormy16_print_operand_address): Remove.
10206         * config/stormy16/stormy16.c (xstormy16_print_operand,
10207         xstormy16_print_operand_address): Make static.
10208         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10209
10210 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10211
10212         PR target/47862
10213         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10214         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10215         before definition.
10216
10217 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10218
10219         PR bootstrap/48000
10220         * cfgloopmanip.c (fix_bb_placements): Return immediately
10221         if FROM is BASE_LOOP's header.
10222
10223 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10224
10225         * gimplify.c (gimplify_function_tree): Fix building calls
10226         to __builtin_return_address.
10227
10228 2011-03-07  Alan Modra  <amodra@gmail.com>
10229
10230         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10231         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10232         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10233         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10234         return_mode args.
10235         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10236         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10237         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10238         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10239         * config/rs6000/rs6000.c
10240         (rs6000_elf_end_indicate_exec_stack): Rename to..
10241         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10242         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10243         (rs6000_file_start): ..here.
10244         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10245         file scope variables.
10246         (call_ABI_of_interest): New function.
10247         (init_cumulative_args): Set above vars when function return value
10248         is a float, vector, or small struct.
10249         (rs6000_function_arg_advance_1): Likewise for function args.
10250         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10251         references float args.
10252
10253 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10254
10255         * doc/cfg.texi: Remove "See" before @ref.
10256         * doc/invoke.texi: Likewise.
10257
10258 2011-03-05  Jason Merrill  <jason@redhat.com>
10259
10260         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10261
10262 2011-03-05  Anthony Green  <green@moxielogic.com>
10263
10264         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10265
10266 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10267
10268         PR rtl-optimization/47899
10269         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10270         to flow_loop_nested_p when moving the loop upward.
10271
10272 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10273
10274         PR target/47719
10275         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10276
10277 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10278
10279         PR tree-optimization/47967
10280         * ipa-cp.c (build_const_val): Return NULL instead of creating
10281         VIEW_CONVERT_EXPR for mismatching sizes.
10282         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10283         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10284         give up on versioning.
10285
10286 2011-03-05  Alan Modra  <amodra@gmail.com>
10287
10288         PR target/47986
10289         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10290         full cmodel medium/large lo_sum + high addresses.
10291
10292 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10293
10294         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10295         pool references in UNSPEC_LTREL_OFFSET.
10296
10297 2011-03-04  Jan Hubicka  <jh@suse.cz>
10298
10299         PR lto/47497
10300         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10301         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10302         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10303         Add node pointers.
10304         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10305         cgraph_add_thunk): Add node pointers.
10306         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10307         associated to right node.
10308         (input_node): Update use of cgraph_same_body_alias
10309         and cgraph_add_thunk.
10310
10311 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10312
10313         * config/i386/i386.opt (mprefer-avx128): New flag.
10314         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10315         modes when the flag -mprefer-avx128 is on.
10316
10317 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10318
10319         * dwarf2out.c (compare_loc_operands): Fix address handling.
10320
10321 2011-03-04  Alan Modra  <amodra@gmail.com>
10322
10323         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10324
10325 2011-03-04  Richard Guenther  <rguenther@suse.de>
10326
10327         PR middle-end/47968
10328         * expmed.c (extract_bit_field_1): Prefer vector modes that
10329         vec_extract patterns can handle.
10330
10331 2011-03-04  Richard Guenther  <rguenther@suse.de>
10332
10333         PR middle-end/47975
10334         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10335
10336 2011-03-04  Richard Henderson  <rth@redhat.com>
10337
10338         * explow.c (emit_stack_save): Remove 'after' parameter.
10339         (emit_stack_restore): Likewise.
10340         * expr.h: Update to match.
10341         * builtins.c, calls.c, stmt.c: Likewise.
10342         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10343         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10344         * function.c (expand_function_end): Insert the emit_stack_save
10345         sequence before parm_birth_insn instead of after.
10346
10347 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10348
10349         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10350         (ssse3_pmaddubsw128): Ditto.
10351         (ssse3_pmaddubsw): Ditto.
10352
10353 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10354
10355         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10356
10357 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10358
10359         PR c/47963
10360         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10361         on TYPE_SIZE_UNIT if it is a DECL.
10362
10363         PR debug/47283
10364         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10365         first operand is not is_gimple_mem_ref_addr, try to fold it.
10366         If the operand still isn't is_gimple_mem_ref_addr, clear
10367         MEM_EXPR on op0.
10368
10369 2011-03-03  Richard Guenther  <rguenther@suse.de>
10370
10371         PR middle-end/47283
10372         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10373         match comment.
10374         (refs_may_alias_p_1): For release branches return true if
10375         we are confused by our input.
10376
10377 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10378
10379         * config/s390/s390.c (s390_function_value): Rename to ...
10380         (s390_function_and_libcall_value): ... this.
10381         (s390_function_value): New function.
10382         (s390_libcall_value): New function.
10383         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10384         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10385         target macro definitions.
10386         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10387
10388 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10389
10390         * config/i386/freebsd64.h (CC1_SPEC): Define.
10391         * config/i386/linux64.h (CC1_SPEC): Define.
10392         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10393
10394 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10395
10396         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10397         Remove.
10398         * config/stormy16/stormy16.c: Include reload.h.
10399         (xstormy16_memory_move_cost): New function.
10400         (TARGET_MEMORY_MOVE_COST): Define.
10401
10402 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10403
10404         PR rtl-optimization/47925
10405         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10406         with side effects.  Remove the more-specific check for volatile asms.
10407
10408 2011-03-02  Alan Modra  <amodra@gmail.com>
10409
10410         PR target/47935
10411         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10412         toc relative addresses for valid offsets.
10413
10414 2011-03-01  Richard Guenther  <rguenther@suse.de>
10415
10416         PR tree-optimization/47890
10417         * tree-vect-loop.c (get_initial_def_for_induction): Set
10418         related stmt properly.
10419
10420 2011-03-01  Richard Guenther  <rguenther@suse.de>
10421
10422         PR lto/47924
10423         * lto-streamer.c (lto_record_common_node): Also register
10424         the canonical type.
10425
10426 2011-03-01  Richard Guenther  <rguenther@suse.de>
10427
10428         PR lto/46911
10429         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10430         Do not stream DECL_ABSTRACT_ORIGIN.
10431         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10432         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10433         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10434         Do not stream DECL_ABSTRACT_ORIGIN.
10435         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10436         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10437
10438 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10439
10440         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10441         FUNCTION_VALUE_REGNO_P): Remove.
10442         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10443         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10444         Add 'outgoing' argument.
10445         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10446         function.
10447         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10448         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10449
10450 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10451
10452         PR debug/28047
10453         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10454         (lookup_filename): Likewise.
10455         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10456
10457 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10458             Jakub Jelinek  <jakub@redhat.com>
10459
10460         PR middle-end/47893
10461         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10462         (assign_stack_local_1): Change last argument type to int.
10463         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10464         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10465         don't record padding space into frame_space_list nor use those areas.
10466         (assign_stack_local): Adjust caller.
10467         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10468         of assign_stack_local, pass 0 as last argument.
10469         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10470         callers.
10471
10472 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10473
10474         PR debug/47283
10475         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10476         Use target address_mode and pointer_mode hooks instead of hardcoded
10477         Pmode and ptr_mode.  Handle some simple cases of extending if
10478         POINTERS_EXTEND_UNSIGNED < 0.
10479         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10480         Call convert_debug_memory_address.
10481         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10482         convert_debug_memory_address.
10483
10484         PR middle-end/46790
10485         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10486         * configure: Regenerated.
10487         * config.in: Regenerated.
10488         * varasm.c (default_function_section): Return NULL
10489         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10490
10491 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10492
10493         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10494         the description to match the printed values.
10495
10496 2011-02-28  Richard Guenther  <rguenther@suse.de>
10497
10498         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10499         of the copied scope tree.
10500
10501 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10502
10503         * doc/extend.texi (Function Attributes): Avoid deeply (and
10504         wrongly) nested tables.
10505
10506 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10507
10508         PR middle-end/47903
10509         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10510         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10511         r isn't op0 nor op1.
10512
10513 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10514
10515         * config/avr/avr.md: Remove magic comment for emacs.
10516
10517 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10518
10519         PR target/45261
10520         * config/avr/avr.c (avr_option_override): Use error on bad options.
10521         (avr_help): New function.
10522         (TARGET_HELP): Define.
10523
10524 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10525
10526         PR target/42240
10527         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10528         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10529
10530 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10531
10532         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10533         (ARM Options): Ditto.
10534         (i386 and x86-64 Options): Ditto.
10535         (RX Options): Ditto.
10536         (SPARC Options): Ditto.
10537
10538 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10539
10540         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10541         FreeBSD 6 and later.  Generally use cpu generic.
10542
10543 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10544
10545         * doc/cpp.texi: Update copyright years.
10546
10547 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10548
10549         PR target/46898
10550         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10551
10552 2011-02-25  Jon Beniston  <jon@beniston.com>
10553
10554         PR target/46898
10555         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10556         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10557         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10558         (lm32_block_move_inline): Add type cast to remove warning.
10559         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10560         (gen_int_relational): Move declarations to start of function.
10561
10562 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10563
10564         PR tree-optimization/45470
10565         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10566         can throw internally only.
10567         * tree-vect-stmts.c (vectorizable_call): Likewise.
10568
10569 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10570
10571         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10572         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10573         * config/stormy16/stormy16-protos.h
10574         (xstormy16_preferred_reload_class): Remove.
10575         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10576         static. Change 'rclass' argument and return type to reg_class_t.
10577         (TARGET_PREFERRED_RELOAD_CLASS,
10578         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10579
10580 2011-02-24  Richard Guenther  <rguenther@suse.de>
10581
10582         * lto-streamer-in.c (input_bb): Do not find referenced vars
10583         in debug statements.
10584
10585 2011-02-23  Jason Merrill  <jason@redhat.com>
10586
10587         * common.opt (fabi-version): Document v5 and v6.
10588
10589 2011-02-23  Richard Guenther  <rguenther@suse.de>
10590
10591         PR tree-optimization/47849
10592         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10593
10594 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10595
10596         * opts-common.c (decode_cmdline_option): Print empty string
10597         argument as "" in decoded->orig_option_with_args_text.
10598         * gcc.c (execute): Print empty string argument as ""
10599         in the verbose output.
10600         (do_spec_1): Keep empty string argument.
10601
10602 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10603
10604         * config.gcc: Declare score-* and crx-* obsolete.
10605
10606 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10607
10608         PR rtl-optimization/47763
10609         * web.c (web_main): Ignore naked clobber when replacing register.
10610
10611 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10612
10613         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10614         Remove.
10615
10616 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10617
10618         PR doc/47848
10619         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10620
10621 2011-02-22  Mike Stump  <mikestump@comcast.net>
10622
10623         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10624         assembler.
10625         * configure: Regenerate.
10626
10627 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10628
10629         PR rtl-optimization/46002
10630         * ira-color.c (update_copy_costs): Change class intersection
10631         test to reg_class_contents[] test of 'hard_regno'.
10632
10633 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10634
10635         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10636         than Driver option.
10637         * config/hpux11.opt (mt): Likewise.
10638         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10639         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10640         * config/vax/elf.opt (mno-asm-pic): Likewise.
10641         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10642
10643 2011-02-21  Mike Stump  <mikestump@comcast.net>
10644
10645         PR target/47822
10646         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10647         tree so we can get save the type.
10648         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10649         for CFString instead of trying to use past the end of the builtins.
10650         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10651         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10652         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10653         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10654         Rename to darwin_builtin_cfstring.
10655         (darwin_init_cfstring_builtins): Return the built type.
10656
10657 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10658
10659         PR target/47840
10660         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10661         (_mm256_insert_epi64): Use _mm_insert_epi64.
10662
10663 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10664
10665         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10666         * config/stormy16/stormy16-protos.h
10667         (xstormy16_mode_dependent_address_p): Remove.
10668         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10669         Make static. Change return type to bool. Change argument type to
10670         const_rtx. Remove dead code.
10671         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10672
10673 2011-02-21  Richard Guenther  <rguenther@suse.de>
10674
10675         PR lto/47820
10676         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10677         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10678         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10679         TUs context.
10680         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10681         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10682
10683 2011-02-20  Richard Guenther  <rguenther@suse.de>
10684
10685         PR lto/47822
10686         * tree.c (free_lang_data_in_decl): Clean builtins from
10687         the TU decl BLOCK_VARS.
10688
10689 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10690
10691         PR debug/47620
10692         PR debug/47630
10693         * haifa-sched.c (fix_tick_ready): Skip tick computation
10694         for debug insns.
10695
10696 2011-02-19  Richard Guenther  <rguenther@suse.de>
10697
10698         PR lto/47647
10699         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10700         Remove lazy BLOCK_VARS streaming.
10701         (lto_input_ts_block_tree_pointers): Likewise.
10702         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10703
10704 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10705
10706         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10707
10708 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10709
10710         * config/i386/biarch32.h, config/i386/mach.h,
10711         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10712
10713 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10714
10715         PR target/47800
10716         * config/i386/i386.md (peephole2 for shift and plus): Use
10717         operands[1] original mode in the first insn.
10718
10719 2011-02-18  Mike Stump  <mikestump@comcast.net>
10720
10721         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10722
10723 2011-02-18  Jan Hubicka  <jh@suse.cz>
10724
10725         PR middle-end/47788
10726         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10727         to zero when the function is not inlinable at all.
10728
10729 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10730
10731         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10732         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10733         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10734         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10735         * config/pa/t-pa64: Likewise.
10736         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10737
10738 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10739
10740         PR driver/47787
10741         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10742
10743 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10744
10745         PR target/47792
10746         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10747
10748 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10749
10750         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10751         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10752         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10753         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10754         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10755         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10756         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10757         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10758         m32r_legitimate_address_p): New functions.
10759         * config/m32r/constraints.md (constraint "S"): Don't use
10760         STORE_PREINC_PREDEC_P.
10761         (constraint "U"): Don't use LOAD_POSTINC_P.
10762
10763 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10764
10765         PR rtl-optimization/46178
10766         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10767         compute ira_hard_regno_cover_class[].
10768
10769 2011-02-18  Richard Guenther  <rguenther@suse.de>
10770
10771         PR lto/47798
10772         * lto-streamer.h (lto_global_var_decls): Declare.
10773         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10774         statics for global var processing.
10775
10776 2011-02-18  Richard Guenther  <rguenther@suse.de>
10777
10778         PR tree-optimization/47737
10779         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10780         edge dominance check.
10781
10782 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10783
10784         PR debug/47780
10785         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10786         avoid invalid rtx sharing.
10787
10788 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10789
10790         * doc/cpp.texi (Obsolete Features): Add background on the
10791         origin of assertions.
10792
10793 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10794
10795         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10796         objc_abi == 2.
10797         * config/darwin.c (output_objc_section_asm_op): Added support for
10798         ABI v1 and v2.
10799         (is_objc_metadata): New.
10800         (darwin_objc2_section): New.
10801         (darwin_objc1_section): New.
10802         (machopic_select_section): Added support for ABI v1 and v2.
10803         (darwin_emit_objc_zeroed): New.
10804         (darwin_output_aligned_bss): Detect objc metadata and treat it
10805         appropriately.
10806         (darwin_asm_output_aligned_decl_common): Same.
10807         (darwin_asm_output_aligned_decl_local): Same.
10808         * config/darwin-sections.def: Updated for ABI v1 and v2.
10809         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10810         compiling Objective-C code for the NeXT runtime, default to using
10811         ABI version 0 for 32-bit, and version 2 for 64-bit.
10812
10813 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10814
10815         * common.opt (optimize_fast): New Variable.
10816         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10817         instead of local variable ofast.
10818
10819 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10820
10821         * doc/invoke.texi (fobjc-abi-version): Documented.
10822         (fobjc-nilcheck): Documented.
10823         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10824         version.
10825
10826 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10827
10828         PR driver/47390
10829         * common.opt (export-dynamic): New Driver option.
10830         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10831
10832 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10833
10834         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10835
10836 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10837             Jan Hubicka  <jh@suse.cz>
10838
10839         PR debug/47106
10840         PR debug/47402
10841         * cfgexpand.c (account_used_vars_for_block): Remove.
10842         (estimated_stack_frame_size): Use referenced vars.
10843         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10844         that were referenced in the original function.  Test src_fn
10845         rather than cfun.  Drop redundant get_var_ann.
10846         (setup_one_parameter): Drop redundant get_var_ann.
10847         (declare_return_variable): Likewise.
10848         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10849         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10850         * ipa-inline.c (compute_inline_parameters): Do not compute
10851         disregard_inline_limits here.
10852         (compute_inlinable_for_current, pass_inlinable): New.
10853         (pass_inline_parameters): Require PROP_referenced_vars.
10854         * cgraphunit.c (cgraph_process_new_functions): Don't run
10855         compute_inline_parameters explicitly unless function is in SSA form.
10856         (cgraph_analyze_function): Set .disregard_inline_limits.
10857         * tree-sra.c (convert_callers): Compute inliner parameters
10858         only for functions already in SSA form.
10859
10860 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10861
10862         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10863         -mlittle-endian-data.
10864
10865 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10866
10867         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10868         -mno-fpu, not -fpu and -no-fpu.
10869         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10870         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10871
10872 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10873
10874         PR target/43653
10875         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10876         input reload with PLUS RTX.
10877
10878 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10879
10880         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10881         of InverseVar(MDMX).
10882
10883 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10884
10885         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10886         --m4-340.
10887
10888 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10889
10890         * config/mn10300/mn10300.opt (mno-crt0): New.
10891
10892 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10893
10894         * config/m68k/uclinux.opt (static-libc): New Driver option.
10895
10896 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10897
10898         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10899
10900 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10901
10902         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10903         %{muser-extend-enabled}.
10904
10905 2011-02-16  Richard Guenther  <rguenther@suse.de>
10906
10907         PR tree-optimization/47738
10908         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10909         the TODO from tree_predictive_commoning.
10910
10911 2011-02-15  Jeff Law  <law@redhat.com>
10912
10913         Revert
10914         2011-01-25  Jeff Law  <law@redhat.com>
10915
10916         PR rtl-optimization/37273
10917         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10918         handle them like argument loads from stack slots.  Do not double
10919         count memory for memory constants and argument loads from stack slots.
10920
10921 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10922
10923         PR middle-end/47725
10924         * combine.c (cant_combine_insn_p): Revert the last change.
10925
10926 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10927
10928         PR target/47755
10929         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10930         mode for vector constants.  Remove code that checks for TImode.
10931
10932 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10933
10934         PR debug/47106
10935         PR debug/47402
10936         * cgraph.h (compute_inline_parameters): Return void.
10937         * ipa-inline.c (compute_inline_parameters): Adjust.
10938
10939 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10940
10941         PR debug/47106
10942         PR debug/47402
10943         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10944         rather than decl.
10945         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10946         * ipa-inline.c (compute_inline_parameters): Adjust.
10947
10948 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10949
10950         PR debug/47106
10951         PR debug/47402
10952         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10953         Adjust all users.  Pass FN to...
10954         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10955         fn argument.
10956         * ipa-struct-reorg.c: Adjust.
10957         * tree-dfa.c: Adjust.
10958         * tree-into-ssa.c: Adjust.
10959         * tree-sra.c: Adjust.
10960         * tree-ssa-alias.c: Adjust.
10961         * tree-ssa-live.c: Adjust.
10962         * tree-ssa.c: Adjust.
10963         * tree-ssanames.c: Adjust.
10964         * tree-tailcall.c: Adjust.
10965
10966 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10967
10968         PR debug/47106
10969         PR debug/47402
10970         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10971         Adjust all callers.
10972         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10973         * tree-flow-inline.h: Adjust.
10974         * gimple-pretty-print.c: Adjust.
10975         * tree-into-ssa.c: Adjust.
10976         * tree-ssa.c: Adjust.
10977         * cfgexpand.c: Adjust.
10978
10979 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10980
10981         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10982         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10983         (EXTRA_CONSTRAINT): Delete.
10984         * config/iq2000/constraints.md: New file.
10985         * config/iq2000/iq2000.md: Include it.
10986         (define_insn ""): Delete.
10987         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10988         unsupported constraint letters from patterns.
10989         (call_value, call_value_internal1): Likewise.
10990         (call_value_multiple_internal1): Likewise.
10991
10992 2011-02-15  Nick Clifton  <nickc@redhat.com>
10993
10994         * config/mn10300/mn10300.c: Include tm-constrs.h.
10995         (struct liw_data): New data structure describing an LIW candidate
10996         instruction.
10997         (extract_bundle): Use struct liw_data.  Allow small integer
10998         operands for some instructions.
10999         (check_liw_constraints): Use struct liw_data.  Remove swapped
11000         parameter.  Add comments describing the checks.  Fix bug when
11001         assigning the source of liw1 to the source of liw2.
11002         (liw_candidate): Delete.  Code moved into extract_bundle.
11003         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11004         before swapping.
11005         * config/mn10300/predicates.md (liw_operand): New predicate.
11006         Allows registers and small integer constants.
11007         * config/mn10300/constraints.md (O): New constraint.  Accetps
11008         integers in the range -8 to +7 inclusive.
11009         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11010         for moving a small integer into a register.  Give this alternative
11011         LIW attributes.
11012         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11013         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11014         using the J,K,L and M constraints,
11015         (liw): Remove SI mode on second operands to allow for HI and QI
11016         mode values.
11017         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11018         instruction.
11019
11020 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11021
11022         PR middle-end/47725
11023         * combine.c (cant_combine_insn_p): Check zero/sign extended
11024         hard registers.
11025
11026 2011-02-15  Richard Guenther  <rguenther@suse.de>
11027
11028         PR tree-optimization/47743
11029         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11030         for a non-type-compatible VN lookup bail out.
11031
11032 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11033
11034         * config/fr30/constraints.md: New file.
11035         * config/fr30/fr30.md: Include it.
11036         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11037         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11038         (EXTRA_CONSTRAINT): Delete.
11039
11040 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11041
11042         * config/frv/constraints.md: New file.
11043         * config/frv/predicates.md: Include it.
11044         * config/frv/frv.c (reg_class_from_letter): Delete.
11045         (frv_option_override): Don't initialize it.
11046         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11047         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11048         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11049         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11050         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11051         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11052         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11053         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11054         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11055         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11056         (REG_CLASS_FROM_CONSTRAINT): Delete.
11057
11058 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11059
11060         PR middle-end/47581
11061         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11062         if frame size is 0 in a leaf function.
11063
11064 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11065
11066         PR pch/14940
11067         * config/alpha/host-osf.c: New file.
11068         * config/alpha/x-osf: New file.
11069         * config.host (alpha*-dec-osf*): Use it.
11070
11071 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11072
11073         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11074         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11075         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11076         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11077         type to const_rtx.
11078         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11079
11080 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11081
11082         * config/stormy16/constraints.md: New file.
11083         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11084         Use satisfies_constraint_Q and satisfies_constraint_R.
11085         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11086         Delete.
11087         (xstormy16_legitiamte_address_p): Declare.
11088         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11089         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11090         (EXTRA_CONSTRAINT): Delete.
11091         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11092         Un-staticize.
11093         (xstormy16_extra_constraint_p): Delete.
11094
11095 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11096
11097         PR tree-optimization/46494
11098         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11099         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11100         (pass_rtl_loop_done): Add TODO_verify_flow.
11101         * fwprop.c (pass_rtl_fwprop): Likewise.
11102         * modulo-sched.c (pass_sms): Likewise.
11103         * tree-ssa-dom.c (pass_dominator): Likewise.
11104         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11105         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11106         (pass_tree_loop_done): Likewise.
11107         * tree-ssa-pre.c (execute_pre): Likewise.
11108         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11109         * tree-ssa-sink.c (pass_sink_code): Likewise.
11110         * tree-vrp.c (pass_vrp): Likewise.
11111
11112 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11113
11114         * config/v850/constraints.md: New file.
11115         * config/v850/v850.md: Include it.
11116         * config/v850/predicates.md (reg_or_0_operand): Use
11117         satisfies_constraint_G.
11118         (special_symbolref_operand): Use satisfies_constraint_K.
11119         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11120         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11121         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11122         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11123         (EXTRA_CONSTRAINT): Delete.
11124         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11125         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11126         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11127
11128 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11129
11130         PR target/47696
11131         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11132         description.
11133
11134 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11135
11136         * config/mcore/constraints.md: New file.
11137         * config/mcore/mcore.md: Include it.
11138         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11139         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11140         (REG_CLASS_FROM_LETTER): Delete.
11141         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11142         insn_const_int_ok_for_constraint.
11143         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11144         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11145         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11146         (EXTRA_CONSTRAINT): Delete.
11147
11148 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11149
11150         PR ada/41929
11151         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11152         (IS_SIGHANDLER): Define.
11153         (sparc64_is_sighandler): New function, split off from
11154         sparc64_fallback_frame_state.
11155         (sparc_is_sighandler): New function, split off from
11156         sparc_fallback_frame_state.
11157         (sparc64_fallback_frame_state): Merge with ...
11158         (sparc_fallback_frame_state): ... this into ...
11159         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11160         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11161         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11162         stack instead of hardcoded offsets.
11163
11164 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11165
11166         PR target/45808
11167         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11168
11169 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11170
11171         * configure: Regenerate.
11172
11173 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11174
11175         PR driver/45731
11176         * gcc.c (asm_options): Correct spec matching --target-help.
11177
11178 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11179
11180         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11181         to gimple call error.
11182
11183 2011-02-12  Mike Stump  <mikestump@comcast.net>
11184
11185         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11186         comments in backslash regions.
11187
11188 2011-02-12  Mike Stump  <mikestump@comcast.net>
11189             Jakub Jelinek  <jakub@redhat.com>
11190             Iain Sandoe  <iains@gcc.gnu.org>
11191
11192         PR target/47324
11193         * dwarf2out.c (output_cfa_loc): When required, apply the
11194         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11195         (output_loc_sequence): Likewise.
11196         (output_loc_operands_raw): Likewise.
11197         (output_loc_sequence_raw): Likewise.
11198         (output_cfa_loc): Likewise.
11199         (output_loc_list): Suppress register number adjustment when
11200         calling output_loc_sequence()
11201         (output_die): Likewise.
11202
11203 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11204
11205         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11206         Remove macros.
11207         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11208         xtensa_memory_move_cost): New functions.
11209         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11210
11211 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11212
11213         PR lto/47225
11214         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11215         in the current directory.
11216         * configure: Rebuilt.
11217
11218 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11219
11220         * config/darwin.c (darwin_override_options): Add a hunk missed
11221         from the commit of r168571.  Trim comment line lengths and
11222         correct indents of the preceding block.
11223
11224 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11225
11226         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11227         the switch.
11228
11229 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11230
11231         * common.opt (nostartfiles): New Driver option.
11232
11233 2011-02-11  Xinliang David Li  <davidxl@google.com>
11234
11235         PR tree-optimization/47707
11236         * tree-chrec.c (convert_affine_scev): Keep type precision.
11237
11238 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11239
11240         PR tree-optimization/47420
11241         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11242
11243 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11244
11245         PR rtl-optimization/47614
11246         * rtl.h (check_for_inc_dec): Declare.
11247         * dse.c (check_for_inc_dec): Externalize...
11248         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11249         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11250
11251 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11252
11253         PR driver/47678
11254         * gcc.c (main): Do not compile inputs if there were errors in
11255         option handling.
11256         * opts-common.c (read_cmdline_option): Check for wrong language
11257         after other error checks.
11258
11259 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11260
11261         * cgraph.c: Fix comment typos.
11262         * cgraph.h: Likewise.
11263         * cgraphunit.c: Likewise.
11264         * ipa-cp.c: Likewise.
11265         * ipa-inline.c: Likewise.
11266         * ipa-prop.c: Likewise.
11267         * ipa-pure-const.c: Likewise.
11268         * ipa-ref.c: Likewise.
11269         * ipa-reference.c: Likewise.
11270
11271 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11272
11273         PR debug/47684
11274         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11275
11276 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11277
11278         PR testsuite/47400
11279         * doc/sourcebuild.texi (Require Support): Document
11280         dg-require-ascii-locale.
11281
11282 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11283
11284         * doc/lto.texi (Write summary): Fix missing parentheses.
11285
11286 2011-02-10  DJ Delorie  <dj@redhat.com>
11287
11288         * config/m32c/m32c.c (m32c_option_override): Disable
11289         -fcombine-stack-adjustments until flag value tracking and compare
11290         optimization can be rewritten.
11291
11292 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11293
11294         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11295         PROCESSOR_POWER7.
11296         (PROCESSOR_DEFAULT64): Likewise.
11297
11298 2011-02-10  Richard Henderson  <rth@redhat.com>
11299
11300         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11301         change from 2011-02-03.
11302         * config/rx/rx.c (flags_from_code): Likewise.
11303         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11304         is valid, n/pz otherwise.
11305         (rx_select_cc_mode): Return CCmode if Y is not zero.
11306
11307 2011-02-10  Richard Guenther  <rguenther@suse.de>
11308
11309         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11310
11311 2011-02-10  Richard Guenther  <rguenther@suse.de>
11312
11313         PR tree-optimization/47677
11314         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11315
11316 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11317
11318         PR target/47665
11319         * combine.c (make_compound_operation): Only change shifts into
11320         multiplication for SCALAR_INT_MODE_P.
11321
11322 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11323
11324         PR testsuite/47622
11325         Revert
11326         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11327         PR debug/42631
11328         * web.c (entry_register): Don't clobber the number of the
11329         first uninitialized reference in used[].
11330
11331 2011-02-09  Richard Guenther  <rguenther@suse.de>
11332
11333         PR tree-optimization/47664
11334         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11335         all edges again.
11336
11337 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11338
11339         PR target/46481
11340         PR target/47032
11341         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11342         PROCESSOR_POWER7.
11343         (PROCESSOR_DEFAULT64): Same.
11344         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11345
11346 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11347
11348         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11349
11350 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11351
11352         PR middle-end/45505
11353         * tree-sra.c (struct access): New flags grp_scalar_read and
11354         grp_scalar_write.  Changed description of assignment read and write
11355         flags.
11356         (dump_access): Dump new flags, reorder all of them.
11357         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11358         to detect multiple scalar reads.
11359         (analyze_access_subtree): Use the new scalar read write flags instead
11360         of the old flags.  Adjusted comments.
11361
11362 2011-02-08  DJ Delorie  <dj@redhat.com>
11363
11364         PR target/47548
11365         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11366         patterns.
11367
11368 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11369
11370         * config/m68k/uclinux.opt: New.
11371         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11372
11373 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11374
11375         * config/cris/elf.opt (sim): New Driver option.
11376
11377 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11378
11379         * config/xtensa/elf.opt: New.
11380         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11381
11382 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11383
11384         * config/vax/elf.opt: New.
11385         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11386
11387 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11388
11389         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11390
11391 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11392
11393         * config/gnu-user.opt: New.
11394         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11395         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11396         *-*-uclinux*): Use gnu-user.opt.
11397
11398 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11399
11400         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11401         * config/i386/gnu.h (CPP_SPEC): Likewise.
11402
11403 2011-02-08  Ian Lance Taylor  <iant@google.com>
11404
11405         * common.opt (fcx-limited-range): Add SetByCombined flag.
11406         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11407         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11408         (fassociative-math, freciprocal-math): Likewise.
11409         (funsafe-math-optimizations): Likewise.
11410         * opth-gen.awk: Handle SetByCombined.
11411         * optc-gen.awk: Likewise.
11412         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11413         (set_unsafe_math_optimizations_flags): Likewise.
11414         * doc/options.texi (Option properties): Document SetByCombined.
11415
11416 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11417
11418         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11419         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11420         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11421         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11422         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11423
11424 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11425
11426         PR tree-optimization/46834
11427         PR tree-optimization/46994
11428         PR tree-optimization/46995
11429         * graphite-sese-to-poly.c (used_outside_reduction): New.
11430         (detect_commutative_reduction): Call used_outside_reduction.
11431         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11432         translate_scalar_reduction_to_array only when at least one
11433         loop-phi/close-phi tuple has been detected.
11434
11435 2011-02-08  Richard Guenther  <rguenther@suse.de>
11436
11437         PR middle-end/47639
11438         * tree-vect-generic.c (expand_vector_operations_1): Update
11439         stmts here ...
11440         (expand_vector_operations): ... not here.  Cleanup EH info
11441         and the CFG if required.
11442
11443 2011-02-08  Richard Guenther  <rguenther@suse.de>
11444
11445         PR tree-optimization/47641
11446         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11447         require type compatibility.
11448
11449 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11450
11451         * gimple-low.c (lower_function_body): Don't remove the location of
11452         the return statement here.
11453         (lower_gimple_return): Do it here instead but only if the return
11454         statement is actually used twice.
11455
11456 2011-02-08  Richard Guenther  <rguenther@suse.de>
11457
11458         PR tree-optimization/47632
11459         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11460         unused up_to_stmt parameter, return whether cfg-cleanup is
11461         necessary, remove EH info properly.
11462         (forward_propagate_into_gimple_cond): Adjust caller.
11463         (forward_propagate_into_cond): Likewise.
11464         (forward_propagate_comparison): Likewise.
11465         (tree_ssa_forward_propagate_single_use_vars): Make
11466         forward_propagate_comparison case similar to the two others.
11467
11468 2011-02-08  Nick Clifton  <nickc@redhat.com>
11469
11470         * config/mn10300/mn10300.opt (mliw): New command line option.
11471         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11472         (liw_bundling): New automaton.
11473         (liw): New attribute.
11474         (liw_op): New attribute.
11475         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11476         (movsi_internal): Add LIW attributes.
11477         (andsi3): Likewise.
11478         (iorsi3): Likewise.
11479         (xorsi3): Likewise.
11480         (addsi3): Separate register and immediate alternatives.
11481         Add LIW attributes.
11482         (subsi3): Likewise.
11483         (cmpsi): Likewise.
11484         (aslsi3): Likewise.
11485         (lshrsi3): Likewise.
11486         (ashrsi3): Likewise.
11487         (liw): New pattern.
11488         * config/mn10300/mn10300.c (liw_op_names): New
11489         (mn10300_print_operand): Handle 'W' operand descriptor.
11490         (extract_bundle): New function.
11491         (check_liw_constraints): New function.
11492         (liw_candidate): New function.
11493         (mn10300_bundle_liw): New function.
11494         (mn10300_reorg): New function.
11495         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11496         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11497         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11498         __LIW__ or __NO_LIW__.
11499         * doc/invoke.texi: Describe the -mliw command line option.
11500
11501 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11502
11503         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11504         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11505         pthread_mutex_unlock): Remove.
11506         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11507         * config/pa/t-pa64: Likewise.
11508         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11509         shared libc if not linking against libpthread.
11510         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11511
11512 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11513
11514         PR target/47558
11515         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11516         on 10.6 and later to ensure that we always use the unwinder from
11517         the system.  Only add -no_compact_unwind when tarteting darwin
11518         10.6 or later.
11519
11520 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11521
11522         PR target/46997
11523         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11524         (vec_interleave_lowv2sf): Ditto.
11525         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11526         (vec_extract_oddv2sf): Ditto.
11527
11528 2011-02-07  Mike Stump  <mikestump@comcast.net>
11529
11530         PR target/42333
11531         Add __ieee_divdc3 entry point.
11532         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11533         entry point.
11534         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11535         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11536         * config/darwin.c (darwin_rename_builtins): Add.
11537         * config/darwin-protos.h (darwin_rename_builtins): Add.
11538
11539 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11540
11541         PR target/47636
11542         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11543         for the condition.
11544
11545 2011-02-07  Mike Stump  <mikestump@comcast.net>
11546
11547         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11548
11549 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11550
11551         PR target/47534
11552         * config/avr/libgcc.S (exit): Move .endfunc
11553
11554 2011-02-07  Richard Guenther  <rguenther@suse.de>
11555
11556         PR tree-optimization/47615
11557         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11558         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11559         (run_scc_vn): Initialize it.
11560         (visit_reference_op_load): Use it.
11561         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11562
11563 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11564
11565         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11566         DImode trapping arithmetic libfuncs.
11567
11568 2011-02-07  Richard Guenther  <rguenther@suse.de>
11569
11570         PR tree-optimization/47621
11571         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11572         two duplicates ...
11573         (execute_update_addresses_taken): ... here.  Make it more
11574         conservative in what we accept.
11575
11576 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11577
11578         * config/sparc/freebsd.h (ASM_SPEC): Define.
11579         * config/sparc/vxworks.h (ASM_SPEC): Define.
11580
11581 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11582
11583         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11584
11585 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11586
11587         * doc/invoke.texi: Remove reference to compiler internals from
11588         user documentation.
11589
11590         * reg-notes.def: Remove REG_VALUE_PROFILE.
11591         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11592
11593 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11594
11595         PR middle-end/47610
11596         * varasm.c (default_section_type_flags): If decl is NULL,
11597         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11598
11599 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11600
11601         PR debug/42631
11602         * web.c (entry_register): Don't clobber the number of the
11603         first uninitialized reference in used[].
11604
11605 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11606
11607         PR tree-optimization/46194
11608         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11609         (build_classic_dist_vector_1): Do not represent classic distance
11610         vectors when the access functions are variating in different loops.
11611
11612 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11613
11614         * config/mips/iris6.opt: New.
11615         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11616
11617 2011-02-04  Richard Henderson  <rth@redhat.com>
11618             Steve Ellcey  <sje@cup.hp.com>
11619
11620         PR target/46997
11621         * config/ia64/predicates.md (mux1_brcst_element): New.
11622         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11623         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11624         (ia64_unpack_sign): New.
11625         (ia64_expand_unpack): Rewrite using new routines.
11626         (ia64_expand_widen_sum): Ditto.
11627         (ia64_expand_dot_prod_v8qi): Ditto.
11628         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11629         routines, add endian check.
11630         (pmpy2_even): Rename from pmpy2_r, add endian check.
11631         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11632         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11633         (vec_widen_smult_hi_v4hi): Ditto.
11634         (vec_widen_umult_lo_v4hi): Ditto.
11635         (vec_widen_umult_hi_v4hi): Ditto.
11636         (mulv2si3): Change endian checks.
11637         (sdot_prodv4hi): Rewrite with new calls.
11638         (udot_prodv4hi): New.
11639         (vec_pack_ssat_v4hi): Add endian check.
11640         (vec_pack_usat_v4hi): Ditto.
11641         (vec_pack_ssat_v2si): Ditto.
11642         (max1_even): Rename from max1_r, add endian check.
11643         (max1_odd): Rename from max1_l, add endian check.
11644         (*mux1_rev): Format change.
11645         (*mux1_mix): Ditto.
11646         (*mux1_shuf): Ditto.
11647         (*mux1_alt): Ditto.
11648         (*mux1_brcst_v8qi): Use new predicate.
11649         (vec_extract_evenv8qi): Remove endian check.
11650         (vec_extract_oddv8qi): Ditto.
11651         (vec_interleave_lowv4hi): Format change.
11652         (vec_interleave_highv4hi): Ditto.
11653         (mix2_even): Rename from mix2_r, add endian check.
11654         (mix2_odd): Rename from mux2_l, add endian check.
11655         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11656         (vec_extract_evenodd_helper): Format change.
11657         (vec_extract_evenv4hi): Remove endian check.
11658         (vec_extract_oddv4hi): Remove endian check.
11659         (vec_interleave_lowv2si): Format change.
11660         (vec_interleave_highv2si): Format change.
11661         (vec_initv2si): Remove endian check.
11662         (vecinit_v2si): Add endian check.
11663         (reduc_splus_v2sf): Add endian check.
11664         (reduc_smax_v2sf): Ditto.
11665         (reduc_smin_v2sf): Ditto.
11666         (vec_initv2sf): Remove endian check.
11667         (fpack): Add endian check.
11668         (fswap): Add endian check.
11669         (vec_interleave_highv2sf): Add endian check.
11670         (vec_interleave_lowv2sf): Add endian check.
11671         (fmix_lr): Add endian check.
11672         (vec_setv2sf): Format change.
11673         (*vec_extractv2sf_0_be): Use shift to extract operand.
11674         (*vec_extractv2sf_1_be): New.
11675         (vec_pack_trunc_v4hi): Add endian check.
11676         (vec_pack_trunc_v2si): Format change.
11677
11678 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11679
11680         PR inline-asm/23200
11681         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11682         do bb, locus and block comparison and disallow loads if it is not set.
11683         (stmt_is_replaceable_p): New function.
11684         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11685         callers.
11686         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11687         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11688         SSA_NAME_DEF_STMT.
11689         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11690
11691 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * config/rs6000/xilinx.opt: New.
11694         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11695
11696 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11697
11698         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11699
11700 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11701
11702         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11703         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11704         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11705         secondary_reload_info, xtensa_secondary_reload): Remove.
11706         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11707         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11708         (xtensa_preferred_reload_class): Make static. Change return and
11709         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11710         Use CONST_DOUBLE_P predicate.
11711         (xtensa_preferred_output_reload_class): New function.
11712         (xtensa_secondary_reload): Make static.
11713
11714 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11717         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11718         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11719
11720 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11721
11722         PR middle-end/31490
11723         * output.h (SECTION_RELRO): Define.
11724         (SECTION_MACH_DEP): Adjust.
11725         (get_variable_section): New prototype.
11726         * varpool.c (varpool_finalize_named_section_flags): New function.
11727         (varpool_assemble_pending_decls): Call it.
11728         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11729         * cgraphunit.c (cgraph_output_in_order): Call
11730         varpool_finalize_named_section_flags.
11731         * varasm.c (get_section): Allow section flags conflicts between
11732         relro and read-only sections if the section hasn't been declared yet.
11733         Set SECTION_OVERRIDE after diagnosing section type conflict.
11734         (get_variable_section): No longer static.
11735         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11736         readonly sections that need relocations.
11737         (decl_readonly_section_1): New function.
11738         (decl_readonly_section): Use it.
11739
11740         Revert:
11741         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11742                     Steve Ellcey  <sje@cup.hp.com>
11743
11744         PR middle-end/31490
11745         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11746         if section attribute used.
11747
11748 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11749
11750         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11751         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11752         (darwin_init_sections): Remove assertion.
11753
11754 2011-02-03  Nick Clifton  <nickc@redhat.com>
11755
11756         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11757         lt and ge.
11758         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11759         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11760         instead of "n" and "pz".
11761         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11762         CC_FLAG_S.
11763
11764 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11765
11766         PR target/47312
11767         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11768         fma, expand FMA_EXPR as fma{,f,l} call.
11769
11770         PR lto/47274
11771         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11772         copy them into a unsigned char variable and pass address of it to
11773         lto_output_data_stream.
11774
11775         PR target/47564
11776         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11777         around backend_init_target and lang_dependent_init_target calls.
11778         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11779         (verify_cgraph_node): Don't call set_cfun here.  Use
11780         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11781         Set error_found for incorrectly represented calls to thunks.
11782
11783 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11784
11785         PR debug/43092
11786         PR rtl-optimization/43494
11787         * rtl.h (for_each_inc_dec_fn): New type.
11788         (for_each_inc_dec): Declare.
11789         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11790         (for_each_inc_dec_find_inc_dec): New fn.
11791         (for_each_inc_dec_find_mem): New fn.
11792         (for_each_inc_dec): New fn.
11793         * dse.c (struct insn_size): Remove.
11794         (replace_inc_dec, replace_inc_dec_mem): Remove.
11795         (emit_inc_dec_insn_before): New fn.
11796         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11797         (canon_address): Pass mem modes to cselib_lookup.
11798         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11799         (cselib_lookup_from_insn): Likewise.
11800         (cselib_subst_to_values): Likewise.
11801         * cselib.c (find_slot_memmode): New var.
11802         (cselib_find_slot): New fn.  Use it instead of
11803         htab_find_slot_with_hash everywhere.
11804         (entry_and_rtx_equal_p): Use find_slot_memmode.
11805         (autoinc_split): New fn.
11806         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11807         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11808         Deal with autoinc.  Special-case recursion into MEMs.
11809         (cselib_hash_rtx): Likewise.
11810         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11811         address and MEM modes.
11812         (cselib_subst_to_values): Add memmode, pass it on.
11813         Deal with autoinc.
11814         (cselib_lookup): Add memmode argument, pass it on.
11815         (cselib_lookup_from_insn): Add memmode.
11816         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11817         (struct cselib_record_autoinc_data): New.
11818         (cselib_record_autoinc_cb): New fn.
11819         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11820         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11821         (cselib_process_insn): ... here.
11822         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11823         to cselib_lookup.
11824         (add_uses): Likewise, also to cselib_subst_to_values.
11825         (add_stores): Likewise.
11826         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11827         cselib_subst_to_values.
11828         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11829         * gcse.c (do_local_cprop): Adjusted.
11830         * postreload.c (reload_cse_simplify_set): Adjusted.
11831         (reload_cse_simplify_operands): Adjusted.
11832         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11833
11834 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11835
11836         PR tree-optimization/45122
11837         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11838         unsafe assumptions when there's more than one loop exit.
11839
11840 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11841
11842         PR target/47272
11843         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11844         Document using vector double with the load/store builtins, and
11845         that the load/store builtins always use Altivec instructions.
11846
11847         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11848         to use altivec memory instructions, even on VSX.
11849         (vector_altivec_store_<mode>): Ditto.
11850
11851         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11852         function.
11853
11854         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11855         V2DF, V2DI support to load/store overloaded builtins.
11856
11857         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11858         altivec load/store builtins for V2DF/V2DI types.
11859
11860         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11861         set avoid indexed addresses on power6 if -maltivec.
11862         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11863         vector_altivec_load/vector_altivec_store builtins.
11864         (altivec_expand_st_builtin): Ditto.
11865         (altivec_expand_builtin): Add VSX memory builtins.
11866         (rs6000_init_builtins): Add V2DI types to internal types.
11867         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11868         load/store builtins.
11869         (rs6000_address_for_altivec): Insure memory address is appropriate
11870         for Altivec.
11871
11872         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11873         vec_vsx_ld and vec_vsx_st.
11874         (vsx_store_<mode>): Ditto.
11875
11876         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11877         variables to hold long long types for VSX vector memory builtins.
11878         (RS6000_BTI_unsigned_long_long): Ditto.
11879         (long_long_integer_type_internal_node): Ditti.
11880         (long_long_unsigned_type_internal_node): Ditti.
11881
11882         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11883         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11884         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11885
11886         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11887         short cuts.
11888         (vec_vsx_st): Ditto.
11889
11890 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11891
11892         * config/pa/pa-hpux10.opt: New.
11893         * config/hpux11.opt (pthread): New Driver option.
11894         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11895         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11896
11897 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11898
11899         * config/ia64/vms.opt: New.
11900         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11901
11902 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11903
11904         PR target/47580
11905         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11906         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11907         generator functions.
11908         (vsx_floatuns<VSi><mode>2): Ditto.
11909         (vsx_fix_trunc<mode><VSi>2): Ditto.
11910         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11911
11912 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * config/i386/djgpp.opt (posix): New Driver option.
11915
11916 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11917
11918         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11919         Move to the unsupported targets list.
11920
11921 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11922
11923         PR rtl-optimization/47525
11924         * df-scan.c: Update copyright years.
11925         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11926         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11927
11928 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11929
11930         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11931         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11932         (ASM_OUTPUT_ASCII): Remove.
11933         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11934
11935 2011-02-02  Jeff Law  <law@redhat.com>
11936
11937         PR middle-end/47543
11938         * reload.c (find_reloads_address): Handle reg+d address where both
11939         components are invalid by reloading the entire address.
11940
11941 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11942             Richard Guenther  <rguenther@suse.de>
11943
11944         PR tree-optimization/40979
11945         PR bootstrap/47044
11946         * passes.c (init_optimization_passes): After LIM call copy_prop
11947         and DCE to clean up.
11948         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11949
11950 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11951
11952         PR tree-optimization/47576
11953         PR tree-optimization/47555
11954         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11955         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11956         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11957         * tree-scalar-evolution.c (follow_ssa_edge): Use
11958         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11959
11960 2011-02-02  Richard Guenther  <rguenther@suse.de>
11961
11962         PR tree-optimization/47566
11963         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11964
11965 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11966
11967         PR debug/47106
11968         PR debug/47402
11969         * tree-inline.c (declare_return_variable): Remove unused caller
11970         variable.
11971
11972         PR debug/47106
11973         PR debug/47402
11974         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11975         * cfgexpand.c (account_used_vars_for_block): Use them.
11976         * tree-nrv.c (tree_nrv): Likewise.
11977         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11978         (dump_scope_block): Likewise.
11979         (remove_unused_locals): Likewise.
11980
11981         PR debug/47106
11982         PR debug/47402
11983         * tree-inline.c (declare_return_variable): Add result decl to
11984         local decls only once.
11985         * gimple-low.c (record_vars_into): Mark newly-created variables
11986         as referenced.
11987
11988 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11989
11990         PR debug/47498
11991         PR debug/47501
11992         PR debug/45136
11993         PR debug/45130
11994         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11995         debug insns.
11996         (no_real_insns_p, schedule_block, set_priorities): Drop special
11997         treatment of boundary debug insns.
11998         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11999         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12000         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12001         (BOUNDARY_DEBUG_INSN_P): Likewise.
12002         (SCHEDULE_DEBUG_INSN_P): Likewise.
12003         * sched-rgn.c (init_ready_list): Drop special treatment of
12004         boundary debug insns.
12005         * final.c (rest_of_clean_state): Clear notes' BB.
12006
12007 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12008
12009         * config/openbsd.opt (assert=): New Driver option.
12010
12011 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * config/i386/nto.opt: New.
12014         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12015
12016 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * config/i386/netware.opt: New.
12019         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12020
12021 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12022
12023         * config/interix.opt (posix): New Driver option.
12024
12025 2011-02-01  DJ Delorie  <dj@redhat.com>
12026
12027         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12028
12029         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12030         class for A0/A1.
12031
12032 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12033
12034         PR tree-optimization/47561
12035         * toplev.c (process_options): Print the Graphite flags.  Add
12036         flag_loop_flatten to the list of options requiring Graphite.
12037
12038 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12039
12040         * config/i386/cygming.opt (posix): New Driver option.
12041
12042 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12043
12044         * config/arm/vxworks.opt: New.
12045         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12046
12047 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12048
12049         * config/alpha/elf.opt: New.
12050         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12051         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12052
12053 2011-02-01  Richard Guenther  <rguenther@suse.de>
12054
12055         PR tree-optimization/47559
12056         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12057         store-motion on references that can throw.
12058
12059 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12060
12061         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12062         * tree-pass.h (TDF_CSELIB): New macro.
12063         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12064         cselib_lookup): Check for it rather than for TDF_DETAILS.
12065
12066 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12067
12068         PR driver/47547
12069         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12070         is HOST_BIT_BUCKET.
12071
12072         * opts.c (finish_options): Don't add x_aux_base_name if it is
12073         HOST_BIT_BUCKET.
12074
12075 2011-02-01  Richard Guenther  <rguenther@suse.de>
12076
12077         PR tree-optimization/47555
12078         Revert
12079         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12080
12081         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12082
12083 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12084
12085         PR gcc/46692
12086         * config/lm32/t-lm32: Add multilib for all CPU options.
12087
12088 2011-02-01  Richard Guenther  <rguenther@suse.de>
12089
12090         PR tree-optimization/47541
12091         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12092         sure to have a field at offset zero.
12093
12094 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12095
12096         * config/arc/arc.opt (EB, EL): New Driver options.
12097
12098 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12099
12100         * config/alpha/osf5.opt: New.
12101         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12102
12103 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12104
12105         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12106
12107 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12108
12109         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12110         -floop-interchange.
12111         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12112         is an alias of -floop-interchange and that it requires the
12113         Graphite infrastructure.
12114         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12115         flag_loop_interchange based on the value of flag_tree_loop_linear.
12116
12117 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12118             Richard Guenther  <rguenther@suse.de>
12119
12120         PR tree-optimization/47538
12121         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12122         type instead of r1type, except for comparisons.  For right
12123         shifts and comparisons punt if there are mismatches in
12124         sizetype vs. non-sizetype types.
12125
12126 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12127
12128         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12129         avx_runtime.
12130
12131 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12132
12133         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12134         version number.
12135         * configure: Regenerate.
12136
12137 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12138
12139         * configure.ac (gcc_cv_ld_static_option): Define.
12140         (gcc_cv_ld_dynamic_option): Define.
12141         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12142         instead.
12143         (HAVE_LD_STATIC_DYNAMIC): Update message.
12144         (LD_STATIC_OPTION): Define.
12145         (LD_DYNAMIC_OPTION): Define.
12146         * configure: Regenerate.
12147         * config.in: Regenerate.
12148         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12149         HAVE_LD_STATIC_DYNAMIC]: Use them.
12150
12151 2011-01-31  Nick Clifton  <nickc@redhat.com>
12152
12153         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12154         registers inside interrupt handlers if the handler is not a leaf
12155         function.
12156
12157 2011-01-31  Nick Clifton  <nickc@redhat.com>
12158
12159         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12160         reg_renumber returning an INVALID_REGNUM.
12161
12162 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12163
12164         PR libgcj/44341
12165         * doc/install.texi: Document host options discarded when cross
12166         configuring target libraries.
12167
12168 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12169
12170         Reverted:
12171         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12172         PR debug/45136
12173         PR debug/45130
12174         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12175         debug insns.
12176         (no_real_insns_p, schedule_block, set_priorities): Drop special
12177         treatment of boundary debug insns.
12178         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12179         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12180         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12181         (BOUNDARY_DEBUG_INSN_P): Likewise.
12182         (SCHEDULE_DEBUG_INSN_P): Likewise.
12183         * sched-rgn.c (init_ready_list): Drop special treatment of
12184         boundary debug insns.
12185         * final.c (rest_of_clean-state): Clear notes' BB.
12186
12187 2011-01-31  Alan Modra  <amodra@gmail.com>
12188
12189         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12190         toc relative expressions as we do in print_operand_address.
12191
12192 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12193
12194         * doc/extend.texi: Follow spelling conventions.
12195         * doc/invoke.texi: Fix a typo.
12196
12197 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12198
12199         * config/hpux11.opt: New.
12200         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12201         ia64*-*-hpux*): Use hpux11.opt.
12202
12203 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12204
12205         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12206         to tmake_file.
12207
12208 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12209
12210         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12211         support sites.
12212
12213 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12214
12215         * doc/install.texi (Binaries): Remove outdated reference for
12216         Motorola 68HC11/68HC12 downloads.
12217
12218 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12219
12220         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12221         Drepper's paper.
12222
12223 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12224
12225         PR bootstrap/47147
12226         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12227         used by NetBSD.
12228
12229 2011-01-28  Ahmad Sharif  <asharif@google.com>
12230
12231         * value-prof.c (check_counter): Corrected error message.
12232
12233 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12234
12235         * config/arm/arm.c (arm_legitimize_reload_address): New.
12236         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12237         arm_legitimize_reload_address.
12238         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12239
12240 2011-01-28  Ian Lance Taylor  <iant@google.com>
12241
12242         * godump.c (go_define): Ignore macros whose definitions include
12243         two adjacent operands.
12244
12245 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12246
12247         PR target/42894
12248         * varasm.c (force_const_mem): Store copy of x in desc->constant
12249         instead of x itself.
12250         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12251         itself into REG_EQUAL note.
12252
12253 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12254
12255         * config/freebsd.opt (posix, rdynamic): New Driver options.
12256
12257 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12258
12259         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12260         -Bstatic/-Bdynamic.
12261         * configure: Regenerate.
12262
12263 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12264
12265         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12266         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12267
12268 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12269
12270         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12271         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12272         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12273         (s390_preferred_reload_class): Make static. Change return and
12274         'rclass' argument type to reg_class_t.
12275
12276 2011-01-27  Jan Hubicka  <jh@suse.cz>
12277
12278         PR middle-end/46949
12279         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12280         (process_function_and_variable_attributes): Check defined weakrefs.
12281
12282 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12283
12284         PR tree-optimization/47228
12285         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12286         build_ref_for_offset.
12287
12288 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12289
12290         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12291
12292 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12293
12294         PR rtl-optimization/46856
12295         * postreload.c (reload_combine_recognize_const_pattern): Do not
12296         separate cc0 setter and user on cc0 targets.
12297
12298 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12299
12300         PR c/43082
12301         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12302         passed a VOID_TYPE expression, immediately emit an error and
12303         return error_mark_node.
12304
12305 2011-01-26  Jeff Law  <law@redhat.com>
12306
12307         PR rtl-optimization/47464
12308         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12309         rather than may_trap_p as needed.
12310
12311 2011-01-26  DJ Delorie  <dj@redhat.com>
12312
12313         PR rtl-optimization/46878
12314         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12315         setter/user dependency as well.
12316
12317 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12318
12319         PR rtl-optimization/44469
12320         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12321         after removing trivially dead basic blocks.
12322
12323 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12324
12325         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12326         * config/frv/frv.h (LINK_SPEC): Likewise.
12327         * config/i386/netware.h (LINK_SPEC): Likewise.
12328         * config/m68k/linux.h (ASM_SPEC): Likewise.
12329         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12330         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12331         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12332         * config/sparc/linux.h (ASM_SPEC): Likewise.
12333         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12334         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12335
12336 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12337
12338         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12339         * config/frv/frv.h (ASM_SPEC): Likewise.
12340         * config/m68k/linux.h (ASM_SPEC): Likewise.
12341         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12342         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12343         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12344         * config/sparc/linux.h (ASM_SPEC): Likewise.
12345         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12346         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12347
12348 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12351         * config/frv/frv.h (LINK_SPEC): Likewise.
12352         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12353
12354 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12355
12356         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12357         * config/frv/frv.h (ASM_SPEC): Likewise.
12358         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12359         * config/m68k/linux.h (ASM_SPEC): Likewise.
12360         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12361         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12362         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12363         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12364         * config/sparc/linux.h (ASM_SPEC): Likewise.
12365         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12366         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12367         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12368
12369 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12370
12371         PR target/46997
12372         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12373         (*mux2): Ditto.
12374         (vec_extract_evenodd_help): Ditto.
12375         (vec_extract_evenv4hi): Ditto.
12376         (vec_extract_oddv4hi): Ditto.
12377         (vec_interleave_lowv2si): Ditto.
12378         (vec_interleave_highv2si): Ditto.
12379         (vec_extract_evenv2si): Ditto.
12380         (vec_extract_oddv2si: Ditto.
12381         (vec_pack_trunc_v2si): Ditto.
12382
12383 2011-01-22  Jan Hubicka  <jh@suse.cz>
12384
12385         PR target/47237
12386         * cgraph.h (cgraph_local_info): New field can_change_signature.
12387         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12388         signature can change.
12389         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12390         can change.
12391         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12392         (cgraph_function_versioning): We can not change signature of functions
12393         that don't allow that.
12394         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12395         (lto_input_node): Likewise.
12396         * ipa-inline.c (compute_inline_parameters): Compute
12397         local.can_change_signature.
12398         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12399         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12400         functions that can not change signature.
12401         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12402         init_cumulative_args): Do not use local calling conventions
12403         for functions that can not change signature.
12404
12405 2011-01-22  Jan Hubicka  <jh@suse.cz>
12406
12407         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12408
12409 2011-01-26  Richard Guenther  <rguenther@suse.de>
12410
12411         PR tree-optimization/47190
12412         * cgraphunit.c (process_common_attributes): New function.
12413         (process_function_and_variable_attributes): Use it.
12414
12415 2011-01-26  Richard Guenther  <rguenther@suse.de>
12416
12417         PR lto/47423
12418         * cgraphbuild.c (record_eh_tables): Record reference to personality
12419         function.
12420
12421 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12422
12423         PR debug/45454
12424         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12425         non-debug insns from moving up.
12426
12427 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12428
12429         PR target/40125
12430         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12431         t-dlldir{,-x} fragment for build and add it to tmake_file.
12432         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12433         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12434         * config/i386/t-dlldir: New file.
12435         (SHLIB_DLLDIR): Define.
12436         * config/i386/t-dlldir-x: New file.
12437         (SHLIB_DLLDIR): Define.
12438         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12439         (SHLIB_INSTALL): Use it.
12440
12441 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12442
12443         PR target/47246
12444         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12445         lower bound of the allowed Thumb-2 coprocessor load/store
12446         index range to -256. Add explaining comment.
12447
12448 2011-01-25  Ian Lance Taylor  <iant@google.com>
12449
12450         * godump.c (go_define): Improve lexing of macro expansion to only
12451         accept expressions which match Go spec.
12452
12453 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12454
12455         PR c++/43601
12456         * tree.c (handle_dll_attribute): Handle it.
12457         * doc/extend.texi (@item dllexport): Mention it.
12458         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12459
12460 2011-01-25  Ian Lance Taylor  <iant@google.com>
12461
12462         PR tree-optimization/26854
12463         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12464         (decl_jump_unsafe): Move higher in file, with no other change.
12465         (bind): Set has_jump_unsafe_decl if appropriate.
12466         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12467         (check_earlier_gotos): Likewise.
12468         (c_check_switch_jump_warnings): Likewise.
12469
12470 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12471
12472         * doc/invoke.texi (Warning Options): Add missing hyphen.
12473         (-fprofile-dir): Minor grammatical fixes.
12474         (-fbranch-probabilities): Likewise.
12475
12476 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12477
12478         PR debug/45136
12479         PR debug/45130
12480         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12481         debug insns.
12482         (no_real_insns_p, schedule_block, set_priorities): Drop special
12483         treatment of boundary debug insns.
12484         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12485         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12486         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12487         (BOUNDARY_DEBUG_INSN_P): Likewise.
12488         (SCHEDULE_DEBUG_INSN_P): Likewise.
12489         * sched-rgn.c (init_ready_list): Drop special treatment of
12490         boundary debug insns.
12491         * final.c (rest_of_clean-state): Clear notes' BB.
12492
12493 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12494
12495         * Makefile.in (LAMBDA_H): Removed.
12496         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12497         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12498         lambda-trans.o, and tree-loop-linear.o.
12499         (lto-symtab.o): Remove dependence on LAMBDA_H.
12500         (tree-loop-linear.o): Remove rule.
12501         (lambda-mat.o): Same.
12502         (lambda-trans.o): Same.
12503         (lambda-code.o): Same.
12504         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12505         (tree-vect-slp.o): Same.
12506         * hwint.h (gcd): Moved here.
12507         (least_common_multiple): Same.
12508         * lambda-code.c: Removed.
12509         * lambda-mat.c: Removed.
12510         * lambda-trans.c: Removed.
12511         * lambda.h: Removed.
12512         * tree-loop-linear.c: Removed.
12513         * lto-symtab.c: Do not include lambda.h.
12514         * omega.c (gcd): Removed.
12515         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12516         * tree-data-ref.c (print_lambda_vector): Moved here.
12517         (lambda_vector_copy): Same.
12518         (lambda_matrix_copy): Same.
12519         (lambda_matrix_id): Same.
12520         (lambda_vector_first_nz): Same.
12521         (lambda_matrix_row_add): Same.
12522         (lambda_matrix_row_exchange): Same.
12523         (lambda_vector_mult_const): Same.
12524         (lambda_vector_negate): Same.
12525         (lambda_matrix_row_negate): Same.
12526         (lambda_vector_equal): Same.
12527         (lambda_matrix_right_hermite): Same.
12528         * tree-data-ref.h: Do not include lambda.h.
12529         (lambda_vector): Moved here.
12530         (lambda_matrix): Same.
12531         (dependence_level): Same.
12532         (lambda_transform_legal_p): Removed declaration.
12533         (lambda_collect_parameters): Same.
12534         (lambda_compute_access_matrices): Same.
12535         (lambda_vector_gcd): Same.
12536         (lambda_vector_new): Same.
12537         (lambda_vector_clear): Same.
12538         (lambda_vector_lexico_pos): Same.
12539         (lambda_vector_zerop): Same.
12540         (lambda_matrix_new): Same.
12541         * tree-flow.h (least_common_multiple): Removed declaration.
12542         * tree-parloops.c (lambda_trans_matrix): Moved here.
12543         (LTM_MATRIX): Same.
12544         (LTM_ROWSIZE): Same.
12545         (LTM_COLSIZE): Same.
12546         (LTM_DENOMINATOR): Same.
12547         (lambda_trans_matrix_new): Same.
12548         (lambda_matrix_vector_mult): Same.
12549         (lambda_transform_legal_p): Same.
12550         * tree-pass.h (pass_linear_transform): Removed declaration.
12551         * tree-ssa-loop.c (tree_linear_transform): Removed.
12552         (gate_tree_linear_transform): Removed.
12553         (pass_linear_transform): Removed.
12554         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12555         flag_loop_interchange.
12556
12557 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12558
12559         PR tree-optimization/47265
12560         PR tree-optimization/47443
12561         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12562         if name still has some uses.
12563
12564 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12565
12566         PR tree-optimization/47382
12567         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12568         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12569
12570 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12571
12572         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12573         sjlj_except_unwind_info.
12574
12575 2011-01-25  Richard Guenther  <rguenther@suse.de>
12576
12577         PR tree-optimization/47426
12578         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12579         visible functions results escape.
12580
12581 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12582
12583         PR target/45701
12584         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12585         (arm_get_frame_offsets): Use it.
12586
12587 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12588             Jakub Jelinek  <jakub@redhat.com>
12589
12590         PR tree-optimization/47271
12591         * tree-if-conv.c (bb_postdominates_preds): New.
12592         (if_convertible_bb_p): Call bb_postdominates_preds.
12593         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12594         (predicate_scalar_phi): Call bb_postdominates_preds.
12595
12596 2011-01-25  Nick Clifton  <nickc@redhat.com>
12597
12598         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12599         * config/rx/rx.c (rx_function_value): Likewise.
12600         (rx_promote_function_mode): Likewise.
12601         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12602         in order to make it legitimate.
12603         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12604         make sure that the first operand is the same as the result register.
12605         (addsi3_unspec): Delete.
12606         (subdi3): Do not accept immediate operands.
12607         (subdi3_internal): Likewise.
12608
12609 2011-01-25  Jeff Law  <law@redhat.com>
12610
12611         PR rtl-optimization/37273
12612         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12613         handle them like argument loads from stack slots.  Do not double
12614         count memory for memory constants and argument loads from stack slots.
12615
12616 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12617
12618         PR tree-optimization/47427
12619         PR tree-optimization/47428
12620         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12621         coalesce if the new root var would be TREE_READONLY.
12622
12623 2011-01-25  Richard Guenther  <rguenther@suse.de>
12624
12625         PR middle-end/47414
12626         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12627         correct type for TBAA.
12628
12629 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12630
12631         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12632         (close_phi_written_to_memory): Call for_each_index with
12633         dr_indices_valid_in_loop.
12634
12635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12636
12637         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12638         when it is initialized.
12639
12640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12641
12642         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12643         call to graphite_find_data_references_in_stmt.
12644         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12645         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12646         call to graphite_find_data_references_in_stmt.
12647         (analyze_drs_in_stmts): Same.
12648         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12649         in which the scalar analysis of indices is performed.
12650         (create_data_ref): Same.  Update call to dr_analyze_indices.
12651         (find_data_references_in_stmt): Update call to create_data_ref.
12652         (graphite_find_data_references_in_stmt): Same.
12653         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12654         declaration.
12655         (create_data_ref): Same.
12656         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12657         call to create_data_ref.
12658
12659 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12660
12661         * graphite-sese-to-poly.c (build_poly_scop): Move
12662         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12663
12664 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12665
12666         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12667         VAR_DECL, PARM_DECL, and RESULT_DECL.
12668
12669 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12670
12671         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12672         in a reduction PBB.
12673         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12674         that have already been marked as PBB_IS_REDUCTION.
12675
12676 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12677
12678         * graphite-scop-detection.c (same_close_phi_node): New.
12679         (remove_duplicate_close_phi): New.
12680         (make_close_phi_nodes_unique): New.
12681         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12682
12683 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12684
12685         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12686         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12687         of both data references to be the same.
12688
12689 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12690
12691         * graphite-dependences.c (build_lexicographical_constraint): Remove
12692         the gdim parameter.
12693         (build_lexicographical_constraint): Adjust call to
12694         ppl_powerset_is_empty.
12695         (dependence_polyhedron): Same.
12696         (graphite_legal_transform_dr): Same.
12697         (graphite_carried_dependence_level_k): Same.
12698         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12699         parameter.
12700         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12701
12702 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12703
12704         * graphite-sese-to-poly.c
12705         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12706         (close_phi_written_to_memory): New.
12707         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12708         and unshare_expr.
12709
12710 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12711
12712         * doc/install.texi: Update the expected version number of PPL to 0.11.
12713         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12714         #if PPL_VERSION_MINOR < 11.
12715
12716 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12717
12718         * graphite-dependences.c: Include graphite-cloog-util.h.
12719         (new_poly_ddr): Inlined into dependence_polyhedron.
12720         (free_poly_ddr): Moved close by new_poly_ddr.
12721         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12722         Early return NULL when ppl_powerset_is_empty returns true.
12723         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12724         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12725         (graphite_legal_transform_dr): Call new_poly_ddr.
12726         (graphite_carried_dependence_level_k): Same.
12727         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12728         (dot_transformed_deps_stmt_1): Removed.
12729         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12730         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12731         (dot_deps_1): Call dot_deps_2.
12732         * Makefile.in (graphite-dependences.o): Add missing dependence on
12733         graphite-cloog-util.h.
12734
12735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12736
12737         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12738         (build_lexicographical_constraint): Same.
12739         (dependence_polyhedron_1): Same.
12740         (graphite_legal_transform_dr): Same.
12741         (graphite_carried_dependence_level_k): Same.
12742         * graphite-ppl.c (ppl_powerset_is_empty): New.
12743         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12744         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12745
12746 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12747
12748         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12749         the "a followed by b" relation and document it.
12750
12751 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12752
12753         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12754         iteration when the bag of constraints is empty.
12755
12756 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12757
12758         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12759
12760 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12761
12762         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12763         nest and two loop depths as parameters.
12764         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12765         lst_perfect_nestify.
12766
12767 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12768
12769         * graphite-dependences.c (print_pddr): Call
12770         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12771
12772 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12773
12774         * graphite-ppl.c (debug_gmp_value): New.
12775         * graphite-ppl.h (debug_gmp_value): Declared.
12776
12777 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12778
12779         * doc/install.texi: Document availability of cloog-0.16.
12780
12781 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12782
12783         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12784         invalid postdominance info.
12785
12786 2011-01-24  Jan Hubicka  <jh@suse.cz>
12787
12788         PR c/21659
12789         * doc/extend.texi (weak pragma): Drop claim that it must
12790         appear before definition.
12791         * varasm.c (merge_weak, declare_weak): Only sanity check
12792         that DECL is not output at a time it is declared weak.
12793
12794 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12795
12796         * machmode.def: Fixed comments.
12797
12798 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12799
12800         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12801
12802 2011-01-24  Paul Koning  <ni1d@arrl.net>
12803
12804         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12805         WORDS_BIG_ENDIAN.
12806
12807 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12808
12809         PR target/46519
12810         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12811         (block_info): Add scanned and prev.
12812         (move_or_delete_vzeroupper_2): Return if the basic block
12813         has been scanned and the upper 128bit state is unchanged
12814         from the last scan.
12815         (move_or_delete_vzeroupper_1): Return true if the exit
12816         state is changed.
12817         (move_or_delete_vzeroupper): Visit basic blocks using the
12818         work-list based algorithm based on vt_find_locations in
12819         var-tracking.c.
12820
12821         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12822
12823 2011-01-24  Nick Clifton  <nickc@redhat.com>
12824
12825         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12826         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12827         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12828         then define __v850e1__.
12829         * doc/invoke.texi: Document -mv850es.
12830
12831 2011-01-24  Richard Henderson  <rth@redhat.com>
12832
12833         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12834         compound unordered comparisons.
12835         * config/rx/rx.c (rx_split_fp_compare): Remove.
12836         * config/rx/rx-protos.h: Update.
12837         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12838         (cbranchsf4): Don't call rx_split_fp_compare.
12839         (*cbranchsf4): Use rx_split_cbranch.
12840         (*cmpsf): Don't accept "i" constraint.
12841         (*conditional_branch): Only valid after reload.
12842         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12843
12844 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12845
12846         PR target/47385
12847         * config/rs6000/altivec.md (vector constant splitters): Add
12848         support for creating vector single precision constants if -mvsx is
12849         used and we would create the constant using Altivec primitives.
12850
12851 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12852             Richard Sandiford  <rdsandiford@googlemail.com>
12853
12854         PR rtl-optimization/47166
12855         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12856         mechanism for PRE_MODIFY and POST_MODIFY.
12857         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12858         reloadreg.
12859
12860 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12861
12862         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12863
12864 2011-01-22  Jan Hubicka  <jh@suse.cz>
12865
12866         PR lto/47333
12867         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12868
12869 2011-01-22  Jan Hubicka  <jh@suse.cz>
12870
12871         PR tree-optimization/43884
12872         PR lto/44334
12873         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12874         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12875
12876 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12877
12878         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12879         * config/s390/s390.c (s390_register_move_cost,
12880         s390_memory_move_cost): New.
12881         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12882
12883 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12884
12885         PR middle-end/47401
12886         * except.c (sjlj_assign_call_site_values): Move setting the
12887         crtl->uses_eh_lsda flag to ...
12888         (sjlj_mark_call_sites): ... here.
12889         (sjlj_emit_function_enter): Support NULL dispatch label.
12890         (sjlj_build_landing_pads): In a function with no landing pads
12891         that still has must-not-throw regions, generate code to register
12892         a personality function with empty LSDA.
12893
12894 2011-01-21  Richard Henderson  <rth@redhat.com>
12895
12896         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12897
12898         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12899
12900         * compare-elim.c: New file.
12901         * Makefile.in (OBJS-common): Add it.
12902         (compare-elim.o): New.
12903         * common.opt (fcompare-elim): New.
12904         * opts.c (default_options_table): Add OPT_fcompare_elim.
12905         * tree-pass.h (pass_compare_elim_after_reload): New.
12906         * passes.c (init_optimization_passes): Add it.
12907         * recog.h: Protect against re-inclusion.
12908         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12909         * doc/invoke.texi (-fcompare-elim): Document it.
12910         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12911         * doc/tm.texi: Rebuild.
12912
12913 2011-01-22  Nick Clifton  <nickc@redhat.com>
12914
12915         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12916         rx_split_fp_compare.
12917
12918 2011-01-22  Nick Clifton  <nickc@redhat.com>
12919
12920         * config/rx/rx.md (UNSPEC_CONST): New.
12921         (deallocate_and_return): Wrap the amount popped off the stack in
12922         an UNSPEC_CONST in order to stop it being rejected by
12923         -mmax-constant-size.
12924         (pop_and_return): Add a "(return)" rtx.
12925         (call): Drop the immediate operand.
12926         (call_internal): Likewise.
12927         (call_value): Likewise.
12928         (call_value_internal): Likewise.
12929         (sibcall_internal): Likewise.
12930         (sibcall_value_internal): Likewise.
12931         (sibcall): Likewise.  Generate an explicit call using
12932         sibcall_internal.
12933         (sibcall_value): Likewise.
12934         (mov<>): FAIL if a constant operand is not legitimate.
12935         (addsi3_unpsec): New pattern.
12936
12937         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12938         (ok_for_max_constant): New function.
12939         (gen_safe_add): New function.
12940         (rx_expand_prologue): Use gen_safe_add.
12941         (rx_expand_epilogue): Likewise.
12942         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12943         UNSPEC CONSTs.
12944
12945 2011-01-21  Jeff Law  <law@redhat.com>
12946
12947         PR tree-optimization/47053
12948         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12949         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12950         statements are deleted.
12951         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12952         is nonempty, then purge dead edges and cleanup the CFG.
12953
12954 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12955
12956         PR debug/47402
12957         Temporarily revert:
12958         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12959         PR debug/47106
12960         * tree-dfa.c (create_var_ann): Mark variable as used.
12961
12962 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12963
12964         PR middle-end/45566
12965         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12966         notes from other section in hot/cold partitioning even if
12967         last_action is -3.  Increment call_site_base.
12968
12969         PR rtl-optimization/47366
12970         * fwprop.c (forward_propagate_into): Return bool.  If
12971         any changes are made, -fnon-call-exceptions is used and
12972         REG_EH_REGION note is present, call purge_dead_edges
12973         and return true if it purged anything.
12974         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12975         any EH edges were purged.
12976
12977 2011-01-21  Jeff Law  <law@redhat.com>
12978
12979         PR rtl-optimization/41619
12980         * caller-save.c (setup_save_areas): Break out code to determine
12981         which hard regs are live across calls by examining the reload chains
12982         so that it is always used.
12983         Eliminate code which checked REG_N_CALLS_CROSSED.
12984
12985 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12986
12987         PR tree-optimization/47355
12988         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12989         NOP has non-debug uses beyond PHIs in new_bb.
12990
12991 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12992
12993         PR debug/47106
12994         * cfgexpand.c (account_used_vars_for_block): Only account vars
12995         that are annotated as used.
12996         (estimated_stack_frame_size): Don't set TREE_USED.
12997         * tree-dfa.c (create_var_ann): Mark variable as used.
12998
12999 2011-01-21  Richard Guenther  <rguenther@suse.de>
13000
13001         PR middle-end/47395
13002         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13003
13004 2011-01-21  Richard Guenther  <rguenther@suse.de>
13005
13006         PR tree-optimization/47365
13007         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13008         (vn_reference_lookup_pieces): Adjust.
13009         (vn_reference_lookup): Likewise.
13010         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13011         (vn_reference_lookup_3): Only look through kills if in
13012         VN_WALKREWRITE mode.
13013         (vn_reference_lookup_pieces): Adjust.
13014         (vn_reference_lookup): Likewise.
13015         (visit_reference_op_load): Likewise.
13016         (visit_reference_op_store): Likewise.
13017         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13018         (compute_avail): Likewise.
13019         (eliminate): Likewise.
13020
13021 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13022
13023         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13024         DECL_IGNORED_P non-reg vars if they are used.
13025
13026         PR tree-optimization/47391
13027         * varpool.c (const_value_known_p): Return false if
13028         decl is volatile.
13029
13030 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13031
13032         PR bootstrap/47215
13033         * config/i386/i386.c (ix86_local_alignment): Handle
13034         case for va_list_type_node is nil.
13035         (ix86_canonical_va_list_type): Likewise.
13036
13037 2011-01-21  Alan Modra  <amodra@gmail.com>
13038
13039         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13040         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13041
13042 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13043
13044         * config/arm/arm.md (define_attr type): Rename f_load
13045         and f_store to f_fpa_load and f_fpa_store. Update.
13046         (write_conflict): Deal with rename fallout.
13047         (*push_fp_multi): Likewise.
13048         * config/arm/fpa.md (f_load): Use f_fpa_load.
13049         (f_store): Use f_fpa_store.
13050         (*movsf_fpa): Likewise.
13051         (*movdf_fpa): Likewise.
13052         (*movxf_fpa): Likewise.
13053         (*thumb2_movsf_fpa): Likewise.
13054         (*thumb2_movdf_fpa): Likewise.
13055         (*thumb2_movxf_fpa): Likewise.
13056         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13057         f_loadd and f_stored.
13058         (*thumb2_movdi_vfp): Likewise.
13059         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13060         (*thumb2_movsi_vfp): Likewise.
13061         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13062         Use f_loads instead of f_load.
13063         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13064
13065 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13066
13067         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13068         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13069         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13070         (xtensa_mode_dependent_address_p): New function.
13071         (constantpool_address_p): Make static. Change return type to bool.
13072         Change argument type to const_rtx. Use CONST_INT_P predicate.
13073
13074 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13075
13076         PR debug/46583
13077         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13078
13079 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13080
13081         PR debug/47283
13082         * cfgexpand.c (expand_debug_expr): Instead of generating
13083         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13084         etc. handling.
13085
13086 2011-01-20  Richard Guenther  <rguenther@suse.de>
13087
13088         PR middle-end/47370
13089         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13090         the pointer operand of MEM_REFs.
13091
13092 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13093
13094         PR tree-optimization/46130
13095         * ipa-split.c (consider_split): If return_bb contains non-virtual
13096         PHIs other than for retval or if split_function would not adjust it,
13097         refuse to split.
13098
13099 2011-01-20  Richard Guenther  <rguenther@suse.de>
13100
13101         PR tree-optimization/47167
13102         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13103         Revert previous change, only avoid enumeral type changes.
13104
13105 2011-01-19  Mike Stump  <mikestump@comcast.net>
13106
13107         * doc/tm.texi.in (BRANCH_COST): Englishify.
13108         * doc/tm.texi (BRANCH_COST): Likewise.
13109
13110 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13111
13112         PR c++/47291
13113         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13114         (gen_scheduled_generic_parms_dies): New functions.
13115         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13116         generation for the end of CU compilation.
13117         (dwarf2out_finish): Generate template parameters DIEs here.
13118
13119 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13120
13121         PR debug/46240
13122         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13123         debug bind stmt on merge edges.
13124
13125 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13126
13127         PR debug/47079
13128         PR debug/46724
13129         * function.c (instantiate_expr): Instantiate incoming rtl of
13130         implicit arguments, and recurse on VALUE_EXPRs.
13131         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13132         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13133
13134 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13135
13136         * c-parser.c (c_parser_for_statement): Initialize
13137         collection_expression.
13138
13139 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13140
13141         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13142
13143 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13144
13145         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13146         (LINK_SHLIB_SPEC): Don't use %(link_path).
13147         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13148
13149 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13152         (NO_SHARED_LIB_SUPPORT): Remove.
13153         (LINK_SHLIB_SPEC): Remove one conditional definition.
13154
13155 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13156
13157         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13158         %{call_shared}.
13159         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13160         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13161         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13162         %{call_shared} and conditionals on these options not being passed.
13163         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13164         %{call_shared}.
13165
13166 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13167
13168         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13169         simplify.
13170
13171         * ipa-split.c: Spelling fixes.
13172
13173 2011-01-19  Richard Henderson  <rth@redhat.com>
13174
13175         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13176         (*mulsi3): Likewise.
13177
13178         * longlong.h [__mn10300__] (count_leading_zeros): New.
13179         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13180         [__mn10300__] (add_ssaaaa, subddmmss): New.
13181         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13182         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13183
13184 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13185
13186         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13187
13188 2011-01-19  Richard Henderson  <rth@redhat.com>
13189
13190         * config/mn10300/mn10300.md (addsi3_flags): New.
13191         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13192         (subsi3_flags, subc_internal, subdi3): New.
13193         (subdi3_internal, *subdi3_degenerate): New.
13194         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13195
13196         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13197         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13198         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13199         * config/mn10300/mn10300-protos.h: Update.
13200         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13201         (return_ret): Likewise.  Rename from return_internal_regs.
13202         (return_internal): Remove.
13203
13204         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13205         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13206         (mn10300_legitimate_constant_p): Likewise.
13207         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13208         (mn10300_frame_size): New.
13209         (mn10300_expand_prologue): Use it.
13210         (mn10300_expand_epilogue): Likewise.
13211         (mn10300_initial_offset): Likewise.
13212         * config/mn10300/mn10300-protos.h: Update.
13213         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13214         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13215         (prologue, epilogue, return_internal): Tidy output code.
13216         (mn10300_store_multiple_operation, return): Likewise.
13217         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13218         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13219         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13220         (load_pic, am33_load_pic): New.
13221         (mn10300_load_pic0, mn10300_load_pic1): New.
13222
13223         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13224         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13225         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13226         (cc_flags_for_mode, cc_flags_for_code): New.
13227         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13228         overflow flag is not valid.  Validate that the flags we need
13229         for the comparison are valid.
13230         (mn10300_output_cmp): Remove.
13231         (mn10300_output_add): New.
13232         (mn10300_select_cc_mode): Use cc_flags_for_code.
13233         (mn10300_split_cbranch): New.
13234         (mn10300_match_ccmode): New.
13235         (mn10300_split_and_operand_count): New.
13236         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13237         to the function.
13238         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13239         (addsi3): ... here.  Use mn10300_output_add.
13240         (*addsi3_flags): New.
13241         (*am33_subsi3, *mn10300_subsi3): Merge...
13242         (subsi3): ... here.  Use attribute isa.
13243         (*subsi3_flags): New.
13244         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13245         when possible.
13246         (*am33_andsi3, *mn10300_andsi3): Merge...
13247         (andsi3): ... here.
13248         (*andsi3_flags): New.
13249         (andsi3 splitters): New.
13250         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13251         (iorsi3): ... here.
13252         (*iorsi3_flags): New.
13253         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13254         (xorsi3): ... here.
13255         (*xorsi3_flags): New.
13256         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13257         (one_cmplsi2): ... here.
13258         (*one_cmplsi2_flags): New.
13259         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13260         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13261         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13262         use matching constraints to eliminate a self-comparison.
13263         (*integer_conditional_branch): Rename from integer_conditional_branch.
13264         Use int_mode_flags to match CC_REG.
13265         (*cbranchsi4_btst, *btstsi): New.
13266         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13267         mn10300_split_cbranch.
13268         (*am33_cmpsf): Rename from am33_cmpsf.
13269         (*float_conditional_branch): Rename from float_conditional_branch.
13270         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13271         (zero_extendqisi2): ... here.
13272         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13273         (zero_extendhisi2): ... here.
13274         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13275         (extendqisi2): ... here.
13276         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13277         (extendhisi2): ... here.
13278         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13279         (ashlsi3): ... here.
13280         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13281         (lshrsi3): ... here.
13282         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13283         (ashrsi3): ... here.
13284         (consecutive add peephole): Remove.
13285         * config/mn10300/predicates.md (label_ref_operand): New.
13286         (int_mode_flags): New.
13287         (CCZN_comparison_operator): New.
13288
13289         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13290         (throughput_42_latency_43): New reservation.
13291         (mulsidi3, umulsidi3): New expanders.
13292         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13293         the MDR register to allocation; separately allocate the low and
13294         high parts of the DImode result.
13295         (umulsidi3_internal): Similarly.
13296         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13297         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13298         (udivsi3, umodsi3): Remove.
13299         (udivmodsi4, divmodsi4): New expanders.
13300         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13301         (*divmodsi4): Simiarly.
13302         (ext_internal): New.
13303
13304         * config/mn10300/constraints.md ("z"): New constraint.
13305         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13306         (FIXED_REGISTERS): Don't fix MDR.
13307         (CALL_USED_REGSITERS): Reformat nicely.
13308         (REG_ALLOC_ORDER): Add MDR.
13309         (enum regclass): Add MDR_REGS.
13310         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13311         (IRA_COVER_CLASSES): Add MDR_REGS.
13312         (REGNO_REG_CLASS): Handle MDR_REG.
13313         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13314         (mn10300_register_move_cost): Likewise.
13315         * config/mn10300/mn10300.md (MDR_REG): New.
13316         (*movsi_internal): Handle moves to/from MDR_REGS.
13317
13318         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13319         POST_MODIFY.
13320         (mn10300_secondary_reload): Tidy combination reload classes.
13321         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13322         addresses for AM33.  Allow symbolic offsets for reg+imm.
13323         (mn10300_regno_in_class_p): New.
13324         (mn10300_legitimize_reload_address): New.
13325         * config/mn10300/mn10300.h (enum reg_class): Remove
13326         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13327         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13328         SP_OR_GENERAL_REGS.
13329         (REG_CLASS_NAMES): Update to match.
13330         (REG_CLASS_CONTENTS): Likewise.
13331         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13332         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13333         (REGNO_IN_RANGE_P): Remove.
13334         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13335         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13336         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13337         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13338         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13339         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13340         (REGNO_GENERAL_P): New.
13341         (HAVE_POST_MODIFY_DISP): New.
13342         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13343         (LEGITIMIZE_RELOAD_ADDRESS): New.
13344         * config/mn10300/mn10300-protos.h: Update.
13345
13346         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13347         DATA_REGS for AM33 stack-pointer destination.
13348         (mn10300_preferred_output_reload_class): Likewise.
13349         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13350         into a form appropriate for ...
13351         (TARGET_SECONDARY_RELOAD): New.
13352         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13353         * config/mn10300/mn10300-protos.h: Update.
13354         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13355         reload_insi; use the "A" constraint for the scratch; handle AM33
13356         moves of sp to non-address registers.
13357
13358         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13359         (*movqi_internal): ... here.
13360         (*am33_movhi, *mn10300_movhi): Merge into...
13361         (*movhi_internal): ... here.
13362         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13363         as the source/destination of moves from/to SP.
13364         (movsf): Only allow for AM33-2.
13365         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13366         any integer constant constraint.  Only allow for AM33-2.  Tidy
13367         all of the alternative outputs.
13368         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13369         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13370         for MN103.
13371         (udivsi3, umodsi3): New patterns for MN103 only.
13372
13373 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13374
13375         * doc/tm.texi.in: Spell out that a lack of register class unions
13376         can lead to ICEs.
13377         * doc/tm.texi: Regenerate.
13378
13379 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13380
13381         PR rtl-optimization/47337
13382         * dce.c (check_argument_store): New function.
13383         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13384
13385         PR tree-optimization/47290
13386         * tree-eh.c (infinite_empty_loop_p): New function.
13387         (cleanup_empty_eh): Use it.
13388
13389 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13390
13391         PR target/46997
13392         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13393         (a64_expand_widen_sum): Ditto.
13394         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13395         (vec_extract_evenodd_help): Ditto.
13396         (vec_extract_evenv4hi): Ditto.
13397         (vec_extract_oddv4hi): Ditto.
13398         (vec_extract_evenv2si): Ditto.
13399         (vec_extract_oddv2si): Ditto.
13400         (vec_extract_evenv2sf): Ditto.
13401         (vec_extract_oddv2sf): Ditto.
13402         (vec_pack_trunc_v4hi: Ditto.
13403         (vec_pack_trunc_v2si): Ditto.
13404         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13405         (vec_interleave_highv8qi): Ditto.
13406         (mix1_r): Ditto.
13407         (vec_extract_oddv8qi): Ditto.
13408         (vec_interleave_lowv4hi): Ditto.
13409         (vec_interleave_highv4hi): Ditto.
13410         (vec_interleave_lowv2si): Ditto.
13411         (vec_interleave_highv2si): Ditto.
13412
13413 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13414
13415         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13416         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13417         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13418         (pa_c_mode_for_suffix): New.
13419         (TARGET_EXPAND_BUILTIN): Define.
13420         (TARGET_C_MODE_FOR_SUFFIX): Define.
13421         (pa_builtins): Define.
13422         (pa_init_builtins): Register __float128 type and init new support
13423         builtins.
13424         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13425         * config/pa/quadlib.c (_U_Qfcopysign): New.
13426
13427 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13428
13429         PR middle-end/46894
13430         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13431         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13432         are defined.
13433
13434 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13435
13436         PR tree-optimization/47179
13437         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13438         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13439
13440 2011-01-18  Richard Guenther  <rguenther@suse.de>
13441
13442         PR rtl-optimization/47216
13443         * emit-rtl.c: Include tree-flow.h.
13444         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13445         of replicating it with different semantics.
13446         * Makefile.in (emit-rtl.o): Adjust.
13447
13448 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13449
13450         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13451         (cortex_a9_dp): Handle neon types correctly.
13452
13453 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13454
13455         PR rtl-optimization/47299
13456         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13457         subtarget.  Use normal multiplication if both operands are constants.
13458         * expmed.c (expand_widening_mult): Don't try to optimize constant
13459         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13460         before using it.
13461
13462 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13463
13464         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13465         spacing after 'e.g.', typos, comma, hyphenation.
13466
13467 2011-01-17  Richard Henderson  <rth@redhat.com>
13468
13469         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13470         (rx_restricted_mem_operand): New.
13471         (rx_shift_operand): Use register_operand.
13472         (rx_source_operand, rx_compare_operand): Likewise.
13473         * config/rx/rx.md (addsi3_flags): New expander.
13474         (adddi3): Rewrite as expander.
13475         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13476         (subsi3_flags): New expander.
13477         (subdi3): Rewrite as expander.
13478         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13479
13480         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13481         (rx_init_builtins): Remove sat builtin.
13482         (rx_expand_builtin): Likewise.
13483         * config/rx/rx.md (ssaddsi3): New.
13484         (*sat): Rename from sat.  Represent the CC_REG input.
13485
13486         * config/rx/predicates.md (rshift_operator): New.
13487         * config/rx/rx.c (rx_expand_insv): Remove.
13488         * config/rx/rx-protos.h: Update.
13489         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13490         operand to the canonical position.
13491         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13492         (*bitclr, *bitclr_in_memory): Similarly.
13493         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13494         (insv): Retain the zero_extract in the expansion.
13495
13496         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13497         (bswaphi2, bitinvert, revw): Likewise.
13498
13499         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13500         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13501         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13502         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13503         (bitset, bitset_in_memory): Likewise.
13504         (bitinvert, bitinvert_in_memory): Likewise.
13505         (bitclr, bitclr_in_memory): Likewise.
13506         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13507         (rx_strend, rx_cmpstrn): Likewise.
13508         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13509         (bitop peep2 patterns): Remove.
13510
13511         * config/rx/rx.c (rx_match_ccmode): New.
13512         * config/rx/rx-protos.h: Update.
13513         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13514         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13515         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13516         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13517         (fix_truncsfsi2, floatsisf2): Likewise.
13518         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13519         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13520         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13521         (*subsi3_flags, *xorsi3_flags): New.
13522
13523         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13524
13525         * config/rx/rx.c (rx_print_operand): Remove workaround for
13526         unsplit comparison operations.
13527
13528         * config/rx/rx.md (movsicc): Split after reload.
13529         (*movsicc): Merge *movsieq and *movsine via match_operator.
13530         (*stcc): New pattern.
13531
13532         * config/rx/rx.c (rx_float_compare_mode): Remove.
13533         * config/rx/rx.h (rx_float_compare_mode): Remove.
13534         * config/rx/rx.md (cstoresi4): Split after reload.
13535         (*sccc): New pattern.
13536
13537         * config/rx/predicates.md (label_ref_operand): New.
13538         (rx_z_comparison_operator): New.
13539         (rx_zs_comparison_operator): New.
13540         (rx_fp_comparison_operator): New.
13541         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13542         Validate that the flags are set properly for the comparison.
13543         (rx_gen_cond_branch_template): Remove.
13544         (rx_cc_modes_compatible): Remove.
13545         (mode_from_flags): New.
13546         (flags_from_code): Rename from flags_needed_for_conditional.
13547         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13548         (rx_select_cc_mode): Likewise.
13549         (rx_split_fp_compare): New.
13550         (rx_split_cbranch): New.
13551         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13552         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13553         (*cbranchsf4): Similarly.
13554         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13555         match_operator and rx_split_cbranch.
13556         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13557         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13558         (*cmpsi): Rename from cmpsi.
13559         (*tstsi): Rename from tstsi.
13560         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13561         (*conditional_branch): Rename from conditional_branch.
13562         (*reveresed_conditional_branch): Remove.
13563         (b<code>): Remove expander.
13564         * config/rx/rx-protos.h: Update.
13565
13566         * config/rx/rx.c (rx_compare_redundant): Remove.
13567         * config/rx/rx.md (cmpsi): Don't use it.
13568         * config/rx/rx-protos.h: Update.
13569
13570         * config/rx/rx-modes.def (CC_F): New mode.
13571         * config/rx/rx.c (rx_select_cc_mode): New.
13572         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13573         * config/rx/rx-protos.h: Update.
13574
13575 2011-01-17  Richard Henderson  <rth@redhat.com>
13576
13577         * except.c (dump_eh_tree): Fix stray ; after for statement.
13578
13579 2011-01-17  Richard Guenther  <rguenther@suse.de>
13580
13581         PR tree-optimization/47313
13582         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13583         handling before copying the body.  Properly deal with
13584         by-reference result in SSA form.
13585
13586 2011-01-17  Ian Lance Taylor  <iant@google.com>
13587
13588         PR target/47219
13589         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13590         (struct_value_alias_set): Don't define.
13591         (sparc_option_override): Don't set sparc_sr_alias_set and
13592         struct_value_alias_set.
13593         (save_or_restore_regs): Use gen_frame_mem rather than calling
13594         set_mem_alias_set.
13595         (sparc_struct_value_rtx): Likewise.
13596
13597 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13598
13599         PR target/47318
13600         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13601         (_mm_maskstore_pd): Likewise.
13602         (_mm_maskload_ps): Likewise.
13603         (_mm_maskstore_ps): Likewise.
13604         (_mm256_maskload_pd): Change mask to __m256i.
13605         (_mm256_maskstore_pd): Likewise.
13606         (_mm256_maskload_ps): Likewise.
13607         (_mm256_maskstore_ps): Likewise.
13608
13609         * config/i386/i386-builtin-types.def: Updated.
13610         (ix86_expand_special_args_builtin): Likewise.
13611
13612         * config/i386/i386.c (bdesc_special_args): Update
13613         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13614         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13615         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13616         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13617
13618         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13619         Use <avxpermvecmode> on mask register.
13620         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13621
13622 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13623             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13624             Eric Botcazou  <ebotcazou@adacore.com>
13625
13626         PR target/46655
13627         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13628         if <= USHRT_MAX in 32-bit mode.
13629
13630 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13631
13632         * doc/install.texi (Configuration, Specific): Wrap long
13633         lines in examples.  Allow line wrapping in long options
13634         and URLs where beneficial for PDF output.
13635
13636 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13637
13638         * config/mips/mips.c (mips_classify_symbol): Don't return
13639         SYMBOL_PC_RELATIVE for nonlocal labels.
13640
13641 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13642
13643         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13644
13645 2011-01-15  Jan Hubicka  <jh@suse.cz>
13646
13647         PR tree-optimization/47276
13648         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13649         declarations as needed.
13650
13651 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13652
13653         * common.opt (fdevirtualize): New flag.
13654         * doc/invoke.texi (Option Summary): Document it.
13655         * opts.c (default_options_table): Add devirtualize flag.
13656         * ipa-prop.c (detect_type_change): Return immediately if
13657         devirtualize flag is not set.
13658         (detect_type_change_ssa): Likewise.
13659         (compute_known_type_jump_func): Likewise.
13660         (ipa_analyze_virtual_call_uses): Likewise.
13661
13662 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13663
13664         PR tree-optimization/45934
13665         PR tree-optimization/46302
13666         * ipa-prop.c (type_change_info): New type.
13667         (stmt_may_be_vtbl_ptr_store): New function.
13668         (check_stmt_for_type_change): Likewise.
13669         (detect_type_change): Likewise.
13670         (detect_type_change_ssa): Likewise.
13671         (compute_complex_assign_jump_func): Check for dynamic type change.
13672         (compute_complex_ancestor_jump_func): Likewise.
13673         (compute_known_type_jump_func): Likewise.
13674         (compute_scalar_jump_functions): Likewise.
13675         (ipa_analyze_virtual_call_uses): Likewise.
13676         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13677
13678 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13679
13680         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13681         * config/i386/i386.opt (msse5): New Alias.
13682
13683 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13684
13685         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13686         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13687         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13688         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13689
13690 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13691
13692         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13693         -mcpu options.
13694         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13695         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13696         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13697         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13698         Likewise.
13699         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13700
13701 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13702
13703         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13704
13705 2011-01-14  Mike Stump  <mikestump@comcast.net>
13706
13707         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13708         * config/fr30/fr30.md: Likweise
13709         (movsi_push): Likewise.
13710         (movsi_pop): Likewise.
13711         (enter_func): Likewise.
13712         * config/moxie/moxie.md (movsi_push): Likewise.
13713         (movsi_pop): Likewise.
13714
13715 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13716
13717         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13718         %{no_archive} %{exact_version}.
13719         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13720         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13721         %{no_archive} %{exact_version}.
13722         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13723         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13724         * config/mips/vxworks.h: Likewise.
13725
13726 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13729
13730 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13731
13732         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13733         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13734
13735 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13738         -nodefaultlib.
13739
13740 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13741
13742         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13743         for mcpu not cpu.
13744         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13745         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13746         not cpu.
13747         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13748         Don't handle -shlib.
13749
13750 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13751
13752         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13753         (CC1_SPEC): Don't handle -profile.
13754
13755 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13756
13757         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13758         * config/mips/mips.h (CC1_SPEC): Likewise.
13759
13760 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13761
13762         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13763         * config/mips/mips.h (CC1_SPEC): Likewise.
13764
13765 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13766
13767         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13768         * config/m32r/linux.h (LINK_SPEC): Likewise.
13769         * config/mips/linux.h (LINK_SPEC): Likewise.
13770         * config/mips/linux64.h (LINK_SPEC): Likewise.
13771         * config/sparc/linux.h (LINK_SPEC): Likewise.
13772         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13773         LINK_SPEC): Likewise.
13774         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13775
13776 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13777
13778         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13779         %{version:-v}.
13780         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13781
13782 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13783
13784         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13785         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13786
13787 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13790
13791 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13792
13793         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13794         supports -Bstatic/-Bdynamic.
13795         * configure: Regenerate.
13796
13797 2011-01-14  Jan Hubicka  <jh@suse.cz>
13798             Jack Howarth  <howarth@bromo.med.uc.edu>
13799
13800         PR target/46037
13801         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13802         when checking debug_info_level. Test write_symbols instead of
13803         debug_hooks->var_location when setting flag_var_tracking_uninit.
13804
13805 2011-01-14  Richard Guenther  <rguenther@suse.de>
13806
13807         PR tree-optimization/47179
13808         * target.def (ref_may_alias_errno): New target hook.
13809         * targhooks.h (default_ref_may_alias_errno): Declare.
13810         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13811         (default_ref_may_alias_errno): New function.
13812         * target.h (struct ao_ref_s): Declare.
13813         * tree-ssa-alias.c: Include target.h.
13814         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13815         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13816         (targhooks.o): Likewise.
13817         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13818         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13819
13820 2011-01-14  Richard Guenther  <rguenther@suse.de>
13821
13822         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13823
13824 2011-01-14  Richard Guenther  <rguenther@suse.de>
13825
13826         PR tree-optimization/47280
13827         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13828         return CFG changes.
13829         (tree_ssa_forward_propagate_single_use_vars): Deal with
13830         CFG changes from associate_plusminus.
13831
13832 2011-01-14  Richard Guenther  <rguenther@suse.de>
13833
13834         PR middle-end/47281
13835         Revert
13836         2011-01-11  Richard Guenther  <rguenther@suse.de>
13837
13838         PR tree-optimization/46076
13839         * tree-ssa.c (useless_type_conversion_p): Conversions from
13840         unprototyped to empty argument list function types are useless.
13841
13842 2011-01-14  Richard Guenther  <rguenther@suse.de>
13843
13844         PR tree-optimization/47286
13845         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13846
13847 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13848
13849         PR middle-end/46823
13850         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13851
13852 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13853
13854         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13855         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13856         * config/xtensa/xtensa.c (xtensa_libcall_value,
13857         xtensa_function_value_regno_p): New functions.
13858         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13859
13860 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13861
13862         PR c++/47213
13863         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13864         PE specific hook.
13865         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13866         New function prototype.
13867         * config/i386/winnt.c (i386_pe_assemble_visibility):
13868         Warn only if attribute was specified by user.
13869
13870 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13871
13872         PR target/47251
13873         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13874         floating point.
13875         (floatunsdidf2_fcfidu): Ditto.
13876
13877 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13878
13879         * config/s390/s390.c (print_operand_address): Replace 'error' with
13880         'output_operand_lossage'.
13881         (print_operand): Likewise.
13882
13883 2011-01-13  Jeff Law  <law@redhat.com>
13884
13885         PR rtl-optimization/39077
13886         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13887         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13888         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13889         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13890         * gcse.c (prune_insertions_deletions): New function.
13891         (compute_pre_data): Use it.
13892
13893 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13894
13895         PR debug/PR46973
13896         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13897         static function.
13898         (prune_unused_types_mark): Use it.
13899
13900 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13901
13902         PR rtl-optimization/45352
13903         * sel-sched.c: Update copyright years.
13904         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13905         in the advancing loop when we have issued issue_rate insns.
13906
13907 2011-01-12  Richard Henderson  <rth@redhat.com>
13908
13909         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13910         (TARGET_MD_ASM_CLOBBERS): New.
13911
13912         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13913         (TARGET_DELEGITIMIZE_ADDRESS): New.
13914
13915         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13916         (clzsi2, *bsch): New patterns.
13917
13918         * config/mn10300/mn10300.md (INT): New mode iterator.
13919         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13920
13921         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13922         flag_split_wide_types.
13923
13924         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13925         (mn10300_trampoline_init): Rewrite without a template, an immediate
13926         load and a direct branch.
13927         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13928
13929 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13930
13931         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13932         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13933         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13934         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13935
13936 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13937
13938         PR debug/47209
13939         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13940         of type.
13941
13942 2011-01-12  Jan Hubicka  <jh@suse.cz>
13943
13944         PR driver/47244
13945         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13946         (PLUGIN_COND_CLOSE): New macro.
13947         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13948
13949 2011-01-12  Richard Guenther  <rguenther@suse.de>
13950
13951         PR lto/47259
13952         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13953         register variables in a MEM_REF.
13954
13955 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13956
13957         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13958         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13959         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13960         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13961         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13962         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13963         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13964         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13965         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13966         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13967         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13968         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13969         * config/gnu-user.h: New.  Copied from linux.h.
13970         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13971         GNU_USER_TARGET_STARTFILE_SPEC.
13972         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13973         GNU_USER_TARGET_ENDFILE_SPEC.
13974         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13975         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13976         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13977         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13978         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13979         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13980         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13981         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13982         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13983         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13984         * config/arm/linux-eabi.h (CC1_SPEC): Use
13985         GNU_USER_TARGET_CC1_SPEC.
13986         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13987         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13988         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13989         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13990         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13991         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13992         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13993         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13994
13995 2011-01-12  Richard Guenther  <rguenther@suse.de>
13996
13997         PR other/46946
13998         * doc/invoke.texi (ffast-math): Document it is turned on
13999         with -Ofast.
14000
14001 2011-01-12  Jan Hubicka  <jh@suse.cz>
14002
14003         PR tree-optimization/47233
14004         * opts.c (common_handle_option): Disable ipa-reference with profile
14005         feedback.
14006
14007 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14008
14009         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14010         error message.
14011
14012 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14013
14014         * c-parser.c (c_lex_one_token): Updated and reindented some
14015         comments.  No changes in code.
14016
14017 2011-01-11  Ian Lance Taylor  <iant@google.com>
14018
14019         * godump.c (go_output_var): Don't output the variable if there is
14020         already a type with the same name.
14021
14022 2011-01-11  Ian Lance Taylor  <iant@google.com>
14023
14024         * godump.c (go_format_type): Don't generate float80.
14025
14026 2011-01-11  Richard Henderson  <rth@redhat.com>
14027
14028         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14029         declaration.  Rewrite for both speed and size.
14030         (mn10300_address_cost_1): Remove.
14031         (mn10300_register_move_cost): New.
14032         (mn10300_memory_move_cost): New.
14033         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14034         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14035         extensions, shifts, BSWAP, CLZ.
14036         (mn10300_wide_const_load_uses_clr): Remove.
14037         (TARGET_REGISTER_MOVE_COST): New.
14038         (TARGET_MEMORY_MOVE_COST): New.
14039         * config/mn10300/mn10300-protos.h: Update.
14040         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14041
14042         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14043         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14044         * config/mn10300/mn10300-protos.h: Update.
14045         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14046         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14047         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14048         (*test_int_bitfield, *test_byte_bitfield): Remove.
14049         (*bit_test, *subreg_bit_test): Remove.
14050         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14051
14052         * config/mn10300/constraints.md ("c"): Rename from "A".
14053         ("A", "D"): New constraint letters.
14054         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14055         (fmssf4, fnmasf4, fnmssf4): Likewise.
14056
14057         * config/mn10300/mn10300.md (isa): New attribute.
14058         (enabled): New attribute.
14059
14060         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14061         (abssf2, negsf2): Define only for hardware fp.
14062         (sqrtsf2): Reformat.
14063         (addsf3, subsf3, mulsf3): Merge expander and insn.
14064
14065         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14066         (DEBUGGER_AUTO_OFFSET): Remove.
14067         (DEBUGGER_ARG_OFFSET): Remove.
14068
14069         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14070         Emit register stores with the same offsets as the hardware.
14071         (mn10300_store_multiple_operation): Don't check that the register
14072         save offsets are monotonic.
14073         * config/mn10300/mn10300-protos.h: Update.
14074
14075         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14076
14077         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14078         in terms of the value on the stack, not the MDR register.
14079
14080 2011-01-11  Jan Hubicka  <jh@suse.cz>
14081
14082         PR lto/45721
14083         PR lto/45375
14084         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14085         (symbol_alias_set_destroy, symbol_alias_set_contains,
14086         propagate_aliases_backward): Declare.
14087         * lto-streamer-out.c (struct sets): New sturcture.
14088         (trivally_defined_alias): New function.
14089         (output_alias_pair_p): Rewrite.
14090         (output_unreferenced_globals): Fix output of alias pairs.
14091         (produce_symtab): Likewise.
14092         * ipa.c (function_and_variable_visibility): Set weak alias destination
14093         as needed in lto.
14094         * varasm.c (symbol_alias_set_t): Remove.
14095         (symbol_alias_set_destroy): Export.
14096         (propagate_aliases_forward, propagate_aliases_backward): New functions
14097         based on ...
14098         (compute_visible_aliases): ... this one; remove.
14099         (trivially_visible_alias): New
14100         (trivially_defined_alias): New.
14101         (remove_unreachable_alias_pairs): Rewrite.
14102         (finish_aliases_1): Reorganize code checking if alias is defined.
14103         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14104         in LTO mode.
14105
14106 2011-01-11  Richard Guenther  <rguenther@suse.de>
14107
14108         PR tree-optimization/46076
14109         * tree-ssa.c (useless_type_conversion_p): Conversions from
14110         unprototyped to empty argument list function types are useless.
14111
14112 2011-01-11  Richard Guenther  <rguenther@suse.de>
14113
14114         PR middle-end/45235
14115         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14116         volatile MEMs as MEM_READONLY_P.
14117
14118 2011-01-11  Richard Guenther  <rguenther@suse.de>
14119
14120         PR tree-optimization/47239
14121         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14122
14123 2011-01-11  Jeff Law  <law@redhat.com>
14124
14125         PR tree-optimization/47086
14126         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14127         IVs from statements that might throw.
14128
14129 2011-01-10  Jan Hubicka  <jh@suse.cz>
14130
14131         PR lto/45375
14132         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14133
14134 2011-01-10  Jan Hubicka  <jh@suse.cz>
14135
14136         PR lto/45375
14137         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14138         when correcting profile.
14139
14140 2011-01-10  Jan Hubicka  <jh@suse.cz>
14141
14142         PR lto/46083
14143         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14144         DECL_FINI_PRIORITY.
14145         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14146         Restore DECL_FINI_PRIORITY.
14147
14148 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14149
14150         * doc/gimple.texi: Fix quoting of multi-word return values in
14151         @deftypefn statements.  Ensure presence of return value.  Wrap
14152         overlong @deftypefn lines.
14153         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14154         descriptions of removed functions.
14155         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14156         of multi-word return value in @deftypefn statement.
14157
14158 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14159
14160         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14161         (Conditional Expressions, Logical Operators)
14162         (Statement and operand traversals): Do not indent smallexample
14163         code.  Fix duplicate function argument in example.
14164
14165 2011-01-10  Jeff Law  <law@redhat.com>
14166
14167         PR tree-optimization/47141
14168         * ipa-split.c (split_function): Handle case where we are
14169         returning a value and the return block has a virtual operand phi.
14170
14171 2011-01-10  Jan Hubicka  <jh@suse.cz>
14172
14173         PR tree-optimization/47234
14174         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14175         (pass_feedback_split_functions): Declare.
14176         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14177         tree-profile.
14178         * ipa-split.c (gate_split_functions): Update comments; disable
14179         split-functions for profile_arc_flag and branch_probabilities.
14180         (gate_feedback_split_functions): New function.
14181         (execute_feedback_split_functions): New function.
14182         (pass_feedback_split_functions): New global var.
14183
14184 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         PR lto/46760
14187         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14188         calling gimple_call_set_cannot_inline.
14189
14190 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14191
14192         * config/darwin-sections.def: Remove unused section.
14193
14194 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14195
14196         PR c++/47218
14197         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14198
14199 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14200
14201         PR objc/47232
14202         * c-parser.c (c_parser_declaration_or_fndef): Improved
14203         error message.
14204
14205 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14206
14207         * config/i386/winnt.c (i386_pe_start_function): Make sure
14208         to switch back to function's section.
14209
14210 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14211
14212         PR gcc/46902
14213         PR testsuite/46912
14214         * plugin.c: Move include of dlfcn.h from here...
14215         * system.h: ... to here.
14216
14217 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14218
14219         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14220         file name.
14221         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14222         two extra empty pages in PDF output.
14223
14224 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14225
14226         PR objc/47078
14227         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14228         for error recovery purposes behave as if it was not specified so
14229         that the default type is usd.
14230
14231 2011-01-07  Jan Hubicka  <jh@suse.cz>
14232
14233         PR tree-optmization/46469
14234         * ipa.c (function_and_variable_visibility): Clear needed flags on
14235         nodes with external decls; handle weakrefs merging correctly.
14236
14237 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14238
14239         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14240         not false.
14241
14242 2011-01-07  Jan Hubicka  <jh@suse.cz>
14243
14244         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14245         and no longer claim that gold is required for linker plugin.
14246         * configure: Regenerate.
14247         * gcc.c (PLUGIN_COND): New macro.
14248         (LINK_COMMAND_SPEC): Use it.
14249         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14250         * config.in (HAVE_LTO_PLUGIN): New.
14251         * configure.ac (--with-lto-plugin): New parameter; autodetect
14252         HAVE_LTO_PLUGIN.
14253
14254 2011-01-07  Jan Hubicka  <jh@suse.cz>
14255
14256         PR tree-optimization/46367
14257         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14258         when we can update original.
14259         (cgraph_mark_inline_edge): Sanity check.
14260         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14261
14262 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14263
14264         * config/spu/spu.h (ASM_COMMENT_START): Define.
14265
14266 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14267
14268         PR driver/42445
14269         * gcc.c (%>S): New.
14270         (SWITCH_KEEP_FOR_GCC): Likewise.
14271         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14272         (do_spec_1): Handle "%>".
14273
14274         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14275
14276 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR target/47201
14279         * config/i386/i386.c (ix86_delegitimize_address): If
14280         simplify_gen_subreg fails, return orig_x.
14281
14282         PR bootstrap/47187
14283         * value-prof.c (gimple_stringop_fixed_value): Handle
14284         lhs of the call properly.
14285
14286 2011-01-07  Jan Hubicka  <jh@suse.cz>
14287
14288         PR lto/45375
14289         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14290
14291 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14292
14293         * target.def (function_switched_text_sections): New hook.
14294         * doc/tm.texi: Regenerated.
14295         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14296         * final.c (default_function_switched_text_sections): New.
14297         (final_scan_insn): Call function_switched_text_sections when a
14298         mid-function section change occurs.
14299         * output.h (default_function_switched_text_sections): Declare.
14300         * config/darwin-protos.h (darwin_function_switched_text_sections):
14301         Likewise.
14302         * config/darwin.c (darwin_function_switched_text_sections): New.
14303         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14304
14305 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14306
14307         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14308         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14309         the secondary code fragment when outputting for DWARF == 2.
14310
14311 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14312
14313         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14314         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14315         Remove.
14316         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14317         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14318
14319 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14320
14321         PR debug/46704
14322         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14323         when it is not empty.
14324
14325 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14326
14327         Bobcat Enablement
14328         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14329         (case ${target}): Add btver1.
14330         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14331         -march=native recognize btver1 processors.
14332         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14333         btver1 def_and_undef
14334         * config/i386/i386.c (struct processor_costs btver1_cost): New
14335         btver1 cost table.
14336         (m_BTVER1): New definition.
14337         (m_AMD_MULTIPLE): Includes m_BTVER1.
14338         (initial_ix86_tune_features): Add btver1 tune.
14339         (processor_target_table): Add btver1 entry.
14340         (static const char *const cpu_names): Add btver1 entry.
14341         (software_prefetching_beneficial_p): Add btver1.
14342         (ix86_option_override_internal): Add btver1 instruction sets.
14343         (ix86_issue_rate): Add btver1.
14344         (ix86_adjust_cost): Add btver1.
14345         * config/i386/i386.h (TARGET_BTVER1): New definition.
14346         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14347         (enum processor_type): Add PROCESSOR_BTVER1.
14348         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14349
14350 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14351
14352         PR target/43309
14353         * config/i386/i386.c (legitimize_tls_address)
14354         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14355         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14356         (tls_initial_exec_64_sun): New pattern.
14357
14358 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14359
14360         * doc/invoke.texi (Overall Options): Improve wording and markup
14361         of the description of -wrapper.
14362
14363 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14364
14365         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14366         rdynamic, threads): New Driver options.
14367
14368 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14369
14370         PR target/38118
14371         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14372         if coming from .tdata.
14373         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14374
14375 2011-01-06  Jan Hubicka  <jh@suse.cz>
14376
14377         PR lto/47188
14378         * collect2.c (main): Do not enable LTOmode when plugin is active.
14379
14380 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14381
14382         PR other/45915
14383         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14384         --version output if supported.
14385         * configure: Regenerate.
14386
14387 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14388
14389         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14390         Driver options.
14391
14392 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14393
14394         PR c/47150
14395         * c-convert.c (convert): When converting a complex expression
14396         other than COMPLEX_EXPR to a different complex type, ensure
14397         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14398         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14399         when converting COMPLEX_TYPE.
14400
14401 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14402
14403         PR tree-optimization/47139
14404         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14405         only the last reduction value is used outside the loop.  Update
14406         documentation.
14407
14408 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14409
14410         * config/rtems.opt: New.
14411         * config.gcc (*-*-rtems*): Use rtems.opt.
14412
14413 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14414
14415         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14416         processors do not support 3DNow instructions.
14417
14418 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14419
14420         * config/spu/spu.c (spu_option_override): Set parameter
14421         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14422
14423 2011-01-05  Jan Hubicka  <jh@suse.cz>
14424
14425         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14426         at the command line.
14427
14428 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14429
14430         PR lto/47162
14431         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14432         deltas on streamed outgoing edges.
14433         (output_node_opt_summary): Output info for outgoing edges only when
14434         the node is in new parameter set.
14435         (output_cgraph_opt_summary): New parameter set, passed to the two
14436         aforementioned functions.  Update its forward declaration and its
14437         callee too.
14438
14439 2011-01-05  Tom Tromey  <tromey@redhat.com>
14440
14441         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14442         operator to c_finish_omp_atomic.
14443         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14444         (build_unary_op): Update.
14445         (build_modify_expr): Update.
14446         (build_asm_expr): Update.
14447
14448 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14449
14450         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14451         newly inserted insns.
14452         (pad_bb): Likewise.
14453         (spu_emit_branch_hint): Likewise.
14454         (insert_hbrp_for_ilb_runout): Likewise.
14455         (spu_machine_dependent_reorg): Call df_finish_pass after
14456         schedule_insns returns.
14457
14458 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14459
14460         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14461
14462 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14463
14464         PR tree-optimization/47005
14465         * tree-sra.c (struct access): Add 'non_addressable' bit.
14466         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14467         (decide_one_param_reduction): Return 0 if the parameter is passed by
14468         reference and one of the accesses in the group is non_addressable.
14469
14470 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14471
14472         PR tree-optimization/47056
14473         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14474         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14475         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14476
14477 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14478
14479         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14480         initializer.  Skip view conversions from aggregate types.
14481
14482 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14483
14484         PR bootstrap/47055
14485         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14486
14487 2011-01-04  Philipp Thomas  <pth@suse.de>
14488
14489         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14490         obvious typo.
14491
14492 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14493
14494         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14495         on empty epilogue sequences.
14496
14497 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14498
14499         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14500         non-static): New Driver options.
14501
14502 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14503
14504         PR driver/47137
14505         * gcc.c (default_compilers[]): Set combinable field to 0
14506         for all assembly languages.
14507
14508 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14509
14510         * config/mips/loongson3a.md: New file.
14511         * config/mips/mips.md: Include loongson3a.md.
14512         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14513         TUNE_LOONGSON_3A.
14514
14515 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14516
14517         PR middle-end/47017
14518         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14519         instead of convert_memory_address_addr_space on the base expression.
14520
14521 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14522
14523         * config/spu/spu.c (spu_option_override): Update error text
14524         for bad -march= / -mtune= values.
14525
14526 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14527
14528         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14529         if branch-hint optimization will be performed.
14530
14531 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14532
14533         PR tree-optimization/47148
14534         * ipa-split.c (split_function): Convert arguments to
14535         DECL_ARG_TYPE if possible.
14536
14537         PR tree-optimization/47155
14538         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14539         when computing uns.
14540
14541         PR rtl-optimization/47157
14542         * combine.c (try_combine): If undobuf.other_insn becomes
14543         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14544         and set *new_direct_jump_p too.
14545
14546 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14547
14548         PR tree-optimization/47021
14549         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14550
14551 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14552
14553         * gcc.c (process_command): Update copyright notice dates.
14554         * gcov.c (print_version): Likewise.
14555         * gcov-dump.c (print_version): Likewise.
14556         * mips-tfile.c (main): Likewise.
14557         * mips-tdump.c (main): Likewise.
14558
14559 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14560
14561         PR tree-optimization/46801
14562         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14563         aggregate fields start at byte boundary instead of the bit-field flag.
14564
14565 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14566
14567         PR driver/47137
14568         * gcc.c (main): Revert revision 168407.
14569
14570 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14571
14572         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14573
14574 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14575
14576         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14577         vector optab to expand vector/scalar shift, update gimple to vector.
14578
14579 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14580
14581         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14582         a thunk.
14583
14584 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14585
14586         PR tree-optimization/46984
14587         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14588         HOST_WIDE_INT.
14589         (cgraph_create_indirect_edge): Fixed line length.
14590         (cgraph_indirect_call_info): Declare.
14591         (cgraph_make_edge_direct) Update declaration.
14592         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14593         (cgraph_create_indirect_edge): Use it.
14594         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14595         callees.
14596         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14597         the new thunk_delta representation.
14598         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14599         HOST_WIDE_INT.
14600         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14601         (ipa_read_indirect_edge_info): Likewise.
14602         * lto-cgraph.c (output_edge_opt_summary): New function.
14603         (output_node_opt_summary): Call it on all outgoing edges.
14604         (input_edge_opt_summary): New function.
14605         (input_node_opt_summary): Call it on all outgoing edges.
14606
14607 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14608
14609         PR driver/47137
14610         * gcc.c (main): Don't check have_o when settting combine_inputs.
14611
14612 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14613
14614         * regrename.c: Add general comment describing the pass.
14615         (struct du_head): Remove 'length' field.
14616         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14617         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14618         Force renaming to the preferred class (if any) in the first pass and do
14619         not consider registers that belong to it in the second pass.
14620         (create_new_chain): Do not set 'length' field.
14621         (scan_rtx_reg): Likewise.
14622
14623 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14624
14625         PR tree-optimization/47140
14626         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14627         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14628         to bit_value_binop.
14629
14630         PR rtl-optimization/47028
14631         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14632         parm_birth_insn instead of at the beginning of first bb.
14633
14634 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14635
14636         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14637         Remove the word "see" before "@pxref".
14638         * doc/rtl.texi: Remove the word "see" before "@pxref".
14639
14640 2011-01-01  Jan Hubicka  <jh@suse.cz>
14641
14642         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14643         memory.
14644
14645 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14646
14647         PR target/38662
14648         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14649
14650 \f
14651 Copyright (C) 2011 Free Software Foundation, Inc.
14652
14653 Copying and distribution of this file, with or without modification,
14654 are permitted in any medium without royalty provided the copyright
14655 notice and this notice are preserved.